Comments (9)
Should note that I tried changing 3UL to 3ULL (to get a 8 byte wide constant), but then crashed elsewhere.
from boolector.
from boolector.
from boolector.
OK< the proposal for how to handle this makes sense. To clarify, I was just pointing out the issue and what I did to work around it for the moment. I know what I did was not really a clean patch,
There is one other similar issues, again related to sizeof(long) and sizeof(void*):
#define leaf(l) ((void *) (1lu | (unsigned long) (l)))
I propose
#define leaf(l) ((void*)((uintptr_t)1 | (unitptr_t)(l)))
from boolector.
Well I think there is no problem here. Actually, the 'ul' (any part of it) does not seem to be necessary. It might break if 'unsigned long' as well as 'BtorNode*' are wider than 'uintptr_t' and the latter is signed. Both conditions are not satisfied (on any system I think). To make it easier to understand we could replace it with static inline BtorNode * btor_node_real_addr (const BtorNode node) { assert (sizeof (BtorNode) == sizeof (sizeof (uintptr_t)); return (BtorNode *) (~ (uintptr_t) 3 & (uintptr_t) node); }
@mpreiner and I will have a look at this and let @tom-kacvinsky know when we have a solution. @tom-kacvinsky can we ping you to test it for us?
from boolector.
@tom-kacvinsky can you try the branch https://github.com/Boolector/boolector/tree/cleanup-pointer-arith and see if this fixes your problems?
from boolector.
Will try this out today. I would have tried it this weekend but for some bizarre reason I did not get notification of the issue update until a co-worker pointed out the issue has been updated. Thanks for looking into this,
from boolector.
This worked, thank you very much.
from boolector.
This is now merged to master 66d0f7b.
from boolector.
Related Issues (20)
- Not able to found how to get different solution after every boolector_sat under same assertions HOT 1
- PyBoolector install via PIP fails on x86_64 MacOS HOT 10
- Lookup Table HOT 1
- Assertion with zero and propagation engine HOT 5
- Is there any Distribution Constraint sv equivalent in boolector?
- Printing of Constant Arrays
- Linker error when building boolector from source HOT 2
- windows10 install pyboolector failed HOT 1
- ./configure.sh problem HOT 2
- install pyboolector failed on python 3.11 macos
- Stuck rewriting in rewrite_eq_exp
- Installing pyboolector fails for python 3.11.3 on Linux (Arch) HOT 2
- install error on macos 13.4.1
- Hello, how do I install Boolector and cryptominisat offline? HOT 1
- Make error while running btor2tools HOT 15
- How to install pyboolector for pypy HOT 1
- Tests fail to compile: error: no member named 'make_unique' in namespace 'std', etc. HOT 1
- FileNotFoundError when installing on windows
- BtorMC --kind not converging
- Wrong path for libbtor2parser.a in reach's Makefile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boolector.