pub struct Model {
pub ir: Arc<Ir>,
pub names: Arc<Interner>,
pub constants: Vec<Option<ConstBinding>>,
pub redirects: HashMap<DefId, DefId>,
pub def_values: HashMap<DefId, Value>,
}Expand description
The bindings evaluation needs beyond the IR: the run’s names and the
constants. dive-model builds it from the configuration.
Fields§
§ir: Arc<Ir>The lowered specification.
names: Arc<Interner>The run’s names. To reproduce TLC’s order of strings and model values
under --choose-order=tlc, intern them in SANY/TLC’s encounter order
before building the evaluator.
constants: Vec<Option<ConstBinding>>Constant bindings, by dive_ir::ConstId.
redirects: HashMap<DefId, DefId>Definition overrides from the configuration (Op <- Other).
def_values: HashMap<DefId, Value>Definitions the configuration assigns a value (Op = v).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Model
impl !UnwindSafe for Model
impl Forget for Model
impl Freeze for Model
impl Move for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
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