Skip to content

Commit

Permalink
benches: adapt to new code stucture
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Obst committed Aug 12, 2024
1 parent bff7039 commit f1c0c5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cwe_checker_lib/benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ mod checkers {
|pcode_projects: &[&str], binaries: &[&str], mut group: BenchmarkGroup<T>| {
for (pcode_project_json, binary) in iter::zip(pcode_projects, binaries) {
let (mut project, binary) = get_project_and_binary(pcode_project_json, binary);
let _ = project.normalize();
let _ = project.optimize();
let cfg = graph::get_program_cfg(&project.program);

let analysis_results = AnalysisResults::new(&binary, &cfg, &project);
Expand Down Expand Up @@ -343,7 +343,7 @@ mod core_analyses {
|pcode_projects: &[&str], binaries: &[&str], mut group: BenchmarkGroup<WallTime>| {
for (pcode_project_json, binary) in iter::zip(pcode_projects, binaries) {
let (mut project, binary) = get_project_and_binary(pcode_project_json, binary);
let _ = project.normalize();
let _ = project.optimize();
let cfg = graph::get_program_cfg(&project.program);

let analysis_results = AnalysisResults::new(&binary, &cfg, &project);
Expand Down Expand Up @@ -384,7 +384,7 @@ mod core_analyses {
let config = get_config();
for (pcode_project_json, binary) in iter::zip(pcode_projects, binaries) {
let (mut project, binary) = get_project_and_binary(pcode_project_json, binary);
let _ = project.normalize();
let _ = project.optimize();
let cfg = graph::get_program_cfg(&project.program);

let analysis_results = AnalysisResults::new(&binary, &cfg, &project);
Expand Down Expand Up @@ -428,7 +428,7 @@ mod core_analyses {
let config = get_config();
for (pcode_project_json, binary) in iter::zip(pcode_projects, binaries) {
let (mut project, binary) = get_project_and_binary(pcode_project_json, binary);
let _ = project.normalize();
let _ = project.optimize();
let cfg = graph::get_program_cfg(&project.program);

let analysis_results = AnalysisResults::new(&binary, &cfg, &project);
Expand Down Expand Up @@ -623,7 +623,7 @@ mod cfg {
let _ = project.normalize_basic();
let program_unoptimized = project.program.clone();

let _ = project.normalize_optimize();
let _ = project.optimize();
let program_optimized = project.program.clone();

group.bench_with_input(
Expand Down

0 comments on commit f1c0c5c

Please sign in to comment.