Skip to content

Commit

Permalink
Correctly construct SmtCtx in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-thoeb committed Nov 5, 2024
1 parent 71a19ac commit 86bf19f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/opt/fuzz_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use proptest::{
};
use z3rro::prover::{ProveResult, Prover};

use crate::smt::SmtCtxOptions;
use crate::{
ast::{
BinOpKind, DeclKind, DeclRef, Expr, ExprBuilder, ExprData, ExprKind, Ident, LitKind,
Expand Down Expand Up @@ -198,7 +199,7 @@ fn prove_equiv(expr: Expr, optimized: Expr, tcx: &TyCtx) -> TestCaseResult {
optimized.clone(),
);
let ctx = z3::Context::new(&z3::Config::new());
let smt_ctx = SmtCtx::new(&ctx, tcx, false, false);
let smt_ctx = SmtCtx::new(&ctx, tcx, SmtCtxOptions::default());
let mut translate = TranslateExprs::new(&smt_ctx);
let eq_expr_z3 = translate.t_bool(&eq_expr);
let mut prover = Prover::new(&ctx);
Expand Down

0 comments on commit 86bf19f

Please sign in to comment.