MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_push_pop_restores

Method test_push_pop_restores

tests/test_z3_semantic.py:1076–1084  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

1074 assert s.check() == unsat
1075
1076 def test_push_pop_restores(self, kernel):
1077 s = Solver()
1078 s.add(BoolVal(True))
1079 s.push()
1080 s.add(BoolVal(False))
1081 assert s.check() == unsat
1082 s.pop()
1083 # After pop, only True remains — provable, so sat
1084 assert s.check() == sat
1085
1086 def test_nested_push_pop(self, kernel):
1087 x = Int("x")

Callers

nothing calls this directly

Calls 6

addMethod · 0.95
pushMethod · 0.95
checkMethod · 0.95
popMethod · 0.95
SolverClass · 0.90
BoolValFunction · 0.90

Tested by

no test coverage detected