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
Add `--list` option to the autoharness subcommand, which invokes the
driver logic from the list subcommand to list automatic and manual
harness metadata together.
Towards #3832
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
// This logic finds manual contract harnesses only (automatic harnesses are a Kani intrinsic, not crate items annotated with the proof_for_contract attribute).
// FIXME: This is a bit hacky. We can't resolve the target_fn to a DefId because we need somewhere to start the name resolution from.
98
+
// For a manual harness, we could just start from the harness, but since automatic harnesses are Kani intrinsics, we can't resolve the target starting from them.
99
+
// Instead, we rely on the fact that the ContractedFunction objects store the function's fully qualified name,
100
+
// and that `gen_automatic_proof_metadata` uses the fully qualified name as well.
101
+
// Once we implement multiple automatic harnesses for a single function, we will have to revise the HarnessMetadata anyway,
102
+
// and then we can revisit the idea of storing the target_fn's DefId somewhere.
"The `--quiet` flag is not compatible with the `pretty` format, since `pretty` prints to the terminal. Either specify a different format or don't pass `--quiet`.",
102
+
));
103
+
}
104
+
79
105
ifself
80
106
.verify_opts
81
107
.common_args
@@ -105,6 +131,24 @@ impl ValidateArgs for StandaloneAutoharnessArgs {
"The `--quiet` flag is not compatible with the `pretty` format, since `pretty` prints to the terminal. Either specify a different format or don't pass `--quiet`.",
"The `--quiet` flag is not compatible with the `pretty` format, since `pretty` prints to the terminal. Either specify a different format or don't pass `--quiet`.",
71
+
));
72
+
}
73
+
67
74
Ok(())
68
75
}
69
76
}
@@ -78,6 +85,13 @@ impl ValidateArgs for StandaloneListArgs {
"The `--quiet` flag is not compatible with the `pretty` format, since `pretty` prints to the terminal. Either specify a different format or don't pass `--quiet`.",
0 commit comments