CakeML:545071f22f16739a570d769a74422ee63ad71c96
Refactor code in cfHeapsBaseSyntax to not be so disgusting
#1257 (cfHeapsBaseSyntax)
Merging into:e802d90a9b71421bab22981542fede006f0ccce4
Use trans to translate Double arithmetic (#1255)
HOL:5d44f2fe1039d941831ee15ee0867c8cc2973f56
Replace Datatype call with modern syntax in examples
Machine:timtam
Claimed job
Reusing HOL
Starting developers
Finished developers 3s 139MB
Starting developers/bin
Finished developers/bin 3s 91MB
Starting misc
Finished misc 36s 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 ffiTheory
Starting work on namespaceTheory
Starting work on tokensTheory
Starting work on mllistTheory
namespaceTheory semantics (1s) OK
Starting work on astTheory
tokensTheory semantics (3s) OK
Starting work on gramTheory
mllistTheory basis/pure (3s) OK
Starting work on tokenUtilsTheory
ffiTheory semantics/ffi (7s) OK
Finished $(CAKEMLDIR)/semantics/ffi [#theories: 1] (7.330s)
Starting work on lexer_funTheory
astTheory semantics (6s) OK
Starting work on fpSemTheory
fpSemTheory semantics (1s) OK
Starting work on semanticPrimitivesTheory
gramTheory semantics (6s) OK
Starting work on mlstringTheory
tokenUtilsTheory semantics (7s) OK
Starting work on cmlPtreeConversionTheory
lexer_funTheory semantics (7s) OK
Starting work on mloptionTheory
mloptionTheory basis/pure (1s) OK
Starting work on mlmapTheory
mlmapTheory basis/pure (4s) OK
Starting work on mlvectorTheory
mlstringTheory basis/pure (11s) OK
Starting work on mlintTheory
mlvectorTheory basis/pure (5s) OK
Starting work on mlsetTheory
cmlPtreeConversionTheory semantics (16s) OK
Starting work on gramPropsTheory
mlintTheory basis/pure (6s) OK
Starting work on mlprettyprinterTheory
mlsetTheory basis/pure (2s) OK
Starting work on mlratTheory
semanticPrimitivesTheory semantics (22s) OK
Starting work on evaluateTheory
mlratTheory basis/pure (4s) OK
Starting work on typeSystemTheory
mlprettyprinterTheory basis/pure (7s) OK
Starting work on typeDecToPPTheory
evaluateTheory semantics (5s) OK
Starting work on astPropsTheory
typeDecToPPTheory basis/pure (2s) OK
Finished $(CAKEMLDIR)/basis/pure [#theories: 10] (49.780s)
Starting work on namespacePropsTheory
astPropsTheory semantics/proofs (2s) OK
Starting work on cmlPEGTheory
gramPropsTheory semantics/proofs (12s) OK
Starting work on fromSexpTheory
namespacePropsTheory semantics/proofs (4s) OK
Starting work on semanticPrimitivesPropsTheory
typeSystemTheory semantics (11s) OK
Starting work on primTypesTheory
primTypesTheory semantics (1s) OK
Starting work on semanticsTheory
semanticsTheory semantics (4s) OK
Finished $(CAKEMLDIR)/semantics [#theories: 13] (95.660s)
Starting work on typeSoundInvariantsTheory
typeSoundInvariantsTheory semantics/proofs (4s) OK
Starting work on lexer_implTheory
semanticPrimitivesPropsTheory semantics/proofs (24s) OK
Starting work on evaluatePropsTheory
fromSexpTheory compiler/parsing (50s) OK
Starting work on typeSysPropsTheory
lexer_implTheory compiler/parsing (36s) OK
Starting work on cfFFITypeTheory
cmlPEGTheory compiler/parsing (56s) OK
Starting work on cmlParseTheory
cfFFITypeTheory characteristic (2s) OK
Starting work on ml_monadBaseTheory
cmlParseTheory compiler/parsing (7s) OK
Finished $(CAKEMLDIR)/compiler/parsing [#theories: 4] (150.270s)
Starting work on MarshallingTheory
MarshallingTheory basis (2s) OK
Starting work on pattern_commonTheory
typeSysPropsTheory semantics/proofs (16s) OK
Starting work on primSemEnvTheory
ml_monadBaseTheory translator/monadic/monad_base (14s) OK
Starting work on weakeningTheory
pattern_commonTheory compiler/backend/pattern_matching (9s) OK
Finished $(CAKEMLDIR)/translator/monadic/monad_base [#theories: 1] (14.670s)
Starting work on pattern_semanticsTheory
primSemEnvTheory semantics/proofs (6s) OK
Starting work on reg_allocTheory
weakeningTheory semantics/proofs (5s) OK
Starting work on parmoveTheory
evaluatePropsTheory semantics/proofs (62s) OK
Starting work on typeSoundTheory
pattern_semanticsTheory compiler/backend/pattern_matching (12s) OK
Starting work on evaluate_decTheory
evaluate_decTheory translator (5s) OK
Starting work on ml_progTheory
parmoveTheory compiler/backend/reg_alloc (19s) OK
Starting work on pattern_compTheory
ml_progTheory translator (10s) OK
Starting work on ml_translatorTheory
reg_allocTheory compiler/backend/reg_alloc (33s) OK
Starting work on cfHeapsBaseTheory
pattern_compTheory compiler/backend/pattern_matching (13s) OK
Finished $(CAKEMLDIR)/compiler/backend/pattern_matching [#theories: 3] (36.140s)
Starting work on linear_scanTheory
cfHeapsBaseTheory characteristic (13s) OK
Starting work on clFFITheory
clFFITheory basis (4s) OK
Starting work on runtimeFFITheory
runtimeFFITheory basis (4s) OK
Starting work on fsFFITheory
ml_translatorTheory translator (29s) OK
Starting work on ml_optimiseTheory
fsFFITheory basis (8s) OK
Starting work on ml_pmatchTheory
linear_scanTheory compiler/backend/reg_alloc (29s) OK
Starting work on fsFFIPropsTheory
ml_optimiseTheory translator (10s) OK
Finished $(CAKEMLDIR)/compiler/backend/reg_alloc [#theories: 3] (83.270s)
Finished $(HOLDIR)/examples/l3-machine-code/common (0.000s)
Starting work on asmTheory
ml_pmatchTheory translator (9s) OK
Starting work on std_preludeTheory
asmTheory compiler/encoders/asm (9s) OK
Starting work on cfHeapsTheory
std_preludeTheory translator (12s) OK
Finished $(CAKEMLDIR)/translator [#theories: 6] (78.000s)
Starting work on asmSemTheory
cfHeapsTheory characteristic (9s)FAIL<1>
/scratch/cakeml/regression2/cakeml-3026/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-3026/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-3026/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-3026/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-3026/characteristic/cfHeapsBaseLib.sml : Fail "Static Errors"
error in load $(CAKEMLDIR)/characteristic/cfHeapsBaseLib : Fail "Static Errors"
error in load /scratch/cakeml/regression2/cakeml-3026/characteristic/cfHeapsScript : Fail "Static Errors"
Uncaught exception at ./basis/FinalPolyML.sml:492: Fail "Static Errors"
Full log: /scratch/cakeml/regression2/cakeml-3026/characteristic/.hol/logs/cfHeapsTheory
typeSoundTheory semantics/proofs (81s)MKILLED
fsFFIPropsTheory basis (24s)MKILLED
asmSemTheory compiler/encoders/asm (1s)MKILLED