c-parser: session qualified imports for parser tests

This commit is contained in:
Gerwin Klein 2018-06-12 18:30:47 +02:00
parent 5ae795c586
commit f2a8c3e07e
139 changed files with 139 additions and 139 deletions

View File

@ -10,7 +10,7 @@
theory asm_stmt theory asm_stmt
imports "../../CTranslation" imports "CParser.CTranslation"
begin begin

View File

@ -9,7 +9,7 @@
*) *)
theory MachineWords theory MachineWords
imports "../../../CTranslation" imports "CParser.CTranslation"
begin begin
type_synonym machine_word_len = "32" type_synonym machine_word_len = "32"

View File

@ -10,7 +10,7 @@
theory asm_stmt theory asm_stmt
imports "../../CTranslation" imports "CParser.CTranslation"
begin begin

View File

@ -9,7 +9,7 @@
*) *)
theory MachineWords theory MachineWords
imports "../../../CTranslation" imports "CParser.CTranslation"
begin begin
type_synonym machine_word_len = "32" type_synonym machine_word_len = "32"

View File

@ -9,7 +9,7 @@
*) *)
theory MachineWords theory MachineWords
imports "../../../CTranslation" imports "CParser.CTranslation"
begin begin
type_synonym machine_word_len = "64" type_synonym machine_word_len = "64"

View File

@ -9,7 +9,7 @@
*) *)
theory analsignedoverflow theory analsignedoverflow
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[anal_integer_conversion=true]] declare [[anal_integer_conversion=true]]

View File

@ -9,7 +9,7 @@
*) *)
theory array_of_ptr theory array_of_ptr
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "array_of_ptr.c" install_C_file "array_of_ptr.c"

View File

@ -9,7 +9,7 @@
*) *)
theory arrays theory arrays
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "arrays.c" install_C_file "arrays.c"

View File

@ -9,7 +9,7 @@
*) *)
theory basic_char theory basic_char
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "basic_char.c" install_C_file "basic_char.c"

View File

@ -9,7 +9,7 @@
*) *)
theory bigstruct theory bigstruct
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "bigstruct.c" install_C_file "bigstruct.c"

View File

@ -9,7 +9,7 @@
*) *)
theory breakcontinue theory breakcontinue
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare sep_conj_ac [simp add] declare sep_conj_ac [simp add]

View File

@ -9,7 +9,7 @@
*) *)
theory bug20060707 theory bug20060707
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "bug20060707.c" install_C_file "bug20060707.c"

View File

@ -9,7 +9,7 @@
*) *)
theory bug_mvt20110302 theory bug_mvt20110302
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "bug_mvt20110302.c" install_C_file "bug_mvt20110302.c"

View File

@ -9,7 +9,7 @@
*) *)
theory bugzilla180 theory bugzilla180
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "bugzilla180.c" install_C_file "bugzilla180.c"

View File

@ -9,7 +9,7 @@
*) *)
theory bugzilla181 theory bugzilla181
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "bugzilla181.c" install_C_file "bugzilla181.c"

View File

@ -9,7 +9,7 @@
*) *)
theory bugzilla182 theory bugzilla182
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "bugzilla182.c" install_C_file "bugzilla182.c"

View File

@ -9,7 +9,7 @@
*) *)
theory builtins theory builtins
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "builtins.c" install_C_file "builtins.c"

View File

@ -9,7 +9,7 @@
*) *)
theory charlit theory charlit
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "charlit.c" install_C_file "charlit.c"

View File

@ -9,7 +9,7 @@
*) *)
theory codetests theory codetests
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
ML {* Context.>> (Context.map_theory ( ML {* Context.>> (Context.map_theory (

View File

@ -9,7 +9,7 @@
*) *)
theory dc_20081211 theory dc_20081211
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "dc_20081211.c" install_C_file "dc_20081211.c"

View File

@ -9,7 +9,7 @@
*) *)
theory dc_embbug theory dc_embbug
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "dc_embbug.c" install_C_file "dc_embbug.c"

View File

@ -9,7 +9,7 @@
*) *)
theory decl_only theory decl_only
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "decl_only.c" install_C_file "decl_only.c"

View File

@ -9,7 +9,7 @@
*) *)
theory dont_translate theory dont_translate
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "dont_translate.c" install_C_file "dont_translate.c"

View File

@ -9,7 +9,7 @@
*) *)
theory dupthms theory dupthms
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "dupthms.c" install_C_file "dupthms.c"

View File

@ -9,7 +9,7 @@
*) *)
theory emptystmt theory emptystmt
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "emptystmt.c" install_C_file "emptystmt.c"

View File

@ -9,7 +9,7 @@
*) *)
theory addrlocal theory addrlocal
imports "../../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "addrlocal.c"; install_C_file "addrlocal.c";

View File

@ -9,7 +9,7 @@
*) *)
theory extern_builtin theory extern_builtin
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[allow_underscore_idents=true]] declare [[allow_underscore_idents=true]]

View File

@ -9,7 +9,7 @@
*) *)
theory extern_dups theory extern_dups
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "extern_dups.c" install_C_file "extern_dups.c"

View File

@ -9,7 +9,7 @@
*) *)
theory factorial theory factorial
imports "../CTranslation" "$L4V_ARCH/imports/MachineWords" imports "CParser.CTranslation" "$L4V_ARCH/imports/MachineWords"
begin begin
declare hrs_simps [simp add] declare hrs_simps [simp add]

View File

@ -9,7 +9,7 @@
*) *)
theory fncall theory fncall
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare sep_conj_ac [simp add] declare sep_conj_ac [simp add]

View File

@ -9,7 +9,7 @@
*) *)
theory fnptr theory fnptr
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
ML {* ML {*

View File

@ -9,7 +9,7 @@
*) *)
theory gcc_attribs theory gcc_attribs
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "gcc_attribs.c" install_C_file "gcc_attribs.c"

View File

@ -9,7 +9,7 @@
*) *)
theory ghoststate1 theory ghoststate1
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "simple_annotated_fn.c" [ghostty="nat \<Rightarrow> nat"] install_C_file "simple_annotated_fn.c" [ghostty="nat \<Rightarrow> nat"]

View File

@ -9,7 +9,7 @@
*) *)
theory ghoststate2 theory ghoststate2
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
(* (*

View File

@ -9,7 +9,7 @@
*) *)
theory globals_fn theory globals_fn
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "globals_fn.c" install_C_file "globals_fn.c"

View File

@ -10,7 +10,7 @@
theory globals_in_record theory globals_in_record
imports imports
"../CTranslation" "CParser.CTranslation"
begin begin
install_C_file "globals_in_record.c" install_C_file "globals_in_record.c"

View File

@ -9,7 +9,7 @@
*) *)
theory globinits theory globinits
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "globinits.c" install_C_file "globinits.c"

View File

@ -8,7 +8,7 @@
* @TAG(NICTA_BSD) * @TAG(NICTA_BSD)
*) *)
theory globsall_addressed theory globsall_addressed
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[globals_all_addressed=true]] declare [[globals_all_addressed=true]]

View File

@ -9,7 +9,7 @@
*) *)
theory guard_while theory guard_while
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "guard_while.c" install_C_file "guard_while.c"

View File

@ -9,7 +9,7 @@
*) *)
theory hexliteral theory hexliteral
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "hexliteral.c" install_C_file "hexliteral.c"

View File

@ -9,7 +9,7 @@
*) *)
theory test_locality theory test_locality
imports "../../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "test_include2.h" install_C_file "test_include2.h"

View File

@ -9,7 +9,7 @@
*) *)
theory initialised_decls theory initialised_decls
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "initialised_decls.c" install_C_file "initialised_decls.c"

View File

@ -9,7 +9,7 @@
*) *)
theory inner_fncalls theory inner_fncalls
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "inner_fncalls.c" install_C_file "inner_fncalls.c"

View File

@ -9,7 +9,7 @@
*) *)
theory int_promotion theory int_promotion
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "int_promotion.c" install_C_file "int_promotion.c"

View File

@ -9,7 +9,7 @@
*) *)
theory isa2014 theory isa2014
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "isa2014.c" install_C_file "isa2014.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver039 theory jiraver039
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver039.c" install_C_file "jiraver039.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver092 theory jiraver092
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver092.c" install_C_file "jiraver092.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver105 theory jiraver105
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver105.c" install_C_file "jiraver105.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver110 theory jiraver110
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver110.c" install_C_file "jiraver110.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver150 theory jiraver150
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[use_anonymous_local_variables=true]] declare [[use_anonymous_local_variables=true]]

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver224 theory jiraver224
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver224.c" install_C_file "jiraver224.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver253 theory jiraver253
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver253.c" install_C_file "jiraver253.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver254 theory jiraver254
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver254.c" install_C_file "jiraver254.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver307 theory jiraver307
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jira ver307.c" install_C_file "jira ver307.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver310 theory jiraver310
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver310.c" install_C_file "jiraver310.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver313 theory jiraver313
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
ML {* Feedback.verbosity_level := 6 *} ML {* Feedback.verbosity_level := 6 *}

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver315 theory jiraver315
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver315.c" install_C_file "jiraver315.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver332 theory jiraver332
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver332.c" install_C_file "jiraver332.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver336 theory jiraver336
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver336.c" install_C_file "jiraver336.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver337 theory jiraver337
imports "../CTranslation" imports "CParser.CTranslation"
begin begin

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver344 theory jiraver344
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[allow_underscore_idents=true]] declare [[allow_underscore_idents=true]]

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver345 theory jiraver345
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver345.c" install_C_file "jiraver345.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver384 theory jiraver384
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver384.c" install_C_file "jiraver384.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver400 theory jiraver400
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver400.c" [machinety=bool,roots=[h,indep1]] install_C_file "jiraver400.c" [machinety=bool,roots=[h,indep1]]

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver422 theory jiraver422
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver422.c" install_C_file "jiraver422.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver426 theory jiraver426
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver426.c" install_C_file "jiraver426.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver429 theory jiraver429
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver429.c" install_C_file "jiraver429.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver432 theory jiraver432
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver432.c" install_C_file "jiraver432.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver434 theory jiraver434
imports "../CTranslation" imports "CParser.CTranslation"
begin begin

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver439 theory jiraver439
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver439.c" install_C_file "jiraver439.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver440 theory jiraver440
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver440.c" install_C_file "jiraver440.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver443 theory jiraver443
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[allow_underscore_idents=true]] declare [[allow_underscore_idents=true]]

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver443a theory jiraver443a
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver443a.c" install_C_file "jiraver443a.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver456 theory jiraver456
imports "../CTranslation" imports "CParser.CTranslation"
begin begin

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver464 theory jiraver464
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
(* declare [[calculate_modifies_proofs=false]] *) (* declare [[calculate_modifies_proofs=false]] *)

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver473 theory jiraver473
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
declare [[munge_info_fname="jiraver473.minfo"]] declare [[munge_info_fname="jiraver473.minfo"]]

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver54 theory jiraver54
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver54.c" install_C_file "jiraver54.c"

View File

@ -11,7 +11,7 @@
theory jiraver550 theory jiraver550
imports imports
"../../../lib/CTranslationNICTA" "../../../lCParser.CTranslationNICTA"
begin begin
install_C_file "jiraver550.c" install_C_file "jiraver550.c"

View File

@ -9,7 +9,7 @@
*) *)
theory jiraver808 theory jiraver808
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "jiraver808.c" install_C_file "jiraver808.c"

View File

@ -10,7 +10,7 @@
theory jiraver881 theory jiraver881
imports "../CTranslation" imports "CParser.CTranslation"
begin begin

View File

@ -9,7 +9,7 @@
*) *)
theory kmalloc theory kmalloc
imports "../CTranslation" "$L4V_ARCH/imports/MachineWords" imports "CParser.CTranslation" "$L4V_ARCH/imports/MachineWords"
begin begin
(* no proof here, just testing the parser *) (* no proof here, just testing the parser *)

View File

@ -9,7 +9,7 @@
*) *)
theory list_reverse theory list_reverse
imports "../CTranslation" "$L4V_ARCH/imports/MachineWords" imports "CParser.CTranslation" "$L4V_ARCH/imports/MachineWords"
begin begin
declare hrs_simps [simp add] declare hrs_simps [simp add]

View File

@ -9,7 +9,7 @@
*) *)
theory list_reverse_norm theory list_reverse_norm
imports "../CTranslation" "$L4V_ARCH/imports/MachineWords" imports "CParser.CTranslation" "$L4V_ARCH/imports/MachineWords"
begin begin
declare sep_conj_ac [simp add] declare sep_conj_ac [simp add]

View File

@ -9,7 +9,7 @@
*) *)
theory locvarfncall theory locvarfncall
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "locvarfncall.c" install_C_file "locvarfncall.c"

View File

@ -9,7 +9,7 @@
*) *)
theory longlong theory longlong
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "longlong.c" install_C_file "longlong.c"

View File

@ -10,7 +10,7 @@
theory many_local_vars theory many_local_vars
imports imports
"../CTranslation" "CParser.CTranslation"
begin begin
(* Avoid memory explosion caused by the C parser generating a huge record (* Avoid memory explosion caused by the C parser generating a huge record

View File

@ -9,7 +9,7 @@
*) *)
theory modifies_assumptions theory modifies_assumptions
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "modifies_assumptions.c" install_C_file "modifies_assumptions.c"

View File

@ -9,7 +9,7 @@
*) *)
theory modifies_speed theory modifies_speed
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
text {* Speed test for modifies proofs. *} text {* Speed test for modifies proofs. *}

View File

@ -9,7 +9,7 @@
*) *)
theory multi_deref theory multi_deref
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "multi_deref.c" install_C_file "multi_deref.c"

View File

@ -9,7 +9,7 @@
*) *)
theory multidim_arrays theory multidim_arrays
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "multidim_arrays.c" install_C_file "multidim_arrays.c"

View File

@ -9,7 +9,7 @@
*) *)
theory mutrec_modifies theory mutrec_modifies
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "mutrec_modifies.c" install_C_file "mutrec_modifies.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_addr theory parse_addr
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_addr.c" install_C_file "parse_addr.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_c99block theory parse_c99block
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_c99block.c" install_C_file "parse_c99block.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_complit theory parse_complit
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_complit.c" install_C_file "parse_complit.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_dowhile theory parse_dowhile
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_dowhile.c" install_C_file "parse_dowhile.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_enum theory parse_enum
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_enum.c" install_C_file "parse_enum.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_fncall theory parse_fncall
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_fncall.c" install_C_file "parse_fncall.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_forloop theory parse_forloop
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_forloop.c" install_C_file "parse_forloop.c"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_include theory parse_include
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
new_C_include_dir "includes" new_C_include_dir "includes"

View File

@ -9,7 +9,7 @@
*) *)
theory parse_protos theory parse_protos
imports "../CTranslation" imports "CParser.CTranslation"
begin begin
install_C_file "parse_protos.c" install_C_file "parse_protos.c"

Some files were not shown because too many files have changed in this diff Show More