Lines Matching refs:right

39 	e->right.expr = e2;  in expr_alloc_two()
49 e->right.sym = s2; in expr_alloc_comp()
86 e->right.sym = org->right.sym; in expr_copy()
92 e->right.expr = expr_copy(org->right.expr); in expr_copy()
121 expr_free(e->right.expr); in expr_free()
139 __expr_eliminate_eq(type, &e1->right.expr, &e2); in __expr_eliminate_eq()
144 __expr_eliminate_eq(type, &e1, &e2->right.expr); in __expr_eliminate_eq()
203 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
243 e->right.expr = expr_eliminate_yn(e->right.expr); in expr_eliminate_yn()
247 expr_free(e->right.expr); in expr_eliminate_yn()
250 e->right.expr = NULL; in expr_eliminate_yn()
254 tmp = e->right.expr; in expr_eliminate_yn()
255 *e = *(e->right.expr); in expr_eliminate_yn()
260 if (e->right.expr->type == E_SYMBOL) { in expr_eliminate_yn()
261 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
263 expr_free(e->right.expr); in expr_eliminate_yn()
266 e->right.expr = NULL; in expr_eliminate_yn()
268 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
269 free(e->right.expr); in expr_eliminate_yn()
279 e->right.expr = expr_eliminate_yn(e->right.expr); in expr_eliminate_yn()
283 tmp = e->right.expr; in expr_eliminate_yn()
284 *e = *(e->right.expr); in expr_eliminate_yn()
289 expr_free(e->right.expr); in expr_eliminate_yn()
292 e->right.expr = NULL; in expr_eliminate_yn()
296 if (e->right.expr->type == E_SYMBOL) { in expr_eliminate_yn()
297 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
298 free(e->right.expr); in expr_eliminate_yn()
303 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
305 expr_free(e->right.expr); in expr_eliminate_yn()
308 e->right.expr = NULL; in expr_eliminate_yn()
331 e->right.expr = expr_trans_bool(e->right.expr); in expr_trans_bool()
336 if (e->right.sym == &symbol_no) { in expr_trans_bool()
338 e->right.sym = NULL; in expr_trans_bool()
381 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) || in expr_join_or()
382 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) { in expr_join_or()
387 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) || in expr_join_or()
388 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) { in expr_join_or()
393 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) || in expr_join_or()
394 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) { in expr_join_or()
444 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_yes) || in expr_join_and()
445 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_yes)) in expr_join_and()
449 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_no) || in expr_join_and()
450 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_no)) in expr_join_and()
454 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_mod) || in expr_join_and()
455 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_mod)) in expr_join_and()
462 sym2 = e1->right.sym; in expr_join_and()
463 if ((e2->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST)) in expr_join_and()
464 return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2) in expr_join_and()
469 sym2 = e2->right.sym; in expr_join_and()
470 if ((e1->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST)) in expr_join_and()
471 return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2) in expr_join_and()
475 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) || in expr_join_and()
476 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) in expr_join_and()
481 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) || in expr_join_and()
482 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) in expr_join_and()
487 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) || in expr_join_and()
488 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) in expr_join_and()
492 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_mod) || in expr_join_and()
493 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_mod) || in expr_join_and()
494 (e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_yes) || in expr_join_and()
495 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_yes)) in expr_join_and()
517 expr_eliminate_dups1(type, &e1->right.expr, &e2); in expr_eliminate_dups1()
522 expr_eliminate_dups1(type, &e1, &e2->right.expr); in expr_eliminate_dups1()
569 expr_eliminate_dups2(type, &e1->right.expr, &e2); in expr_eliminate_dups2()
574 expr_eliminate_dups2(type, &e1, &e2->right.expr); in expr_eliminate_dups2()
655 e->right.expr = expr_transform(e->right.expr); in expr_transform()
662 if (e->right.sym == &symbol_no) { in expr_transform()
665 e->right.sym = NULL; in expr_transform()
668 if (e->right.sym == &symbol_mod) { in expr_transform()
672 e->right.sym = NULL; in expr_transform()
675 if (e->right.sym == &symbol_yes) { in expr_transform()
677 e->right.sym = NULL; in expr_transform()
684 if (e->right.sym == &symbol_no) { in expr_transform()
686 e->right.sym = NULL; in expr_transform()
689 if (e->right.sym == &symbol_mod) { in expr_transform()
693 e->right.sym = NULL; in expr_transform()
696 if (e->right.sym == &symbol_yes) { in expr_transform()
699 e->right.sym = NULL; in expr_transform()
725 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr); in expr_transform()
727 tmp->right.expr = NULL; in expr_transform()
734 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr); in expr_transform()
736 tmp->right.expr = NULL; in expr_transform()
787 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
793 dep->right.sym == sym; in expr_contains_symbol()
810 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
815 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
821 if (dep->right.sym == &symbol_no) in expr_depends_symbol()
859 expr_extract_eq(type, ep, &e1->right.expr, &e2); in expr_extract_eq()
864 expr_extract_eq(type, ep, ep1, &e2->right.expr); in expr_extract_eq()
895 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym); in expr_trans_compare()
905 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym); in expr_trans_compare()
957 val2 = expr_calc_value(e->right.expr); in expr_calc_value()
961 val2 = expr_calc_value(e->right.expr); in expr_calc_value()
968 sym_calc_value(e->right.sym); in expr_calc_value()
970 str2 = sym_get_string_value(e->right.sym); in expr_calc_value()
974 sym_calc_value(e->right.sym); in expr_calc_value()
976 str2 = sym_get_string_value(e->right.sym); in expr_calc_value()
1039 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1044 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1049 expr_print(e->right.expr, fn, data, E_OR); in expr_print()
1054 expr_print(e->right.expr, fn, data, E_AND); in expr_print()
1057 fn(data, e->right.sym, e->right.sym->name); in expr_print()
1067 fn(data, e->right.sym, e->right.sym->name); in expr_print()