Closed rasoolmaghareh closed 4 years ago
The crash issue is from this function:
int check_goal(int x) {
if (x == N) {
printf("Sum:%d\n",sum);
exit(0);
}
}
info.txt
Can you see if the command is like this @rasoolmaghareh ?
On my side, there is no crash, I ran with this branch fix_skip_void_type
@xuanlinhha Thanks. The issue is fixed on the above program, but it still crashes on the following example:
#include <klee/klee.h>
#define N 10
#define BOUND 66
int weight[] = {0,1,2,3,4,5,6,7,8,9,10};
int GOAL = 0;
int main() {
int sum = 0;
int x = 0;
for (x = 1; x<=N; x++) {
int v;
klee_make_symbolic(&v, sizeof(unsigned), "v");
if (v != 0) v=1; else v = 0;
sum += v * weight[x];
if (sum > BOUND) exit(0);
if (x == N) {printf("Sum:%d\n",sum); exit(0);}
}
printf("Sum:%d\n",sum);
}
info.txt
@rasoolmaghareh running this program has no crashes on my side too.
on fix_skip_void_type
branch
I have just made one commit to skip some more functions when we push up WP. 2 programs above I see it runs with no error. can you please check again?
The crash is fixed. Thanks. I am closing this issue.
@xuanlinhha can you please check the following issue.
The
wp-interpolant
branch results in the following crash when running with the following program:Source code: