Skip to content

Commit e408418

Browse files
committed
remove hack for <= 1.0.8
1 parent 0478ea6 commit e408418

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

Diff for: filter/base/filter_magic.ml

-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ let term_versions = List.map (pack_version 1 0) [34;33;32;31;30;29;28;27;25;24]
125125
* Rev 27: changed the stging encoding of option_info
126126
* Rev 28: added "opaque" qualifier to the "define" statements
127127
*
128-
* Term_man_minimal_sig has extra stuff for rev 0-7 file support.
129-
* Filter_summary has a HACK needed to read rev 0-8 files.
130128
* Proof_term_boot has a HACK needed to read rev 0-9 files.
131129
* Ascii_io has another HACK needed to read some rev 0-10 files.
132130
* Filter_summary has another HACK needed to read some rev 0-11 files.

Diff for: filter/base/filter_summary.ml

+5-12
Original file line numberDiff line numberDiff line change
@@ -1340,16 +1340,9 @@ struct
13401340

13411341
(*
13421342
* Parent declaration.
1343-
* XXX HACK: The "if" is here because parent terms used to have 3 subterms in old files
1344-
* (ASCII IO format <= 1.0.8)
13451343
*)
13461344
let dest_parent convert t =
1347-
let path, resources =
1348-
if is_dep0_dep0_term parent_op t then
1349-
two_subterms t
1350-
else
1351-
let p, _, r = three_subterms t
1352-
in p, r
1345+
let path, resources = two_subterms t
13531346
in
13541347
Parent { parent_name = dest_string_param_list path;
13551348
parent_resources = List.map (dest_resource_sig convert) (dest_xlist resources)
@@ -2040,7 +2033,7 @@ struct
20402033
implem_error loc (sprintf "Cond_rewrite %s: param list mismatch" name)
20412034
else if not (List.length args = List.length args' && List.for_all2 alpha_equal args' args) then
20422035
implem_error loc (sprintf "Cond_rewrite %s: arg lists mismatch" name)
2043-
else if not (alpha_equal redex' redex & alpha_equal contractum contractum') then
2036+
else if not (alpha_equal redex' redex && alpha_equal contractum contractum') then
20442037
implem_error loc (sprintf "Cond_rewrite %s: specification mismatch" name)
20452038
else
20462039
()
@@ -2505,7 +2498,7 @@ struct
25052498
rw_proof = proof;
25062499
_
25072500
}, _) ->
2508-
if not (alpha_equal rw.rw_redex redex & alpha_equal rw.rw_contractum contractum) then
2501+
if not (alpha_equal rw.rw_redex redex && alpha_equal rw.rw_contractum contractum) then
25092502
eprintf "Copy_proof: warning: rewrite %s%s%t" rw.rw_name changed_warning eflush;
25102503
{ rw with rw_proof = copy_proof rw.rw_proof proof }
25112504
| Some (Rule { rule_proof = proof; _ }, _)
@@ -2529,8 +2522,8 @@ struct
25292522
_
25302523
}, _) ->
25312524
if not (alpha_equal crw.crw_redex redex)
2532-
or not (alpha_equal crw.crw_contractum contractum)
2533-
or not (Lm_list_util.for_all2 alpha_equal crw.crw_assums assums)
2525+
|| not (alpha_equal crw.crw_contractum contractum)
2526+
|| not (Lm_list_util.for_all2 alpha_equal crw.crw_assums assums)
25342527
then
25352528
eprintf "Copy_proof: warning: cond_rewrite %s%s%t" crw.crw_name changed_warning eflush;
25362529
{ crw with crw_proof = copy_proof crw.crw_proof proof }

Diff for: filter/filter/filter_merge_prla.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type pf_kind =
6161
(*
6262
* XXX: HACK: nogin: the proper way would be to decode the actual module items and then
6363
* do a proper filtering and merging. However I do not want to write this at the time as
64-
* I am hoping that it would become much easiere to do this one the new_io branch is
64+
* I am hoping that it would become much easiere to do this once the new_io branch is
6565
* finished and merged.
6666
*)
6767
let summary_opname = mk_opname "Summary" nil_opname

0 commit comments

Comments
 (0)