Skip to content

Instantly share code, notes, and snippets.

@mrphrazer
Created November 5, 2015 20:34
Show Gist options
  • Save mrphrazer/07fc64397e2614d88be3 to your computer and use it in GitHub Desktop.
Save mrphrazer/07fc64397e2614d88be3 to your computer and use it in GitHub Desktop.
angr test
#include<stdlib.h>
#include<stdio.h>
int foo(int a, int b)
{
a = a + 4*b;
b = a - b;
a = a*b;
b = a + 7;
if (a + b == b + 55)
return 1;
return 0;
}
int main(int argc, char * argv[])
{
int a,b;
a = atoi(argv[1]);
b = atoi(argv[2]);
if (foo(a,b))
{
printf("Correct!\n");
return 0;
}
else
{
printf("Wrong!\n");
return -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment