Add cdd predt operator#31
Conversation
Co-authored-by: Florian Lorber <florber@cs.aau.dk> Co-authored-by: Florian Lorber <florber@cs.aau.dk>
Co-authored-by: Florian Lorber <florber@cs.aau.dk>
Co-authored-by: Florian Lorber <florber@cs.aau.dk>
Co-authored-by: Florian Lorber <florber@cs.aau.dk>
Co-authored-by: Florian Lorber <florber@cs.aau.dk>
Co-authored-by: Florian Lorber <florber@cs.aau.dk>
mikucionisaau
left a comment
There was a problem hiding this comment.
There are some memory issues in cdd_predt_dbm and it also lacks unit tests to trigger some more interesting functionality.
Therefore, all size copy variables can be safely removed.
|
I noticed that I did not deinitialized the CDD library in the new test case. So I added in my code locally that TEST_CASE("CDD timed predecessor static test")
{
...
cdd expected = cdd_remove_negative(expected1 | expected2);
REQUIRE(cdd_equiv(result, expected));
cdd_done();
}But now I get an unexpected 'heap-use-after-free' error from AddressSanitizer. It has something to do with The full error description is |
I guess that This will guarantee that |
Doing this will push the error message further back into the test case. It only works when I do TEST_CASE("CDD timed predecessor static test")
{
cdd_init(100000, 10000, 10000);
cdd_add_clocks(4);
cdd_add_bddvar(3);
{
// Actual content of the test case.
}
cdd_done();
}This is not what I expected of using |
Yes, not performing |
To prevent memory issues, the actual test case is placed into its own namespace, see UPPAALModelChecker#31 and UPPAALModelChecker#36.
No description provided.