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
CBMC version: 5.34.0
Operating system: N/A
Exact command line resulting in the issue: cbmc main.c --pointer-primitive-check
What behaviour did you expect:
Running this program, I expect the analysis to pass, exactly as it does if I don't include the "--pointer-primitive-check" on the command line.
int main()
{
void *p = malloc(1);
void *q;
#pragma CPROVER check push
#pragma CPROVER check disable "pointer-primitive"
if (__CPROVER_same_object(p,q)) {
} else {
}
#pragma CPROVER check pop
}
What happened instead:
CBMC version 5.34.0 (cbmc-5.34.0-dirty) 64-bit x86_64 macos
Parsing main.c
file main.c line 4 function main: Unsupported #pragma CPROVER before ' '
file main.c line 4 function main: syntax error before ' '
PARSING ERROR
Note: this is the same output you get if you use a complete random string in the pragma, say "dog" instead of "pointer-primtive". However, some other check names, like "pointer" do work.
This request has 2 parts:
1/ Support pointer-primitive in this pragma so that it can be disabled for code regions.
2/ Give a better error message that includes the string that wasn't recognized instead of ''
The text was updated successfully, but these errors were encountered:
The named_check used in the pragme gets mapped to "disable:<named_check>-check" by the lexer and is added to the source locations enclosed in the push/pop pragmas.
void goto_checkt::goto_check in src/analyses/goto_check.cpp however does handle "disable:pointer-primitive-check"
CBMC version: 5.34.0
Operating system: N/A
Exact command line resulting in the issue: cbmc main.c --pointer-primitive-check
What behaviour did you expect:
Running this program, I expect the analysis to pass, exactly as it does if I don't include the "--pointer-primitive-check" on the command line.
What happened instead:
CBMC version 5.34.0 (cbmc-5.34.0-dirty) 64-bit x86_64 macos
Parsing main.c
file main.c line 4 function main: Unsupported #pragma CPROVER before ' '
file main.c line 4 function main: syntax error before ' '
PARSING ERROR
Note: this is the same output you get if you use a complete random string in the pragma, say "dog" instead of "pointer-primtive". However, some other check names, like "pointer" do work.
This request has 2 parts:
1/ Support pointer-primitive in this pragma so that it can be disabled for code regions.
2/ Give a better error message that includes the string that wasn't recognized instead of ''
The text was updated successfully, but these errors were encountered: