Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
JakuJ committed Feb 27, 2023
1 parent bf396ca commit 096bdd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions prusti-server/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use prusti_common::{
vir::{LoweringContext, ToViper},
Stopwatch,
};
use viper::{VerificationContext, VerificationResult};
use viper::VerificationContext;

pub enum Backend<'a> {
Viper(viper::Verifier<'a>, &'a VerificationContext<'a>),
Expand Down Expand Up @@ -37,7 +37,10 @@ impl<'a> Backend<'a> {
viper.verify(viper_program)
})
}
Backend::Lithium(lithium) => lithium.verify(program),
Backend::Lithium(lithium) => {
Stopwatch::start("prusti-server", "verifierication");
lithium.verify(program)
}
}
}
}
10 changes: 5 additions & 5 deletions prusti-server/src/process_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ pub fn process_verification_request<'v, 't: 'v>(
),
verification_context,
),
VerificationBackend::Lithium => {
Backend::Lithium(native_verifier::Verifier::new(config::smt_solver_path()))
// TODO: Wrapper support
}
};
VerificationBackend::Lithium => {
Backend::Lithium(native_verifier::Verifier::new(config::smt_solver_path()))
// TODO: SMT Wrapper support
}
};

stopwatch.start_next("backend verification");
let mut result = backend.verify(&request.program);
Expand Down

0 comments on commit 096bdd5

Please sign in to comment.