CakeML:545071f22f16739a570d769a74422ee63ad71c96
Refactor code in cfHeapsBaseSyntax to not be so disgusting
#1257 (cfHeapsBaseSyntax)
Merging into:2953c802da2e175bad22ab99caff561ba0f8dd58
Mcandidate fix (#1256)
HOL:5d44f2fe1039d941831ee15ee0867c8cc2973f56
Replace Datatype call with modern syntax in examples
Machine:timtam
Claimed job
Building HOL
Starting developers
Finished developers 3s 210MB
Starting developers/bin
Finished developers/bin 3s 91MB
Starting misc
Finished misc 49s 1GB
Starting compiler/proofs
FAILED: compiler/proofs
Scanning $(HOLDIR)/src/bag
Scanning $(HOLDIR)/src/sort
Scanning $(HOLDIR)/src/string
Scanning $(HOLDIR)/src/n-bit
Scanning $(HOLDIR)/src/res_quan/src
Scanning $(HOLDIR)/src/finite_maps
Scanning $(HOLDIR)/examples/formal-languages/context-free
Scanning $(HOLDIR)/src/integer
Scanning $(HOLDIR)/src/transfer
Scanning $(HOLDIR)/src/pred_set/src/more_theories
Scanning $(HOLDIR)/src/algebra/base
Scanning $(HOLDIR)/src/algebra/construction
Scanning $(HOLDIR)/src/algebra
Scanning $(HOLDIR)/src/hol88
Scanning $(HOLDIR)/src/rational
Scanning $(HOLDIR)/src/real
Scanning $(HOLDIR)/examples/data-structures/balanced_bst
Scanning $(HOLDIR)/examples/formal-languages
Scanning $(HOLDIR)/src/search
Scanning $(HOLDIR)/examples/formal-languages/regular
Scanning $(HOLDIR)/examples/machine-code/hoare-triple
Scanning $(HOLDIR)/src/coalgebras
Scanning $(HOLDIR)/examples/pl-semantics/lprefix_lub
Scanning $(CAKEMLDIR)/developers
Scanning $(CAKEMLDIR)/misc
Scanning $(CAKEMLDIR)/semantics/ffi
Scanning $(CAKEMLDIR)/semantics
Scanning $(CAKEMLDIR)/basis/pure
Scanning $(CAKEMLDIR)/semantics/proofs
Scanning $(CAKEMLDIR)/compiler/parsing
Scanning $(CAKEMLDIR)/translator
Scanning $(CAKEMLDIR)/characteristic
Scanning $(CAKEMLDIR)/translator/monadic/monad_base
Scanning $(CAKEMLDIR)/translator/monadic
Scanning $(CAKEMLDIR)/basis
Scanning $(HOLDIR)/examples/algorithms
Scanning $(HOLDIR)/examples/machine-code/multiword
Scanning $(CAKEMLDIR)/compiler/backend/pattern_matching
Scanning $(CAKEMLDIR)/unverified/reg_alloc
Scanning $(CAKEMLDIR)/compiler/backend/reg_alloc
Scanning $(HOLDIR)/src/floating-point
Scanning $(HOLDIR)/src/monad/more_monads
Scanning $(HOLDIR)/src/update
Scanning $(HOLDIR)/examples/l3-machine-code/common
Scanning $(CAKEMLDIR)/compiler/encoders/asm
Scanning $(CAKEMLDIR)/compiler/backend
Scanning $(CAKEMLDIR)/compiler/encoders/ag32
Scanning $(CAKEMLDIR)/compiler/backend/ag32
Scanning $(HOLDIR)/examples/l3-machine-code/lib
Scanning $(HOLDIR)/examples/l3-machine-code/arm/model
Scanning $(HOLDIR)/examples/machine-code/decompiler
Scanning $(HOLDIR)/examples/l3-machine-code
Scanning $(HOLDIR)/examples/l3-machine-code/arm/step
Scanning $(CAKEMLDIR)/compiler/encoders/arm7
Scanning $(CAKEMLDIR)/compiler/backend/arm7
Scanning $(HOLDIR)/examples/l3-machine-code/arm8/model
Scanning $(HOLDIR)/examples/l3-machine-code/arm8/step
Scanning $(CAKEMLDIR)/compiler/encoders/arm8
Scanning $(CAKEMLDIR)/compiler/backend/arm8
Scanning $(HOLDIR)/examples/l3-machine-code/mips/model
Scanning $(HOLDIR)/examples/l3-machine-code/mips/step
Scanning $(CAKEMLDIR)/compiler/encoders/mips
Scanning $(CAKEMLDIR)/compiler/backend/mips
Scanning $(HOLDIR)/examples/l3-machine-code/riscv/model
Scanning $(HOLDIR)/examples/l3-machine-code/riscv/step
Scanning $(CAKEMLDIR)/compiler/encoders/riscv
Scanning $(CAKEMLDIR)/compiler/backend/riscv
Scanning $(HOLDIR)/examples/l3-machine-code/x64/model
Scanning $(HOLDIR)/examples/l3-machine-code/x64/step
Scanning $(CAKEMLDIR)/compiler/encoders/x64
Scanning $(CAKEMLDIR)/compiler/backend/x64
Scanning $(HOLDIR)/examples/algorithms/unification/triangular
Scanning $(HOLDIR)/src/transfer/examples
Scanning $(HOLDIR)/examples/algorithms/unification/triangular/first-order
Scanning $(HOLDIR)/examples/algorithms/unification/triangular/first-order/compilation
Scanning $(CAKEMLDIR)/compiler/inference
Scanning $(CAKEMLDIR)/pancake
Scanning $(CAKEMLDIR)/pancake/parser
Scanning $(CAKEMLDIR)/compiler
Scanning $(CAKEMLDIR)/compiler/backend/gc
Scanning $(CAKEMLDIR)/compiler/backend/reg_alloc/proofs
Scanning $(CAKEMLDIR)/semantics/alt_semantics
Scanning $(CAKEMLDIR)/semantics/alt_semantics/proofs
Scanning $(CAKEMLDIR)/compiler/backend/semantics
Scanning $(CAKEMLDIR)/compiler/backend/proofs
Scanning $(CAKEMLDIR)/compiler/inference/proofs
Scanning $(CAKEMLDIR)/compiler/parsing/proofs
Scanned 89 directories
Starting work on NTpropertiesTheory
Starting work on simpleSexpTheory
Starting work on balanced_mapTheory
Starting work on FormalLangTheory
FormalLangTheory examples/formal-languages (3s) OK
Finished $(HOLDIR)/examples/formal-languages [#theories: 1] (3.430s)
Starting work on charsetTheory
simpleSexpTheory examples/formal-languages/context-free (3s) OK
Starting work on simpleSexpPEGTheory
NTpropertiesTheory examples/formal-languages/context-free (4s) OK
Starting work on vec_mapTheory
vec_mapTheory examples/formal-languages/regular (1s) OK
Starting work on temporalTheory
simpleSexpPEGTheory examples/formal-languages/context-free (2s) OK
Starting work on simpleSexpParseTheory
temporalTheory examples/machine-code/hoare-triple (2s) OK
Finished $(HOLDIR)/examples/machine-code/hoare-triple [#theories: 1] (2.250s)
Starting work on ffiTheory
charsetTheory examples/formal-languages/regular (8s) OK
Starting work on regexpTheory
simpleSexpParseTheory examples/formal-languages/context-free (8s) OK
Finished $(HOLDIR)/examples/formal-languages/context-free [#theories: 4] (19.600s)
Starting work on namespaceTheory
ffiTheory semantics/ffi (7s) OK
Finished $(CAKEMLDIR)/semantics/ffi [#theories: 1] (7.460s)
Starting work on tokensTheory
namespaceTheory semantics (1s) OK
Starting work on astTheory
tokensTheory semantics (3s) OK
Starting work on gramTheory
astTheory semantics (7s) OK
Starting work on fpSemTheory
fpSemTheory semantics (1s) OK
Starting work on semanticPrimitivesTheory
regexpTheory examples/formal-languages/regular (14s) OK
Starting work on tokenUtilsTheory
gramTheory semantics (6s) OK
Starting work on lexer_funTheory
tokenUtilsTheory semantics (7s) OK
Starting work on cmlPtreeConversionTheory
lexer_funTheory semantics (7s) OK
Starting work on mllistTheory
mllistTheory basis/pure (3s) OK
Starting work on mlstringTheory
semanticPrimitivesTheory semantics (22s) OK
Starting work on evaluateTheory
mlstringTheory basis/pure (11s) OK
Starting work on typeSystemTheory
cmlPtreeConversionTheory semantics (17s) OK
Starting work on mlintTheory
evaluateTheory semantics (5s) OK
Starting work on mloptionTheory
mloptionTheory basis/pure (1s) OK
Starting work on astPropsTheory
astPropsTheory semantics/proofs (2s) OK
Starting work on gramPropsTheory
mlintTheory basis/pure (6s) OK
Starting work on mlratTheory
typeSystemTheory semantics (11s) OK
Starting work on primTypesTheory
mlratTheory basis/pure (4s) OK
Starting work on typeDecToPPTheory
primTypesTheory semantics (1s) OK
Starting work on semanticsTheory
typeDecToPPTheory basis/pure (3s) OK
Starting work on namespacePropsTheory
semanticsTheory semantics (4s) OK
Finished $(CAKEMLDIR)/semantics [#theories: 13] (97.560s)
Starting work on cmlPEGTheory
gramPropsTheory semantics/proofs (12s) OK
Starting work on fromSexpTheory
namespacePropsTheory semantics/proofs (4s) OK
Starting work on semanticPrimitivesPropsTheory
balanced_mapTheory examples/data-structures/balanced_bst (75s) OK
Starting work on osetTheory
osetTheory examples/data-structures/balanced_bst (4s) OK
Finished $(HOLDIR)/examples/data-structures/balanced_bst [#theories: 2] (79.370s)
Starting work on regexp_mapTheory
regexp_mapTheory examples/formal-languages/regular (3s) OK
Starting work on regexp_compilerTheory
semanticPrimitivesPropsTheory semantics/proofs (24s) OK
Starting work on mlmapTheory
regexp_compilerTheory examples/formal-languages/regular (14s) OK
Finished $(HOLDIR)/examples/formal-languages/regular [#theories: 5] (41.700s)
Starting work on mlvectorTheory
mlmapTheory basis/pure (4s) OK
Starting work on mlsetTheory
mlvectorTheory basis/pure (5s) OK
Starting work on mlprettyprinterTheory
mlsetTheory basis/pure (2s) OK
Starting work on evaluatePropsTheory
mlprettyprinterTheory basis/pure (7s) OK
Finished $(CAKEMLDIR)/basis/pure [#theories: 10] (51.130s)
Starting work on typeSoundInvariantsTheory
typeSoundInvariantsTheory semantics/proofs (3s) OK
Starting work on typeSysPropsTheory
cmlPEGTheory compiler/parsing (56s) OK
Starting work on cmlParseTheory
fromSexpTheory compiler/parsing (52s) OK
Starting work on lexer_implTheory
typeSysPropsTheory semantics/proofs (17s) OK
Starting work on primSemEnvTheory
cmlParseTheory compiler/parsing (8s) OK
Starting work on weakeningTheory
weakeningTheory semantics/proofs (5s) OK
Starting work on cfFFITypeTheory
primSemEnvTheory semantics/proofs (6s) OK
Starting work on ml_monadBaseTheory
cfFFITypeTheory characteristic (2s) OK
Starting work on MarshallingTheory
MarshallingTheory basis (3s) OK
Starting work on spt_closureTheory
spt_closureTheory examples/algorithms (1s) OK
Finished $(HOLDIR)/examples/algorithms [#theories: 1] (1.680s)
Starting work on multiwordTheory
ml_monadBaseTheory translator/monadic/monad_base (15s) OK
Finished $(CAKEMLDIR)/translator/monadic/monad_base [#theories: 1] (15.020s)
Starting work on pattern_commonTheory
evaluatePropsTheory semantics/proofs (64s) OK
Starting work on typeSoundTheory
pattern_commonTheory compiler/backend/pattern_matching (8s) OK
Starting work on evaluate_decTheory
lexer_implTheory compiler/parsing (36s) OK
Finished $(CAKEMLDIR)/compiler/parsing [#theories: 4] (154.200s)
Starting work on pattern_semanticsTheory
multiwordTheory examples/machine-code/multiword (21s) OK
Starting work on mc_multiwordTheory
evaluate_decTheory translator (5s) OK
Starting work on ml_progTheory
pattern_semanticsTheory compiler/backend/pattern_matching (12s) OK
Starting work on pattern_compTheory
ml_progTheory translator (10s) OK
Starting work on ml_translatorTheory
pattern_compTheory compiler/backend/pattern_matching (13s) OK
Starting work on cfHeapsBaseTheory
mc_multiwordTheory examples/machine-code/multiword (30s) OK
Finished $(HOLDIR)/examples/machine-code/multiword [#theories: 2] (51.630s)
Finished $(CAKEMLDIR)/compiler/backend/pattern_matching [#theories: 3] (35.600s)
Starting work on reg_allocTheory
cfHeapsBaseTheory characteristic (13s) OK
Starting work on clFFITheory
ml_translatorTheory translator (29s) OK
Starting work on ml_optimiseTheory
clFFITheory basis (4s) OK
Starting work on ml_pmatchTheory
ml_optimiseTheory translator (10s) OK
Starting work on runtimeFFITheory
ml_pmatchTheory translator (9s) OK
Starting work on std_preludeTheory
runtimeFFITheory basis (4s) OK
Starting work on cfHeapsTheory
reg_allocTheory compiler/backend/reg_alloc (34s) OK
Starting work on fsFFITheory
cfHeapsTheory characteristic (9s)FAIL<1>
/scratch/cakeml/regression2/cakeml-3022/characteristic/cfHeapsBaseLib.sml:69: error: Arguments of orelse must have type bool*bool.
Arguments: (is_cond h, is_sep_exists h) : term * bool
Reason:
Can't unify term (*Created from opaque signature*) with
bool (*In Basis*) (Different type constructors)
Found near is_cond h orelse is_sep_exists h
/scratch/cakeml/regression2/cakeml-3022/characteristic/cfHeapsBaseLib.sml:92: error: Condition in if-statement must have type bool.
If: is_cond tm : term
Reason:
Can't unify term (*Created from opaque signature*) with
bool (*In Basis*) (Different type constructors)
Found near
if is_cond tm then
SOME
(
THEN_CONSEQ_CONV (rearrange_conv tm)
(CONSEQ_TOP_REWRITE_CONV (...) CONSEQ_CONV_STRENGTHEN_direction)) else
if is_sep_exists tm then SOME (EVERY_CONSEQ_CONV [... ..., ...]) else NONE
/scratch/cakeml/regression2/cakeml-3022/characteristic/cfHeapsBaseLib.sml:269: error: Condition in if-statement must have type bool.
If: is_cond tm : term
Reason:
Can't unify term (*Created from opaque signature*) with
bool (*In Basis*) (Different type constructors)
Found near
if is_cond tm then SOME (EVERY_CONSEQ_CONV [rearrange_conv tm, ... ...])
else
if is_sep_exists tm then SOME (EVERY_CONSEQ_CONV [... ..., ...]) else NONE
/scratch/cakeml/regression2/cakeml-3022/characteristic/cfHeapsBaseLib.sml:4: error: Structure does not match signature.
Signature: val is_cond: Term.term -> bool
Structure: val is_cond: Term.term -> Term.term
Reason:
Can't match Term.term (*Created from opaque signature*) to
bool (*In Basis*) (Different type constructors)
Found near
struct
open preamble
open set_sepTheory helperLib ConseqConv
open evarsConseqConvLib
open cfHeapsBaseTheory ...
open ...
...
...
end
error in quse /scratch/cakeml/regression2/cakeml-3022/characteristic/cfHeapsBaseLib.sml : Fail "Static Errors"
error in load $(CAKEMLDIR)/characteristic/cfHeapsBaseLib : Fail "Static Errors"
error in load /scratch/cakeml/regression2/cakeml-3022/characteristic/cfHeapsScript : Fail "Static Errors"
Uncaught exception at ./basis/FinalPolyML.sml:492: Fail "Static Errors"
Full log: /scratch/cakeml/regression2/cakeml-3022/characteristic/.hol/logs/cfHeapsTheory
typeSoundTheory semantics/proofs (75s)MKILLED
std_preludeTheory translator (12s)MKILLED
fsFFITheory basis (3s)MKILLED