You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KLEE issue. Whenever object of class with virtual functions is made symbolic, we are generating many tests cases and waiting for forever in the end.
Consider the following test case:
#include<cassert>
#include"klee/klee.h"structA {
int x = 10;
virtualvoidfoo() {
x += 1;
}
};
structB : A {
virtualvoidfoo() {
x += 2;
}
};
intmain() {
A *a = newB();
klee_make_symbolic(a, sizeof(B), "a");
a->x = 100;
a->foo();
assert(a->x == 101);
}
We are expect to generate 1 test, that will fail assert.
Instead we are getting weird test cases, as shown below, and non of them fails the assertion, and KLEE does not stop the execution.
KLEE: Using STP solver backend
KLEE: WARNING ONCE: Alignment of memory from call "_Znwm" is not modelled. Using alignment of 8.
KLEE: ERROR: exmple.cpp:21: memory error: out of bound pointer
KLEE: NOTE: now ignoring this error at this location
KLEE: ERROR: exmple.cpp:21: invalid function pointer
KLEE: NOTE: now ignoring this error at this location
Moved from UnitTestBot/UTBotCpp#330
KLEE issue. Whenever object of class with virtual functions is made symbolic, we are generating many tests cases and waiting for forever in the end.
Consider the following test case:
We are expect to generate 1 test, that will fail assert.
Instead we are getting weird test cases, as shown below, and non of them fails the assertion, and KLEE does not stop the execution.
Compiled and executed with:
The text was updated successfully, but these errors were encountered: