Lines Matching refs:right
39 e->right.expr = e2;
49 e->right.sym = s2;
86 e->right.sym = org->right.sym;
92 e->right.expr = expr_copy(org->right.expr);
121 expr_free(e->right.expr);
139 __expr_eliminate_eq(type, &e1->right.expr, &e2);
144 __expr_eliminate_eq(type, &e1, &e2->right.expr);
202 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym;
242 e->right.expr = expr_eliminate_yn(e->right.expr);
246 expr_free(e->right.expr);
249 e->right.expr = NULL;
253 tmp = e->right.expr;
254 *e = *(e->right.expr);
259 if (e->right.expr->type == E_SYMBOL) {
260 if (e->right.expr->left.sym == &symbol_no) {
262 expr_free(e->right.expr);
265 e->right.expr = NULL;
267 } else if (e->right.expr->left.sym == &symbol_yes) {
268 free(e->right.expr);
278 e->right.expr = expr_eliminate_yn(e->right.expr);
282 tmp = e->right.expr;
283 *e = *(e->right.expr);
288 expr_free(e->right.expr);
291 e->right.expr = NULL;
295 if (e->right.expr->type == E_SYMBOL) {
296 if (e->right.expr->left.sym == &symbol_no) {
297 free(e->right.expr);
302 } else if (e->right.expr->left.sym == &symbol_yes) {
304 expr_free(e->right.expr);
307 e->right.expr = NULL;
330 e->right.expr = expr_trans_bool(e->right.expr);
335 if (e->right.sym == &symbol_no) {
337 e->right.sym = NULL;
380 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
381 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) {
386 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
387 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) {
392 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
393 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) {
443 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_yes) ||
444 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_yes))
448 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_no) ||
449 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_no))
453 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_mod) ||
454 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_mod))
461 sym2 = e1->right.sym;
462 if ((e2->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
463 return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
468 sym2 = e2->right.sym;
469 if ((e1->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
470 return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
474 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
475 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes)))
480 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
481 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes)))
486 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
487 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod)))
491 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_mod) ||
492 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_mod) ||
493 (e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_yes) ||
494 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_yes))
516 expr_eliminate_dups1(type, &e1->right.expr, &e2);
521 expr_eliminate_dups1(type, &e1, &e2->right.expr);
568 expr_eliminate_dups2(type, &e1->right.expr, &e2);
573 expr_eliminate_dups2(type, &e1, &e2->right.expr);
654 e->right.expr = expr_transform(e->right.expr);
661 if (e->right.sym == &symbol_no) {
664 e->right.sym = NULL;
667 if (e->right.sym == &symbol_mod) {
671 e->right.sym = NULL;
674 if (e->right.sym == &symbol_yes) {
676 e->right.sym = NULL;
683 if (e->right.sym == &symbol_no) {
685 e->right.sym = NULL;
688 if (e->right.sym == &symbol_mod) {
692 e->right.sym = NULL;
695 if (e->right.sym == &symbol_yes) {
698 e->right.sym = NULL;
724 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
726 tmp->right.expr = NULL;
733 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
735 tmp->right.expr = NULL;
786 expr_contains_symbol(dep->right.expr, sym);
792 dep->right.sym == sym;
809 expr_depends_symbol(dep->right.expr, sym);
814 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod)
820 if (dep->right.sym == &symbol_no)
858 expr_extract_eq(type, ep, &e1->right.expr, &e2);
863 expr_extract_eq(type, ep, ep1, &e2->right.expr);
894 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym);
904 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym);
956 val2 = expr_calc_value(e->right.expr);
960 val2 = expr_calc_value(e->right.expr);
967 sym_calc_value(e->right.sym);
969 str2 = sym_get_string_value(e->right.sym);
973 sym_calc_value(e->right.sym);
975 str2 = sym_get_string_value(e->right.sym);
1034 fn(data, e->right.sym->name);
1039 fn(data, e->right.sym->name);
1044 expr_print(e->right.expr, fn, data, E_OR);
1049 expr_print(e->right.expr, fn, data, E_AND);
1052 fn(data, e->right.sym->name);
1062 fn(data, e->right.sym->name);