@@ -44,16 +44,14 @@ val attach_bitmaps_def = Define `
44
44
|>) /\
45
45
attach_bitmaps names c bm NONE = NONE `
46
46
47
- val compile_tap_def = Define`
48
- compile_tap c p =
47
+ Definition compile_def:
48
+ compile c p =
49
49
let p = source_to_source$compile p in
50
50
let _ = empty_ffi (strlit " finished: source_to_source" ) in
51
51
let (c',p) = source_to_flat$compile c.source_conf p in
52
- let td = tap_flat c.tap_conf p [] in
53
52
let _ = empty_ffi (strlit " finished: source_to_flat" ) in
54
53
let c = c with source_conf := c' in
55
54
let p = flat_to_clos$compile_prog p in
56
- let td = tap_clos c.tap_conf p td in
57
55
let _ = empty_ffi (strlit " finished: flat_to_clos" ) in
58
56
let (c',p,names) = clos_to_bvl$compile c.clos_conf p in
59
57
let c = c with clos_conf := c' in
@@ -63,32 +61,26 @@ val compile_tap_def = Define`
63
61
let c = c with bvl_conf updated_by (λc. c with <| inlines := l; next_name1 := n1; next_name2 := n2 |>) in
64
62
let _ = empty_ffi (strlit " finished: bvl_to_bvi" ) in
65
63
let p = bvi_to_data$compile_prog p in
66
- let td = tap_data_lang c.tap_conf (p,names) td in
67
64
let _ = empty_ffi (strlit " finished: bvi_to_data" ) in
68
65
let (col,p) = data_to_word$compile c.data_conf c.word_to_word_conf c.lab_conf.asm_conf p in
69
66
let c = c with word_to_word_conf updated_by (λc. c with col_oracle := col) in
70
67
let names = sptree$union (sptree$fromAList $ (data_to_word$stub_names () ++
71
68
word_to_stack$stub_names () ++ stack_alloc$stub_names () ++
72
69
stack_remove$stub_names ())) names in
73
- let td = tap_word c.tap_conf (p,names) td in
74
70
let _ = empty_ffi (strlit " finished: data_to_word" ) in
75
71
let (bm,c',fs,p) = word_to_stack$compile c.lab_conf.asm_conf p in
76
- let td = tap_stack c.tap_conf (p,names) td in
77
72
let c = c with word_conf := c' in
78
73
let _ = empty_ffi (strlit " finished: word_to_stack" ) in
79
74
let p = stack_to_lab$compile
80
75
c.stack_conf c.data_conf (2 * max_heap_limit (:'a) c.data_conf - 1 )
81
76
(c.lab_conf.asm_conf.reg_count - (LENGTH c.lab_conf.asm_conf.avoid_regs +3 ))
82
77
(c.lab_conf.asm_conf.addr_offset) p in
83
- let td = tap_lab c.tap_conf (p,names) td in
84
78
let _ = empty_ffi (strlit " finished: stack_to_lab" ) in
85
79
let res = attach_bitmaps names c bm
86
80
(lab_to_target$compile c.lab_conf (p:'a prog)) in
87
81
let _ = empty_ffi (strlit " finished: lab_to_target" ) in
88
- (res, td)`;
89
-
90
- val compile_def = Define`
91
- compile c p = FST (compile_tap c p)`;
82
+ res
83
+ End
92
84
93
85
val to_flat_def = Define`
94
86
to_flat c p =
@@ -175,7 +167,7 @@ val to_target_def = Define`
175
167
Theorem compile_eq_to_target:
176
168
compile = to_target
177
169
Proof
178
- srw_tac[][FUN_EQ_THM,compile_def,compile_tap_def,
170
+ srw_tac[][FUN_EQ_THM,compile_def,
179
171
to_target_def,
180
172
to_lab_def,
181
173
to_stack_def,
@@ -280,7 +272,7 @@ val from_source_def = Define`
280
272
Theorem compile_eq_from_source:
281
273
compile = from_source
282
274
Proof
283
- srw_tac[][FUN_EQ_THM,compile_def,compile_tap_def,
275
+ srw_tac[][FUN_EQ_THM,compile_def,
284
276
from_source_def,
285
277
from_lab_def,
286
278
from_stack_def,
@@ -430,7 +422,7 @@ Proof
430
422
to_bvl_def,
431
423
to_clos_def,
432
424
to_flat_def,to_livesets_def] >>
433
- fs[compile_def,compile_tap_def ]>>
425
+ fs[compile_def]>>
434
426
pairarg_tac>>
435
427
fs[data_to_wordTheory.compile_def,word_to_wordTheory.compile_def]>>
436
428
fs[from_livesets_def,from_word_def,from_stack_def,from_lab_def]>>
0 commit comments