Skip to content

Commit c03357c

Browse files
committed
Code style: fix simplified code and restore correct functionality.
1 parent e5726db commit c03357c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/sosy_lab/java_smt/solvers/cvc5/CVC5FormulaCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public Term makeVariable(Sort sort, String name) {
108108
"Symbol %s requested with type %s, but already used with type %s",
109109
name,
110110
sort,
111-
Iterables.getOnlyElement(variablesCache.row(name).entrySet()));
111+
Iterables.getOnlyElement(variablesCache.row(name).entrySet()).getKey());
112112
Term newVar = termManager.mkConst(sort, name);
113113
variablesCache.put(name, sort.toString(), newVar);
114114
return newVar;
@@ -851,7 +851,7 @@ private Term accessVariablesCache(String name, Sort sort) {
851851
"Symbol %s requested with type %s, but already used with type %s",
852852
name,
853853
sort,
854-
Iterables.getOnlyElement(variablesCache.row(name).entrySet()));
854+
Iterables.getOnlyElement(variablesCache.row(name).entrySet()).getKey());
855855
return existingVar;
856856
}
857857
}

0 commit comments

Comments
 (0)