Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#48 #50

Open
MCFuzzer opened this issue Feb 19, 2019 · 2 comments
Open

#48 #50

MCFuzzer opened this issue Feb 19, 2019 · 2 comments
Labels
confirmed front-end This bug is related to front-end SeaHorn This is the bug in SeaHorn

Comments

@MCFuzzer
Copy link
Owner

MCFuzzer commented Feb 19, 2019

int _br_1 = 0;
void
test (const char *in)
{
  while (1)
    {
      if (*in == 'a')
	{ _br_1++;
	  const char *p = in + 1;
	  if (*p == 'b')
	    { return; }
	  in++;
	} 
    }
}

int main ()
{
  test ("aab");
  _stub();
  return 0;
}
void _stub() { if (!( (_br_1==2) )) __VERIFIER_error(); }

OS: Ubuntu 18.04
Version: latest seahorn/seahorn-llvm5:nightly
Commandline: sea bpf --bmc=mono -O0 --inline FILE.c
Expected result: TRUE
Tool result: FALSE

@MCFuzzer MCFuzzer added SeaHorn This is the bug in SeaHorn front-end This bug is related to front-end confirmed labels Feb 19, 2019
@kuhar
Copy link

kuhar commented Jul 25, 2019

_br_3 is undefined but used in test. Possible typo?

@MCFuzzer
Copy link
Owner Author

MCFuzzer commented Aug 1, 2019

Thank you so much for your report! It's a typo, fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed front-end This bug is related to front-end SeaHorn This is the bug in SeaHorn
Projects
None yet
Development

No branches or pull requests

2 participants