Skip to content

Commit aff1b96

Browse files
Fix formating in comments
1 parent fd42089 commit aff1b96

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

src/org/sosy_lab/java_smt/basicimpl/AbstractFormulaManager.java

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,10 @@
2525
import org.checkerframework.checker.nullness.qual.Nullable;
2626
import org.sosy_lab.common.Appender;
2727
import org.sosy_lab.common.Appenders;
28-
import org.sosy_lab.java_smt.api.ArrayFormulaManager;
29-
import org.sosy_lab.java_smt.api.BooleanFormula;
30-
import org.sosy_lab.java_smt.api.EnumerationFormulaManager;
31-
import org.sosy_lab.java_smt.api.FloatingPointFormulaManager;
32-
import org.sosy_lab.java_smt.api.Formula;
33-
import org.sosy_lab.java_smt.api.FormulaManager;
34-
import org.sosy_lab.java_smt.api.FormulaType;
28+
import org.sosy_lab.java_smt.api.*;
3529
import org.sosy_lab.java_smt.api.FormulaType.ArrayFormulaType;
3630
import org.sosy_lab.java_smt.api.FormulaType.BitvectorType;
3731
import org.sosy_lab.java_smt.api.FormulaType.FloatingPointType;
38-
import org.sosy_lab.java_smt.api.FunctionDeclaration;
39-
import org.sosy_lab.java_smt.api.FunctionDeclarationKind;
40-
import org.sosy_lab.java_smt.api.IntegerFormulaManager;
41-
import org.sosy_lab.java_smt.api.RationalFormulaManager;
42-
import org.sosy_lab.java_smt.api.SLFormulaManager;
43-
import org.sosy_lab.java_smt.api.StringFormulaManager;
44-
import org.sosy_lab.java_smt.api.Tactic;
4532
import org.sosy_lab.java_smt.api.visitors.FormulaTransformationVisitor;
4633
import org.sosy_lab.java_smt.api.visitors.FormulaVisitor;
4734
import org.sosy_lab.java_smt.api.visitors.TraversalProcess;
@@ -285,7 +272,7 @@ private String sanitize(String formulaStr) {
285272
Preconditions.checkArgument(pos == 0);
286273

287274
} else if (Tokenizer.isExitToken(token)) {
288-
// Skip any (exit) command at the end of the input
275+
// Skip the (exit) command at the end of the input
289276
Preconditions.checkArgument(pos == tokens.size() - 1);
290277

291278
} else if (Tokenizer.isDeclarationToken(token)
@@ -297,11 +284,9 @@ private String sanitize(String formulaStr) {
297284
} else if (Tokenizer.isUnsupportedToken(token)) {
298285
// Throw an exception if the script contains commands like (pop) or (reset) that change the
299286
// state of the assertion stack.
300-
// We could keept track of the state of the stack and only consider the formulas that remain
301-
// on it until the end
302-
// of the script. However, this does not seem worth it at the moment. If needed, this
303-
// feature can still be added
304-
// later.
287+
// We could keep track of the state of the stack and only consider the formulas that remain
288+
// on the stack at the end of the script. However, this does not seem worth it at the
289+
// moment. If needed, this feature can still be added later.
305290
throw new IllegalArgumentException();
306291

307292
} else {

src/org/sosy_lab/java_smt/test/SanitizerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ public void logicTest() throws SolverException, InterruptedException {
3636
String wrongLogic = "(set-logic QF_UF)" + "(declare-const v Int)" + "(assert (= v 3))";
3737
assertThatFormula(mgr.parse(wrongLogic)).isEquivalentTo(expected);
3838

39-
// Try setting logic after another command was already used
39+
// Try setting the logic when it's not the beginning of the input string
4040
String logicAfterOption =
4141
"(set-option :produce-models true)"
4242
+ "(set-logic ALL)"
4343
+ "(declare-const v Int)"
4444
+ "(assert (= v 3))";
4545
assertThrows(IllegalArgumentException.class, () -> mgr.parse(logicAfterOption));
4646

47-
// Try setting the logic again after it has already been set
47+
// Try setting the logic when it's already been set
4848
String logicTwice =
4949
"(set-logic ALL)" + "(declare-const v Int)" + "(set-logic QF_UF)" + " (assert (= v 3))";
5050
assertThrows(IllegalArgumentException.class, () -> mgr.parse(logicTwice));

0 commit comments

Comments
 (0)