Skip to content

Commit 18d9450

Browse files
authored
Merge pull request #36 from MetaRocq/allow-typed+unsafe
Allow running the unsafe passes after the typed extraction
2 parents d4f91f4 + 2ef6360 commit 18d9450

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

theories/Pipeline.v

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,16 @@ Arguments compile_malfunction_pipeline {_ _ _ _ _ _} _ _ _ {_}.
485485
Local Existing Instance CanonicalHeap.
486486
Local Existing Instance CanonicalPointer.
487487

488+
Program Definition verified_typed_erasure_pipeline_unsafe econf :=
489+
verified_typed_erasure_pipeline econf ▷ (optional_unsafe_transforms econf).
490+
Next Obligation.
491+
unfold optional_unsafe_transforms, optional_self_transform in H |- *.
492+
destruct enable_unsafe as [[] [] [] []] => //.
493+
Qed.
494+
488495
(* This also optionally runs typed erasure and/or the cofix to fix translation *)
489496
Program Definition switchable_erasure_pipeline econf :=
490-
if econf.(enable_typed_erasure) then verified_typed_erasure_pipeline econf
497+
if econf.(enable_typed_erasure) then verified_typed_erasure_pipeline_unsafe econf
491498
else verified_erasure_pipeline_mapping ▷ (optional_unsafe_transforms econf).
492499
Next Obligation.
493500
Proof.

0 commit comments

Comments
 (0)