Per an earlier suggestion, I'm trying to set early timeout for a solver while using z3Py.
Again, without all the particulars, this is what I'm attempting:
for bits in range(A, B, incrmt)
s = Solver();
s.set("timeout", 30) #30, 3000, 30000, 60000 no change
s.add(some constraints)
if(s.check() == sat):
print "Sat, %d," %(bits)
else:
print "Sat Unknown, %d," %(bits)
break
sys.stdout.flush()
Essentially, timeout never occurs (even with ridiculously small times in ms).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…