Open rasoolmaghareh opened 1 year ago
Bug in TxWeakestPreCondition::getFunctionArgument()
.
It is unable to get the correct function.
Can you elaborate more please. thanks
The present TxWeakestPreCondition::getFunctionArgument()
tries to search for the
call instruction to get the function arguments.
However, in this program there is no specific call to the function
because it is the main() function and these are command line arguments.
Unlike the parameters passed from one function to another function.
It will be great if we can discuss this issue as well in tonight's meeting.
This program is a special case.
#include <stdio.h>
int main (int argc, char **argv) {
int test = 0;
for (int i=0; i< argc; i++) {
printf("argument %d:%s\n", i+1, argv[i]);
}
return 0;
}
We actually don't have any values for argc and argv. So our program is unable to obtain any value for it.
This is the output that I am seeing: