Skip to content

Commit

Permalink
Rename verify_viper back to verify to comply with test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
JakuJ committed Feb 15, 2023
1 parent 4066fb1 commit ce3234e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prusti-server/src/process_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ pub fn process_verification_request<'v, 't: 'v>(
panic!("Lithium backend can only verify vir::low programs");
}
} else {
verifier.verify_viper(viper_program)
verifier.verify(viper_program)
};

// Don't cache Java exceptions, which might be due to misconfigured paths.
Expand Down
2 changes: 1 addition & 1 deletion viper/src/jvm_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<'a> Verifier<'a> for JavaBasedVerifier<'a> {
panic!("VIR verification is not supported by JVM-based verifiers.");
}

fn verify_viper(&mut self, program: Program) -> VerificationResult {
fn verify(&mut self, program: Program) -> VerificationResult {
self.ast_utils.with_local_frame(16, || {
debug!(
"Program to be verified:\n{}",
Expand Down
2 changes: 1 addition & 1 deletion viper/src/native_backend/native_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<'a> Verifier<'a> for NativeVerifier {
// TODO: Start the verifier
}

fn verify_viper(&mut self, _program: crate::Program) -> VerificationResult {
fn verify(&mut self, _program: crate::Program) -> VerificationResult {
panic!("Viper verification not supported by Lithium");
}

Expand Down
2 changes: 1 addition & 1 deletion viper/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub trait Verifier<'a> {

fn start(&mut self);

fn verify_viper(&mut self, program: crate::Program) -> VerificationResult;
fn verify(&mut self, program: crate::Program) -> VerificationResult;

fn verify_vir(&mut self, program: &vir::low::Program) -> VerificationResult;
}

0 comments on commit ce3234e

Please sign in to comment.