-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to verify: pthread_create(&m_thread_id, NULL, &thread_func, this) == 0 #2
Comments
Turns out this is a problem with configuration under emscripten: Z3Prover/z3#1298 (comment). |
Wonder if you think this new effort might help (alternate strategy) ? https://github.com/kripken/emscripten/wiki/Pthreads-with-WebAssembly |
Thanks for the report. It looks like rebuilding with thread support disable should fix this. |
I tried building with --single-threaded and had no success running z3.wasm with timeouts. I published a release of that build at https://github.com/mgree/z3.wasm/releases/tag/v0.1.1 if anyone wants to try it. The error messages I got were obscure. Using |
Has anyone been able to fix this? Here's the smallest case I've got this error on:
|
I am also facing the same issue, the smallest case I can get (running at https://people.csail.mit.edu/cpitcla/z3.wasm/z3.html) is
Removing any of the four equalities causes the solver to return However, this formulation returns
Not sure what to make of it since I'm not familiar with the internals of Z3 and Emscripten, is there anything significant about the differences between these two examples? |
I found a temporary hack around this. Since my use-case involves optimization, adding a set of declarations such as:
bypasses this issue. Full working example:
I expect this is due to the solve technique changing completely, which bypasses the |
There are now official bindings of z3 which support threads, so this use case should work. Check #6. EDIT: I can confirm that all "broken" expressions in this issue work correctly on the official bindings. |
I experimented around with this and with nontrivial examples I'm getting an error:
Example of code causing that:
The text was updated successfully, but these errors were encountered: