# _apply4.Dump("smt2", "dump.smt2") ### Boolector methods # Available options b.Options() # Print available options print("Available Boolector options:") print("\n".join([" " + str(o) for o in b.Options()])) # Set options b.Set_opt(pyboolector.BTOR_OPT_INCREMENTAL, 1) b.Set_opt(pyboolector.BTOR_OPT_MODEL_GEN, 1) # Get options o = b.Get_opt(pyboolector.BTOR_OPT_MODEL_GEN) # print(o.lng) # long option name # print(o.shrt) # short option name # print(o.desc) # description # print(o.min) # min value # print(o.max) # max value # print(o.dflt) # default value # print(o.val) # current value # Set SAT solver (can only be done before the first Sat() call) # Lingeling is the default SAT solver #b.Set_sat_solver("MiniSAT") # Assert formulas b.Assert(_cond0[1]) b.Assert(_apply5 != _apply3)
# _apply4.Dump("smt2", "dump.smt2") ### Boolector methods # Available options b.Options() # Print available options print("Available Boolector options:") print("\n".join([" " + str(o) for o in b.Options()])) # Set options b.Set_opt(pyboolector.BTOR_OPT_INCREMENTAL, 1) b.Set_opt(pyboolector.BTOR_OPT_MODEL_GEN, 1) # Get options o = b.Get_opt(pyboolector.BTOR_OPT_MODEL_GEN) # print(o.lng) # long option name # print(o.shrt) # short option name # print(o.desc) # description # print(o.min) # min value # print(o.max) # max value # print(o.dflt) # default value # print(o.val) # current value # Set SAT solver (can only be done before the first Sat() call) # Lingeling is the default SAT solver #b.Set_sat_solver("MiniSAT") # Assert formulas b.Assert(_cond0[1]) b.Assert(_apply5 != _apply3)