Skip to content

Commit

Permalink
Print stats
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Jan 28, 2025
1 parent e04d76c commit 0489199
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 24 deletions.
46 changes: 23 additions & 23 deletions eval/Analyse.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions eval/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ for file in $ALL; do
done

mv eval/data/* .
rm -rf eval
16 changes: 15 additions & 1 deletion smt-log-parser/src/bin/smt-scope/cmd/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
};

use smt_log_parser::{
analysis::{InstGraph, RedundancyAnalysis},
analysis::{InstGraph, InstsInfo, LogInfo, RedundancyAnalysis},
display_with::DisplayWithCtxt,
items::QuantPat,
parsers::dummy::Z3DummyParser,
Expand Down Expand Up @@ -45,10 +45,24 @@ pub fn run(logfile: PathBuf, dummy: bool) -> Result<(), String> {
let graph_time = timer.lap();
let loops = graph.search_matching_loops(&mut parser);
let redundancy = RedundancyAnalysis::new(&parser);
let log = LogInfo::new(&parser);
let insts = InstsInfo::new(&parser);
let analysis_time = timer.lap();
println!("[Parse] {}us", parse_time.as_micros());
println!("[Graph] {}us", graph_time.as_micros());
println!("[Analysis] {}us", analysis_time.as_micros());

println!(
"[Stats] {} mbqi, {} ts, {} axiom, {} quant, {} proof, {} ntp, {} cdcl,",
log.match_.mbqi,
log.match_.theory_solving,
log.match_.axioms,
log.match_.quantifiers,
insts.proofs,
insts.proofs_nt_nq,
insts.cdcls
);

println!("[Loops] {} true, {} false", loops.sure_mls, loops.maybe_mls);
let qpat_to_str = |q: QuantPat| {
let name = parser[q.quant].kind.name(&parser.strings);
Expand Down

0 comments on commit 0489199

Please sign in to comment.