(self)
After a call to solve() yielding UNSAT, returns the unsat core as a
        dict of names to formulae
After a call to solve() yielding UNSAT, returns the unsat core as a
        dict of names to formulae
After a call to solve () yielding UNSAT returns the unsat core as a dict of names to formulae
def get_named_unsat_core(self):
        """After a call to solve() yielding UNSAT, returns the unsat core as a
        dict of names to formulae"""
        self._check_unsat_core_config()
        if self.options.unsat_cores_mode == "named":

            assumptions = mathsat.msat_get_unsat_assumptions(self.msat_env())
            pysmt_assumptions = set(self.converter.back(t) for t in assumptions)

            res = {}
            n_ass_map = self._named_assertions_map()
            cnt = 0
            for key in pysmt_assumptions:
                if key in n_ass_map:
                    (name, formula) = n_ass_map[key]
                    if name is None:
                        name = "_a_%d" % cnt
                        cnt += 1
                    res[name] = formula
            return res

        else:
            return dict(("_a%d" % i, f)
                        for i,f in enumerate(self.get_unsat_core()))
def get_named_unsat_core ( self ) : self . _check_unsat_core_config ( ) if self . options . unsat_cores_mode == "named" : assumptions = mathsat . msat_get_unsat_assumptions ( self . msat_env ( ) ) pysmt_assumptions = set ( self . converter . back ( t ) for t in assumptions ) res = { } n_ass_map = self . _named_assertions_map ( ) cnt = 0 for key in pysmt_assumptions : if key in n_ass_map : ( name , formula ) = n_ass_map [ key ] if name is None : name = "_a_%d" % cnt cnt += 1 res [ name ] = formula return res else : return dict ( ( "_a%d" % i , f ) for i , f in enumerate ( self . get_unsat_core ( ) ) )