Copilot
671faf8f1c
Migrate codebase to std::string_view (except z3++.h) ( #8266 )
...
* Initial plan
* Update z3 codebase to use std::string_view (except z3++.h)
- Updated params.cpp/h to use string_view internally for parameter descriptions
- Updated trace.h/cpp to accept string_view for trace tag functions
- Updated hash.h/cpp to use string_view for string_hash function
- Updated all callers of string_hash to use string_view
- Properly handled nullptr to empty string_view conversions
- All tests passing
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
* Add missing string_view includes to headers
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-02-18 20:57:50 -08:00
Nuno Lopes
f1545b04d2
optimize symbol table for single-threaded mode
...
remotes a bunch of mem allocs + unnecessary computations on every string lookup
2021-05-23 16:35:44 +01:00
Nikolaj Bjorner
8e8e9be25f
st
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-05-18 16:49:43 -07:00
Nikolaj Bjorner
ff10afd226
remove thread dependency in symbol.cpp on single thread #4382
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-05-18 15:11:24 -07:00
Nikolaj Bjorner
9f964be3f4
add don't care option
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-12 17:00:05 -08:00
Nikolaj Bjorner
541658fe02
move to abstract symbols
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-10 12:14:13 -08:00
Nikolaj Bjorner
55554215ac
add include of thread, build warning
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-06 20:45:47 -08:00
Nikolaj Bjorner
670e8f8d67
reduce contention around the symbol table #2842
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2020-01-06 16:47:06 -08:00
Nikolaj Bjorner
05ad90c976
fix for null symbol #2712
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-11-18 12:55:24 -08:00
Nuno Lopes
87a96d7bd4
fix mutexes hanging due to access to free'd memory
...
Thanks to Kevin de Vos for reporting the bug & testing the fix
2019-09-03 20:02:21 +01:00
Nuno Lopes
c21f0c2f00
restore most global muxes as heap-allocated to avoid crashes with hard-kills like ctrl-c
2019-06-13 18:42:57 +01:00
Nuno Lopes
cf3e649462
fix crash on Mac due to different destruction order of globals
...
the mutex in memory_manager has to be destroyed after all mem deallocations happen
2019-06-13 11:22:18 +01:00
Nikolaj Bjorner
71c38a08e5
add initialization
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-11 19:28:08 -07:00
Nuno Lopes
a53ff6f21c
turn locks into no-ops when compiled with -DSINGLE_THREAD
2019-06-05 12:11:27 +01:00
Nikolaj Bjorner
9262908ebb
mux
...
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2019-06-05 09:06:17 +01:00
Bruce Mitchener
a06bc49710
Let str_hashtable store const char*.
...
This removes some boilerplate const casting.
2019-01-06 12:15:31 +07:00
Nuno Lopes
fc8193828d
minor simplifications to symbol class
2018-07-02 11:43:00 +01:00
Bruce Mitchener
76eb7b9ede
Use nullptr.
2018-02-12 14:05:55 +07: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
Leonardo de Moura
2c464d413d
Reorganizing source code. Created util dir
...
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-10-20 10:19:38 -07:00