take care that parameter may have 'undefined' or 'constant' values

This commit is contained in:
2020-01-14 14:54:47 +04:00
parent 2b3db0f936
commit 4bc8c15918
2 changed files with 44 additions and 8 deletions
+2
View File
@@ -36,6 +36,7 @@ typedef struct __pst_parameter {
loc = NULL;
is_return = false;
is_variable = false;
has_value = false;
value = 0;
line = 0;
}
@@ -53,6 +54,7 @@ typedef struct __pst_parameter {
void* loc; // pointer to location of parameter's value
bool is_return; // whether this parameter is return value of the function
bool is_variable;// whether this parameter is function variable or argument of function
bool has_value;
uint64_t value; // value of parameter
pst_context* ctx;
} pst_parameter;