Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
HanielB committed Nov 12, 2024
1 parent ff5c97b commit 8d98116
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/smt/set_defaults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1823,8 +1823,12 @@ void SetDefaults::notifyModifyOption(const std::string& x,

void SetDefaults::disableChecking(Options& opts)
{
opts.write_smt().produceUnsatCores = false;
opts.write_smt().unsatCoresMode = options::UnsatCoresMode::OFF;
opts.write_smt().minimalUnsatCores = false;
opts.write_smt().checkUnsatCores = false;
opts.write_smt().produceProofs = false;
opts.write_smt().proofMode = options::ProofMode::OFF;
opts.write_smt().checkProofs = false;
opts.write_smt().debugCheckModels = false;
opts.write_smt().checkModels = false;
Expand Down
2 changes: 2 additions & 0 deletions src/smt/unsat_core_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ std::vector<Node> UnsatCoreManager::reduceUnsatCore(
// disable all proof options
SetDefaults::disableChecking(coreChecker->getOptions());
// add to removed set?
Trace("unsat-core") << "Consider removing " << skip << "\nTest with " << core << " + " << adefs << " - " << removed << "\n";
removed.insert(skip);
// assert everything to the subsolver
theory::assertToSubsolver(*coreChecker.get(), core, adefs, removed);
Expand All @@ -255,6 +256,7 @@ std::vector<Node> UnsatCoreManager::reduceUnsatCore(

if (r.getStatus() != Result::UNSAT)
{
Trace("unsat-core") << "\tcannot remove\n";
removed.erase(skip);
if (r.isUnknown())
{
Expand Down
1 change: 1 addition & 0 deletions src/theory/smt_engine_subsolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ void assertToSubsolver(SolverEngine& subsolver,
continue;
}
}
Trace("test") << "\t\tassert " << f << "\n";
subsolver.assertFormula(f);
}
}
Expand Down

0 comments on commit 8d98116

Please sign in to comment.