(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':
            unsat_core = set()
            # relies on this assertion stack being ordered
            assert isinstance(self._assertion_stack, list)
            btor_assertions = [self.converter.convert(a) for a in self._assertion_stack]
            in_unsat_core = self.btor.Failed(*btor_assertions)
            for a, in_core in zip(self._assertion_stack, in_unsat_core):
                if in_core:
                    unsat_core.add(a)
            return unsat_core
        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' : unsat_core = set ( ) # relies on this assertion stack being ordered assert isinstance ( self . _assertion_stack , list ) btor_assertions = [ self . converter . convert ( a ) for a in self . _assertion_stack ] in_unsat_core = self . btor . Failed ( * btor_assertions ) for a , in_core in zip ( self . _assertion_stack , in_unsat_core ) : if in_core : unsat_core . add ( a ) return unsat_core else : return self . get_named_unsat_core ( ) . values ( )