Files
cea-sec-miasm/example/expression/simple_test.c
T
serpilliere ed5c3668cc Miasm v2
* API has changed, so old scripts need updates
* See example for API usage
* Use tcc or llvm for jit emulation
* Go to test and run test_all.py to check install

Enjoy !
2014-06-03 10:27:56 +02:00

27 lines
443 B
C

int test(unsigned int argc, char** argv)
{
unsigned int ret;
if (argc == 0)
ret = 0x1001;
else if (argc < 2)
ret = 0x1002;
else if (argc <= 5)
ret = 0x1003;
else if (argc != 7 && argc*2 == 14)
ret = 0x1004;
else if (argc*2 == 14)
ret = 0x1005;
else if (argc & 0x30)
ret = 0x1006;
else if (argc + 3 == 0x45)
ret = 0x1007;
else
ret = 0x1008;
return ret;
}
int main(int argc, char** argv)
{
return test(argc, argv);
}