-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
FulminateRelated to CN executable spec generation, called using `cn instrument`Related to CN executable spec generation, called using `cn instrument`bugSomething isn't workingSomething isn't working
Description
The problematic code:
int y;
int main() /*@ accesses y; @*/ {y = 2;return 0;}
This becomes
int main() /*@ accesses y; @*/ {CN_STORE(
/* EXECUTABLE CN PRECONDITION */
signed int __cn_ret = 0;
initialise_ownership_ghost_state();
initialise_ghost_stack_depth();
alloc_ghost_array(0);
initialise_exec_c_locs_mode(0);
initialise_ownership_stack_mode(0);
c_add_to_ghost_state((&y), sizeof(signed int), get_cn_stack_depth());
y, 2);{ __cn_ret = 0; goto __cn_epilogue; }
/* EXECUTABLE CN POSTCONDITION */
__cn_epilogue:
c_remove_from_ghost_state((&y), sizeof(signed int));
free_ghost_array();
return __cn_ret;
}
which is incorrect.
misc
- CN version: 384f4f3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FulminateRelated to CN executable spec generation, called using `cn instrument`Related to CN executable spec generation, called using `cn instrument`bugSomething isn't workingSomething isn't working