Skip to content

Commit 423e785

Browse files
committed
main: early exit for --no-verify for just model checking
1 parent e31c396 commit 423e785

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,15 @@ fn verify_files_main(
773773
}
774774
}
775775

776+
// If `--no-verify` is set and we don't need to print SMT-LIB or explain the
777+
// core VC, we can return early.
778+
if options.debug_options.no_verify
779+
&& !options.debug_options.print_smt
780+
&& !options.lsp_options.explain_core_vc
781+
{
782+
return Ok(true);
783+
}
784+
776785
let mut verify_units: Vec<Item<VerifyUnit>> = source_units
777786
.into_iter()
778787
.flat_map(|item| item.flat_map(SourceUnit::into_verify_unit))

website/docs/model-checking.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Expected reward from Storm: ≈ 0.9999995232
8888
The result is approximate because it was computed via floating-point arithmetic.
8989
To get exact results at the expense of slower computation, you can add the `--storm-exact` flag.
9090

91-
You can also use the `--run-storm` parameter with the [`verify` command](./caesar/README.md#subcommand-caesar-verify) or with [our LSP server](./caesar/vscode-and-lsp.md).
91+
You can also use the `--run-storm` flag with the [`verify` command](./caesar/README.md#subcommand-caesar-verify) or with [our LSP server](./caesar/vscode-and-lsp.md).
92+
Furthermore, you can set the `--no-verify` flag to only run model checking and not run Caesar's deductive verification.
9293

9394
### Option B: Generating JANI Manually {#generating-jani-manually}
9495

0 commit comments

Comments
 (0)