pub trait SemanticOracle: Send + Sync {
// Required methods
fn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict;
fn ast_similarity(&self, source: &str, target: &str) -> f64;
fn compare_memory(&self, source: &str, target: &str) -> bool;
fn compare_performance(&self, source: &str, target: &str) -> Option<f64>;
}Expand description
Semantic oracle trait
Required Methods§
Sourcefn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict
fn check_equivalence(&self, source: &str, target: &str) -> SemanticVerdict
Check semantic equivalence between source and target
Sourcefn ast_similarity(&self, source: &str, target: &str) -> f64
fn ast_similarity(&self, source: &str, target: &str) -> f64
Calculate AST similarity score
Sourcefn compare_memory(&self, source: &str, target: &str) -> bool
fn compare_memory(&self, source: &str, target: &str) -> bool
Compare memory layouts