You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev-guide/src/config/flags.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@
46
46
|[`MIN_PRUSTI_VERSION`](#min_prusti_version)|`Option<String>`|`None`| A |
47
47
|[`NO_VERIFY`](#no_verify)|`bool`|`false`| A |
48
48
|[`NO_VERIFY_DEPS`](#no_verify_deps)|`bool`|`false`| B |
49
+
|[`OPT_IN_VERIFICATION`](#opt_in_verification)|`bool`|`false`| A |
49
50
|[`OPTIMIZATIONS`](#optimizations)|`Vec<String>`| "all" | A |
50
51
|[`PRESERVE_SMT_TRACE_FILES`](#preserve_smt_trace_files)|`bool`|`false`| A |
51
52
|[`PRINT_COLLECTED_VERIFICATION_ITEMS`](#print_collected_verification_items)|`bool`|`false`| A |
@@ -293,6 +294,9 @@ When enabled, verification is skipped for dependencies. Equivalent to enabling `
293
294
294
295
> **Note:** applied to all dependency crates when running with `cargo prusti`.
295
296
297
+
## `OPT_IN_VERIFICATION`
298
+
When enabled, Prusti will only try to verify the functions annotated with `#[verified]`. All other functions are assumed to be `#[trusted]`, by default. Functions annotated with both `#[trusted]` and `#[verified]` will not be verified.
"the `#[verified]` attribute does not take parameters",
306
+
));
307
+
}
308
+
309
+
Ok((
310
+
vec![],
311
+
vec![parse_quote_spanned! {item.span()=>
312
+
#[prusti::verified]
313
+
}],
314
+
))
315
+
}
316
+
298
317
/// Generate spec items and attributes to typecheck and later retrieve "pure" annotations, but encoded as a referenced separate function that type-conditional spec refinements can apply trait bounds to.
0 commit comments