Skip to content

Commit

Permalink
Change Preconditions check to assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mondokm committed Aug 15, 2024
1 parent 5ce63e9 commit ea0d2b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public Z3TermTransformer(final Z3SymbolTable symbolTable) {
}

private void addFunc(String name, Tuple2<Integer, TriFunction<com.microsoft.z3legacy.Expr, Model, List<Decl<?>>, Expr<?>>> func) {
checkArgument(!environment.containsKey(Tuple2.of(name, func.get1())), "Duplicate key: " + Tuple2.of(name, func.get1()));
assert !environment.containsKey(Tuple2.of(name, func.get1()));
environment.put(Tuple2.of(name, func.get1()), func.get2());
}

Expand Down

0 comments on commit ea0d2b2

Please sign in to comment.