-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneed_ns_notify.v
45 lines (39 loc) · 1.34 KB
/
need_ns_notify.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 RefProofDeps.
Require Import RData.
Require Import EventReplay.
Require Import MoverTypes.
Require Import Constants.
Require Import CommonLib.
Require Import RefTactics.
Require Import AbsAccessor.Spec.
Require Import RVIC2.Spec.
Require Import RVIC3.Specs.need_ns_notify.
Require Import RVIC3.LowSpecs.need_ns_notify.
Require Import RVIC3.RefProof.RefRel.
Local Open Scope string_scope.
Local Open Scope Z_scope.
Local Opaque Z.add Z.mul Z.div Z.shiftl Z.shiftr Z.land Z.lor.
Section Refine.
Hint Unfold
get_rec_rec_idx_spec
get_rec_rvic_enabled_spec
get_rec_rvic_spec
rvic_is_pending_spec
rvic_is_masked_spec
.
Lemma need_ns_notify_spec_exists:
forall habd labd rec target_rec intid res
(Hspec: need_ns_notify_spec rec target_rec intid habd = Some res)
(Hrel: relate_RData habd labd),
need_ns_notify_spec0 rec target_rec intid labd = Some res.
Proof.
intros. inv Hrel. destruct rec, target_rec.
unfold need_ns_notify_spec, need_ns_notify_spec0 in *.
repeat autounfold in *. simpl in *.
hsimpl_hyp Hspec; inv Hspec; simpl_query_oracle; extract_prop_dec;
repeat destruct_con; simpl in *; srewrite;
repeat (simpl_htarget; grewrite; simpl in * );
repeat (solve_bool_range; grewrite); try solve_peq;
reflexivity.
Qed.
End Refine.