(self)
After a call to solve() yielding UNSAT, returns the unsat core as a
        set of formulae
After a call to solve() yielding UNSAT, returns the unsat core as a
        set of formulae
After a call to solve () yielding UNSAT returns the unsat core as a set of formulae
def get_unsat_core(self):
        """After a call to solve() yielding UNSAT, returns the unsat core as a
        set of formulae"""
        self._check_unsat_core_config()
        if self.options.unsat_cores_mode == "all":

            terms = mathsat.msat_get_unsat_core(self.msat_env())
            if terms is None:
                raise InternalSolverError(
                    mathsat.msat_last_error_message(self.msat_env()))
            return set(self.converter.back(t) for t in terms)
        else:
            return self.get_named_unsat_core().values()
def get_unsat_core ( self ) : self . _check_unsat_core_config ( ) if self . options . unsat_cores_mode == "all" : terms = mathsat . msat_get_unsat_core ( self . msat_env ( ) ) if terms is None : raise InternalSolverError ( mathsat . msat_last_error_message ( self . msat_env ( ) ) ) return set ( self . converter . back ( t ) for t in terms ) else : return self . get_named_unsat_core ( ) . values ( )