Skip to content

Commit

Permalink
Support up to LLVM 14
Browse files Browse the repository at this point in the history
This adds support for LLVM versions up to 14 by:

* Bumping the `llvm-pretty` submodule to bring in the changes from
  GaloisInc/llvm-pretty#109.
* Bumping the `llvm-pretty-bc-parser` submodule to bring in the changes from
  GaloisInc/llvm-pretty-bc-parser#219.
* Bumping the `crucible` submodule to bring in the changes from
  GaloisInc/crucible#1083.
* Updating the surrounding documentation accordingly.
  • Loading branch information
RyanGlScott committed Apr 20, 2023
1 parent fad48d8 commit 5997bb2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
on Windows at this time due to a downstream issue with CVC5 1.0.4 and
earlier.)

* Support LLVM versions up to 14.

# Version 0.9

## New Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ SAW can analyze LLVM programs (usually derived from C, but potentially
for other languages). The only tool strictly required for this is a
compiler that can generate LLVM bitcode, such as `clang`. However,
having the full LLVM tool suite available can be useful. We have tested
SAW with LLVM and `clang` versions from 3.5 to 12.0, as well as the
SAW with LLVM and `clang` versions from 3.5 to 14.0, as well as the
version of `clang` bundled with Apple Xcode. We welcome bug reports on
any failure to parse bitcode from LLVM versions in that range.

Expand Down
2 changes: 1 addition & 1 deletion deps/crucible
Submodule crucible updated 94 files
+0 −1 .github/cabal.project.crux-llvm
+0 −1 .github/cabal.project.crux-mir
+11 −5 .github/workflows/crucible-go-build.yml
+11 −5 .github/workflows/crucible-jvm-build.yml
+11 −5 .github/workflows/crucible-wasm-build.yml
+18 −8 .github/workflows/crux-llvm-build.yml
+8 −3 .github/workflows/crux-mir-build.yml
+0 −3 .gitmodules
+38 −34 cabal.GHC-8.10.7.config
+38 −34 cabal.GHC-8.8.4.config
+0 −295 cabal.GHC-9.2.2.config
+0 −294 cabal.GHC-9.2.3.config
+42 −38 cabal.GHC-9.2.7.config
+58 −54 cabal.GHC-9.4.4.config
+0 −1 cabal.project
+0 −13 crucible-concurrency/crucible-concurrency.cabal
+1 −0 crucible-concurrency/src/Cruces/ExploreCrux.hs
+0 −1 crucible-go/crucible-go.cabal
+0 −2 crucible-jvm/crucible-jvm.cabal
+2 −10 crucible-llvm/crucible-llvm.cabal
+7 −12 crucible-llvm/src/Lang/Crucible/LLVM/Translation/Instruction.hs
+2 −0 crucible-llvm/src/Lang/Crucible/LLVM/TypeContext.hs
+1 −0 crucible-llvm/test/TestMemory.hs
+1 −3 crucible-mir/crucible-mir.cabal
+1 −1 crucible-mir/src/Mir/Generator.hs
+28 −14 crucible-mir/src/Mir/Trans.hs
+7 −3 crucible-mir/src/Mir/TransCustom.hs
+3 −4 crucible-symio/crucible-symio.cabal
+0 −3 crucible-symio/src/Data/Parameterized/IntervalsMap.hs
+0 −3 crucible-symio/src/What4/CachedArray.hs
+2 −17 crucible-syntax/crucible-syntax.cabal
+1 −0 crucible-syntax/src/Lang/Crucible/Syntax/Prog.hs
+2 −17 crucible-wasm/crucible-wasm.cabal
+1 −1 crucible-wasm/src/Lang/Crucible/Wasm.hs
+1 −1 crucible-wasm/src/Lang/Crucible/Wasm/Instantiate.hs
+34 −6 crucible-wasm/src/Lang/Crucible/Wasm/Main.hs
+74 −23 crucible-wasm/src/Lang/Crucible/Wasm/Translate.hs
+1 −0 crucible-wasm/test-data/.gitignore
+0 −0 crucible-wasm/test-data/basic-binary.good
+ crucible-wasm/test-data/basic-binary.wasm
+0 −0 crucible-wasm/test-data/basic-script.good
+6 −0 crucible-wasm/test-data/basic-script.wast
+0 −2 crucible-wasm/test-data/basic.config
+0 −0 crucible-wasm/test-data/basic.z3.result.out
+0 −0 crucible-wasm/test-data/multi-value.good
+39 −0 crucible-wasm/test-data/multi-value.wast
+0 −0 crucible-wasm/test-data/sign-extend.good
+57 −0 crucible-wasm/test-data/sign-extend.wast
+13 −14 crucible-wasm/test/Test.hs
+1 −12 crucible/crucible.cabal
+33 −3 crux-llvm/README.md
+3 −11 crux-llvm/crux-llvm.cabal
+0 −0 crux-llvm/test-data/golden/T972-fail.c
+4 −0 crux-llvm/test-data/golden/T972-fail.pre-clang12.z3.good
+1 −1 crux-llvm/test-data/golden/T972-fail.pre-clang14.z3.good
+4 −0 crux-llvm/test-data/golden/T972-fail.z3.good
+3 −3 crux-llvm/test-data/golden/abd-test-file-32.cvc5.good
+9 −0 crux-llvm/test-data/golden/abd-test-file-32.pre-clang13.cvc5.good
+4 −0 crux-llvm/test-data/golden/golden/T847-fail2.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/T847-fail2.z3.good
+4 −0 crux-llvm/test-data/golden/golden/T847-succeed.pre-clang12.z3.good
+1 −0 crux-llvm/test-data/golden/golden/T847-succeed.z3.good
+4 −0 crux-llvm/test-data/golden/golden/T974.pre-clang12.z3.good
+1 −0 crux-llvm/test-data/golden/golden/T974.z3.good
+4 −0 crux-llvm/test-data/golden/golden/freeze.pre-clang12.z3.good
+1 −0 crux-llvm/test-data/golden/golden/freeze.z3.good
+4 −0 crux-llvm/test-data/golden/golden/invoke-test.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/invoke-test.z3.good
+4 −0 crux-llvm/test-data/golden/golden/ubsantrap.pre-clang12.z3.good
+0 −0 crux-llvm/test-data/golden/golden/ubsantrap.z3.good
+96 −23 crux-llvm/test/Test.hs
+1 −1 crux-mir/README.md
+2 −35 crux-mir/crux-mir.cabal
+0 −6 crux-mir/test/Test.hs
+1 −9 crux/crux.cabal
+10 −2 crux/src/Crux.hs
+1 −0 crux/src/Crux/Goal.hs
+0 −1 dependencies/aig
+1 −1 dependencies/haskell-wasm
+1 −1 dependencies/llvm-pretty
+1 −1 dependencies/llvm-pretty-bc-parser
+1 −1 dependencies/what4
+1 −1 uc-crux-llvm/README.md
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/Overrides/Skip.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/Overrides/Spec.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/Overrides/Unsound.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/Postcondition/Apply.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/Run/Simulate.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/Specs/Type.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/View/Postcond.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/View/Precond.hs
+1 −0 uc-crux-llvm/src/UCCrux/LLVM/View/Specs.hs
+8 −1 uc-crux-llvm/test/programs/read_global_neg_offset_strlen.c
+3 −11 uc-crux-llvm/uc-crux-llvm.cabal
2 changes: 1 addition & 1 deletion deps/llvm-pretty
2 changes: 1 addition & 1 deletion deps/llvm-pretty-bc-parser
2 changes: 1 addition & 1 deletion doc/manual/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ The resulting `LLVMModule` can be passed into the various functions
described below to perform analysis of specific LLVM functions.

The LLVM bitcode parser should generally work with LLVM versions between
3.5 and 9.0, though it may be incomplete for some versions. Debug
3.5 and 14.0, though it may be incomplete for some versions. Debug
metadata has changed somewhat throughout that version range, so is the
most likely case of incompleteness. We aim to support every version
after 3.5, however, so report any parsing failures as [on
Expand Down

0 comments on commit 5997bb2

Please sign in to comment.