Lines Matching refs:left

21 	e->left.sym = sym;  in expr_alloc_symbol()
29 e->left.expr = ce; in expr_alloc_one()
37 e->left.expr = e1; in expr_alloc_two()
46 e->left.sym = s1; in expr_alloc_comp()
76 e->left = org->left; in expr_copy()
79 e->left.expr = expr_copy(org->left.expr); in expr_copy()
87 e->left.sym = org->left.sym; in expr_copy()
93 e->left.expr = expr_copy(org->left.expr); in expr_copy()
115 expr_free(e->left.expr); in expr_free()
126 expr_free(e->left.expr); in expr_free()
154 __expr_eliminate_eq(type, &e1->left.expr, &e2); in __expr_eliminate_eq()
159 __expr_eliminate_eq(type, &e1, &e2->left.expr); in __expr_eliminate_eq()
167 e1->left.sym == e2->left.sym && in __expr_eliminate_eq()
168 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
264 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
266 return e1->left.sym == e2->left.sym; in expr_eq()
268 return expr_eq(e1->left.expr, e2->left.expr); in expr_eq()
276 e1->left.sym == e2->left.sym); in expr_eq()
314 e->left.expr = expr_eliminate_yn(e->left.expr); in expr_eliminate_yn()
316 if (e->left.expr->type == E_SYMBOL) { in expr_eliminate_yn()
317 if (e->left.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
318 expr_free(e->left.expr); in expr_eliminate_yn()
321 e->left.sym = &symbol_no; in expr_eliminate_yn()
324 } else if (e->left.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
325 free(e->left.expr); in expr_eliminate_yn()
333 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
334 expr_free(e->left.expr); in expr_eliminate_yn()
337 e->left.sym = &symbol_no; in expr_eliminate_yn()
340 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
342 tmp = e->left.expr; in expr_eliminate_yn()
343 *e = *(e->left.expr); in expr_eliminate_yn()
350 e->left.expr = expr_eliminate_yn(e->left.expr); in expr_eliminate_yn()
352 if (e->left.expr->type == E_SYMBOL) { in expr_eliminate_yn()
353 if (e->left.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
354 free(e->left.expr); in expr_eliminate_yn()
359 } else if (e->left.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
360 expr_free(e->left.expr); in expr_eliminate_yn()
363 e->left.sym = &symbol_yes; in expr_eliminate_yn()
369 if (e->right.expr->left.sym == &symbol_no) { in expr_eliminate_yn()
371 tmp = e->left.expr; in expr_eliminate_yn()
372 *e = *(e->left.expr); in expr_eliminate_yn()
375 } else if (e->right.expr->left.sym == &symbol_yes) { in expr_eliminate_yn()
376 expr_free(e->left.expr); in expr_eliminate_yn()
379 e->left.sym = &symbol_yes; in expr_eliminate_yn()
402 e->left.expr = expr_trans_bool(e->left.expr); in expr_trans_bool()
407 if (e->left.sym->type == S_TRISTATE) { in expr_trans_bool()
435 tmp = e1->left.expr; in expr_join_or()
438 sym1 = tmp->left.sym; in expr_join_or()
440 sym1 = e1->left.sym; in expr_join_or()
442 if (e2->left.expr->type != E_SYMBOL) in expr_join_or()
444 sym2 = e2->left.expr->left.sym; in expr_join_or()
446 sym2 = e2->left.sym; in expr_join_or()
472 if ((e1->type == E_NOT && e1->left.expr->type == E_SYMBOL && e2->type == E_SYMBOL) || in expr_join_or()
473 (e2->type == E_NOT && e2->left.expr->type == E_SYMBOL && e1->type == E_SYMBOL)) in expr_join_or()
499 tmp = e1->left.expr; in expr_join_and()
502 sym1 = tmp->left.sym; in expr_join_and()
504 sym1 = e1->left.sym; in expr_join_and()
506 if (e2->left.expr->type != E_SYMBOL) in expr_join_and()
508 sym2 = e2->left.expr->left.sym; in expr_join_and()
510 sym2 = e2->left.sym; in expr_join_and()
597 expr_eliminate_dups1(type, &e1->left.expr, &e2); in expr_eliminate_dups1()
602 expr_eliminate_dups1(type, &e1, &e2->left.expr); in expr_eliminate_dups1()
703 e->left.expr = expr_transform(e->left.expr); in expr_transform()
709 if (e->left.sym->type != S_BOOLEAN) in expr_transform()
713 e->left.expr = expr_alloc_symbol(e->left.sym); in expr_transform()
718 printf("boolean symbol %s tested for 'm'? test forced to 'n'\n", e->left.sym->name); in expr_transform()
720 e->left.sym = &symbol_no; in expr_transform()
731 if (e->left.sym->type != S_BOOLEAN) in expr_transform()
739 printf("boolean symbol %s tested for 'm'? test forced to 'y'\n", e->left.sym->name); in expr_transform()
741 e->left.sym = &symbol_yes; in expr_transform()
747 e->left.expr = expr_alloc_symbol(e->left.sym); in expr_transform()
753 switch (e->left.expr->type) { in expr_transform()
756 tmp = e->left.expr->left.expr; in expr_transform()
757 free(e->left.expr); in expr_transform()
765 tmp = e->left.expr; in expr_transform()
773 tmp = e->left.expr; in expr_transform()
781 tmp = e->left.expr; in expr_transform()
788 tmp = e->left.expr; in expr_transform()
797 tmp = e->left.expr; in expr_transform()
805 if (e->left.expr->left.sym == &symbol_yes) { in expr_transform()
807 tmp = e->left.expr; in expr_transform()
811 e->left.sym = &symbol_no; in expr_transform()
814 if (e->left.expr->left.sym == &symbol_mod) { in expr_transform()
816 tmp = e->left.expr; in expr_transform()
820 e->left.sym = &symbol_mod; in expr_transform()
823 if (e->left.expr->left.sym == &symbol_no) { in expr_transform()
825 tmp = e->left.expr; in expr_transform()
829 e->left.sym = &symbol_yes; in expr_transform()
851 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
854 return dep->left.sym == sym; in expr_contains_symbol()
861 return dep->left.sym == sym || in expr_contains_symbol()
864 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
878 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
881 return dep->left.sym == sym; in expr_depends_symbol()
883 if (dep->left.sym == sym) { in expr_depends_symbol()
889 if (dep->left.sym == sym) { in expr_depends_symbol()
926 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); in expr_trans_compare()
936 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); in expr_trans_compare()
946 return expr_trans_compare(e->left.expr, type == E_EQUAL ? E_UNEQUAL : E_EQUAL, sym); in expr_trans_compare()
970 return expr_alloc_comp(type, e->left.sym, sym); in expr_trans_compare()
1039 sym_calc_value(e->left.sym); in expr_calc_value()
1040 return e->left.sym->curr.tri; in expr_calc_value()
1042 val1 = expr_calc_value(e->left.expr); 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()
1064 sym_calc_value(e->left.sym); in expr_calc_value()
1066 str1 = sym_get_string_value(e->left.sym); in expr_calc_value()
1069 if (e->left.sym->type != S_STRING || e->right.sym->type != S_STRING) { in expr_calc_value()
1070 k1 = expr_parse_string(str1, e->left.sym->type, &lval); in expr_calc_value()
1153 if (e->left.sym->name) in expr_print()
1154 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1160 expr_print(e->left.expr, fn, data, E_NOT); in expr_print()
1163 if (e->left.sym->name) in expr_print()
1164 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1172 if (e->left.sym->name) in expr_print()
1173 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1181 if (e->left.sym->name) in expr_print()
1182 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1189 if (e->left.sym->name) in expr_print()
1190 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1197 expr_print(e->left.expr, fn, data, E_OR); in expr_print()
1202 expr_print(e->left.expr, fn, data, E_AND); in expr_print()
1208 if (e->left.expr) { in expr_print()
1210 expr_print(e->left.expr, fn, data, E_LIST); in expr_print()
1215 fn(data, e->left.sym, e->left.sym->name); in expr_print()
1287 expr_print_revdep(e->left.expr, fn, data, pr_type, title); in expr_print_revdep()