search for: printstruct

Displaying 1 result from an estimated 1 matches for "printstruct".

Did you mean: paintstruct
2011 Jul 30
0
[LLVMdev] Reflective execution on LLVM
...est generation, towards certain goals. So, the key question is " how to execute a chuck of code in the same process"? Assume the tool is going to create tests for the following piece of code: struct C* createStruct(int i) { assert i > 0; .... //return a new created struct C } char* printStruct(struct* C) { .... //do something here } A possible test created can be: Test 1: int i = 10; struct C* c = createStruct(int i) char* result = printStruct(c); For Test1, is it possible to *obtain the value of "char* result"* before creating new tests? This has many benefits: it can be...