Skip to content

Commit

Permalink
Patch up InfiniteToFinite.v for k_spec up to UB part...
Browse files Browse the repository at this point in the history
Need to adjust the k_spec for memory now -- it's not taking UB into account.
  • Loading branch information
Chobbes committed Jul 18, 2023
1 parent d768720 commit 2b1c2b3
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions src/coq/Semantics/InfiniteToFinite.v
Original file line number Diff line number Diff line change
Expand Up @@ -19978,6 +19978,7 @@ intros addr_fin addr_inf ms_fin ms_inf byte_inf byte_fin MSR ADDR_CONV BYTE_REF
++ specialize (EQ t0); contradiction.
-- (* Vis *)
{ rewrite itree_eta in H1.
rewrite (itree_eta_ t2) in KS.
genobs t2 ot2.
clear t2 Heqot2.
dependent induction RUN; subst.
Expand Down Expand Up @@ -20039,11 +20040,11 @@ intros addr_fin addr_inf ms_fin ms_inf byte_inf byte_fin MSR ADDR_CONV BYTE_REF
| Oom s => raiseOOM s
end)
).
2: {
3: {
cbn. red.
reflexivity.
}
2: {
3: {
cbn.
setoid_rewrite bind_trigger.
pstep; red; cbn.
Expand Down Expand Up @@ -20151,6 +20152,40 @@ intros addr_fin addr_inf ms_fin ms_inf byte_inf byte_fin MSR ADDR_CONV BYTE_REF

rewrite REL.
eapply K_RUTT; split; auto.

red.
cbn.
rewrite bind_bind.
setoid_rewrite bind_ret_l.
rewrite bind_trigger.

rewrite get_inf_tree_equation.
cbn.
erewrite <- fin_to_inf_uvalue_refine_strict'; eauto.
pstep; red; cbn.

rewrite Forall2_map_eq with (l2:=args0).
2: {
eapply Forall2_flip.
eapply Util.Forall2_impl; [| apply ARGS].
intros a b H1.
red.
symmetry.
apply fin_to_inf_dvalue_refine_strict'.
auto.
}

constructor.
intros v.
red.

left.
break_match_goal.
eapply paco2_eqit_refl.

rewrite get_inf_tree_equation.
cbn.
eapply paco2_eqit_refl.
}
{ specialize (EQ t1).
contradiction.
Expand Down Expand Up @@ -20220,7 +20255,15 @@ intros addr_fin addr_inf ms_fin ms_inf byte_inf byte_fin MSR ADDR_CONV BYTE_REF
(MemPropT.store_id * LLVMParamsBigIntptr.Events.DV.dvalue)))
with
end)).


2: {
red in KS.
red.
red.
rewrite VIS_HANDLED.
cbn in *.
}

2: {
cbn.
repeat red.
Expand Down

0 comments on commit 2b1c2b3

Please sign in to comment.