This adds a String overload for AssertSoft.
Previously only integer weights could have been used,
limiting the user. With Strings the user can now use
e.g. Java's BigInteger class converted to a String instead.
* Remove size argument in OCaml's `Z3.mk_re_intersect`
Passing the size as argument is unnecessary in OCaml, and that argument is abridged in all similar `Seq` functions. This applies the same pattern.
* Enable the ocaml documentation in Seq.
Turn all the comments into proper documentation comments.
* Fix flake8 violations in z3.py
* Fix flake8 violations in z3printer.py
* Fix flake8 violations in z3rcf.py and z3util.py
* do not allocate list on every call to set_default_rounding_mode
* reformat python code using autopep8
* manually wrap some too long lines and adjust some checks
* run autopep8 in aggressive mode
* run autopep8 in very aggressive mode
* manually reformat z3types.py
* unify: use double quotes
* use sys.version_info instead of sys.version
* drop accidentally commited src/util/z3_version.h
* Add method to print Sort to an ostream
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Added new FP check methods and clarify documentation
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Added missing fp conversion calls to C++ API
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Added method to convert a bv (in ieee format) to fp
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Added bv reduction methods to C++ API
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Add fp equality method
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Added methods to creates fpa nan and fpa inf
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Changed default rounding mode of the C++ API to RNE (see issue #4673)
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* Added methods to generate rounding mode sorts and rounding mode numerals
Signed-off-by: Mikhail R. Gadelha <mikhail.ramalho@gmail.com>
* CMake: simplify FindGMP.cmake
Remove printing of all the different variables, and let FPHSA output the library
name. Add an imported target, which bundles the library and the include
directories for easier usage.
* fix build: vector::c_ptr() now is vector::data()
* CMake: use Threads::Threads imported module
Otherwise the setting of THREADS_PREFER_PTHREAD_FLAG has no effect.
* CMake: remove needless policy setting
The minimum required version is CMake 3.4, where these policies are already set
to new because they were introduced earlier.
* CMake: remove needless variable expansion