pub trait TargetSemantics {
type State;
// Required methods
fn fresh_state(&self) -> Self::State;
fn apply_op(
&self,
state: &Self::State,
op_name: &str,
inputs: &[BV],
) -> Option<Self::State>;
fn extract_result(
&self,
state: &Self::State,
result_loc: &str,
) -> Option<BV>;
}Expand description
Encodes target (ARM, RISC-V, etc.) operation semantics as SMT formulas
Required Associated Types§
Required Methods§
Sourcefn fresh_state(&self) -> Self::State
fn fresh_state(&self) -> Self::State
Create a fresh symbolic state
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".