Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] counterexamples through Frama-C WP
- Subject: [Frama-c-discuss] counterexamples through Frama-C WP
- From: dmentre at linux-france.org (David MENTRE)
- Date: Tue, 12 Nov 2013 09:44:04 +0100
- In-reply-to: <52810262.4070800@grammatech.com>
- References: <52810262.4070800@grammatech.com>
Hello, 2013/11/11 David Cok <dcok at grammatech.com>: > Just in case I'm missing something, can someone more familiar with WP point > me to the appropriate options or confirm that reporting counterexample > information is a feature yet to be implemented? That should be -wp-unsat-model (see WP manual, p. 21). On following C code: """ /*@ ensures \result <= 10; */ int main(int c) { return c + 1; } """ "frama-c -wp -wp-unsat-model q16_counter-example.c" gives: """ ------------------------------------------------------------ --- Model for Post-condition (file q16_counter-example.c, line 1) in 'main' : ------------------------------------------------------------ File "/tmp/wpdffc13.dir/typed/main_post_Alt-Ergo.mlw", line 230, characters 1-89:I don't know Model Propositional: is_sint32(main_0) = true main_0 > 10 main_0 <= (2147483648 - 1) -2147483648 <= main_0 Theory: is_sint32(main_0) = FT:[true] Relation: main_0 ? [11;2147483647] """ I'm not sure how to correctly interpret Alt-Ergo output though. ;-) Best regards, david
- Follow-Ups:
- [Frama-c-discuss] counterexamples through Frama-C WP
- From: dcok at grammatech.com (David Cok)
- [Frama-c-discuss] counterexamples through Frama-C WP
- References:
- [Frama-c-discuss] counterexamples through Frama-C WP
- From: dcok at grammatech.com (David Cok)
- [Frama-c-discuss] counterexamples through Frama-C WP
- Prev by Date: [Frama-c-discuss] Why wp plugin failed to prove such naive properties?
- Next by Date: [Frama-c-discuss] math vs. bits
- Previous by thread: [Frama-c-discuss] counterexamples through Frama-C WP
- Next by thread: [Frama-c-discuss] counterexamples through Frama-C WP
- Index(es):