-
Notifications
You must be signed in to change notification settings - Fork 1
/
rvic_clear_masked.v
44 lines (40 loc) · 1.38 KB
/
rvic_clear_masked.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Require Import CodeDeps.
Require Import Ident.
Local Open Scope Z_scope.
Definition _bit := 1%positive.
Definition _bits := 2%positive.
Definition _g := 3%positive.
Definition _i := 4%positive.
Definition _intid := 5%positive.
Definition _mask := 6%positive.
Definition _masked := 7%positive.
Definition _rec := 8%positive.
Definition _rec_rvic_state := 9%positive.
Definition _ret := 10%positive.
Definition _rvic := 11%positive.
Definition _t'1 := 12%positive.
Definition rvic_clear_masked_body :=
(Ssequence
(Ssequence
(Scall (Some _t'1)
(Evar _get_rvic_mask_bits (Tfunction
(Tcons
(tptr Tvoid)
Tnil) (tptr Tvoid) cc_default))
((Etempvar _rvic (tptr Tvoid)) :: nil))
(Sset _bits (Etempvar _t'1 (tptr Tvoid))))
(Scall None
(Evar _rvic_clear_flag (Tfunction
(Tcons tulong (Tcons (tptr Tvoid) Tnil)) tvoid
cc_default))
((Etempvar _intid tulong) :: (Etempvar _bits (tptr Tvoid)) :: nil)))
.
Definition f_rvic_clear_masked := {|
fn_return := tvoid;
fn_callconv := cc_default;
fn_params := ((_rvic, (tptr Tvoid)) ::
(_intid, tulong) :: nil);
fn_vars := nil;
fn_temps := ((_bits, (tptr Tvoid)) :: (_t'1, (tptr Tvoid)) :: nil);
fn_body := rvic_clear_masked_body
|}.