Created
November 5, 2015 20:34
-
-
Save mrphrazer/07fc64397e2614d88be3 to your computer and use it in GitHub Desktop.
angr test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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