Struct GenmcCtx

Source
pub struct GenmcCtx {}

Implementations§

Source§

impl GenmcCtx

Source

pub fn new(_miri_config: &MiriConfig, _genmc_config: &GenmcConfig) -> Self

Source

pub fn get_stuck_execution_count(&self) -> usize

Source

pub fn print_genmc_graph(&self)

Source

pub fn is_exploration_done(&self) -> bool

Source

pub(crate) fn handle_execution_start(&self)

Source

pub(crate) fn handle_execution_end<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, ) -> Result<(), String>

Source

pub(super) fn set_ongoing_action_data_race_free(&self, _enable: bool)

Source

pub(crate) fn atomic_load<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, _address: Size, _size: Size, _ordering: AtomicReadOrd, _old_val: Option<Scalar>, ) -> InterpResult<'tcx, Scalar>

Source

pub(crate) fn atomic_store<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, _address: Size, _size: Size, _value: Scalar, _ordering: AtomicWriteOrd, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn atomic_fence<'tcx>( &self, _machine: &MiriMachine<'tcx>, _ordering: AtomicFenceOrd, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn atomic_rmw_op<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, _address: Size, _size: Size, _ordering: AtomicRwOrd, (rmw_op, not): (BinOp, bool), _rhs_scalar: Scalar, ) -> InterpResult<'tcx, (Scalar, Scalar)>

Source

pub(crate) fn atomic_min_max_op<'tcx>( &self, ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, address: Size, size: Size, ordering: AtomicRwOrd, min: bool, is_signed: bool, rhs_scalar: Scalar, ) -> InterpResult<'tcx, (Scalar, Scalar)>

Source

pub(crate) fn atomic_exchange<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, _address: Size, _size: Size, _rhs_scalar: Scalar, _ordering: AtomicRwOrd, ) -> InterpResult<'tcx, (Scalar, bool)>

Source

pub(crate) fn atomic_compare_exchange<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, _address: Size, _size: Size, _expected_old_value: Scalar, _new_value: Scalar, _success: AtomicRwOrd, _fail: AtomicReadOrd, _can_fail_spuriously: bool, ) -> InterpResult<'tcx, (Scalar, bool)>

Source

pub(crate) fn memory_load<'tcx>( &self, _machine: &MiriMachine<'tcx>, _address: Size, _size: Size, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn memory_store<'tcx>( &self, _machine: &MiriMachine<'tcx>, _address: Size, _size: Size, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn handle_alloc<'tcx>( &self, _machine: &MiriMachine<'tcx>, _size: Size, _alignment: Align, _memory_kind: MemoryKind, ) -> InterpResult<'tcx, u64>

Source

pub(crate) fn handle_dealloc<'tcx>( &self, _machine: &MiriMachine<'tcx>, _address: Size, _size: Size, _align: Align, _kind: MemoryKind, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn handle_thread_create<'tcx>( &self, _threads: &ThreadManager<'tcx>, _new_thread_id: ThreadId, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn handle_thread_join<'tcx>( &self, _active_thread_id: ThreadId, _child_thread_id: ThreadId, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn handle_thread_stack_empty(&self, _thread_id: ThreadId)

Source

pub(crate) fn handle_thread_finish<'tcx>( &self, _threads: &ThreadManager<'tcx>, ) -> InterpResult<'tcx, ()>

Source

pub(crate) fn schedule_thread<'tcx>( &self, _ecx: &InterpCx<'tcx, MiriMachine<'tcx>>, ) -> InterpResult<'tcx, ThreadId>

Source

pub(crate) fn handle_verifier_assume<'tcx>( &self, _machine: &MiriMachine<'tcx>, _condition: bool, ) -> InterpResult<'tcx, ()>

Trait Implementations§

Source§

impl Debug for GenmcCtx

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl VisitProvenance for GenmcCtx

Source§

fn visit_provenance(&self, _visit: &mut VisitWith<'_>)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes