|
1 | 1 | package io.ksmt.solver.runner |
2 | 2 |
|
3 | | -import org.junit.jupiter.api.AfterAll |
4 | | -import org.junit.jupiter.api.AfterEach |
5 | | -import org.junit.jupiter.api.BeforeAll |
6 | | -import org.junit.jupiter.api.BeforeEach |
7 | 3 | import io.ksmt.KContext |
8 | 4 | import io.ksmt.runner.generated.createInstance |
9 | 5 | import io.ksmt.runner.generated.models.SolverType |
10 | 6 | import io.ksmt.solver.KSolver |
11 | 7 | import io.ksmt.solver.KSolverStatus |
12 | 8 | import io.ksmt.solver.z3.KZ3Solver |
13 | 9 | import io.ksmt.solver.z3.KZ3SolverConfiguration |
14 | | -import io.ksmt.utils.getValue |
15 | 10 | import io.ksmt.utils.mkConst |
| 11 | +import org.junit.jupiter.api.AfterAll |
| 12 | +import org.junit.jupiter.api.AfterEach |
| 13 | +import org.junit.jupiter.api.BeforeAll |
| 14 | +import org.junit.jupiter.api.BeforeEach |
16 | 15 | import kotlin.test.Test |
17 | 16 | import kotlin.test.assertEquals |
18 | | -import kotlin.test.assertNotEquals |
19 | 17 | import kotlin.test.assertTrue |
20 | 18 | import kotlin.time.Duration.Companion.milliseconds |
21 | 19 |
|
@@ -126,33 +124,6 @@ class SolverRunnerTest { |
126 | 124 | assertTrue("timeout" in solver.reasonOfUnknown()) |
127 | 125 | } |
128 | 126 |
|
129 | | - @Test |
130 | | - fun testSolverConfiguration(): Unit = with(context) { |
131 | | - val i by intSort |
132 | | - val j by intSort |
133 | | - |
134 | | - val expr = (i gt j) or (i lt j) |
135 | | - solver.assert(expr) |
136 | | - |
137 | | - solver.configure { setZ3Option("random_seed", 17) } |
138 | | - val status1 = solver.check() |
139 | | - assertEquals(KSolverStatus.SAT, status1) |
140 | | - val model1 = solver.model() |
141 | | - |
142 | | - solver.configure { setZ3Option("random_seed", 42) } |
143 | | - val status2 = solver.check() |
144 | | - assertEquals(KSolverStatus.SAT, status2) |
145 | | - val model2 = solver.model() |
146 | | - |
147 | | - solver.configure { setZ3Option("random_seed", 17) } |
148 | | - val status3 = solver.check() |
149 | | - assertEquals(KSolverStatus.SAT, status3) |
150 | | - val model3 = solver.model() |
151 | | - |
152 | | - assertNotEquals(model1, model2) |
153 | | - assertEquals(model1, model3) |
154 | | - } |
155 | | - |
156 | 127 | @Test |
157 | 128 | fun testBulkAssert(): Unit = with(context) { |
158 | 129 | val a = boolSort.mkConst("a") |
|
0 commit comments