-
Notifications
You must be signed in to change notification settings - Fork 191
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
fix: CVC5 api update #5203
Merged
Merged
fix: CVC5 api update #5203
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8d0860b
Made cvc5 external project. No manual installation
Sarkoxed 491b651
I have no idea how did it pass here
Sarkoxed 9954108
CVC5 api was updated
Sarkoxed bf79337
Updated Bool class
Sarkoxed 26c49c1
Merge branch 'master' into as/smt-terms-merge
Rumata888 3d4d7d0
Renamed members of a Solver class and added placeholders
Sarkoxed 52fde3c
Meet new api syntax
Sarkoxed 249e507
Merge branch 'as/smt-terms-merge' of github.com:AztecProtocol/aztec-p…
Sarkoxed f7326ac
Merge branch 'master' into as/smt-terms-merge
Rumata888 87226b9
Merge branch 'master' into as/smt-terms-merge
Rumata888 4d0512f
Merge branch 'master' into as/smt-terms-merge
Rumata888 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
34 changes: 23 additions & 11 deletions
34
barretenberg/cpp/src/barretenberg/smt_verification/CMakeLists.txt
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 |
---|---|---|
@@ -1,14 +1,26 @@ | ||
barretenberg_module(smt_verification common proof_system stdlib_primitives stdlib_sha256 cvc5 circuit_checker) | ||
include(ExternalProject) | ||
|
||
set(CVC5_INCLUDE $ENV{HOME}/cvc5/tmp-lib/include) | ||
set(CVC5_LIB $ENV{HOME}/cvc5/tmp-lib/lib) | ||
# External project: Download cvc5 from GitHub | ||
set(CVC5_PREFIX "${CMAKE_BINARY_DIR}/_deps/cvc5") | ||
set(CVC5_BUILD "${CVC5_PREFIX}/src/cvc5-build") | ||
|
||
target_include_directories(smt_verification PUBLIC ${CVC5_INCLUDE}) | ||
target_include_directories(smt_verification_objects PUBLIC ${CVC5_INCLUDE}) | ||
target_include_directories(smt_verification_tests PUBLIC ${CVC5_INCLUDE}) | ||
target_include_directories(smt_verification_test_objects PUBLIC ${CVC5_INCLUDE}) | ||
ExternalProject_Add( | ||
cvc5-download | ||
PREFIX ${CVC5_PREFIX} | ||
GIT_REPOSITORY "https://github.com/cvc5/cvc5.git" | ||
GIT_TAG main | ||
BUILD_IN_SOURCE YES | ||
CONFIGURE_COMMAND ${SHELL} ./configure.sh production --auto-download --cocoa --cryptominisat --kissat -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ --prefix=${CVC5_BUILD} | ||
BUILD_COMMAND make -C build | ||
INSTALL_COMMAND make -C build install | ||
UPDATE_COMMAND "" # No update step | ||
) | ||
|
||
target_link_directories(smt_verification PUBLIC ${CVC5_LIB}) | ||
target_link_directories(smt_verification_objects PUBLIC ${CVC5_LIB}) | ||
target_link_directories(smt_verification_tests PUBLIC ${CVC5_LIB}) | ||
target_link_directories(smt_verification_test_objects PUBLIC ${CVC5_LIB}) | ||
set(CVC5_INCLUDE "${CVC5_BUILD}/include") | ||
set(CVC5_LIB "${CVC5_BUILD}/lib/libcvc5.so") | ||
|
||
include_directories(${CVC5_INCLUDE}) | ||
add_library(cvc5 SHARED IMPORTED) | ||
set_target_properties(cvc5 PROPERTIES IMPORTED_LOCATION ${CVC5_LIB}) | ||
|
||
barretenberg_module(smt_verification common proof_system stdlib_primitives stdlib_sha256 circuit_checker cvc5) |
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.
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.
Could you rename tm, s and fp to something meaningful?