|
24 | 24 | import org.sosy_lab.java_smt.api.StringFormula;
|
25 | 25 | import org.sosy_lab.java_smt.basicimpl.Generator;
|
26 | 26 |
|
27 |
| -@SuppressWarnings({"CheckReturnValue", "ReturnValueIgnored"}) |
| 27 | +@SuppressWarnings({"CheckReturnValue", "ReturnValueIgnored","EqualsIncompatibleType"}) |
28 | 28 | public class SMTLIB2StringTest extends SolverBasedTest0.ParameterizedSolverBasedTest0 {
|
29 |
| - |
30 | 29 | @Before
|
31 | 30 | public void setUp() {
|
32 | 31 | assume().that(smgr).isNotNull();
|
@@ -246,10 +245,6 @@ public void testRegexInRe()
|
246 | 245 |
|
247 | 246 | BooleanFormula actualResult = mgr.universalParseFromString(x);
|
248 | 247 |
|
249 |
| - StringFormula a = smgr.makeVariable("a"); |
250 |
| - RegexFormula regex = smgr.concat(smgr.makeRegex("a"), smgr.makeRegex("b")); |
251 |
| - BooleanFormula regexMatch = smgr.in(a, regex); |
252 |
| - |
253 | 248 | assertThat(
|
254 | 249 | actualResult.equals(
|
255 | 250 | "(str.in_re a (re.++ (str.to_re \"\\Qa\\E\") (str.to_re " + "\"\\Qb\\E\")))"));
|
@@ -293,10 +288,6 @@ public void testRegexConcat()
|
293 | 288 |
|
294 | 289 | BooleanFormula actualResult = mgr.universalParseFromString(x);
|
295 | 290 |
|
296 |
| - StringFormula a = smgr.makeVariable("a"); |
297 |
| - RegexFormula regex = smgr.concat(smgr.makeRegex("a"), smgr.makeRegex("b")); |
298 |
| - BooleanFormula regexMatch = smgr.in(a, regex); |
299 |
| - |
300 | 291 | assertThat(
|
301 | 292 | actualResult.equals(
|
302 | 293 | "(str.in_re a (re.++ (str.to_re \"\\Qa\\E\") (str.to_re " + "\"\\Qb\\E\")))"));
|
@@ -325,10 +316,6 @@ public void testRegexClosure()
|
325 | 316 |
|
326 | 317 | BooleanFormula actualResult = mgr.universalParseFromString(x);
|
327 | 318 |
|
328 |
| - StringFormula a = smgr.makeVariable("a"); |
329 |
| - RegexFormula regex = smgr.closure(smgr.makeRegex("a")); |
330 |
| - BooleanFormula regexMatch = smgr.in(a, regex); |
331 |
| - |
332 | 319 | assertThat(actualResult.equals("(str.in_re a (re.* (str.to_re \"\\Qa\\E\")))"));
|
333 | 320 | }
|
334 | 321 |
|
@@ -356,9 +343,6 @@ public void testRegexIntersection()
|
356 | 343 |
|
357 | 344 | BooleanFormula actualResult = mgr.universalParseFromString(x);
|
358 | 345 |
|
359 |
| - StringFormula a = smgr.makeVariable("a"); |
360 |
| - RegexFormula regex = smgr.intersection(smgr.makeRegex("a"), smgr.makeRegex("b")); |
361 |
| - BooleanFormula regexMatch = smgr.in(a, regex); |
362 | 346 |
|
363 | 347 | assertThat(
|
364 | 348 | actualResult.equals(
|
|
0 commit comments