Skip to content

Commit

Permalink
Add --static-fuel flag
Browse files Browse the repository at this point in the history
In the process the fuel encoding code was
completely restructured
  • Loading branch information
ole-thoeb committed Feb 10, 2025
1 parent 68c1680 commit 5ffd375
Show file tree
Hide file tree
Showing 7 changed files with 721 additions and 358 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ pub struct OptimizationOptions {
/// when using `limited-functions`.
#[arg(long)]
pub lit_wrap: bool,

/// For each function f Generate multiple function f_n (f_2, f_1, f_0) that each respectively
/// can only be instantiated n times. Requires `limited-functions`
#[arg(long)]
pub static_fuel: bool,
}

#[derive(Debug, Default, Args)]
Expand Down Expand Up @@ -725,6 +730,7 @@ fn verify_files_main(
SmtCtxOptions {
use_limited_functions: options.opt_options.limited_functions,
lit_wrap: options.opt_options.lit_wrap,
static_fuel: options.opt_options.static_fuel,
},
);
let mut translate = TranslateExprs::new(&smt_ctx);
Expand Down
Loading

0 comments on commit 5ffd375

Please sign in to comment.