-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the native back end to a separate crate
- Loading branch information
Showing
41 changed files
with
440 additions
and
411 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
mod verification_result; | ||
mod java_exception; | ||
pub mod silicon_counterexample; | ||
pub mod verifier; | ||
pub mod program; | ||
|
||
pub use crate::{silicon_counterexample::*, java_exception::*, verification_result::*}; | ||
pub use crate::{ | ||
java_exception::*, program::*, silicon_counterexample::*, verification_result::*, verifier::*, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
// © 2019, ETH Zurich | ||
// © 2023, Jakub Janaszkiewicz, DTU | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
use backend_common::VerificationResult; | ||
use crate::{Program, VerificationResult}; | ||
|
||
pub trait Verifier<'a> { | ||
fn parse_command_line(&mut self, args: &[String]); | ||
|
||
fn start(&mut self); | ||
|
||
fn verify(&mut self, program: crate::Program) -> VerificationResult; | ||
|
||
fn verify_vir(&mut self, program: &vir::low::Program) -> VerificationResult; | ||
fn verify_vir(&mut self, program: &Program) -> VerificationResult; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "native-verifier" | ||
version = "0.1.0" | ||
authors = ["Prusti Devs <[email protected]>"] | ||
edition = "2021" | ||
readme = "README.md" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
log = { version = "0.4", features = ["release_max_level_info"] } | ||
error-chain = "0.12" | ||
vir = { path = "../vir" } | ||
uuid = { version = "1.0", features = ["v4"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
prusti-utils = { path = "../prusti-utils" } | ||
lazy_static = "1.4" | ||
regex = "1.7.1" | ||
backend-common = { path = "../backend-common" } |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#![feature(try_blocks)] | ||
#![feature(let_chains)] | ||
|
||
pub mod native_verifier; | ||
mod smt_lib; | ||
mod theory_provider; | ||
mod fol; | ||
|
||
pub use crate::native_verifier::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
unimplemented!("This is a dummy main function."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.