We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4066a23 commit b0301a3Copy full SHA for b0301a3
kani-driver/src/call_cbmc.rs
@@ -327,8 +327,17 @@ impl VerificationResult {
327
}
328
Err(exit_status) => {
329
let verification_result = console::style("FAILED").red();
330
+ let explanation = if *exit_status == 137 {
331
+ "CBMC appears to have run out of memory. You may want to rerun your proof in \
332
+ an environment with additional memory or use stubbing to reduce the size of the \
333
+ code the verifier reasons about.\n"
334
+ } else {
335
+ ""
336
+ };
337
format!(
- "\nCBMC failed with status {exit_status}\nVERIFICATION:- {verification_result}\n",
338
+ "\nCBMC failed with status {exit_status}\n\
339
+ VERIFICATION:- {verification_result}\n\
340
+ {explanation}",
341
)
342
343
0 commit comments