Skip to content

Commit 26e0f19

Browse files
minimized everything to a core
1 parent e5a1e77 commit 26e0f19

16 files changed

Lines changed: 7949 additions & 4334 deletions

INSTALL.md

Lines changed: 0 additions & 127 deletions
This file was deleted.

Makefile

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,27 @@
1-
OTT = ott
2-
3-
default: docs/semantics/main.pdf
4-
5-
hol/p4Script.sml: ott/p4.ott ott/p4_sem.ott ott/p4_types.ott
6-
cd hol && $(OTT) -i ../ott/p4.ott -i ../ott/p4_sem.ott -i ../ott/p4_types.ott -o p4Script.sml && python3 ./polymorphise_p4Script.py
7-
8-
hol: hol/p4Script.sml hol/ottScript.sml hol/ottLib.sig hol/ottLib.sml
9-
Holmake -r -I hol
10-
11-
hol/p4_from_json: hol
12-
Holmake -r -I hol/p4_from_json
1+
hol:
2+
cd hol/ && Holmake
133

144
polygram: hol
155
Holmake -r -I hol -I hol/polygram
166

17-
policy_test_cases: polygram
18-
cd hol/polygram/policy_test_cases && Holmake
19-
20-
validate: hol/p4_from_json
21-
cd hol/p4_from_json && ./validate.sh
22-
23-
metatheory: hol
24-
Holmake -r -I hol/metatheory
7+
cake: polygram
8+
cd hol/polygram/bdd_cake_trans && Holmake
259

26-
concurrency: hol/p4_from_json
27-
Holmake -r -I hol/p4_from_json/concurrency_tests
2810

29-
docs/semantics/p4_defs.tex: ott/p4.ott
30-
ott -o $@ -tex_wrap false $< -i ott/p4_sem.ott -i ott/p4_types.ott
11+
test: cake
12+
cd hol/polygram/policy_test_cases_mtbdd && ./prepp.sh
13+
cd hol/polygram/policy_test_cases_eq && ./prepp.sh
14+
cd hol/polygram/policy_test_cases_gen_policy && ./prepp.sh
15+
cd hol/polygram/policy_test_cases && ./prepp.sh
3116

32-
docs/semantics/main.pdf: docs/semantics/p4_defs.tex docs/semantics/main.tex docs/semantics/p4.bib
33-
cd docs/semantics && latexmk -pdf main.tex
3417

3518
clean:
36-
rm -f docs/semantics/p4_defs.tex hol/p4Script.sml
37-
cd hol && Holmake clean -r && cd p4_from_json && Holmake clean && cd validation_tests && Holmake clean
38-
cd hol/polygram && Holmake clean
39-
cd hol/polygram/policy_test_cases && Holmake clean
40-
41-
clean_policy:
19+
cd hol && Holmake clean
4220
cd hol/polygram && Holmake clean
43-
cd hol/polygram/policy_test_cases && Holmake clean
21+
cd hol/polygram/policy_test_cases && Holmake clean && rm -f *.txt
22+
cd hol/polygram/policy_test_cases_eq && Holmake clean && rm -f *.txt
23+
cd hol/polygram/policy_test_cases_gen_policy && Holmake clean && rm -f *.txt
24+
cd hol/polygram/bdd_cake_trans && Holmake clean
25+
cd hol/polygram/bdd_cake_test && Holmake clean && rm -f internet_firewall_* && rm -f test_bdd_*
4426

45-
.PHONY: default clean hol
27+
.PHONY: default clean hol

hol/Holmakefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# includes
22
# ----------------------------------
3-
DEPENDENCIES = eval
3+
DEPENDENCIES =
44

55

66
# configuration
@@ -33,7 +33,13 @@ all: $(TARGETS) $(if $(NEWHOLHEAP),$(NEWHOLHEAP),)
3333

3434
INCLUDES = $(DEPENDENCIES) $(if $(HOLHEAP),$(shell dirname $(HOLHEAP)),)
3535

36-
EXTRA_CLEANS = $(if $(NEWHOLHEAP),$(NEWHOLHEAP) $(NEWHOLHEAP).o,) $(wildcard *.exe)
36+
EXTRA_CLEANS = $(if $(NEWHOLHEAP),$(NEWHOLHEAP) $(NEWHOLHEAP).o,) \
37+
$(wildcard *~) \
38+
.hol/ \
39+
*.uo \
40+
*.ui \
41+
*Script.ui \
42+
*Script.uo
3743

3844
OPTIONS = QUIT_ON_FAILURE
3945

0 commit comments

Comments
 (0)