You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// find out most unique_count prepared for new AST nodes
448
-
for (long i = 0; i < num_modules; i++)
449
-
if (count_id < ast_modules[i]->unique_count)
450
-
count_id = ast_modules[i]->unique_count;
457
+
//for (long i = 0; i < num_modules; i++)
451
458
452
-
for (long i = 0; i < num_modules; i++)
459
+
if (count_id < ast_module->unique_count)
460
+
count_id = ast_module->unique_count;
461
+
462
+
count_assign = 0;
463
+
std::vector<ast_node_t *> list_assign;
464
+
find_assign_node(ast_module, list_assign);
465
+
for (long j = 0; j < count_assign; j++)
453
466
{
454
-
count_assign = 0;
455
-
std::vector<ast_node_t *> list_assign;
456
-
find_assign_node(ast_modules[i], list_assign);
457
-
for (long j = 0; j < count_assign; j++)
467
+
if (check_tree_operation(list_assign[j]->children[1]) && (list_assign[j]->children[1]->num_children > 0))
458
468
{
459
-
if (check_tree_operation(list_assign[j]->children[1]) && (list_assign[j]->children[1]->num_children > 0))
460
-
{
461
-
store_exp_list(list_assign[j]->children[1]);
462
-
if (deal_with_bracket(list_assign[j]->children[1])) // there are multiple brackets multiplying -- ()*(), stop expanding brackets which may not simplify AST but make it mroe complex
463
-
return;
469
+
store_exp_list(list_assign[j]->children[1]);
470
+
if (deal_with_bracket(list_assign[j]->children[1])) // there are multiple brackets multiplying -- ()*(), stop expanding brackets which may not simplify AST but make it mroe complex
0 commit comments