-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpsci_features.v
137 lines (133 loc) · 4.63 KB
/
psci_features.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Require Import SpecDeps.
Require Import RData.
Require Import EventReplay.
Require Import MoverTypes.
Require Import Constants.
Require Import CommonLib.
Require Import AbsAccessor.Spec.
Local Open Scope Z_scope.
Section SpecLow.
Definition psci_features_spec0 (rec: Pointer) (psci_func_id: Z) (adt: RData) : option RData :=
match rec, psci_func_id with
| (_rec_base, _rec_ofst), _psci_func_id =>
if (_psci_func_id =? 2214592513) then
let _t'1 := 1 in
let _t'2 := 1 in
let _t'3 := 1 in
let _t'4 := 1 in
let _t'5 := 1 in
let _t'6 := 1 in
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'1 := (_psci_func_id =? 3288334337) in
if _t'1 then
let _t'2 := 1 in
let _t'3 := 1 in
let _t'4 := 1 in
let _t'5 := 1 in
let _t'6 := 1 in
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'2 := (_psci_func_id =? 2214592514) in
if _t'2 then
let _t'3 := 1 in
let _t'4 := 1 in
let _t'5 := 1 in
let _t'6 := 1 in
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'3 := (_psci_func_id =? 2214592515) in
if _t'3 then
let _t'4 := 1 in
let _t'5 := 1 in
let _t'6 := 1 in
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'4 := (_psci_func_id =? 3288334339) in
if _t'4 then
let _t'5 := 1 in
let _t'6 := 1 in
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'5 := (_psci_func_id =? 2214592516) in
if _t'5 then
let _t'6 := 1 in
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'6 := (_psci_func_id =? 3288334340) in
if _t'6 then
let _t'7 := 1 in
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'7 := (_psci_func_id =? 2214592520) in
if _t'7 then
let _t'8 := 1 in
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'8 := (_psci_func_id =? 2214592521) in
if _t'8 then
let _t'9 := 1 in
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _t'9 := (_psci_func_id =? 2214592522) in
if _t'9 then
let _ret := 0 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
else
let _ret := 4294967295 in
rely is_int64 _ret;
when adt == set_psci_result_x0_spec (VZ64 _ret) adt;
Some adt
end
.
End SpecLow.