pub struct CombinedSemanticOracle {
pub ast_oracle: AstSemanticOracle,
pub formal_oracle: Option<FormalVerificationOracle>,
pub formal_threshold: f64,
}Expand description
Combined semantic oracle
Fields§
§ast_oracle: AstSemanticOracleAST-based oracle
formal_oracle: Option<FormalVerificationOracle>Formal verification oracle (optional)
formal_threshold: f64Minimum AST similarity to consider formal verification
Implementations§
Source§impl CombinedSemanticOracle
impl CombinedSemanticOracle
Sourcepub fn with_formal_verification(max_bound: usize, timeout_ms: u64) -> Self
pub fn with_formal_verification(max_bound: usize, timeout_ms: u64) -> Self
Create with formal verification enabled
Trait Implementations§
Source§impl Debug for CombinedSemanticOracle
impl Debug for CombinedSemanticOracle
Source§impl Default for CombinedSemanticOracle
impl Default for CombinedSemanticOracle
Source§impl SemanticOracle for CombinedSemanticOracle
impl SemanticOracle for CombinedSemanticOracle
Source§fn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict
fn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict
Check semantic equivalence between source and target
Auto Trait Implementations§
impl Freeze for CombinedSemanticOracle
impl RefUnwindSafe for CombinedSemanticOracle
impl Send for CombinedSemanticOracle
impl Sync for CombinedSemanticOracle
impl Unpin for CombinedSemanticOracle
impl UnsafeUnpin for CombinedSemanticOracle
impl UnwindSafe for CombinedSemanticOracle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more