I am quite new to the AFL tool and read their quickstart guide. While the Klee tool, can detect the following bug, it seems like AFL is unable to catch it. Could someone please tell why is that the case?
#include<stdio.h>
int get_sign(int x) {
int foo[3] = {1,2,3};
if (x == 0)
return foo[x];
if (x < 0)
return foo[x];
else
return foo[x];
}
int main() {
int a;
printf("Give some input :\n");
scanf("%d", &a);
return get_sign(a);
}
Please let me know if any further information is required.