Rm the slow solver code (#859)

This commit is contained in:
Mark Mossberg 2018-04-09 10:01:12 -06:00 committed by GitHub
parent 0fc4bba9ad
commit d5a692fc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,15 +358,6 @@ class Z3Solver(Solver):
value = self._getvalue(var)
result.append(value)
# Reset the solver to avoid the incremental mode
# Triggered with two consecutive calls to check-sat
# Yet, if the number of solution is large, sending back
# the whole formula is more expensive
if len(result) < 50:
self._reset(temp_cs.related_to(var))
for value in result:
self._assert(var != value)
else:
self._assert(var != value)
if len(result) >= maxcnt: