Skip to content

Commit 6cd9ecc

Browse files
committed
fix: format source.
1 parent 6f6e55b commit 6cd9ecc

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ public Term makeVariable(Sort sort, String name) {
8888
Preconditions.checkArgument(
8989
sort.equals(exp.getSort()),
9090
"symbol name %s with sort %s already in use for different sort %s",
91-
name, sort, exp.getSort());
91+
name,
92+
sort,
93+
exp.getSort());
9294
return exp;
9395
}
9496

@@ -228,8 +230,7 @@ public <T extends Formula> T encapsulate(FormulaType<T> pType, Term pTerm) {
228230
|| (pType.equals(FormulaType.RationalType)
229231
&& getFormulaType(pTerm).equals(FormulaType.IntegerType))
230232
: String.format(
231-
"Cannot encapsulate formula %s of Type %s as %s",
232-
pTerm, getFormulaType(pTerm), pType);
233+
"Cannot encapsulate formula %s of Type %s as %s", pTerm, getFormulaType(pTerm), pType);
233234
if (pType.isBooleanType()) {
234235
return (T) new CVC5BooleanFormula(pTerm);
235236
} else if (pType.isIntegerType()) {

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ public void testRegexAllCharUnicode() throws SolverException, InterruptedExcepti
163163
} else {
164164
// Z3 and other solvers support Unicode characters in the theory of strings.
165165
assertThatFormula(
166-
smgr.in(
167-
smgr.makeVariable("x"), smgr.union(smgr.range('a', 'Δ'), regexAllChar)))
166+
smgr.in(smgr.makeVariable("x"), smgr.union(smgr.range('a', 'Δ'), regexAllChar)))
168167
.isSatisfiable();
169168
// Combining characters are not matched as one character.
170169
// Non-ascii non-printable characters should use the codepoint representation
@@ -191,30 +190,31 @@ public void testEmptyRegex() throws SolverException, InterruptedException {
191190
}
192191

193192
@Test
194-
public void testRegexUnion() throws SolverException, InterruptedException {
193+
public void testRegexUnion() throws SolverException, InterruptedException {
195194
RegexFormula regex = smgr.union(smgr.makeRegex("a"), smgr.makeRegex("b"));
196195
assertThatFormula(smgr.in(smgr.makeString("a"), regex)).isSatisfiable();
197196
assertThatFormula(smgr.in(smgr.makeString("b"), regex)).isSatisfiable();
198197
assertThatFormula(smgr.in(smgr.makeString("c"), regex)).isUnsatisfiable();
199198
}
200199

201200
@Test
202-
public void testRegexIntersection() throws SolverException, InterruptedException {
201+
public void testRegexIntersection() throws SolverException, InterruptedException {
203202
RegexFormula regex = smgr.intersection(smgr.makeRegex("a"), smgr.makeRegex("b"));
204203
StringFormula variable = smgr.makeVariable("var");
205204
assertThatFormula(smgr.in(variable, regex)).isUnsatisfiable();
206205

207-
regex = smgr.intersection(
208-
smgr.union(smgr.makeRegex("a"), smgr.makeRegex("b")),
209-
smgr.union(smgr.makeRegex("b"), smgr.makeRegex("c")));
206+
regex =
207+
smgr.intersection(
208+
smgr.union(smgr.makeRegex("a"), smgr.makeRegex("b")),
209+
smgr.union(smgr.makeRegex("b"), smgr.makeRegex("c")));
210210
assertThatFormula(smgr.in(smgr.makeString("a"), regex)).isUnsatisfiable();
211211
assertThatFormula(smgr.in(smgr.makeString("b"), regex)).isSatisfiable();
212212
}
213213

214214
@Test
215-
public void testRegexDifference() throws SolverException, InterruptedException {
216-
RegexFormula regex = smgr.difference(
217-
smgr.union(smgr.makeRegex("a"), smgr.makeRegex("b")), smgr.makeRegex("b"));
215+
public void testRegexDifference() throws SolverException, InterruptedException {
216+
RegexFormula regex =
217+
smgr.difference(smgr.union(smgr.makeRegex("a"), smgr.makeRegex("b")), smgr.makeRegex("b"));
218218
assertThatFormula(smgr.in(smgr.makeString("a"), regex)).isSatisfiable();
219219
assertThatFormula(smgr.in(smgr.makeString("b"), regex)).isUnsatisfiable();
220220
}

0 commit comments

Comments
 (0)