Skip to content
Snippets Groups Projects
Commit 8060f89a authored by BRUN Lelio's avatar BRUN Lelio
Browse files

forgotten file

parent d8144228
No related branches found
No related tags found
No related merge requests found
#ifndef ARROW_SPEC_H_
#define ARROW_SPEC_H_
/* ACSL arrow spec */
//@ ghost struct _arrow_mem_ghost {struct _arrow_reg _reg;};
/*@
predicate _arrow_valid(struct _arrow_mem *self) =
\valid(self);
*/
/*@
predicate _arrow_initialization(struct _arrow_mem_ghost mem_in) =
mem_in._reg._first == 1;
*/
/*@
predicate _arrow_transition(struct _arrow_mem_ghost mem_in,
integer x, integer y,
struct _arrow_mem_ghost mem_out, _Bool out) =
(mem_in._reg._first ? (mem_out._reg._first == 0
&& out == x)
: (mem_out._reg._first == mem_in._reg._first
&& out == y));
*/
/*@
predicate _arrow_ghost(struct _arrow_mem_ghost mem,
struct _arrow_mem *self) =
mem._reg._first == self->_reg._first;
*/
#endif // ARROW_SPEC_H_
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment