View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001021 | Frama-C | Graphical User Interface | public | 2011-11-18 13:54 | 2012-09-19 17:16 | ||||
Reporter | patrick | ||||||||
Assigned To | yakobowski | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Product Version | Frama-C Nitrogen-20111001 | ||||||||
Target Version | Fixed in Version | Frama-C Oxygen-20120901 | |||||||
Summary | 0001021: request for pretty printing only one property by lines | ||||||||
Description | Sometimes, there is more than one property at a line. This is bad for the display of the property status. In GUI mode, the pretty printer should start the pretty printing of a statement at a new line when the statement has an annotation. | ||||||||
Additional Information | The following code: void f1 (void) { for (int i = 0; i < 10 ;) { //@ invariant i>=0; //@ assert i>=0; i++; } } is pretty printed as follow: void f1(void) { int i; i = 0; while (i < 10) { /*@ invariant i ? 0; */ ; /*@ assert i ? 0; */ ; i ++; } return; } | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
![]() |
|
yakobowski (manager) 2011-11-18 16:33 |
I won't do something special for the gui, so the change will impact all the Cil pretty-printers, and possibly all C code in general (even in absence of ACSL). Does someone object to that? |
yakobowski (manager) 2011-11-18 20:10 |
Fixes in revision 16125. The code above is now printed as void f1(void) { int i; i = 0; while (i < 10) { /*@ invariant i ? 0; */ ; /*@ assert i ? 0; */ ; i ++; } return; } Some problems may remain with statement contracts. Feel free to reopen this bug if you find some. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-11-18 13:54 | patrick | New Issue | |
2011-11-18 13:54 | patrick | Status | new => assigned |
2011-11-18 13:54 | patrick | Assigned To | => monate |
2011-11-18 13:54 | patrick | Assigned To | monate => yakobowski |
2011-11-18 16:33 | yakobowski | Note Added: 0002478 | |
2011-11-18 20:10 | yakobowski | Note Added: 0002480 | |
2011-11-18 20:10 | yakobowski | Status | assigned => resolved |
2011-11-18 20:10 | yakobowski | Resolution | open => fixed |
2012-09-19 17:15 | signoles | Fixed in Version | => Frama-C Oxygen-20120901 |
2012-09-19 17:16 | signoles | Status | resolved => closed |