With statement for push/pop.
(self, kernel)
| 896 | assert len(s.assertions()) == 0 |
| 897 | |
| 898 | def test_solver_context_manager(self, kernel): |
| 899 | """With statement for push/pop.""" |
| 900 | s = Solver() |
| 901 | x = Int("x") |
| 902 | s.add(x > 0) |
| 903 | with s: |
| 904 | s.add(x < 0) |
| 905 | assert s.check() == unsat |
| 906 | assert len(s.assertions()) == 1 |
| 907 | |
| 908 | def test_model_not_supported(self, kernel): |
| 909 | """model() raises since Lean is not an SMT solver.""" |
nothing calls this directly
no test coverage detected