pub fn original_ast_source(
file: &str,
source: &str,
request: &TranslationRequest,
) -> OriginalAstReportExpand description
Returns normalized original AST bytes for one algorithm in a module.
This explicit in-memory operation neither translates nor writes AST.tla.
It therefore performs no generated-module analysis or model checking.
Modern procedure/macro ownership and compound source locations use genuine
pre-generation controls; historical fields and full original-stage coverage
remain unfinished. No original-stage header checksum is advertised.
let source = "---- MODULE A ----\n(* --algorithm A begin L:skip; end algorithm *)\n====\n";
let report = dive_api::original_ast_source("A.tla", source, &dive_api::TranslationRequest::default());
assert!(report.artifact_available());
assert_eq!(report.to_json()["accepted"], false);