def get_logic(formula, env=None): if env is None: env = pysmt.environment.get_env() # Get Quantifier Information qf = env.qfo.is_qf(formula) theory = env.theoryo.get_theory(formula) logic = Logic(name="Detected Logic", description="", quantifier_free=qf, theory=theory) # Return a logic supported by PySMT that is close to the one computed return get_closer_pysmt_logic(logic)
def get_logic(formula, env=None): if env is None: env = pysmt.environment.get_env() # Get Quantifier Information qf = env.qfo.is_qf(formula) theory = env.theoryo.get_theory(formula) logic = Logic(name="Detected Logic", description="", quantifier_free=qf, theory=theory) # Return a logic supported by PySMT that is close to the one computed return get_closer_pysmt_logic(logic)