Skip to content

Commit

Permalink
Remove option to reorder constructors, now safely done always
Browse files Browse the repository at this point in the history
  • Loading branch information
mattam82 committed Jul 19, 2024
1 parent 2c201c5 commit 67ee744
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions erasure-plugin/theories/Erasure.v
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Local Obligation Tactic := program_simpl.

Record unsafe_passes :=
{ cofix_to_lazy : bool;
reorder_constructors : bool;
inlining : bool;
unboxing : bool;
betared : bool }.
Expand All @@ -54,7 +53,6 @@ Definition default_dearging_config :=

Definition make_unsafe_passes b :=
{| cofix_to_lazy := b;
reorder_constructors := b;
inlining := b;
unboxing := b;
betared := b |}.
Expand All @@ -63,12 +61,10 @@ Definition no_unsafe_passes := make_unsafe_passes false.
Definition all_unsafe_passes := make_unsafe_passes true.

(* This runs the cofix -> fix/lazy translation as well as inlining and
beta-redex simplification, which are not verified. It does not change
representation by reordering constructors or unboxing. *)
beta-redex simplification, which are not verified. It does do unboxing. *)

Definition default_unsafe_passes :=
{| cofix_to_lazy := true;
reorder_constructors := false;
inlining := true;
unboxing := false;
betared := true |}.
Expand Down Expand Up @@ -141,13 +137,13 @@ Program Definition optional_unsafe_transforms econf :=
betared_transformation efl final_wcbv_flags).

Next Obligation.
destruct (enable_unsafe econf) as [[] [] [] [] []]; cbn in * => //; intuition auto.
destruct (enable_unsafe econf) as [[] [] [] []]; cbn in * => //; intuition auto.
Qed.
Next Obligation.
destruct (enable_unsafe econf) as [[] [] [] [] []]; cbn in * => //; intuition auto.
destruct (enable_unsafe econf) as [[] [] [] []]; cbn in * => //; intuition auto.
Qed.
Next Obligation.
destruct (enable_unsafe econf) as [[] [] [] [] []]; cbn in * => //; intuition auto.
destruct (enable_unsafe econf) as [[] [] [] []]; cbn in * => //; intuition auto.
Qed.

Program Definition verified_lambdabox_pipeline {guard : abstract_guard_impl}
Expand Down

0 comments on commit 67ee744

Please sign in to comment.