-
Notifications
You must be signed in to change notification settings - Fork 180
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
Start to move PVerifier so that its ready to be merged into P3.0 #805
Merged
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0b6c4b5
Prototype Support For Verification (#762)
FedericoAureliano f28f1ce
add install instructions for amazon linux
FedericoAureliano 45e4b29
[Feature] `prove * using *` command for incremental proof constructio…
AD1024 8d40993
add support for foreign functions with contracts and update one tutor…
FedericoAureliano 21ea906
allow duplicate invariant names in different groups using group name …
FedericoAureliano 4f68d8c
add caching using liteDB and md5 hash of uclid files
FedericoAureliano 97b0570
fix bug in caching by simplifying process checklist
FedericoAureliano 479ed18
fix bug in global procedures: always prepend self reference
FedericoAureliano d62226d
add default that captures P's proof obligations
FedericoAureliano 92a01ed
fix bug in file names
FedericoAureliano 45f5269
cleanup example for tutorial
FedericoAureliano be3227b
add 2pc verification tutorial
FedericoAureliano 80eed8b
pverifier backend and reorganize verification tutorials
FedericoAureliano c12d6a7
init keyword -> init-condition keyword
FedericoAureliano c26fc9b
add error message when trying to use pverifier syntax for other backends
FedericoAureliano 446859b
move install instructions to docs and update link in 2pc verification…
FedericoAureliano d01c547
rename uclid5 backend to pverifier
FedericoAureliano 0a92d4c
remove unnecessary imports
FedericoAureliano 07f2a06
add iff symbol
FedericoAureliano 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Install Instructions for Amazon Linux | ||
|
||
## Get Java 11 | ||
```sh | ||
sudo rpm --import https://yum.corretto.aws/corretto.key | ||
sudo curl -L-o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo | ||
sudo yum install java-11-amazon-corretto-devel | ||
``` | ||
|
||
## Get SBT | ||
```sh | ||
sudo rm -f /etc/yum.repos.d/bintray-rpm.repo || true | ||
curl -L https://www.scala-sbt.org/sbt-rpm.repo > sbt-rpm.repo | ||
sudo mv sbt-rpm.repo /etc/yum.repos.d/ | ||
sudo yum install sbt | ||
``` | ||
|
||
## Get Z3 | ||
```sh | ||
cd ~ | ||
git clone https://github.com/Z3Prover/z3.git | ||
cd z3 | ||
python scripts/mk_make.py --java | ||
cd build; make | ||
``` | ||
Then add `export PATH=$PATH:$HOME/z3/build/` and `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/z3/build/` to your .zshrc and run | ||
`source ~/.zshrc`. | ||
|
||
## Get UCLID5 | ||
```sh | ||
cd ~ | ||
git clone https://github.com/uclid-org/uclid.git | ||
cd uclid | ||
sbt update clean compile "set fork:=true" test # should fail some tests that use cvc5 and delphi | ||
sbt universal:packageBin | ||
unzip target/universal/uclid-0.9.5.zip | ||
``` | ||
Then add `export PATH=$PATH:$HOME/uclid/uclid-0.9.5/bin/` to your .zshrc and run `source ~/.zshrc`. | ||
|
||
## Get PVerifier | ||
```sh | ||
cd ~ | ||
git clone https://github.com/FedericoAureliano/P.git | ||
cd P | ||
# follow regular P install instructions | ||
root=$(pwd) | ||
cd $root/Bld | ||
./build.sh | ||
dotnet tool uninstall --global P | ||
cd $root/Src/PCompiler/PCommandLine | ||
dotnet pack PCommandLine.csproj --configuration Release --output ./publish -p:PackAsTool=true -p:ToolCommandName=P -p:Version=2.1.3 | ||
dotnet tool install P --global --add-source ./publish | ||
``` |
388 changes: 388 additions & 0 deletions
388
Docs/docs/tutorial/advanced/twophasecommitverification.md
Large diffs are not rendered by default.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
Src/PCompiler/CompilerCore/Backend/Uclid5/CompilationContext.cs
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,11 @@ | ||
namespace Plang.Compiler.Backend.Uclid5; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we please rename the entire folder |
||
|
||
internal class CompilationContext : CompilationContextBase | ||
{ | ||
public CompilationContext(ICompilerConfiguration job) : base(job) | ||
{ | ||
FileName = $"{ProjectName}.ucl"; | ||
} | ||
|
||
public string FileName { get; set; } | ||
} |
Oops, something went wrong.
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.
Lets rename this to PVerifier instead of
UCLID5