c-parser: update to Isabelle2020
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
This commit is contained in:
parent
f15fbf1e4b
commit
18428256f0
|
@ -53,9 +53,9 @@ CParser: c-parser-deps
|
|||
# then build it using Isabelle.
|
||||
#
|
||||
cparser_test: c-parser-deps testfiles/$(L4V_ARCH)/ROOT .FORCE
|
||||
$(ISABELLE) build -d $(L4V_ROOT_DIR) -d testfiles/$(L4V_ARCH) -b -v CParserTest
|
||||
$(ISABELLE) build -d $(L4V_ROOT_DIR) -d testfiles/$(L4V_ARCH) -v CParserTest
|
||||
testfiles/$(L4V_ARCH)/ROOT: testfiles testfiles/*.c testfiles/*.thy ../../misc/scripts/gen_isabelle_root.py
|
||||
python3 ../../misc/scripts/gen_isabelle_root.py -i testfiles -i testfiles/$(L4V_ARCH) -o testfiles/$(L4V_ARCH)/ROOT -s CParserTest -b CParser
|
||||
python3 ../../misc/scripts/gen_isabelle_root.py -i testfiles -i testfiles/$(L4V_ARCH) -o testfiles/$(L4V_ARCH)/ROOT -s CParserTest -b CParser --dir ".." --dir "imports"
|
||||
all_tests_$(L4V_ARCH).thy: testfiles testfiles/*.c ../../misc/scripts/gen_isabelle_root.py
|
||||
python3 ../../misc/scripts/gen_isabelle_root.py -T -o $@ -b CParser -i testfiles -i testfiles/$(L4V_ARCH)
|
||||
|
||||
|
|
|
@ -17,5 +17,8 @@ session CParser = "Simpl-VCG" +
|
|||
"HOL-Library"
|
||||
"HOL-Word"
|
||||
"Lib"
|
||||
directories
|
||||
"umm_heap"
|
||||
"umm_heap/$L4V_ARCH"
|
||||
theories
|
||||
"CTranslation"
|
|
@ -80,6 +80,8 @@ infix mem
|
|||
structure Library =
|
||||
struct
|
||||
|
||||
type 'a ord = 'a * 'a -> order
|
||||
|
||||
val int_ord = Int.compare
|
||||
val fast_string_ord = String.compare
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*)
|
||||
|
||||
theory attributes
|
||||
imports "../CTranslation"
|
||||
imports "CParser.CTranslation"
|
||||
begin
|
||||
|
||||
install_C_file "attributes.c"
|
||||
|
|
|
@ -854,12 +854,8 @@ proof -
|
|||
apply(subgoal_tac "k = 0")
|
||||
prefer 2
|
||||
apply(rule ccontr, simp)
|
||||
apply(drule order_le_imp_less_or_eq[where x=t])
|
||||
apply clarsimp
|
||||
apply(simp add: typ_slice_0_prefix)
|
||||
apply simp
|
||||
apply(drule order_le_imp_less_or_eq[where x=t])
|
||||
apply clarsimp
|
||||
(* given by the fd_tag_consistent condition *)
|
||||
apply(drule typ_slice_True_prefix)
|
||||
apply(clarsimp simp: field_of_def)
|
||||
|
|
Loading…
Reference in New Issue