pub fn check_file_tlc_inputs(
req: &CheckRequest,
) -> Result<CheckReport, ApiError>Expand description
Loads and checks files with TLC’s configuration-first input error priority.
Used by the dive tlc and tlc checking entrypoints after resolving their
filenames. Unlike check_file, this reads and parses the configuration
before analyzing the module: an unreadable or malformed configuration wins
when both inputs are invalid. Request defaults and path spellings are unchanged.
use dive_api::{CheckRequest, check_file_tlc_inputs};
let request = CheckRequest {
file: "Counter.tla".into(),
compat_tlc: true,
..CheckRequest::default()
};
let report = check_file_tlc_inputs(&request)?;§Errors
crate::ApiError if the configuration or root file cannot be read.