Lines Matching full:left

29  * @l: left node
41 if (e->type == type && e->left._initdata == l && in expr_lookup()
48 e->left._initdata = l; in expr_lookup()
108 l = (*ep1)->left.expr; in __expr_eliminate_eq()
116 l = (*ep2)->left.expr; in __expr_eliminate_eq()
127 (*ep1)->left.sym == (*ep2)->left.sym && in __expr_eliminate_eq()
128 ((*ep1)->left.sym == &symbol_yes || (*ep1)->left.sym == &symbol_no)) in __expr_eliminate_eq()
228 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
230 return e1->left.sym == e2->left.sym; in expr_eq()
232 return expr_eq(e1->left.expr, e2->left.expr); in expr_eq()
238 e1->left.sym == e2->left.sym); in expr_eq()
273 l = expr_eliminate_yn(e->left.expr); in expr_eliminate_yn()
276 if (l->left.sym == &symbol_no) in expr_eliminate_yn()
278 else if (l->left.sym == &symbol_yes) in expr_eliminate_yn()
282 if (r->left.sym == &symbol_no) in expr_eliminate_yn()
284 else if (r->left.sym == &symbol_yes) in expr_eliminate_yn()
289 l = expr_eliminate_yn(e->left.expr); in expr_eliminate_yn()
292 if (l->left.sym == &symbol_no) in expr_eliminate_yn()
294 else if (l->left.sym == &symbol_yes) in expr_eliminate_yn()
298 if (r->left.sym == &symbol_no) in expr_eliminate_yn()
300 else if (r->left.sym == &symbol_yes) in expr_eliminate_yn()
325 tmp = e1->left.expr; in expr_join_or()
328 sym1 = tmp->left.sym; in expr_join_or()
330 sym1 = e1->left.sym; in expr_join_or()
332 if (e2->left.expr->type != E_SYMBOL) in expr_join_or()
334 sym2 = e2->left.expr->left.sym; in expr_join_or()
336 sym2 = e2->left.sym; in expr_join_or()
363 if ((e1->type == E_NOT && e1->left.expr->type == E_SYMBOL && e2->type == E_SYMBOL) || in expr_join_or()
364 (e2->type == E_NOT && e2->left.expr->type == E_SYMBOL && e1->type == E_SYMBOL)) in expr_join_or()
390 tmp = e1->left.expr; in expr_join_and()
393 sym1 = tmp->left.sym; in expr_join_and()
395 sym1 = e1->left.sym; in expr_join_and()
397 if (e2->left.expr->type != E_SYMBOL) in expr_join_and()
399 sym2 = e2->left.expr->left.sym; in expr_join_and()
401 sym2 = e2->left.sym; in expr_join_and()
486 l = (*ep1)->left.expr; in expr_eliminate_dups1()
494 l = (*ep2)->left.expr; in expr_eliminate_dups1()
550 l = expr_eliminate_dups(e->left.expr); in expr_eliminate_dups()
608 expr_transform(e->left.expr), in expr_transform()
614 if (e->left.sym->type != S_BOOLEAN) in expr_transform()
618 e = expr_alloc_one(E_NOT, expr_alloc_symbol(e->left.sym)); in expr_transform()
623 printf("boolean symbol %s tested for 'm'? test forced to 'n'\n", e->left.sym->name); in expr_transform()
629 e = expr_alloc_symbol(e->left.sym); in expr_transform()
634 if (e->left.sym->type != S_BOOLEAN) in expr_transform()
638 e = expr_alloc_symbol(e->left.sym); in expr_transform()
643 printf("boolean symbol %s tested for 'm'? test forced to 'y'\n", e->left.sym->name); in expr_transform()
649 e = expr_alloc_one(E_NOT, e->left.expr); in expr_transform()
654 switch (e->left.expr->type) { in expr_transform()
657 e = e->left.expr->left.expr; in expr_transform()
662 e = expr_alloc_comp(e->left.expr->type == E_EQUAL ? E_UNEQUAL : E_EQUAL, in expr_transform()
663 e->left.expr->left.sym, in expr_transform()
664 e->left.expr->right.sym); in expr_transform()
669 e = expr_alloc_comp(e->left.expr->type == E_LEQ ? E_GTH : E_LTH, in expr_transform()
670 e->left.expr->left.sym, in expr_transform()
671 e->left.expr->right.sym); in expr_transform()
676 e = expr_alloc_comp(e->left.expr->type == E_LTH ? E_GEQ : E_LEQ, in expr_transform()
677 e->left.expr->left.sym, in expr_transform()
678 e->left.expr->right.sym); in expr_transform()
682 e = expr_alloc_and(expr_alloc_one(E_NOT, e->left.expr->left.expr), in expr_transform()
683 expr_alloc_one(E_NOT, e->left.expr->right.expr)); in expr_transform()
688 e = expr_alloc_or(expr_alloc_one(E_NOT, e->left.expr->left.expr), in expr_transform()
689 expr_alloc_one(E_NOT, e->left.expr->right.expr)); in expr_transform()
693 if (e->left.expr->left.sym == &symbol_yes) in expr_transform()
696 else if (e->left.expr->left.sym == &symbol_mod) in expr_transform()
699 else if (e->left.expr->left.sym == &symbol_no) in expr_transform()
721 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
724 return dep->left.sym == sym; in expr_contains_symbol()
731 return dep->left.sym == sym || in expr_contains_symbol()
734 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
748 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
751 return dep->left.sym == sym; in expr_depends_symbol()
753 if (dep->left.sym == sym) { in expr_depends_symbol()
759 if (dep->left.sym == sym) { in expr_depends_symbol()
796 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); in expr_trans_compare()
806 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); in expr_trans_compare()
816 return expr_trans_compare(e->left.expr, type == E_EQUAL ? E_UNEQUAL : E_EQUAL, sym); in expr_trans_compare()
840 return expr_alloc_comp(type, e->left.sym, sym); in expr_trans_compare()
901 sym_calc_value(e->left.sym); in __expr_calc_value()
902 return e->left.sym->curr.tri; in __expr_calc_value()
904 val1 = expr_calc_value(e->left.expr); in __expr_calc_value()
908 val1 = expr_calc_value(e->left.expr); in __expr_calc_value()
912 val1 = expr_calc_value(e->left.expr); in __expr_calc_value()
926 sym_calc_value(e->left.sym); in __expr_calc_value()
928 str1 = sym_get_string_value(e->left.sym); in __expr_calc_value()
931 if (e->left.sym->type != S_STRING || e->right.sym->type != S_STRING) { in __expr_calc_value()
932 k1 = expr_parse_string(str1, e->left.sym->type, &lval); in __expr_calc_value()
1035 if (e->left.sym->name) in expr_print()
1036 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1042 expr_print(e->left.expr, fn, data, E_NOT); in expr_print()
1045 if (e->left.sym->name) in expr_print()
1046 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1054 if (e->left.sym->name) in expr_print()
1055 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1063 if (e->left.sym->name) in expr_print()
1064 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1071 if (e->left.sym->name) in expr_print()
1072 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1079 expr_print(e->left.expr, fn, data, E_OR); in expr_print()
1084 expr_print(e->left.expr, fn, data, E_AND); in expr_print()
1090 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1162 expr_print_revdep(e->left.expr, fn, data, pr_type, title); in expr_print_revdep()