davedets
6ac3075022
Remove unnecessary semicolons (Attempt 2) ( #10020 )
...
This is another PR towards the goal of getting Z3 to compile cleanly
when included via FetchContents into clang-tidy, which uses a pretty
strict set of warnings.
This is a second version of https://github.com/Z3Prover/z3/pull/9957 . I
address @NikolajBjorner 's comments about not changing the semicolons
after macro invocations, because some editors work better with them
present. It now, to the best of my ability, only deletes semis:
* after the closing brace of namespace decl.
* after the closing brace of an extern "C" decl.
* after a function definition.
This PR is very large, but it consists entirely of deletions of
semicolons in these situations.
(If there was a way to update the previous PR, which had been closed,
and that is preferable, please let me know. I couldn't figure it out.)
2026-07-02 12:47:29 -07:00
Copilot
1bb471447e
Adopt std::optional for try_get_value and try_get_size functions ( #8268 )
...
* Initial plan
* Convert try_get_value and try_get_size to use std::optional
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
* Add unit tests for std::optional conversions and fix compilation error
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
* Address code review comments - improve readability and reduce code duplication
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
2026-01-21 12:41:50 -08:00
Nuno Lopes
b1ab695eb6
fix #7603 : race condition in Ctrl-C handling ( #7755 )
...
* fix #7603 : race condition in Ctrl-C handling
* fix race in cancel_eh
* fix build
2025-08-06 14:27:28 -07:00
Nuno Lopes
bd8c870bbe
api: avoid some string copies when using mk_external_string
2024-12-28 09:42:54 +00:00
Nuno Lopes
1720addc4e
remove a bunch of string copies in the API
...
thanks to C++20
2022-10-26 18:22:55 +01:00
Bruce Mitchener
5d0dea05aa
Remove empty leaf destructors. ( #6211 )
2022-07-30 10:07:03 +01:00
Nikolaj Bjorner
fc77345bec
breaking change. Enforce append semantics everywhere for parameter updates #5744
...
Replace semantics doesn't work with assumptions made elsewhere in code.
The remedy is to apply append (override) semantics for parameter changes.
2021-12-30 19:11:14 -08:00
Nikolaj Bjorner
4a6083836a
call it data instead of c_ptr for approaching C++11 std::vector convention.
2021-04-13 18:17:35 -07:00
Nikolaj Bjorner
d91eac24b7
more missing nullptr flexibility #5156
2021-04-08 10:34:09 -07:00
Nuno Lopes
23e6adcad3
fix a couple hundred deref-after-free bugs due to .c_str() on a temporary string
2020-07-11 20:24:45 +01:00
Nikolaj Bjorner
78a1736bd2
prepare symbols to be more abstract, update mbi, delay initialize some modules
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-10 12:02:08 -08:00
Nikolaj Bjorner
7e174f50c1
use Z3_char_ptr
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-10-08 09:14:10 -07:00
Nikolaj Bjorner
7bfb730fee
fix traffic jam
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-10 17:45:55 -07:00
Nikolaj Bjorner
40e329fc92
remove push/pop for fixedpoint objects from API #2249
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-04-27 10:13:15 -07:00
Nikolaj Bjorner
5c67c9d907
print certificate for #2202 , enable CTL-C for API fix #2203
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-03-24 17:09:02 -07:00
Bruce Mitchener
edf8ba44d1
Switch from using Z3_bool to using bool.
...
This is a continuation of the work started by using stdbool and
continued by switching from Z3_TRUE|FALSE to true|false.
2018-11-20 11:27:09 +07:00
Bruce Mitchener
56bbed173e
Remove usages of Z3_TRUE / Z3_FALSE.
...
Now that this is all using stdbool.h, we can just use true/false.
For now, we leave the aliases in place in z3_api.h.
2018-11-20 00:25:37 +07:00
Nikolaj Bjorner
ccca063e54
Merge branch 'master' of https://github.com/Z3Prover/z3 into csp
2018-10-21 12:26:53 -07:00
Florian Pigorsch
326bf401b9
Fix some spelling errors (mostly in comments).
2018-10-20 17:07:41 +02:00
Nikolaj Bjorner
e9d615e309
merge
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-14 15:16:22 -07:00
Nikolaj Bjorner
c4829dfa22
fix #1577 again
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-10-06 09:01:01 -07:00
Nikolaj Bjorner
7230461671
adding properities
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-08-20 23:51:51 +02:00
Nikolaj Bjorner
2b2f193f2b
remove dependency on ARRAYSIZE for issue #1616
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-08-15 22:26:14 -07:00
Nikolaj Bjorner
1eb8ccad59
overhaul of error messages. Add warning in dimacs conversion
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-07-04 16:04:37 -07:00
Matteo
65885f7eba
add_constraint API
2018-06-14 16:08:48 -07:00
Matteo
3c7165780c
Extend spacer with callback events
...
Callback events allow the client of spacer to
get events during exection. The events include
new lemmas and unfolding.
2018-06-14 16:08:48 -07:00
Nikolaj Bjorner
2dc92e2b94
merge with pull request #1557
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-07 17:22:49 -07:00
Nikolaj Bjorner
65834661a8
disambiguate calls to set
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-04-07 10:53:52 -07:00
Bruce Mitchener
16a2ad9afd
Use stdint.h for int64_t / uint64_t in API.
...
Now that we can use stdint.h, we can use it to portably define
64 bit integer types for use in the API.
2018-03-30 23:06:24 +07:00
Bruce Mitchener
76eb7b9ede
Use nullptr.
2018-02-12 14:05:55 +07:00
Bruce Mitchener
7167fda1dc
Use override rather than virtual.
2018-02-10 09:56:33 +07:00
Dan Liew
a2d7b43554
Update header includes to be relative to src/ directory.
2017-08-17 18:26:53 +01:00
Arie Gurfinkel
d080c146a2
public API for spacer
2017-07-31 17:03:18 -04:00
Nikolaj Bjorner
b19f94ae5b
make include paths uniformly use path relative to src. #534
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-07-31 13:24:11 -07:00
Nikolaj Bjorner
dc543a7ee7
update macro_util logging to uniform format
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-01-15 21:13:22 -08:00
Dominic Chen
00ada5305f
Standardize on __uint64 instead of unsigned __int64
2016-11-07 17:42:44 -05:00
Nikolaj Bjorner
b080e3a216
garbage collect all api::object references when calling del_context. Request issue #679
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2016-07-13 22:26:21 -07:00
Nikolaj Bjorner
61dbb6168e
cleanup cancelation logic
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-12-11 12:35:35 -08:00
Nikolaj Bjorner
9b3e242990
adding rlimit resource limit facility to provide platform and architecture independent method for canceling activities
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-09-28 13:37:59 -07:00
Nuno Lopes
f62a192357
remove __in/__out SAL annotations.
...
They break the build with recent glibc versions and apparently noone is using them.
Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
2015-07-15 13:46:32 +01:00
Nikolaj Bjorner
9b893c625b
print output predicates as part of displaying rules
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2014-08-22 21:17:05 -07:00
Nikolaj Bjorner
0d56499e2d
re-organize muz_qe into separate units
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2013-08-28 21:20:24 -07:00
Nikolaj Bjorner
784455d1fc
detect approximate relations to return unknown, fix product relations, fix symbolic magic set transformation
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2013-07-10 17:20:44 +03:00
Nikolaj Bjorner
324dc5869d
fix substitution bug in qe, working on boogie trace
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2013-06-25 13:07:28 -05:00
Nikolaj Bjorner
359d2326f8
stash
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2013-04-03 17:06:45 -07:00
Leonardo de Moura
b417ca657d
Fix set_interruptable usage
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-03-25 16:52:08 -07:00
Nikolaj Bjorner
67183ea08a
factor out relation context for datalog
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2012-12-03 15:05:43 -08:00
Leonardo de Moura
ffb7e26c75
removed front-end-params
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-12-02 10:05:29 -08:00
Leonardo de Moura
80405dbd62
added context_params to API
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-12-02 08:12:15 -08:00
Leonardo de Moura
589f096e6e
working on new parameter framework
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-12-01 15:54:34 -08:00