Lines Matching full:left
22 e->left.sym = sym; in expr_alloc_symbol()
30 e->left.expr = ce; in expr_alloc_one()
38 e->left.expr = e1; in expr_alloc_two()
47 e->left.sym = s1; in expr_alloc_comp()
77 e->left = org->left; in expr_copy()
80 e->left.expr = expr_copy(org->left.expr); in expr_copy()
88 e->left.sym = org->left.sym; in expr_copy()
94 e->left.expr = expr_copy(org->left.expr); in expr_copy()
116 expr_free(e->left.expr); in expr_free()
127 expr_free(e->left.expr); in expr_free()
155 __expr_eliminate_eq(type, &e1->left.expr, &e2); in __expr_eliminate_eq()
160 __expr_eliminate_eq(type, &e1, &e2->left.expr); in __expr_eliminate_eq()
168 e1->left.sym == e2->left.sym && in __expr_eliminate_eq()
169 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
272 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
274 return e1->left.sym == e2->left.sym; in expr_eq()
276 return expr_eq(e1->left.expr, e2->left.expr); in expr_eq()
284 e1->left.sym == e2->left.sym); in expr_eq()
322 e->left.expr = expr_eliminate_yn(e->left.expr); in expr_eliminate_yn()
324 if (e->left.expr->type == E_SYMBOL) { in expr_eliminate_yn()
325 if (e->left.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
326 expr_free(e->left.expr); in expr_eliminate_yn()
329 e->left.sym = &symbol_no; in expr_eliminate_yn()
332 } else if (e->left.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
333 free(e->left.expr); in expr_eliminate_yn()
341 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
342 expr_free(e->left.expr); in expr_eliminate_yn()
345 e->left.sym = &symbol_no; in expr_eliminate_yn()
348 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
350 tmp = e->left.expr; in expr_eliminate_yn()
351 *e = *(e->left.expr); in expr_eliminate_yn()
358 e->left.expr = expr_eliminate_yn(e->left.expr); in expr_eliminate_yn()
360 if (e->left.expr->type == E_SYMBOL) { in expr_eliminate_yn()
361 if (e->left.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
362 free(e->left.expr); in expr_eliminate_yn()
367 } else if (e->left.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
368 expr_free(e->left.expr); in expr_eliminate_yn()
371 e->left.sym = &symbol_yes; in expr_eliminate_yn()
377 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
379 tmp = e->left.expr; in expr_eliminate_yn()
380 *e = *(e->left.expr); in expr_eliminate_yn()
383 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
384 expr_free(e->left.expr); in expr_eliminate_yn()
387 e->left.sym = &symbol_yes; in expr_eliminate_yn()
410 e->left.expr = expr_trans_bool(e->left.expr); in expr_trans_bool()
415 if (e->left.sym->type == S_TRISTATE) { in expr_trans_bool()
443 tmp = e1->left.expr; in expr_join_or()
446 sym1 = tmp->left.sym; in expr_join_or()
448 sym1 = e1->left.sym; in expr_join_or()
450 if (e2->left.expr->type != E_SYMBOL) in expr_join_or()
452 sym2 = e2->left.expr->left.sym; in expr_join_or()
454 sym2 = e2->left.sym; in expr_join_or()
480 if ((e1->type == E_NOT && e1->left.expr->type == E_SYMBOL && e2->type == E_SYMBOL) || in expr_join_or()
481 (e2->type == E_NOT && e2->left.expr->type == E_SYMBOL && e1->type == E_SYMBOL)) in expr_join_or()
507 tmp = e1->left.expr; in expr_join_and()
510 sym1 = tmp->left.sym; in expr_join_and()
512 sym1 = e1->left.sym; in expr_join_and()
514 if (e2->left.expr->type != E_SYMBOL) in expr_join_and()
516 sym2 = e2->left.expr->left.sym; in expr_join_and()
518 sym2 = e2->left.sym; in expr_join_and()
605 expr_eliminate_dups1(type, &e1->left.expr, &e2); in expr_eliminate_dups1()
610 expr_eliminate_dups1(type, &e1, &e2->left.expr); in expr_eliminate_dups1()
711 e->left.expr = expr_transform(e->left.expr); in expr_transform()
717 if (e->left.sym->type != S_BOOLEAN) in expr_transform()
721 e->left.expr = expr_alloc_symbol(e->left.sym); in expr_transform()
726 printf("boolean symbol %s tested for 'm'? test forced to 'n'\n", e->left.sym->name); in expr_transform()
728 e->left.sym = &symbol_no; in expr_transform()
739 if (e->left.sym->type != S_BOOLEAN) in expr_transform()
747 printf("boolean symbol %s tested for 'm'? test forced to 'y'\n", e->left.sym->name); in expr_transform()
749 e->left.sym = &symbol_yes; in expr_transform()
755 e->left.expr = expr_alloc_symbol(e->left.sym); in expr_transform()
761 switch (e->left.expr->type) { in expr_transform()
764 tmp = e->left.expr->left.expr; in expr_transform()
765 free(e->left.expr); in expr_transform()
773 tmp = e->left.expr; in expr_transform()
781 tmp = e->left.expr; in expr_transform()
789 tmp = e->left.expr; in expr_transform()
796 tmp = e->left.expr; in expr_transform()
805 tmp = e->left.expr; in expr_transform()
813 if (e->left.expr->left.sym == &symbol_yes) { in expr_transform()
815 tmp = e->left.expr; in expr_transform()
819 e->left.sym = &symbol_no; in expr_transform()
822 if (e->left.expr->left.sym == &symbol_mod) { in expr_transform()
824 tmp = e->left.expr; in expr_transform()
828 e->left.sym = &symbol_mod; in expr_transform()
831 if (e->left.expr->left.sym == &symbol_no) { in expr_transform()
833 tmp = e->left.expr; in expr_transform()
837 e->left.sym = &symbol_yes; in expr_transform()
859 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
862 return dep->left.sym == sym; in expr_contains_symbol()
869 return dep->left.sym == sym || in expr_contains_symbol()
872 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
886 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
889 return dep->left.sym == sym; in expr_depends_symbol()
891 if (dep->left.sym == sym) { in expr_depends_symbol()
897 if (dep->left.sym == sym) { in expr_depends_symbol()
934 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); in expr_trans_compare()
944 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); in expr_trans_compare()
954 return expr_trans_compare(e->left.expr, type == E_EQUAL ? E_UNEQUAL : E_EQUAL, sym); in expr_trans_compare()
978 return expr_alloc_comp(type, e->left.sym, sym); in expr_trans_compare()
1043 sym_calc_value(e->left.sym); in expr_calc_value()
1044 return e->left.sym->curr.tri; in expr_calc_value()
1046 val1 = expr_calc_value(e->left.expr); in expr_calc_value()
1050 val1 = expr_calc_value(e->left.expr); in expr_calc_value()
1054 val1 = expr_calc_value(e->left.expr); in expr_calc_value()
1068 sym_calc_value(e->left.sym); in expr_calc_value()
1070 str1 = sym_get_string_value(e->left.sym); in expr_calc_value()
1073 if (e->left.sym->type != S_STRING || e->right.sym->type != S_STRING) { in expr_calc_value()
1074 k1 = expr_parse_string(str1, e->left.sym->type, &lval); in expr_calc_value()
1151 if (e->left.sym->name) in expr_print()
1152 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1158 expr_print(e->left.expr, fn, data, E_NOT); in expr_print()
1161 if (e->left.sym->name) in expr_print()
1162 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1170 if (e->left.sym->name) in expr_print()
1171 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1179 if (e->left.sym->name) in expr_print()
1180 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1187 if (e->left.sym->name) in expr_print()
1188 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1195 expr_print(e->left.expr, fn, data, E_OR); in expr_print()
1200 expr_print(e->left.expr, fn, data, E_AND); in expr_print()
1206 if (e->left.expr) { in expr_print()
1208 expr_print(e->left.expr, fn, data, E_LIST); in expr_print()
1213 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1285 expr_print_revdep(e->left.expr, fn, data, pr_type, title); in expr_print_revdep()