jburnim / crest

CREST is a concolic test generation tool for C.
http://jburnim.github.io/crest/
BSD 2-Clause "Simplified" License
159 stars 50 forks source link

return struct crestc error #7

Open kren1 opened 7 years ago

kren1 commented 7 years ago

Compiling

struct a {
  char const b;
} g_1782;
struct a c() {
  for (;;)
    return g_1782;
}
int main() {  }

With crestc gives me

test7.c: In function ‘c’:
test7.c:6:15: error: assignment of read-only variable ‘__retres1’
     return g_1782;

Is this some sort of instrumentation bug?

lmagoncalo commented 6 years ago

I think the crest doesn't support infinite loops like: for(;;) { statements; }