-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomplete_hvc_exit.v
68 lines (64 loc) · 2.49 KB
/
complete_hvc_exit.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
56
57
58
59
60
61
62
63
64
65
66
67
68
Require Import CodeDeps.
Require Import Ident.
Local Open Scope Z_scope.
Definition _esr := 1%positive.
Definition _g := 2%positive.
Definition _i := 3%positive.
Definition _info := 4%positive.
Definition _rec := 5%positive.
Definition _rec__1 := 6%positive.
Definition _reg := 7%positive.
Definition _ret := 8%positive.
Definition _t'1 := 9%positive.
Definition _t'2 := 10%positive.
Definition complete_hvc_exit_body :=
(Ssequence
(Ssequence
(Scall (Some _t'1)
(Evar _get_rec_last_run_info_esr (Tfunction
(Tcons (tptr Tvoid)
Tnil) tulong cc_default))
((Etempvar _rec (tptr Tvoid)) :: nil))
(Sset _esr (Etempvar _t'1 tulong)))
(Ssequence
(Sset _i (Econst_int (Int.repr 0) tint))
(Sifthenelse (Ebinop Oeq
(Ebinop Oand (Etempvar _esr tulong)
(Econst_long (Int64.repr 4227858432) tulong) tulong)
(Econst_long (Int64.repr 1476395008) tulong) tint)
(Ssequence
(Swhile
(Ebinop Olt (Etempvar _i tuint) (Econst_long (Int64.repr 7) tulong)
tint)
(Ssequence
(Ssequence
(Scall (Some _t'2)
(Evar _get_rec_run_gprs (Tfunction (Tcons tuint Tnil) tulong
cc_default))
((Etempvar _i tuint) :: nil))
(Scall None
(Evar _set_rec_regs (Tfunction
(Tcons (tptr Tvoid)
(Tcons tuint (Tcons tulong Tnil)))
tvoid cc_default))
((Etempvar _rec (tptr Tvoid)) ::
(Etempvar _i tuint) :: (Etempvar _t'2 tulong) :: nil)))
(Sset _i
(Ebinop Oadd (Etempvar _i tuint) (Econst_int (Int.repr 1) tint)
tuint))))
(Scall None
(Evar _reset_last_run_info (Tfunction
(Tcons (tptr Tvoid)
Tnil) tvoid cc_default))
((Etempvar _rec (tptr Tvoid)) :: nil)))
Sskip)))
.
Definition f_complete_hvc_exit := {|
fn_return := tvoid;
fn_callconv := cc_default;
fn_params := ((_rec, (tptr Tvoid)) :: nil);
fn_vars := nil;
fn_temps := ((_esr, tulong) :: (_i, tuint) :: (_t'2, tulong) ::
(_t'1, tulong) :: nil);
fn_body := complete_hvc_exit_body
|}.