Extend smoke tests to incoherent specification of declared functions
ID0001537: This issue was created automatically from Mantis Issue 1537. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001537 | Frama-C | Plug-in > wp | public | 2013-10-28 | 2014-06-02 |
Reporter | dpariente | Assigned To | correnson | Resolution | open |
Priority | normal | Severity | feature | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Fluorine-20130601 | Target Version | - | Fixed in Version | - |
Description :
[STANCE]
The following code:
//@ assigns \result \from p; ensures sizeof(\result)==5;
char*g(char*p);
void f()
{
char *p=g(p);
//@ assert sizeof(p)==5;
//@ assert \false;
}
analyzed by: frama-c foo.c -no-unicode -wp
Qed proves the 2nd assert in f(): [wp] [Qed] Goal typed_f_assert_2 : Valid
Edited by Allan Blanchard