so I've had this snippet of code amongst my 5000 line of code:
Code:
if (root->StmtDomain[1]->type == T_EXPR_ARRAY)
{
isArrayAssign2Array = 1;
isTaNodeForArr2Arr = 1;
if ( root->StmtDomain[1]->left->type == T_EXPR_INTCON && root->StmtDomain[1]->left->type != T_EXPR_CHARCON || root->StmtDomain[1]->left->type != T_EXPR_VARIABLE
|| root->StmtDomain[1]->left->type != T_EXPR_ARRAY )
{ /* do nothing */ }
else
{
isArrayAssign2ArrayWithExpr = 1;
}
}
the problem is that whenever I try to run this program and it executes this part of the code, especially the :
Code:
if (root->StmtDomain[1]->type == T_EXPR_ARRAY)
the program just kind of freeze and does nothing
when I change that to :
Code:
if (root->StmtDomain[1]->type == 6)
it progress normally.. T_EXPR_ARRAY here is an element of a struct.. something like this:
Code:
typedef enum{
T_EXPR_ARRAY
............
} ExpType;
Can someone please help me where to look for this? It used to work in the same way like this a few hours ago, however I modified some things and I forgot all of those I did...