(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":
            unsat_core = {}
            # relies on this assertion stack being ordered
            assert isinstance(self._assertion_stack, list)
            btor_named_assertions = [self.converter.convert(a) for a in self._named_assertions.keys()]
            in_unsat_core = self.btor.Failed(*btor_named_assertions)
            for a, in_core in zip(self._assertion_stack, in_unsat_core):
                if in_core:
                    name = self._named_assertions[a]
                    unsat_core[name] = a
            return unsat_core
        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" : unsat_core = { } # relies on this assertion stack being ordered assert isinstance ( self . _assertion_stack , list ) btor_named_assertions = [ self . converter . convert ( a ) for a in self . _named_assertions . keys ( ) ] in_unsat_core = self . btor . Failed ( * btor_named_assertions ) for a , in_core in zip ( self . _assertion_stack , in_unsat_core ) : if in_core : name = self . _named_assertions [ a ] unsat_core [ name ] = a return unsat_core else : return dict ( ( "_a%d" % i , f ) for i , f in enumerate ( self . get_unsat_core ( ) ) )