Hi All,

     I am using KLEE-2.1 for symbolic  analysis on x-86 32 bit system. I want to
generate model error through KLEE . For that , I wrote source code using malloc
for encoutering model error. But it gives me pointer error(ptr.err). So, can you
suggest me how to invoke model error and if possible suggest me source code.

source code written for model error:-


#include <stdio.h>

#include <stdlib.h>

​int main() {

int j;

int *primes;

int i ;

int limit = 2147483647;

​    primes = malloc(sizeof(int) * limit);

for (i = 0; i < limit; i++)

{

primes[i] = 1;

}

return 0;

}


Thanks in advance,
mohit .



For assimilation and dissemination of knowledge, visit cakes.cdac.in 


------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
------------------------------------------------------------------------------------------------------------

_______________________________________________
klee-dev mailing list
klee-dev@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev

Reply via email to