@@ -163,8 +163,7 @@ public void testRegexAllCharUnicode() throws SolverException, InterruptedExcepti
163
163
} else {
164
164
// Z3 and other solvers support Unicode characters in the theory of strings.
165
165
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 )))
168
167
.isSatisfiable ();
169
168
// Combining characters are not matched as one character.
170
169
// Non-ascii non-printable characters should use the codepoint representation
@@ -191,30 +190,31 @@ public void testEmptyRegex() throws SolverException, InterruptedException {
191
190
}
192
191
193
192
@ Test
194
- public void testRegexUnion () throws SolverException , InterruptedException {
193
+ public void testRegexUnion () throws SolverException , InterruptedException {
195
194
RegexFormula regex = smgr .union (smgr .makeRegex ("a" ), smgr .makeRegex ("b" ));
196
195
assertThatFormula (smgr .in (smgr .makeString ("a" ), regex )).isSatisfiable ();
197
196
assertThatFormula (smgr .in (smgr .makeString ("b" ), regex )).isSatisfiable ();
198
197
assertThatFormula (smgr .in (smgr .makeString ("c" ), regex )).isUnsatisfiable ();
199
198
}
200
199
201
200
@ Test
202
- public void testRegexIntersection () throws SolverException , InterruptedException {
201
+ public void testRegexIntersection () throws SolverException , InterruptedException {
203
202
RegexFormula regex = smgr .intersection (smgr .makeRegex ("a" ), smgr .makeRegex ("b" ));
204
203
StringFormula variable = smgr .makeVariable ("var" );
205
204
assertThatFormula (smgr .in (variable , regex )).isUnsatisfiable ();
206
205
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" )));
210
210
assertThatFormula (smgr .in (smgr .makeString ("a" ), regex )).isUnsatisfiable ();
211
211
assertThatFormula (smgr .in (smgr .makeString ("b" ), regex )).isSatisfiable ();
212
212
}
213
213
214
214
@ 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" ));
218
218
assertThatFormula (smgr .in (smgr .makeString ("a" ), regex )).isSatisfiable ();
219
219
assertThatFormula (smgr .in (smgr .makeString ("b" ), regex )).isUnsatisfiable ();
220
220
}
0 commit comments