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
The below program doesn't compile, as a local variable is declared twice
intmain() {
inta=10;
// gcc: main.c:140:7: error: redeclaration of 'a' with no linkage// cbmc: no warning or errorinta;
a++;
return0;
}
but, while gcc errors, CBMC latest develop, in Linux, doesn't raise any warning or error about it.
Sure enough, all programs that one passes to the tool should already compile, but from time to time that's not the case. Probably CBMC should error here.