da5fd4508c
Right now we have the `goto-cc` tool to create goto binaries from C files and link goto binaries together. This adds a similar type of "linker" tool for the symtab language. I had considered extending 'goto-cc' to handle symtab files as well, however goto-cc (quite reasonably) makes some C-specific assumptions about its input files, and I'd figured rather than working around that it'd be easier to just have a simple command line tool to invoke `goto_convert` and `link_goto_model` (which, in the end, is all we want to do for json_symtabs). |
||
---|---|---|
.. | ||
README.md | ||
entry_point.adb | ||
entry_point.json_symtab | ||
library.adb | ||
library.ads | ||
library.json_symtab | ||
test.desc | ||
user.adb | ||
user.ads | ||
user.json_symtab |
README.md
The *.json_symtab
in this directory was created from the Ada source
files *.adb
using the
gnat2goto compiler.
gnat2goto user.adb # produces user.json_symtab
# produces library.json_symtab
# and user.json_symtab
# the --no-cprover-start option is to prevent
# emitting a __CPROVER_start function for these modules,
# as there can only be one of those in a program
gnat2goto --no-cprover-start library.adb
gnat2goto --no-cprover-start user.adb
Note that as of now, this requires the patch found in this PR