-
Notifications
You must be signed in to change notification settings - Fork 14
Add BTOR2 Frontend #74
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
22d0d09
Adding btor2 parser with antlr, not complete
cgjohannsen b5fa12e
Adding support for btor2 parser using btor2tools
cgjohannsen 42afda7
Adding cmake file and updating README to explain btor2 frontend
cgjohannsen 497aa16
Fixing include for btor2parser
cgjohannsen 5ee067a
Fixing cmake settings
cgjohannsen 368b403
Adding btor2 parsing tests and fixing bug
cgjohannsen 4d06855
Disabling array types in btor2 for now
cgjohannsen f229df7
Merge branch 'master' into btor2
ahmed-irfan 16d755c
Merge branch 'master' into btor2
ahmed-irfan 4dd22ae
Correctly implementing invariants in transition systems
cgjohannsen 12ac239
Implementing way to add invar via context
cgjohannsen e35f8d6
Merge branch 'master' into btor2
ahmed-irfan 5a850c6
Fixing issue with multi-root btor files
cgjohannsen 4488f6e
Adding btor multi-root test
cgjohannsen 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 hidden or 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 hidden or 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 hidden or 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,33 @@ | ||
| # - Try to find Btor2Tools | ||
| # Once done this will define | ||
| # BTOR2TOOLS_FOUND - System has Btor2Tools | ||
| # BTOR2TOOLS_INCLUDE_DIRS - The Btor2Tools include directories | ||
| # BTOR2TOOLS_LIBRARIES - The libraries needed to use Btor2Tools | ||
|
|
||
| if (BTOR2TOOLS_HOME) | ||
| find_path(BTOR2TOOLS_INCLUDE_DIR btor2parser/btor2parser.h PATHS "${BTOR2TOOLS_HOME}/src" NO_DEFAULT_PATH) | ||
| else() | ||
| find_path(BTOR2TOOLS_INCLUDE_DIR btor2parser/btor2parser.h) | ||
| endif() | ||
|
|
||
| if (SALLY_STATIC_BUILD) | ||
| if (BTOR2TOOLS_HOME) | ||
| find_library(BTOR2TOOLS_LIBRARY libbtor2parser.a btor2parser PATHS "${BTOR2TOOLS_HOME}/build/lib" NO_DEFAULT_PATH) | ||
| else() | ||
| find_library(BTOR2TOOLS_LIBRARY libbtor2parser.a btor2parser) | ||
| endif() | ||
| else() | ||
| if (BTOR2TOOLS_HOME) | ||
| find_library(BTOR2TOOLS_LIBRARY btor2parser PATHS "${BTOR2TOOLS_HOME}/build/lib" NO_DEFAULT_PATH) | ||
| else() | ||
| find_library(BTOR2TOOLS_LIBRARY btor2parser) | ||
| endif() | ||
| endif() | ||
|
|
||
| set(BTOR2TOOLS_LIBRARIES ${BTOR2TOOLS_LIBRARY}) | ||
| set(BTOR2TOOLS_INCLUDE_DIRS ${BTOR2TOOLS_INCLUDE_DIR}) | ||
|
|
||
| include(FindPackageHandleStandardArgs) | ||
| find_package_handle_standard_args(Btor2Tools DEFAULT_MSG BTOR2TOOLS_LIBRARY BTOR2TOOLS_INCLUDE_DIR) | ||
|
|
||
| mark_as_advanced(BTOR2TOOLS_INCLUDE_DIR BTOR2TOOLS_LIBRARY) |
This file contains hidden or 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,43 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| echo "Installing btor2tools..." | ||
|
|
||
| # Clone the repository | ||
| if ! git clone https://github.com/hwmcc/btor2tools.git; then | ||
| echo "Error: Failed to clone btor2tools repository." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Navigate to btor2tools directory | ||
| if ! pushd btor2tools; then | ||
| echo "Error: Failed to enter btor2tools directory." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Run configure script | ||
| if ! ./configure.sh; then | ||
| echo "Error: Configuration failed." >&2 | ||
| popd > /dev/null 2>&1 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Enter build directory | ||
| if ! pushd build; then | ||
| echo "Error: Failed to enter build directory." >&2 | ||
| popd | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Run make | ||
| if ! make; then | ||
| echo "Error: Build failed." >&2 | ||
| popd; popd | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Return to original directories | ||
| popd | ||
| popd | ||
|
|
||
| echo "btor2tools installation completed successfully!" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
I think that this might because there is no Boolean type in BTOR. Instead a BV of 1 bit is used for true/false.
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 think this is incorrect though, because
propertyis of type Boolean (since it's an OR), but then is compared to the bit-vector zero (so there is a type mismatch). I would need to test this out to see what happens though.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.
would you test in this PR?
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.
Fixed this in 5a850c6