pub struct Recipe { /* private fields */ }Expand description
Immutable inputs for reconstructing a model’s startup runtime.
Rebinding creates a fresh interner, evaluator Core, registers and caches; no values or scopes from an already bound model are retained.
Implementations§
Source§impl Recipe
impl Recipe
Sourcepub fn new(
ir: Arc<Ir>,
config: ModelConfig,
options: Options,
no_deadlock: bool,
) -> Self
pub fn new( ir: Arc<Ir>, config: ModelConfig, options: Options, no_deadlock: bool, ) -> Self
Retains the original lowered source, configuration and value semantics.
Sourcepub fn has_randomness(&self) -> bool
pub fn has_randomness(&self) -> bool
Whether the source/config inventory may invoke a native random operator. This conservative query evaluates nothing and grants no runtime or proof authority. Fresh finite replay uses it to preserve actual source-bound action captures without constructing actions for ordinary pure words.
let _may_draw = recipe.has_randomness();Sourcepub fn with_symmetry_liveness(self, policy: SymmetryLiveness) -> Self
pub fn with_symmetry_liveness(self, policy: SymmetryLiveness) -> Self
Retains an explicit independent binding policy for temporal symmetry. The plain constructor refuses periodic symmetry unless this is selected.
let recipe = recipe.with_symmetry_liveness(dive_model::SymmetryLiveness::Unreduced);Sourcepub fn bind(&self, host: Arc<dyn Host>) -> Result<Model, Box<Failure>>
pub fn bind(&self, host: Arc<dyn Host>) -> Result<Model, Box<Failure>>
Repeats the real binder’s complete startup operation with a new runtime. The host is installed before any constant definition is evaluated. Checker action construction is omitted; the result carries source predicates only.
§Errors
The ordinary binding errors. Randomness combined with VIEW or SYMMETRY
refuses after structural checks and before any startup evaluation, using
the shared transformed_randomness policy.
Sourcepub fn bind_controlled(
&self,
host: Arc<dyn Host>,
control: Arc<dyn HostControl>,
) -> Result<Model, ControlledBindError>
pub fn bind_controlled( &self, host: Arc<dyn Host>, control: Arc<dyn HostControl>, ) -> Result<Model, ControlledBindError>
Repeats startup with a separate typed evaluator control capability.
Structural preprocessing and evaluator construction remain uninterruptible. The capability covers evaluator loop checkpoints during constant evaluation and role binding; it is removed before the fresh model is returned.
§Errors
Ordinary binding failures, typed interruption, or control registration failure.
Sourcepub fn model_values(&self) -> &[String]
pub fn model_values(&self) -> &[String]
Configuration model values, as text rather than interner atoms.
Sourcepub fn bind_fallible(
&self,
host: Arc<dyn Host>,
control: Option<Arc<dyn HostControl>>,
) -> Result<Model, ControlledBindError>
pub fn bind_fallible( &self, host: Arc<dyn Host>, control: Option<Arc<dyn HostControl>>, ) -> Result<Model, ControlledBindError>
Reconstructs a fresh predicate-only model with fallible error transport.
Intrinsic evaluator resource/internal errors retain their original type
and startup output. No synthetic control or resource policy is installed
when control is absent; the plain binding methods remain unchanged.
§Errors
Ordinary binding failures, original evaluator failures/interruption, or conflicting control ownership. No model exists on failure.
Sourcepub fn bind_next_fallible(
&self,
host: Arc<dyn Host>,
control: Option<Arc<dyn HostControl>>,
) -> Result<Model, ControlledBindError>
pub fn bind_next_fallible( &self, host: Arc<dyn Host>, control: Option<Arc<dyn HostControl>>, ) -> Result<Model, ControlledBindError>
Reconstructs a fresh runtime including the real ordered Next actions. This carries no checker state, counters, store or execution evidence.
let fresh = recipe.bind_next_fallible(host, None);§Errors
As Self::bind_fallible, including action construction failures and
the same pre-startup refusal of randomness under VIEW or SYMMETRY.