Skip to content

Commit

Permalink
Apply printing solver option to cvc5 SyGuS instance
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoKobalamyne committed Dec 9, 2024
1 parent f49dfaf commit dfd4043
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions engines/ic3ia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include "smt-switch/cvc5_sort.h"
#include "smt-switch/cvc5_term.h"
#include "smt-switch/identity_walker.h"
#include "smt-switch/printing_solver.h"
#include "smt-switch/utils.h"

#include "smt/available_solvers.h"
#include "utils/logger.h"
#include "utils/term_analysis.h"
Expand Down Expand Up @@ -1303,7 +1303,14 @@ bool IC3IA::cvc5_synthesize_preds(
// HACK
// hacked in to evaluate CVC5
// if done for real, should be sure to do this OR the interpolator, not both
smt::SmtSolver cvc5_ = create_solver(smt::SolverEnum::CVC5);
smt::SmtSolver cvc5_;
if (options_.printing_smt_solver_) {
cvc5_ = create_printing_solver(create_solver(smt::SolverEnum::CVC5),
&cerr,
PrintingStyleEnum::CVC5_STYLE);
} else {
cvc5_ = create_solver(smt::SolverEnum::CVC5);
}
smt::TermTranslator to_cvc5_(cvc5_);
smt::TermTranslator from_cvc5_(solver_);

Expand Down

0 comments on commit dfd4043

Please sign in to comment.