Skip to content

Commit

Permalink
Updates after moving sptree closure/reachability theories to HOL
Browse files Browse the repository at this point in the history
  • Loading branch information
hrutvik committed Feb 15, 2021
1 parent b39b4fb commit ea2e296
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 387 deletions.
2 changes: 1 addition & 1 deletion compiler/backend/Holmakefile
Expand Up @@ -2,7 +2,7 @@ INCLUDES = $(HOLDIR)/examples/machine-code/multiword\
$(CAKEMLDIR)/misc $(CAKEMLDIR)/semantics $(CAKEMLDIR)/semantics/proofs\
$(CAKEMLDIR)/basis/pure\
pattern_matching\
../encoders/asm reg_alloc reachability
../encoders/asm reg_alloc $(HOLDIR)/examples/algorithms

all: $(DEFAULT_TARGETS) README.md
.PHONY: all
Expand Down
4 changes: 2 additions & 2 deletions compiler/backend/flat_elimScript.sml
Expand Up @@ -6,11 +6,11 @@
Removes unreachable globals from the code.
*)

open preamble sptreeTheory flatLangTheory reachable_sptTheory
open preamble sptreeTheory flatLangTheory spt_closureTheory

val _ = new_theory "flat_elim";

val _ = set_grammar_ancestry ["reachable_spt", "flatLang", "misc"]
val _ = set_grammar_ancestry ["spt_closure", "flatLang", "misc"]
val _ = temp_tight_equality();

(**************************** ANALYSIS FUNCTIONS *****************************)
Expand Down
2 changes: 1 addition & 1 deletion compiler/backend/proofs/Holmakefile
Expand Up @@ -3,7 +3,7 @@ INCLUDES = $(HOLDIR)/examples/machine-code/multiword\
$(CAKEMLDIR)/misc $(CAKEMLDIR)/semantics $(CAKEMLDIR)/semantics/proofs\
.. ../semantics ../../encoders/asm ../gc\
../reg_alloc ../reg_alloc/proofs\
../reachability ../reachability/proofs
$(HOLDIR)/examples/algorithms

all: $(DEFAULT_TARGETS) README.md
.PHONY: all
Expand Down
5 changes: 2 additions & 3 deletions compiler/backend/proofs/flat_elimProofScript.sml
Expand Up @@ -2,16 +2,15 @@
Correctness proof for flatLang dead code elimination
*)
open preamble sptreeTheory flatLangTheory flat_elimTheory
flatSemTheory flatPropsTheory reachable_sptTheory
reachable_sptProofTheory
flatSemTheory flatPropsTheory spt_closureTheory

val _ = temp_delsimps ["lift_disj_eq", "lift_imp_disj"]

val _ = new_theory "flat_elimProof";

val grammar_ancestry =
["flat_elim", "flatSem", "flatLang", "flatProps",
"reachable_spt", "misc", "ffi", "sptree"];
"spt_closure", "misc", "ffi", "sptree"];

val _ = set_grammar_ancestry grammar_ancestry;

Expand Down
5 changes: 2 additions & 3 deletions compiler/backend/proofs/word_elimProofScript.sml
Expand Up @@ -3,12 +3,11 @@
*)

open preamble wordLangTheory
word_elimTheory wordSemTheory wordPropsTheory
reachable_sptTheory reachable_sptProofTheory
word_elimTheory wordSemTheory wordPropsTheory spt_closureTheory

val _ = new_theory "word_elimProof";
val _ = set_grammar_ancestry
["wordLang", "word_elim", "wordSem", "wordProps", "reachable_spt"];
["wordLang", "word_elim", "wordSem", "wordProps", "spt_closure"];
val _ = Parse.hide"mem";
val _ = Parse.bring_to_front_overload"domain"{Thy="sptree",Name="domain"};

Expand Down
9 changes: 0 additions & 9 deletions compiler/backend/reachability/Holmakefile

This file was deleted.

7 changes: 0 additions & 7 deletions compiler/backend/reachability/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions compiler/backend/reachability/proofs/Holmakefile

This file was deleted.

4 changes: 0 additions & 4 deletions compiler/backend/reachability/proofs/README.md

This file was deleted.

175 changes: 0 additions & 175 deletions compiler/backend/reachability/proofs/reachable_sptProofScript.sml

This file was deleted.

1 change: 0 additions & 1 deletion compiler/backend/reachability/proofs/readmePrefix

This file was deleted.

65 changes: 0 additions & 65 deletions compiler/backend/reachability/reachable_sptScript.sml

This file was deleted.

1 change: 0 additions & 1 deletion compiler/backend/reachability/readmePrefix

This file was deleted.

2 changes: 1 addition & 1 deletion compiler/backend/word_elimScript.sml
Expand Up @@ -7,7 +7,7 @@
Removes unreachable functions from the code.
*)

open preamble sptreeTheory reachable_sptTheory wordLangTheory
open preamble sptreeTheory spt_closureTheory wordLangTheory

val _ = new_theory "word_elim";

Expand Down

0 comments on commit ea2e296

Please sign in to comment.