Created
February 5, 2024 00:14
-
-
Save isubasinghe/0a568ff2060443b8b43bf23474c37c55 to your computer and use it in GitHub Desktop.
continue_export_cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theory "tmp" | |
imports | |
"CParser.CTranslation" | |
"AsmRefine.GlobalsSwap" | |
"AsmRefine.SimplExport" | |
begin | |
declare [[populate_globals=true]] | |
typedecl machine_state | |
typedecl cghost_state | |
install_C_file "input.c" | |
[machinety=machine_state, ghostty=cghost_state] | |
setup \\<open>DefineGlobalsList.define_globals_list_i | |
"input.c" @{typ globals}\\<close> | |
locale target | |
= input_global_addresses | |
begin | |
ML \\<open> | |
emit_C_everything_relative @{context} | |
(CalculateState.get_csenv @{theory} "input.c" |> the) | |
"result.txt" "" (* in older version of the function, | |
this last parameter (prefix) wasn't there, | |
and thus the function doesn't end up getting called*) | |
\<close> | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment