简体   繁体   中英

Use Z3 in multicore server

I want to set up a system that will be fully dedicated to Z3. Let's say it has 4 cores and I would like to use all the power of the machine.

I will be solving large formulas that have around 1000 incremental asserts.

I would like to solve the formulas in a parallel fashion. I've read this question and I see that a unique Context should be created for every instance solving a formula.

My question then is, what is the most optimal way to use the full system resources (4 cores) and solving formulas with incremental asserts? Should I create a context per core and somehow sync the push and pops along them to incrementally solve the formulas?

Thanks

Expressions created via one context can not be used in another context. So, yes, if those cores/contexts need the same expressions, they will have to be copied and/or translated (see also Z3_translate ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM