-
Notifications
You must be signed in to change notification settings - Fork 1
/
rvic_set_flag.v
55 lines (51 loc) · 1.93 KB
/
rvic_set_flag.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
45
46
47
48
49
50
51
52
53
54
55
Require Import CodeDeps.
Require Import Ident.
Local Open Scope Z_scope.
Definition _bit := 1%positive.
Definition _bitmap := 2%positive.
Definition _g := 3%positive.
Definition _i := 4%positive.
Definition _idx := 5%positive.
Definition _intid := 6%positive.
Definition _ret := 7%positive.
Definition _rvic := 8%positive.
Definition _t'1 := 9%positive.
Definition _t'2 := 10%positive.
Definition _t'3 := 11%positive.
Definition rvic_set_flag_body :=
(Ssequence
(Ssequence
(Scall (Some _t'1)
(Evar _interrupt_bitmap_dword (Tfunction (Tcons tulong Tnil) tulong
cc_default))
((Etempvar _intid tulong) :: nil))
(Sset _idx (Etempvar _t'1 tulong)))
(Ssequence
(Ssequence
(Scall (Some _t'2)
(Evar _interrupt_bit (Tfunction (Tcons tulong Tnil) tulong
cc_default))
((Etempvar _intid tulong) :: nil))
(Sset _bit (Etempvar _t'2 tulong)))
(Ssequence
(Scall (Some _t'3)
(Evar _get_bitmap_loc (Tfunction
(Tcons (tptr Tvoid) (Tcons tulong Tnil))
(tptr Tvoid) cc_default))
((Etempvar _bitmap (tptr Tvoid)) :: (Etempvar _idx tulong) :: nil))
(Scall None
(Evar _atomic_bit_set_release_64 (Tfunction
(Tcons (tptr Tvoid)
(Tcons tuint Tnil)) tvoid
cc_default))
((Etempvar _t'3 (tptr Tvoid)) :: (Etempvar _bit tulong) :: nil)))))
.
Definition f_rvic_set_flag := {|
fn_return := tvoid;
fn_callconv := cc_default;
fn_params := ((_intid, tulong) :: (_bitmap, (tptr Tvoid)) :: nil);
fn_vars := nil;
fn_temps := ((_idx, tulong) :: (_bit, tulong) :: (_t'3, (tptr Tvoid)) ::
(_t'2, tulong) :: (_t'1, tulong) :: nil);
fn_body := rvic_set_flag_body
|}.