CakeML:6c5cc6446bfc40818b48f463053c42099d4a0b42
Refactor the Pancake parser for better error locations
#1073 (pan_parseErrFix)
Merging into:7ccfc0faa38c912885329cfeb8632f807845f901
Merge pull request #1070 from CakeML/remove-curry-save-thm
HOL:07c84bff2b89ddb2c81c57884f4141bbc37accdb
Fix cv_compute regression test to cope with case-sensitive files
Machine:stove 5.15.0-86-generic x86_64 GNU/Linux
Claimed job
Reusing HOL
Starting developers
Finished developers 6s 100MB
Starting developers/bin
Finished developers/bin 6s 1GB
Starting compiler/proofs
Finished compiler/proofs 1h55m32s 14GB
Starting compiler/bootstrap/translation
FAILED: compiler/bootstrap/translation
Scanning [1m$(HOLDIR)/src/bag[0m
Scanning [1m$(HOLDIR)/src/sort[0m
Scanning [1m$(HOLDIR)/src/string[0m
Scanning [1m$(HOLDIR)/src/n-bit[0m
Scanning [1m$(HOLDIR)/src/res_quan/src[0m
Scanning [1m$(HOLDIR)/src/finite_maps[0m
Scanning [1m$(HOLDIR)/examples/formal-languages/context-free[0m
Scanning [1m$(HOLDIR)/examples/machine-code/hoare-triple[0m
Scanning [1m$(HOLDIR)/src/ring/src[0m
Scanning [1m$(HOLDIR)/src/integer[0m
Scanning [1m$(HOLDIR)/src/transfer[0m
Scanning [1m$(HOLDIR)/src/pred_set/src/more_theories[0m
Scanning [1m$(HOLDIR)/src/algebra/base[0m
Scanning [1m$(HOLDIR)/src/algebra/construction[0m
Scanning [1m$(HOLDIR)/src/algebra[0m
Scanning [1m$(HOLDIR)/src/hol88[0m
Scanning [1m$(HOLDIR)/src/rational[0m
Scanning [1m$(HOLDIR)/src/real[0m
Scanning [1m$(HOLDIR)/src/floating-point[0m
Scanning [1m$(HOLDIR)/src/monad/more_monads[0m
Scanning [1m$(HOLDIR)/src/update[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/common[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/lib[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/arm/model[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/arm8/model[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/mips/model[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/riscv/model[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/x64/model[0m
Scanning [1m$(HOLDIR)/examples/balanced_bst[0m
Scanning [1m$(HOLDIR)/examples/formal-languages[0m
Scanning [1m$(HOLDIR)/examples/formal-languages/regular[0m
Scanning [1m$(HOLDIR)/src/coalgebras[0m
Scanning [1m$(HOLDIR)/examples/fun-op-sem/lprefix_lub[0m
Scanning [1m$(CAKEMLDIR)/developers[0m
Scanning [1m$(CAKEMLDIR)/misc[0m
Scanning [1m$(CAKEMLDIR)/semantics/ffi[0m
Scanning [1m$(CAKEMLDIR)/semantics[0m
Scanning [1m$(CAKEMLDIR)/basis/pure[0m
Scanning [1m$(CAKEMLDIR)/semantics/proofs[0m
Scanning [1m$(CAKEMLDIR)/compiler/parsing[0m
Scanning [1m$(CAKEMLDIR)/translator[0m
Scanning [1m$(CAKEMLDIR)/characteristic[0m
Scanning [1m$(CAKEMLDIR)/translator/monadic/monad_base[0m
Scanning [1m$(CAKEMLDIR)/translator/monadic[0m
Scanning [1m$(CAKEMLDIR)/basis[0m
Scanning [1m$(HOLDIR)/examples/algorithms[0m
Scanning [1m$(HOLDIR)/examples/machine-code/multiword[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/pattern_matching[0m
Scanning [1m$(CAKEMLDIR)/unverified/reg_alloc[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/reg_alloc[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/asm[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/ag32[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/ag32[0m
Scanning [1m$(HOLDIR)/examples/machine-code/decompiler[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/arm/step[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/arm7[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/arm7[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/arm8/step[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/arm8[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/arm8[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/mips/step[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/mips[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/mips[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/riscv/step[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/riscv[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/riscv[0m
Scanning [1m$(HOLDIR)/examples/l3-machine-code/x64/step[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/x64[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/x64[0m
Scanning [1m$(HOLDIR)/examples/algorithms/unification/triangular[0m
Scanning [1m$(HOLDIR)/src/transfer/examples[0m
Scanning [1m$(HOLDIR)/examples/algorithms/unification/triangular/first-order[0m
Scanning [1m$(HOLDIR)/examples/algorithms/unification/triangular/first-order/compilation[0m
Scanning [1m$(CAKEMLDIR)/compiler/inference[0m
Scanning [1m$(CAKEMLDIR)/pancake[0m
Scanning [1m$(CAKEMLDIR)/pancake/parser[0m
Scanning [1m$(CAKEMLDIR)/compiler[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/reg_alloc/proofs[0m
Scanning [1m$(CAKEMLDIR)/compiler/backend/serialiser[0m
Scanning [1m$(CAKEMLDIR)/compiler/encoders/monadic_enc[0m
Scanning [1m$(CAKEMLDIR)/compiler/parsing/ocaml[0m
Scanning [1m$(CAKEMLDIR)/candle/standard/ml_kernel/lisp[0m
Scanning [1m$(CAKEMLDIR)/candle/syntax-lib[0m
Scanning [1m$(CAKEMLDIR)/candle/standard/syntax[0m
Scanning [1m$(CAKEMLDIR)/candle/standard/monadic[0m
Scanning [1m$(CAKEMLDIR)/candle/standard/ml_kernel[0m
Scanning [1m$(CAKEMLDIR)/candle/set-theory[0m
Scanning [1m$(CAKEMLDIR)/candle/standard/semantics[0m
Scanning [1m$(CAKEMLDIR)/candle/prover/compute[0m
Scanning [1m$(CAKEMLDIR)/candle/prover[0m
Scanning [1m$(CAKEMLDIR)/compiler/inference/proofs[0m
Scanning [1m$(CAKEMLDIR)/compiler/printing[0m
Scanning [1m$(CAKEMLDIR)/compiler/repl[0m
Scanned 97 directories
Starting work on basis_cvTheory
Starting work on ml_monadStoreTheory
Starting work on num_list_enc_decTheory
Starting work on monadic_encTheory
basis_cvTheory basis/pure (8s) OK
Finished $(CAKEMLDIR)/basis/pure [#theories: 1] (8.591s)
Starting work on unify_cvTheory
monadic_encTheory compiler/encoders/monadic_enc (15s) OK
Starting work on monadic_enc32Theory
ml_monadStoreTheory translator/monadic (22s) OK
Finished $(CAKEMLDIR)/translator/monadic [#theories: 1] (22.270s)
Starting work on monadic_enc64Theory
num_list_enc_decTheory compiler/backend/serialiser (29s) OK
Starting work on num_tree_enc_decTheory
unify_cvTheory compiler/inference (20s) OK
Starting work on infer_cvTheory
monadic_enc32Theory compiler/encoders/monadic_enc (21s) OK
Starting work on caml_lexTheory
monadic_enc64Theory compiler/encoders/monadic_enc (22s) OK
Finished $(CAKEMLDIR)/compiler/encoders/monadic_enc [#theories: 3] (58.963s)
Starting work on lisp_valuesTheory
lisp_valuesTheory candle/standard/ml_kernel/lisp (2s) OK
Starting work on lisp_parsingTheory
lisp_parsingTheory candle/standard/ml_kernel/lisp (1s) OK
Starting work on lisp_printingTheory
num_tree_enc_decTheory compiler/backend/serialiser (20s) OK
Starting work on backend_enc_decTheory
lisp_printingTheory candle/standard/ml_kernel/lisp (2s) OK
Starting work on lisp_parsing_proofsTheory
lisp_parsing_proofsTheory candle/standard/ml_kernel/lisp (4s) OK
Finished $(CAKEMLDIR)/candle/standard/ml_kernel/lisp [#theories: 4] (10.651s)
Starting work on holSyntaxLibTheory
holSyntaxLibTheory candle/syntax-lib (14s) OK
Finished $(CAKEMLDIR)/candle/syntax-lib [#theories: 1] (14.920s)
Starting work on holSyntaxTheory
holSyntaxTheory candle/standard/syntax (26s) OK
Starting work on holSyntaxExtraTheory
infer_cvTheory compiler/inference (83s) OK
Finished $(CAKEMLDIR)/compiler/inference [#theories: 2] (104.766s)
Starting work on ast_extrasTheory
backend_enc_decTheory compiler/backend/serialiser (64s) OK
Finished $(CAKEMLDIR)/compiler/backend/serialiser [#theories: 3] (114.194s)
Starting work on addPrintValsTheory
ast_extrasTheory candle/prover (14s) OK
Starting work on permsTheory
addPrintValsTheory compiler/printing (14s) OK
Starting work on addTypePPTheory
addTypePPTheory compiler/printing (9s) OK
Starting work on printTweaksTheory
holSyntaxExtraTheory candle/standard/syntax (47s) OK
Starting work on holBoolSyntaxTheory
printTweaksTheory compiler/printing (13s) OK
Starting work on holKernelTheory
holBoolSyntaxTheory candle/standard/syntax (39s) OK
Starting work on holAxiomsSyntaxTheory
holKernelTheory candle/standard/monadic (43s) OK
Starting work on holKernelPmatchTheory
holAxiomsSyntaxTheory candle/standard/syntax (21s) OK
Finished $(CAKEMLDIR)/candle/standard/syntax [#theories: 4] (134.028s)
Starting work on holKernelProofTheory
holKernelPmatchTheory candle/standard/monadic (26s) OK
Starting work on runtime_checkTheory
permsTheory candle/prover(108s) OK
Starting work on print_thmTheory
runtime_checkTheory candle/standard/ml_kernel (19s) OK
Starting work on ml_hol_kernel_funsProgTheory
print_thmTheory candle/standard/ml_kernel (18s) OK
Finished $(CAKEMLDIR)/compiler/printing [#theories: 3] (37.483s)
Starting work on README.md
README.md compiler/bootstrap/translation (0s) OK
holKernelProofTheory candle/standard/monadic (76s) OK
Finished $(CAKEMLDIR)/candle/standard/monadic [#theories: 3] (146.704s)
Starting work on compute_syntaxTheory
caml_lexTheory compiler/parsing/ocaml(273s) OK
Starting work on camlPEGTheory
compute_syntaxTheory candle/prover/compute (30s) OK
Starting work on compute_evalTheory
compute_evalTheory candle/prover/compute (24s) OK
Starting work on compute_execTheory
compute_execTheory candle/prover/compute (21s) OK
Starting work on computeTheory
computeTheory candle/prover/compute (19s) OK
Starting work on compute_pmatchTheory
compute_pmatchTheory candle/prover/compute (22s) OK
Finished $(CAKEMLDIR)/candle/prover/compute [#theories: 5] (117.884s)
camlPEGTheory compiler/parsing/ocaml(132s) OK
Starting work on camlPtreeConversionTheory
camlPtreeConversionTheory compiler/parsing/ocaml (75s) OK
Starting work on caml_parserTheory
caml_parserTheory compiler/parsing/ocaml (15s) OK
Finished $(CAKEMLDIR)/compiler/parsing/ocaml [#theories: 4] (496.674s)
ml_hol_kernel_funsProgTheory candle/standard/ml_kernel(322s) OK
Finished $(CAKEMLDIR)/candle/standard/ml_kernel [#theories: 3] (360.418s)
Starting work on candle_kernelProgTheory
candle_kernelProgTheory candle/prover(646s) OK
Starting work on candle_kernel_valsTheory
Starting work on repl_moduleProgTheory
repl_moduleProgTheory compiler/repl (98s) OK
Starting work on repl_init_envProgTheory
candle_kernel_valsTheory candle/prover(117s) OK
Starting work on candle_prover_invTheory
repl_init_envProgTheory compiler/repl (44s) OK
candle_prover_invTheory candle/prover (32s) OK
Finished $(CAKEMLDIR)/candle/prover [#theories: 5] (918.753s)
Starting work on repl_decs_allowedTheory
repl_decs_allowedTheory compiler/repl (29s) OK
Starting work on repl_check_and_tweakTheory
Starting work on decProgTheory
repl_check_and_tweakTheory compiler/repl (50s) OK
Starting work on repl_init_typesTheory
repl_init_typesTheory compiler/repl (63s) OK
Finished $(CAKEMLDIR)/compiler/repl [#theories: 5] (287.217s)
decProgTheory compiler/bootstrap/translation(182s) OK
Starting work on to_flatProgTheory
to_flatProgTheory compiler/bootstrap/translation(361s) OK
Starting work on to_closProgTheory
to_closProgTheory compiler/bootstrap/translation(773s) OK
Starting work on to_bvlProgTheory
to_bvlProgTheory compiler/bootstrap/translation(603s) OK
Starting work on to_bviProgTheory
to_bviProgTheory compiler/bootstrap/translation(495s) OK
Starting work on to_dataProgTheory
to_dataProgTheory compiler/bootstrap/translation(280s) OK
Starting work on lexerProgTheory
lexerProgTheory compiler/bootstrap/translation(213s) OK
Starting work on parserProgTheory
parserProgTheory compiler/bootstrap/translation(756s) OK
Starting work on caml_lexProgTheory
caml_lexProgTheory compiler/bootstrap/translation(573s) OK
Starting work on caml_parserProgTheory
caml_parserProgTheory compiler/bootstrap/translation (29m) OK
Starting work on pancake_lexProgTheory
pancake_lexProgTheory compiler/bootstrap/translation(185s) OK
Starting work on pancake_parseProgTheory
pancake_parseProgTheory compiler/bootstrap/translation(357s) OK
Starting work on reg_allocProgTheory
reg_allocProgTheory compiler/bootstrap/translation (18m) OK
Starting work on inferProgTheory
inferProgTheory compiler/bootstrap/translation (43m) OK
Starting work on explorerProgTheory
explorerProgTheory compiler/bootstrap/translation (18m) OK
Starting work on decodeProgTheory
decodeProgTheory compiler/bootstrap/translation(341s) OK
Starting work on sexp_parserProgTheory
sexp_parserProgTheory compiler/bootstrap/translation(343s) OK
Starting work on basis_defProgTheory
basis_defProgTheory compiler/bootstrap/translation(130m) OK
Starting work on to_word32ProgTheory
Starting work on printingProgTheory
printingProgTheory compiler/bootstrap/translation(219s) OK
Starting work on to_word64ProgTheory
to_word32ProgTheory compiler/bootstrap/translation (34m) OK
Starting work on to_target32ProgTheory
to_word64ProgTheory compiler/bootstrap/translation (34m) OK
Starting work on to_target64ProgTheory
to_target32ProgTheory compiler/bootstrap/translation (19m) OK
Starting work on from_pancake32ProgTheory
to_target64ProgTheory compiler/bootstrap/translation (19m) OK
Starting work on from_pancake64ProgTheory
from_pancake32ProgTheory compiler/bootstrap/translation(974s)FAIL<1>
Saved theorem _______ "panptreeconversion_conv_arglist_v_thm"
Translating panptreeconversion_dest_annot_tok
Adding nsLookup representation thms for [from_pancake32Prog_env_168]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_169_pfun_eqs"
Saved theorem _______ "panptreeconversion_dest_annot_tok_v_thm"
Translating panptreeconversion_conv_nonrecstmt
Adding nsLookup representation thms for [from_pancake32Prog_env_169]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_170_pfun_eqs"
Saved theorem _______ "panptreeconversion_conv_nonrecstmt_v_thm"
<<HOL warning: ThmSetData.revise_data:
Theorems in set "compute":
ADD<from_pancake32Prog$generated_definition_def>
invalidated by DelConstant(from_pancake32Prog$generated_definition)>>
Translating panptreeconversion_posn_string
Adding nsLookup representation thms for [from_pancake32Prog_env_170]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_171_pfun_eqs"
Saved theorem _______ "panptreeconversion_posn_string_v_thm"
Translating panptreeconversion_locs_comment
Adding nsLookup representation thms for [from_pancake32Prog_env_171]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_172_pfun_eqs"
Saved theorem _______ "panptreeconversion_locs_comment_v_thm"
Translating panptreeconversion_parsetree_locs
Adding nsLookup representation thms for [from_pancake32Prog_env_172]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_173_pfun_eqs"
Saved theorem _______ "panptreeconversion_parsetree_locs_v_thm"
Translating panptreeconversion_add_locs_annot
Adding nsLookup representation thms for [from_pancake32Prog_env_173]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_174_pfun_eqs"
Saved theorem _______ "panptreeconversion_add_locs_annot_v_thm"
Translating panptreeconversion_butlast
Adding nsLookup representation thms for [from_pancake32Prog_env_174]
Saved theorem _______ "nsLookup_from_pancake32Prog_env_175_pfun_eqs"
Adding nsLookup representation thms for [from_pancake32Prog_env_175]
Saved theorem _______ "panptreeconversion_butlast_v_thm"
<<HOL warning: ThmSetData.revise_data:
Theorems in set "compute":
ADD<from_pancake32Prog$generated_definition_def>
invalidated by DelConstant(from_pancake32Prog$generated_definition)>>
Translating panptreeconversion_conv_dec
Saved theorem _______ "nsLookup_from_pancake32Prog_env_176_pfun_eqs"
WARNING: panptreeconversion_conv_dec has a precondition.
Saved theorem _______ "panptreeconversion_conv_dec_v_thm"
Adding type : exp
Adding nsLookup representation thms for [from_pancake32Prog_env_176]
error in quse /home/cug/hk324/cml-regression/cakeml-2679/compiler/bootstrap/translation/from_pancake32ProgScript.sml : HOL_ERR {message = "\"fcp$cart\" is not a datatype", origin_function = "axiom_of", origin_structure = "TypeBasePure"}
error in load /home/cug/hk324/cml-regression/cakeml-2679/compiler/bootstrap/translation/from_pancake32ProgScript : HOL_ERR {message = "\"fcp$cart\" is not a datatype", origin_function = "axiom_of", origin_structure = "TypeBasePure"}
Failed translation: conv_DecCall
Uncaught exception at /home/cug/hk324/cml-regression/cakeml-2679/translator/ml_translatorLib.sml:4460: HOL_ERR {message = "\"fcp$cart\" is not a datatype", origin_function = "axiom_of", origin_structure = "TypeBasePure"}
from_pancake64ProgTheory compiler/bootstrap/translation(734s)MKILLED