- Timestamp:
- Nov 19, 2012, 5:13:21 PM (8 years ago)
- Location:
- src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ASM/ASMCosts.ma
r1964 r2475 13 13 word_deqset 14 14 (program_counter …) 15 (λs ,class. ASM_classify … s = class)15 (λs. ASM_classify … s) 16 16 (λpc.lookup_opt ?? pc cost_labels) 17 17 (next_instruction_properly_relates_program_counters code_memory) 18 ? 18 19 ?. 19 cases daemon (* XXX: is final predicate *)20 cases daemon (* XXX: is final predicate, call ident function *) 20 21 qed. 21 22 -
src/ASM/ASMCostsSplit.ma
r2001 r2475 22 22 | Some lbl ⇒ λlookup_refl. 23 23 let cost ≝ block_cost code_memory program_counter cost_labels in 24 cic:/matita/cerco/common/Identifiers/add.fix(0,2, 2) ?? cost_mapping lbl cost24 cic:/matita/cerco/common/Identifiers/add.fix(0,2,3) ?? cost_mapping lbl cost 25 25 ] (refl … (lookup_opt … program_counter cost_labels)) 26 26 ] (refl … program_size). -
src/RTLabs/semantics.ma
r2395 r2475 319 319 [ %{v} @Efd 320 320 | cases v in Efd; 321 [ 5: * #b #off #Efd %{b} whd in Efd:(??(???%)?); cases (eq_offset ??) in Efd;321 [ 4: * #b #off #Efd %{b} whd in Efd:(??(???%)?); cases (eq_offset ??) in Efd; 322 322 [ #E @E | #E normalize in E; destruct ] 323 323 | *: normalize #A try #B try #C destruct -
src/compiler.ma
r2399 r2475 2 2 include "Clight/label.ma". 3 3 include "Clight/SimplifyCasts.ma". 4 (*include "Clight/switchRemoval.ma".*) 4 include "Clight/switchRemoval.ma". 5 5 include "Clight/toCminor.ma". 6 6 include "Cminor/initialisation.ma". … … 9 9 definition front_end : clight_program → res (costlabel × clight_program × RTLabs_program) ≝ 10 10 λp. 11 let p ≝ program_switch_removal p in 11 12 let 〈p',init_cost〉 ≝ clight_label p in 12 13 let p ≝ simplify_program p' in 13 (* let p ≝ program_switch_removal p in*)14 14 ! p ← clight_to_cminor p; 15 15 let p ≝ cminor_to_rtlabs init_cost p in 16 16 return 〈init_cost,p',p〉. 17 17 18 (* Recent changes have temporarily stopped the back-end from checking, so 19 axiomatise it for a little while. 18 20 include "RTLabs/RTLabsToRTL.ma". 19 21 include "RTL/RTLToERTL.ma". … … 33 35 let p ≝ ltl_to_lin p in 34 36 lin_to_asm p. 37 *) 38 include "ASM/ASM.ma". 39 axiom back_end : RTLabs_program → pseudo_assembly_program. 35 40 36 41 include "ASM/Assembly.ma". -
src/correctness.ma
r2412 r2475 31 31 32 32 % 33 [ @labelling_sim @NOT_WRONG 33 [ (* Needs switch removal too, now 34 @labelling_sim @NOT_WRONG 35 *) cases daemon 34 36 | @I 35 37 ] qed.
Note: See TracChangeset
for help on using the changeset viewer.