Re: [klee-dev] Error while replaying .path file

2020-02-18 Thread Awanish Pandey

***
This email originates from outside Imperial. Do not click on links and 
attachments unless you recognise the sender. 
If you trust the sender, add them to your safe senders list 
https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for 
this address.
***
Thanks Cristian for this information. Klee reply will not work in my case
because
I have to replay the test case with path files only.

On Tue, Feb 18, 2020, 5:06 PM Cadar, Cristian 
wrote:

> Hi Awanish,
>
> Unfortunately that feature has not been maintained -- we need to fix it,
> but there are no immediate plans to do so.
>
> You may be able to achieve something similar via seeding (-seed-file).
> Or if you just want to replay the test case, use klee-replay or link
> with the libkleeRuntest library (see the tutorials).
>
> Best,
> Cristian
>
> On 18/02/2020 07:47, Awanish Pandey wrote:
> > Dear all,
> > I want to replay a path file, but I am getting an assertion
> > violation "hit an invalid branch in replay path mode".
> >
> > This is my toy program
> > /int main(int argc, char *argv[]){
> >if (argc != 2){
> >  printf("error:");
> >}
> >int a;
> >FILE *fp = fopen(argv[1], "r");
> >fscanf(fp,"%d",);
> >if (a == 10)
> >  assert(0);
> >fclose(fp);
> >return 0;
> > }/
> >
> > I run klee "/klee --libc=uclibc --posix-runtime --write-paths file.bc
> > --sym-arg 1  --sym-files 1 5/".
> > It finds an assertion violation (at test case number 19) and when I
> > replayed it by command
> > /klee --libc=uclibc --posix-runtime
> > --replay-path=klee-out-0/test19.path file.bc/
> >
> > Klee crashes on assertion violation in Executor.cpp
> >
> > What is the issue? It will be very helpful.
> > --
> > Thanking You
> > Awanish Pandey
> >
>
___
klee-dev mailing list
klee-dev@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev


[klee-dev] Error while replaying .path file

2020-02-17 Thread Awanish Pandey

***
This email originates from outside Imperial. Do not click on links and 
attachments unless you recognise the sender. 
If you trust the sender, add them to your safe senders list 
https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for 
this address.
***
Dear all,
I want to replay a path file, but I am getting an assertion violation "hit
an invalid branch in replay path mode".

This is my toy program











*int main(int argc, char *argv[]){  if (argc != 2){printf("error:");
}  int a;  FILE *fp = fopen(argv[1], "r");  fscanf(fp,"%d",);  if (a ==
10)assert(0);  fclose(fp);  return 0;}*

I run klee "*klee --libc=uclibc --posix-runtime --write-paths file.bc
--sym-arg 1  --sym-files 1 5*".
It finds an assertion violation (at test case number 19) and when I
replayed it by command
*klee --libc=uclibc --posix-runtime
--replay-path=klee-out-0/test19.path file.bc*

Klee crashes on assertion violation in Executor.cpp

What is the issue? It will be very helpful.
-- 
Thanking You
Awanish Pandey
___
klee-dev mailing list
klee-dev@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev


[klee-dev] Running SPEC benchmarks with klee

2020-02-06 Thread Awanish Pandey

***
This email originates from outside Imperial. Do not click on links and 
attachments unless you recognise the sender. 
If you trust the sender, add them to your safe senders list 
https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for 
this address.
***
Dear all,

I tried to run SPEC benchmarks with klee but I found that they require
highly formatted input.

Is there any way to handle these situations?

Does anyone have previously rewritten the parsing code of SPEC benchmarks
with insertion of klee_assume for removing useless execution.

Any other different way to tackle this situation is welcomed.

-- 
Thanks and Regards
Awanish Pandey
PhD, CSE
IIT Kanpur
___
klee-dev mailing list
klee-dev@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev


[klee-dev] Replay ktestfile directory

2018-04-01 Thread Awanish Pandey
Hi,

I run klee over the coreutils using the command mentioned in coreutils
experiments. When I replay the using

-replay-ktest-dir="---" it is giving warning "KLEE: WARNING ONCE: replay
did not consume all objects in test input.
"
Out of 156 test cases in ptx replay was able to run only 6 test cases. What
is the problem or I am doing something wrong

-- 
Thanking You
Awanish Pandey
PhD, CSE
IIT Kanpur
___
klee-dev mailing list
klee-dev@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev


[klee-dev] Running latest coreutils with klee build on llvm3.4

2017-06-02 Thread Awanish Pandey
Hi everyone,
I used wllvm and it works. But it creates binary then extract-bc provide us
bitcode. If I am adding klee_make_symbolic() in coreutils source code
wllvm can't produce binary so unable to generate bitcode file.

Is there any way to generate bc file for coreutils which contain
klee_make_symbolic from llvm3.4 version?
-- 
Thanking You
Awanish Pandey
PhD, CSE
IIT Kanpur
___
klee-dev mailing list
klee-dev@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/klee-dev