You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <assert.h>
const char *s1="-----BEGIN RSA PRIVATE KEY-----";
int main()
{
if (strncmp(s1, "-----BEGIN ", 11))
{assert(0);}
return 0;
}
#include <assert.h>
char f(char a, char c)
{
if (!a)
{ c = !c; }
return c;
}
void checkf(int a, int b)
{
char c = f(a, b);
char d;
memcpy (&d, &c, 1);
if ( (d != (a==0)) ^b)
{ assert(0); }
}
int main(void)
{
checkf(0, 0);
return 0;
}
CBMC version: 5.10
Operating system: Ubuntu 18.04
Exact command line resulting in the issue: cbmc <file.c>
What behaviour did you expect:Result in SUCCESS (proofed by compiling with gcc and executing)
What happened instead:[foo.assertion.1] assertion 0: FAILURE
int main()
{
char pattern[] = "a";
int m = strlen (pattern);
return 0;
}
CBMC version: 5.10
Operating system: Ubuntu 18.04
Exact command line resulting in the issue: cbmc <file.c>
What behaviour did you expect: Should terminate
What happened instead: Cannot Terminate
The text was updated successfully, but these errors were encountered:
CBMC version: 5.10
Operating system: Ubuntu 18.04
Exact command line resulting in the issue: cbmc <file.c>
What behaviour did you expect:Result in SUCCESS (proofed by compiling with gcc and executing)
What happened instead:[foo.assertion.1] assertion 0: FAILURE
CBMC version: 5.10
Operating system: Ubuntu 18.04
Exact command line resulting in the issue: cbmc <file.c>
What behaviour did you expect: Should terminate
What happened instead: Cannot Terminate
The text was updated successfully, but these errors were encountered: