Skip to content

Test Pointer_byte_extract8 now passes #2995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions regression/cbmc/Pointer_byte_extract8/main.i
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ typedef struct
Union List[1];
} __attribute__((packed)) Struct3;

extern size_t __CPROVER_malloc_size;

int main()
{
Struct3 *p = malloc (sizeof (int) + 2 * sizeof(Union));
p->Count = 3;
int po=0;
size_t m=__CPROVER_malloc_size;

// this should be fine
p->List[0].a = 555;
Expand Down
8 changes: 4 additions & 4 deletions regression/cbmc/Pointer_byte_extract8/test.desc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
KNOWNBUG
CORE
main.i
--bounds-check --32 --no-simplify
^EXIT=0$
^EXIT=10$
^SIGNAL=0$
^\[main\.array_bounds\.5\] array.List upper bound: FAILED$
^\*\* 1 of 9 failed
^\[main\.array_bounds\..*\] array.List dynamic object upper bound .*: FAILURE$
^\*\* 1 of .* failed
--
^warning: ignoring