pub struct TranspilerOracle<T: Transpiler> { /* private fields */ }Expand description
Oracle for verifying transpiler correctness
Implementations§
Source§impl<T: Transpiler> TranspilerOracle<T>
impl<T: Transpiler> TranspilerOracle<T>
Sourcepub fn with_timeout(self, timeout_ms: u64) -> Self
pub fn with_timeout(self, timeout_ms: u64) -> Self
Set custom timeout
Sourcepub fn with_diff_options(self, options: DiffOptions) -> Self
pub fn with_diff_options(self, options: DiffOptions) -> Self
Set diff options
Sourcepub fn without_sandbox(self) -> Self
pub fn without_sandbox(self) -> Self
Disable sandboxing (use with caution)
Sourcepub fn verify(&self, source: &str, input: &str) -> TranspilerVerification
pub fn verify(&self, source: &str, input: &str) -> TranspilerVerification
Verify a single source program
Sourcepub fn verify_batch(
&self,
sources: &[(String, String)],
) -> (Vec<TranspilerVerification>, VerificationStats)
pub fn verify_batch( &self, sources: &[(String, String)], ) -> (Vec<TranspilerVerification>, VerificationStats)
Verify multiple source programs
Sourcepub fn verify_generated(
&self,
count: usize,
max_depth: usize,
) -> (Vec<TranspilerVerification>, VerificationStats)
pub fn verify_generated( &self, count: usize, max_depth: usize, ) -> (Vec<TranspilerVerification>, VerificationStats)
Generate and verify programs
Sourcepub fn transpiler(&self) -> &T
pub fn transpiler(&self) -> &T
Get reference to the transpiler
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TranspilerOracle<T>where
T: Freeze,
impl<T> !RefUnwindSafe for TranspilerOracle<T>
impl<T> Send for TranspilerOracle<T>
impl<T> Sync for TranspilerOracle<T>
impl<T> Unpin for TranspilerOracle<T>where
T: Unpin,
impl<T> UnsafeUnpin for TranspilerOracle<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for TranspilerOracle<T>
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