Comments (4)
I'm not sure if it helps to solve the problem but could you please try
memcpy(static_cast<void*>(dense), static_cast<void*>(o.dense), sizeof(elt_t)*sz)
?
from crab.
It silences the error. Also the following should be handled (either memcpy
or realloc
)
crab/install/include/crab/domains/graphs/util/Vec.h
at 121, 148
crab/install/include/crab/domains/graphs/adapt_sgraph.hpp
274
Are you sure it doesn't mask a bug? It does seem strange to memcpy a non-trivially copyable data structure.
from crab.
It's done in this way for efficiency reasons. The copied objects are supposed to be basic types so it should be fine. Vec.h
assumes that the type of the vector element is re-allocable so it should be also fine.
However, it's true that this makes the code less general. For instance, all this code is used to represent weighted graphs. Right now, the weights must be basic types but I would like to have other types (e.g., ikos::z_number) so it has been on my TODO list for a while.
from crab.
The compilation errors should be gone with commit 9e51d45
I created a new issue #22 related to this.
from crab.
Related Issues (20)
- Make generic weights of adaptative sparse graph
- More precise bitwise AND HOT 1
- Valgrind warnings HOT 1
- none-optional dereference on array-expansion domain with elina-pk HOT 3
- Elina does not compile on mac: `'stdlib.h' file not found` HOT 4
- Enhance top-down inter-procedural analysis HOT 1
- CMake Options
- Does crab support running on MacOS? HOT 8
- Reaching Definitions Analysis HOT 5
- Question: "range of intervals" HOT 14
- How to correctly represent "else" when manually working with `powerset_domain` HOT 9
- Compiler warning with `dev` HOT 1
- "compress" `powerset_domain` domain after projection HOT 4
- General question on "backward_assign_operations" HOT 1
- Question regarding the CFG input encoding for the analysis HOT 7
- Create tree expressions and adapt abstract domains to use them
- Question regarding "cyclic" encoding and propagation of analysis results HOT 9
- What is the difference between the wrapped_interval implemented in crab and the one implemented in TOPLAS15 paper? HOT 2
- Should we add the bitwise complement (~) operation in Crab? HOT 2
- Bug in flat_boolean_domain 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 crab.