pub struct SimulateRequest {Show 15 fields
pub file: PathBuf,
pub config: Option<PathBuf>,
pub compat_tlc: bool,
pub seed: Option<i64>,
pub aril: u64,
pub depth: Option<usize>,
pub traces: u64,
pub workers: Option<usize>,
pub no_deadlock: bool,
pub action_stats: bool,
pub generation: bool,
pub time_limit: BudgetSetting<Duration>,
pub max_memory: BudgetSetting<u64>,
pub library_paths: Vec<PathBuf>,
pub module_paths: Vec<PathBuf>,
}Expand description
A finite simulation request. The caller must choose a positive trace count.
let request = dive_api::SimulateRequest {
file: "Counter.tla".into(), seed: Some(7), traces: 10,
depth: Some(100), ..Default::default()
};
assert_eq!(request.traces, 10);Fields§
§file: PathBufRoot specification.
config: Option<PathBuf>Configuration; defaults to the specification’s .cfg sibling.
compat_tlc: boolTLC’s value semantics; exact random draws are not a parity obligation.
seed: Option<i64>Run seed; generated and reported when omitted.
aril: u64TLC’s simulation seed adjustment; zero outside TLC mode.
depth: Option<usize>Maximum transitions per trace; None selects TLC’s depth 100.
traces: u64Positive, finite number of traces, required by the API and CLI.
workers: Option<usize>Requested workers; only one is supported in this initial slice.
no_deadlock: boolTLC’s -deadlock: disable deadlock checking.
action_stats: boolCollect source-location action flows, corresponding to TLC stats=basic.
generation: boolConstruct one successor per selected action instead of retaining all
candidates. This is finite sampling, never exhaustive checking.
true corresponds to TLC -generate num=N; false to -simulate num=N.
time_limit: BudgetSetting<Duration>Time limit; the profile default matches dive check. Unlimited is TLC-equivalent.
max_memory: BudgetSetting<u64>Sampled process-memory ceiling; the default is half physical memory.
library_paths: Vec<PathBuf>Modules searched before standard modules.
module_paths: Vec<PathBuf>Modules searched after standard modules.