Skip to content

Commit b26020a

Browse files
committed
Attempt refactoring the directories
1 parent f4a89c1 commit b26020a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3735
-2656
lines changed

_CoqProject

Lines changed: 79 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ machine_utils/theories/solve_pure.v
1717
machine_utils/theories/tactics.v
1818

1919
# Extras
20-
theories/iris_extra.v
21-
theories/stdpp_extra.v
22-
theories/proofmode/map_simpl.v
23-
theories/addr_reg.v
24-
theories/proofmode/solve_addr.v
20+
theories/utils/iris_extra.v
21+
theories/utils/stdpp_extra.v
22+
theories/utils/machine_utils_extra.v
23+
theories/utils/map_simpl.v
24+
theories/utils/NamedProp.v
2525

2626
# Capability Machine Model
27-
theories/machine_base.v
28-
theories/machine_parameters.v
29-
theories/cap_lang.v
27+
theories/opsem/addr_reg.v
28+
theories/proofmode/solve_addr.v
29+
theories/opsem/machine_base.v
30+
theories/opsem/machine_parameters.v
31+
theories/opsem/cap_lang.v
3032

31-
theories/logical_mapsto.v
33+
# Program logic: Logical layer
34+
theories/program_logic/logical_mapsto.v
3235

3336
# Misc for automation and notations
3437
theories/proofmode/classes.v
@@ -38,90 +41,93 @@ theories/proofmode/region.v
3841
theories/proofmode/register_tactics.v
3942

4043
# Program logic: Unary WP rules
41-
theories/rules/rules_base.v
42-
theories/rules/rules_Get.v
43-
theories/rules/rules_Load.v
44-
theories/rules/rules_Store.v
45-
theories/rules/rules_AddSubLt.v
46-
theories/rules/rules_Lea.v
47-
theories/rules/rules_Mov.v
48-
theories/rules/rules_Restrict.v
49-
theories/rules/rules_Jmp.v
50-
theories/rules/rules_Jnz.v
51-
theories/rules/rules_Subseg.v
52-
theories/rules/rules_Seal.v
53-
theories/rules/rules_UnSeal.v
54-
theories/rules/rules_EInit.v
55-
theories/rules/rules_EDeInit.v
56-
theories/rules/rules_EStoreId.v
57-
theories/rules/rules_IsUnique.v
58-
theories/rules/rules_Hash.v
59-
theories/rules.v
44+
theories/program_logic/transiently.v
45+
theories/program_logic/wp_opt.v
46+
theories/program_logic/cerisier_state_interp.v
47+
theories/program_logic/rules_base.v
48+
theories/program_logic/rules_fail.v
49+
theories/program_logic/rules/rules_Get.v
50+
theories/program_logic/rules/rules_Load.v
51+
theories/program_logic/rules/rules_Store.v
52+
theories/program_logic/rules/rules_AddSubLt.v
53+
theories/program_logic/rules/rules_Lea.v
54+
theories/program_logic/rules/rules_Mov.v
55+
theories/program_logic/rules/rules_Restrict.v
56+
theories/program_logic/rules/rules_Jmp.v
57+
theories/program_logic/rules/rules_Jnz.v
58+
theories/program_logic/rules/rules_Subseg.v
59+
theories/program_logic/rules/rules_Seal.v
60+
theories/program_logic/rules/rules_UnSeal.v
61+
theories/program_logic/rules/rules_EInit.v
62+
theories/program_logic/rules/rules_EDeInit.v
63+
theories/program_logic/rules/rules_EStoreId.v
64+
theories/program_logic/rules/rules_IsUnique.v
65+
theories/program_logic/rules/rules_Hash.v
66+
theories/program_logic/rules.v
6067

6168
# Cerise Proofmode
6269
theories/proofmode/contiguous.v
6370
theories/proofmode/tactics_helpers.v
6471
theories/proofmode/solve_pure.v
65-
theories/proofmode/NamedProp.v
6672
theories/proofmode/proofmode_instr_rules.v
6773
theories/proofmode/proofmode.v
6874

6975
# Unary Logical Relation
70-
theories/seal_store.v
71-
theories/logrel.v
72-
theories/ftlr/ftlr_base.v
73-
theories/ftlr/interp_weakening.v
74-
theories/ftlr/Get.v
75-
theories/ftlr/Hash.v
76-
theories/ftlr/Load.v
77-
theories/ftlr/Store.v
78-
theories/ftlr/AddSubLt.v
79-
theories/ftlr/Lea.v
80-
theories/ftlr/Mov.v
81-
theories/ftlr/Restrict.v
82-
theories/ftlr/Jmp.v
83-
theories/ftlr/Jnz.v
84-
theories/ftlr/Subseg.v
85-
theories/ftlr/Seal.v
86-
theories/ftlr/UnSeal.v
87-
theories/ftlr/IsUnique.v
88-
theories/ftlr/EInit.v
89-
theories/ftlr/EDeInit.v
90-
theories/ftlr/EStoreId.v
91-
theories/fundamental.v
76+
theories/logrel/seal_store.v
77+
theories/logrel/logrel.v
78+
theories/logrel/ftlr/ftlr_base.v
79+
theories/logrel/ftlr/interp_weakening.v
80+
theories/logrel/ftlr/Get.v
81+
theories/logrel/ftlr/Hash.v
82+
theories/logrel/ftlr/Load.v
83+
theories/logrel/ftlr/Store.v
84+
theories/logrel/ftlr/AddSubLt.v
85+
theories/logrel/ftlr/Lea.v
86+
theories/logrel/ftlr/Mov.v
87+
theories/logrel/ftlr/Restrict.v
88+
theories/logrel/ftlr/Jmp.v
89+
theories/logrel/ftlr/Jnz.v
90+
theories/logrel/ftlr/Subseg.v
91+
theories/logrel/ftlr/Seal.v
92+
theories/logrel/ftlr/UnSeal.v
93+
theories/logrel/ftlr/IsUnique.v
94+
theories/logrel/ftlr/EInit.v
95+
theories/logrel/ftlr/EDeInit.v
96+
theories/logrel/ftlr/EStoreId.v
97+
theories/logrel/fundamental.v
9298

9399
# Misc for examples
94-
theories/examples/macros/addr_reg_sample.v
100+
theories/case_studies/macros/addr_reg_sample.v
95101
theories/proofmode/disjoint_regions_tactics.v
96102
theories/proofmode/mkregion_helpers.v
97103

98104
# Common Cerise (assembly) macros
99-
theories/examples/macros/malloc.v
100-
theories/examples/macros/assert.v
101-
theories/examples/macros/hash_cap.v
102-
theories/examples/macros/macros.v
105+
theories/case_studies/macros/malloc.v
106+
theories/case_studies/macros/assert.v
107+
theories/case_studies/macros/hash_cap.v
108+
theories/case_studies/macros/macros.v
103109

104110
# Template Adequacy
105-
theories/examples/template_adequacy_attestation.v
111+
theories/case_studies/template_adequacy_attestation.v
106112

107113
# Secure Outsources Computation (SOC) example
108-
theories/examples/soc/soc_code.v
109-
theories/examples/soc/soc_enclave_spec.v
110-
theories/examples/soc/soc_spec.v
111-
theories/examples/soc/soc_adequacy.v
114+
theories/case_studies/soc/soc_code.v
115+
theories/case_studies/soc/soc_enclave_spec.v
116+
theories/case_studies/soc/soc_spec.v
117+
theories/case_studies/soc/soc_adequacy.v
112118

113119
# Trusted Memory Readout example
114-
theories/examples/memory_readout/trusted_memory_readout_code.v
115-
theories/examples/memory_readout/trusted_memory_readout_spec.v
116-
theories/examples/memory_readout/trusted_memory_readout_enclaves_spec.v
117-
theories/examples/memory_readout/trusted_memory_readout_client_spec.v
118-
theories/examples/memory_readout/trusted_memory_readout_sensor_spec.v
119-
theories/examples/memory_readout/trusted_memory_readout_main_spec.v
120-
theories/examples/memory_readout/trusted_memory_readout_adequacy.v
120+
theories/case_studies/memory_readout/trusted_memory_readout_code.v
121+
theories/case_studies/memory_readout/trusted_memory_readout_spec.v
122+
theories/case_studies/memory_readout/trusted_memory_readout_enclaves_spec.v
123+
theories/case_studies/memory_readout/trusted_memory_readout_client_spec.v
124+
theories/case_studies/memory_readout/trusted_memory_readout_sensor_spec.v
125+
theories/case_studies/memory_readout/trusted_memory_readout_main_spec.v
126+
theories/case_studies/memory_readout/trusted_memory_readout_adequacy.v
121127

122128
# Mutual Attestation example
123-
theories/examples/mutual_attestation/mutual_attestation_code.v
124-
theories/examples/mutual_attestation/mutual_attestation_A_spec.v
125-
theories/examples/mutual_attestation/mutual_attestation_B_spec.v
126-
theories/examples/mutual_attestation/mutual_attestation_spec.v
127-
theories/examples/mutual_attestation/mutual_attestation_adequacy.v
129+
theories/case_studies/mutual_attestation/mutual_attestation_code.v
130+
theories/case_studies/mutual_attestation/mutual_attestation_A_spec.v
131+
theories/case_studies/mutual_attestation/mutual_attestation_B_spec.v
132+
theories/case_studies/mutual_attestation/mutual_attestation_spec.v
133+
theories/case_studies/mutual_attestation/mutual_attestation_adequacy.v
File renamed without changes.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ From iris.proofmode Require Import proofmode spec_patterns coq_tactics ltac_tact
33
Require Import Eqdep_dec List.
44
From cap_machine Require Import rules logrel.
55
From cap_machine Require Export iris_extra addr_reg_sample contiguous malloc assert.
6-
(* From cap_machine Require Export salloc. *)
7-
From cap_machine.proofmode Require Import classes tactics_helpers solve_pure proofmode map_simpl.
6+
From cap_machine Require Import map_simpl.
7+
From cap_machine.proofmode Require Import classes tactics_helpers solve_pure proofmode.
8+
89

910
Section macros.
1011
Context {Σ:gFunctors} {ceriseg:ceriseG Σ} {seals:sealStoreG Σ}

theories/examples/memory_readout/trusted_memory_readout_adequacy.v renamed to theories/case_studies/memory_readout/trusted_memory_readout_adequacy.v

File renamed without changes.

theories/examples/memory_readout/trusted_memory_readout_client_spec.v renamed to theories/case_studies/memory_readout/trusted_memory_readout_client_spec.v

File renamed without changes.

theories/examples/memory_readout/trusted_memory_readout_code.v renamed to theories/case_studies/memory_readout/trusted_memory_readout_code.v

File renamed without changes.

0 commit comments

Comments
 (0)