(formula, solver_name=None, logic=None)
return env.factory.get_model(formula,
                                 solver_name=solver_name,
                                 logic=logic)
Similar to :py:func:`is_sat` but returns a model if the formula is
    satisfiable, otherwise None

    :param formula: The target formula
    :param solver_name: Specify the name of the solver
    :param: logic: Specify the logic that is going to be used
    :returns: A model if the formula is satisfiable
    :rtype: Model
Similar to :py:func:`is_sat` but returns a model if the formula is
    satisfiable, otherwise None
Similar to : py : func : is_sat but returns a model if the formula is satisfiable otherwise None
def get_model(formula, solver_name=None, logic=None):
    """ Similar to :py:func:`is_sat` but returns a model if the formula is
    satisfiable, otherwise None

    :param formula: The target formula
    :param solver_name: Specify the name of the solver
    :param: logic: Specify the logic that is going to be used
    :returns: A model if the formula is satisfiable
    :rtype: Model
    """
    env = get_env()
    if formula not in env.formula_manager:
        warnings.warn("Warning: Contextualizing formula during get_model")
        formula = env.formula_manager.normalize(formula)

    return env.factory.get_model(formula,
                                 solver_name=solver_name,
                                 logic=logic)
def get_model ( formula , solver_name = None , logic = None ) : env = get_env ( ) if formula not in env . formula_manager : warnings . warn ( "Warning: Contextualizing formula during get_model" ) formula = env . formula_manager . normalize ( formula ) return env . factory . get_model ( formula , solver_name = solver_name , logic = logic )