-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This contains a variety of minor changes needed to make `saw` and its supporting libraries compile with GHC 9.2: * One place in `heapster-saw` matches on a GADT using a `let` binding, which no longer typechecks in GHC 9.2. While somewhat mysterious, using `let` bindings to match on GADTs is fragile anyway, so I opted to simply replace this with a monadic `do` match, which does not exhibit the same fragility. * GHC now includes `-Wincomplete-uni-patterns` in `-Wall` as of 9.2, so much of this patch is dedicated to silencing these sorts of warnings, usually by adding explicit fall-through cases for partial pattern matches. * GHC now inclues `-Wnoncanonical-monad-instances` in `-Wall` as of 9.2, so I had to refactor some `Applicative`/`Monad` instances to fix these warnings. * GHC 9.2 now defines `readBin` in `Numeric`, which clashes with a function of the same name in `SAWScript.Lexer`. Using explicit imports avoids this. * GHC's pattern-match coverage checker is smarter in 9.2 (see [here](https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.2?version_id=63085dd8a5b56370571bda428848e7098765f7f8#improved-pattern-match-coverage-checker)), so I had to use `EmptyCase` to silence some of the new `-Wincomplete-patterns` warnings that were uncovered in `heapster-saw`. * The `language-sally` submodule dependency has been bumped to bring in changes from GaloisInc/language-sally#11. This requires bumping the `what4` submodule as a knock-on consequence. This is still a draft because: * [ ] There are various `-Wincomplete-uni-patterns` warnings in `saw` and `heapster-saw` that I have not yet had time to address. (See also a `TODO RGS` in `exe:saw` that should be fixed.) Also this one in `saw-remote-api`: ``` src/SAWServer/Yosys.hs:113:11: warning: [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type ‘Maybe Verifier.SAW.TypedTerm.TypedTerm’ not matched: Nothing | 113 | let Just modTerm = Map.lookup (yosysVerifyModule params) imp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` * [ ] Need to fix this warning (maybe?): ``` src/Verifier/SAW/Heapster/Permissions.hs:8387:47: warning: [-Wstar-is-type] Using ‘*’ (or its Unicode variant) to mean ‘Data.Kind.Type’ relies on the StarIsType extension, which will become deprecated in the future. Suggested fix: use ‘Type’ from ‘Data.Kind’ instead. | 8387 | newtype SeenDetVarsClauses :: CrucibleType -> * where | ^ ``` [ci skip]
- Loading branch information
1 parent
200d0e5
commit 641214b
Showing
25 changed files
with
145 additions
and
75 deletions.
There are no files selected for viewing
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
Submodule language-sally
updated
4 files
+1 −1 | dependencies/what4 | |
+2 −2 | language-sally.cabal | |
+5 −0 | src/Language/Sally/Writer.hs | |
+11 −7 | test/Main.hs |
Submodule what4
updated
17 files
+2 −4 | .github/workflows/gen_matrix.pl | |
+5 −5 | README.md | |
+2 −0 | what4/CHANGES.md | |
+1 −1 | what4/README.md | |
+32 −4 | what4/src/What4/Interface.hs | |
+6 −0 | what4/src/What4/ProblemFeatures.hs | |
+47 −0 | what4/src/What4/Protocol/Online.hs | |
+6 −0 | what4/src/What4/Protocol/SExp.hs | |
+54 −0 | what4/src/What4/Protocol/SMTLib2.hs | |
+1 −1 | what4/src/What4/Protocol/SMTLib2/Parse.hs | |
+12 −2 | what4/src/What4/Protocol/SMTLib2/Syntax.hs | |
+20 −2 | what4/src/What4/Protocol/SMTWriter.hs | |
+6 −0 | what4/src/What4/Solver/CVC5.hs | |
+11 −0 | what4/src/What4/Solver/Yices.hs | |
+155 −0 | what4/test/Abduct.hs | |
+58 −0 | what4/test/ExprsTest.hs | |
+13 −0 | what4/what4.cabal |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ library | |
happy >= 1.9.6 | ||
|
||
build-depends: | ||
base == 4.*, | ||
base >= 4.8, | ||
array, | ||
bytestring, | ||
containers, | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.