-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pr resolves several issues with Symbolic Circuits and adds new functionality to smt_util ## CircuitBase / StandardCircuit / UltraCircuit `bool optimizations` -> `bool enable_optimizations` ## STerm Added comment about an origin of the division result name ## smt_util.cpp - new function `bb::fr string_to_fr(std::string number, int base, size_t step = 0)` allows to convert string values of an arbitrary base(but most importantly 2, 10 and 16) to `bb::fr`. Need this because of the huge witnesses, provided by the solver, that cause segfaults during ordinary import. - `default_model` and `default_model_single` now export the `msgpack`'d version of a witness too. - `import_witness`, `import_witness_single` imports the packed witness from file ## README added all this to README.md file ## Standard Symbolic Circuit Fixed an issue that caused merging of two consecutive xors into one while applying an optimization. It thought that two consecutive 32 bit xors is one 64 bit xor. Now it's not. + added the test to check this behavior ## Ultra Symbolic Circuit Moved lookup table initialization to the separate method. Added xor and and tables detection with further optimizations. Added two tests that check that everything is fine.
- Loading branch information
Showing
14 changed files
with
373 additions
and
95 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
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.