-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add argo submodule and build #853
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7d75499
Add argo submodule and build
decf5bf
Merge remote-tracking branch 'origin/master' into at-add-argo
0ed225c
Add `saw-remote-api`
9f63fd8
Get `saw-remote-api` building and testing
9d669e0
Run `saw-remote-api` tests in CI
5e598fa
Fix `random` version freeze to work with `uuid`
2d2566c
Separate `saw-remote-api` tests from `intTests`
a002349
Package `saw-remote-api`
4fb0a78
Revert "Fix `random` version freeze to work with `uuid`"
3ea184c
Use `allow-newer` instead of old `random` version
4b93e54
Add proper PR from `saw-core` dependency
42dce52
Use correct `allow-newer` syntax
0a777d0
Another pass at `cabal.project.local` setup
273e126
Yet again with `cabal.project.local`
2ad0dcd
Bump argo submodule
9ff9532
Bump argo submodule
9cffe35
Bump argo submodule
f78c50a
Bump argo submodule
463cc84
Change how `saw-remote-api` tests find server
d372902
Pass server binary path to saw-remote-api tests
6e5050c
Fix workflow syntax
77ec6d4
Build saw-remote-api initially
3ac67e4
Make executable discovery more robust
8804f0f
Add previously-missing Python file
db062da
Debug messages to help diagnose CI failures
3a8ddef
Try different path syntax
b958ff4
Temporary absolute path to test CI
a90a9e9
Another attempt at GitHub CI working directory
006bc59
Allow saw-remote-api tests to continue on error
4523436
Don't disable `jss` build
3c5a9dd
Merge remote-tracking branch 'origin/master' into at-add-argo
ba0f661
Update submodules
1953136
Use `find` instead of `cabal v2-exec`
a5816e1
Merge remote-tracking branch 'origin/master' into at-add-argo
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Submodule cryptol
updated
29 files
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Revision history for saw-remote-api | ||
|
||
## 0.1.0.0 -- YYYY-mm-dd | ||
|
||
* First version. Released on an unsuspecting world. |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2019, Galois, Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Distribution.Simple | ||
main = defaultMain |
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 |
---|---|---|
@@ -0,0 +1,112 @@ | ||
cabal-version: 2.4 | ||
-- Initial package description 'saw-remote-api.cabal' generated by 'cabal | ||
-- init'. For further documentation, see | ||
-- http://haskell.org/cabal/users-guide/ | ||
|
||
name: saw-remote-api | ||
version: 0.1.0.0 | ||
-- synopsis: | ||
-- description: | ||
-- bug-reports: | ||
license: BSD-3-Clause | ||
license-file: LICENSE | ||
author: Kenny Foner | ||
maintainer: [email protected] | ||
-- copyright: | ||
category: Network | ||
extra-source-files: CHANGELOG.md | ||
data-files: test-scripts/*.py | ||
test-scripts/*.cry | ||
test-scripts/*.bc | ||
test-scripts/*.c | ||
|
||
common warnings | ||
ghc-options: | ||
-Weverything | ||
-Wno-missing-exported-signatures | ||
-Wno-missing-import-lists | ||
-Wno-missed-specialisations | ||
-Wno-all-missed-specialisations | ||
-Wno-unsafe | ||
-Wno-safe | ||
-Wno-missing-local-signatures | ||
-Wno-monomorphism-restriction | ||
-Wno-implicit-prelude | ||
|
||
common deps | ||
build-depends: base >=4.11.1.0 && <4.15, | ||
abcBridge, | ||
aeson, | ||
argo, | ||
bytestring, | ||
containers >= 0.6 && < 0.7, | ||
cryptol >= 2.8.1, | ||
cryptol-saw-core, | ||
crucible, | ||
crucible-jvm, | ||
cryptonite, | ||
cryptonite-conduit, | ||
directory, | ||
jvm-parser, | ||
jvm-verifier, | ||
lens, | ||
llvm-pretty, | ||
llvm-pretty-bc-parser, | ||
mtl, | ||
parameterized-utils, | ||
saw-core, | ||
saw-script, | ||
silently, | ||
text, | ||
vector >= 0.12 && < 0.13, | ||
cryptol-remote-api | ||
default-language: Haskell2010 | ||
|
||
library | ||
import: deps, warnings | ||
hs-source-dirs: src | ||
exposed-modules: SAWServer, | ||
SAWServer.CryptolExpression, | ||
SAWServer.CryptolSetup, | ||
SAWServer.Data.Contract, | ||
SAWServer.Data.JVMType, | ||
SAWServer.Data.LLVMType, | ||
SAWServer.Data.SetupValue, | ||
SAWServer.Exceptions, | ||
SAWServer.JVMCrucibleSetup, | ||
SAWServer.JVMVerify, | ||
SAWServer.LLVMCrucibleSetup, | ||
SAWServer.LLVMVerify, | ||
SAWServer.NoParams, | ||
SAWServer.OK, | ||
SAWServer.ProofScript, | ||
SAWServer.SaveTerm, | ||
SAWServer.SetOption, | ||
SAWServer.Term, | ||
SAWServer.TopLevel, | ||
SAWServer.TrackFile, | ||
SAWServer.VerifyCommon | ||
|
||
executable saw-remote-api | ||
import: deps, warnings | ||
main-is: Main.hs | ||
build-depends: saw-remote-api | ||
-- other-modules: | ||
-- other-extensions: | ||
hs-source-dirs: saw-remote-api | ||
|
||
test-suite test-saw-remote-api | ||
import: deps, warnings | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Test.hs | ||
other-modules: Paths_saw_remote_api | ||
build-depends: argo-python, | ||
cryptol-remote-api, | ||
filepath, | ||
process, | ||
quickcheck-instances, | ||
tasty, | ||
tasty-hunit, | ||
tasty-quickcheck, | ||
tasty-script-exitcode |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
module Main (main) where | ||
|
||
import qualified Data.Aeson as JSON | ||
import Data.Text (Text) | ||
|
||
import Argo | ||
import Argo.DefaultMain | ||
|
||
import SAWServer | ||
import SAWServer.CryptolSetup | ||
import SAWServer.JVMCrucibleSetup | ||
import SAWServer.JVMVerify | ||
import SAWServer.LLVMCrucibleSetup | ||
import SAWServer.LLVMVerify | ||
import SAWServer.ProofScript | ||
import SAWServer.SaveTerm | ||
import SAWServer.SetOption | ||
|
||
|
||
main :: IO () | ||
main = | ||
do theApp <- mkApp initialState sawMethods | ||
defaultMain description theApp | ||
|
||
description :: String | ||
description = | ||
"An RPC server for SAW." | ||
|
||
sawMethods :: [(Text, MethodType, JSON.Value -> Method SAWState JSON.Value)] | ||
sawMethods = | ||
-- Cryptol | ||
[ ("SAW/Cryptol/load module", Command, method cryptolLoadModule) | ||
, ("SAW/Cryptol/load file", Command, method cryptolLoadFile) | ||
, ("SAW/Cryptol/save term", Command, method saveTerm) | ||
-- JVM | ||
, ("SAW/JVM/load class", Command, method jvmLoadClass) | ||
, ("SAW/JVM/verify", Command, method jvmVerify) | ||
, ("SAW/JVM/assume", Command, method jvmAssume) | ||
-- LLVM | ||
, ("SAW/LLVM/load module", Command, method llvmLoadModule) | ||
, ("SAW/LLVM/verify", Command, method llvmVerify) | ||
, ("SAW/LLVM/verify x86", Command, method llvmVerifyX86) | ||
, ("SAW/LLVM/assume", Command, method llvmAssume) | ||
-- General | ||
, ("SAW/make simpset", Command, method makeSimpset) | ||
, ("SAW/prove", Command, method prove) | ||
, ("SAW/set option", Command, method setOption) | ||
] |
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a plan of sorts to eventually not need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope so? It's really out of our control, and depends on Hackage authors not putting unnecessary upper bounds on the versions of their dependencies.