mirror of
https://github.com/AdaCore/cvc5.git
synced 2026-02-12 12:32:16 -08:00
24 lines
390 B
Python
24 lines
390 B
Python
from cvc5.pythonic import *
|
|
|
|
if __name__ == '__main__':
|
|
s = Solver()
|
|
s.set("produce-models", True)
|
|
try:
|
|
# invalid option
|
|
s.set("non-existing-option", True)
|
|
except:
|
|
pass
|
|
|
|
try:
|
|
# type error
|
|
Int("x") + BitVec("a", 5)
|
|
except:
|
|
pass
|
|
|
|
s += BoolVal(False)
|
|
s.check()
|
|
try:
|
|
s.model()
|
|
except:
|
|
pass
|