Lines Matching refs:right
37 e->right.expr = e2;
47 e->right.sym = s2;
77 e->right.sym = org->right.sym;
83 e->right.expr = expr_copy(org->right.expr);
112 expr_free(e->right.expr);
130 __expr_eliminate_eq(type, &e1->right.expr, &e2);
135 __expr_eliminate_eq(type, &e1, &e2->right.expr);
180 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym;
217 e->right.expr = expr_eliminate_yn(e->right.expr);
221 expr_free(e->right.expr);
224 e->right.expr = NULL;
228 tmp = e->right.expr;
229 *e = *(e->right.expr);
234 if (e->right.expr->type == E_SYMBOL) {
235 if (e->right.expr->left.sym == &symbol_no) {
237 expr_free(e->right.expr);
240 e->right.expr = NULL;
242 } else if (e->right.expr->left.sym == &symbol_yes) {
243 free(e->right.expr);
253 e->right.expr = expr_eliminate_yn(e->right.expr);
257 tmp = e->right.expr;
258 *e = *(e->right.expr);
263 expr_free(e->right.expr);
266 e->right.expr = NULL;
270 if (e->right.expr->type == E_SYMBOL) {
271 if (e->right.expr->left.sym == &symbol_no) {
272 free(e->right.expr);
277 } else if (e->right.expr->left.sym == &symbol_yes) {
279 expr_free(e->right.expr);
282 e->right.expr = NULL;
305 e->right.expr = expr_trans_bool(e->right.expr);
310 if (e->right.sym == &symbol_no) {
312 e->right.sym = NULL;
355 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
356 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) {
361 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
362 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) {
367 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
368 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) {
416 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_yes) ||
417 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_yes))
421 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_no) ||
422 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_no))
429 sym2 = e1->right.sym;
430 if ((e2->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
431 return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
436 sym2 = e2->right.sym;
437 if ((e1->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
438 return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
442 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
443 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes)))
448 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
449 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes)))
454 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
455 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod)))
459 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_mod) ||
460 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_mod) ||
461 (e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_yes) ||
462 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_yes))
481 expr_eliminate_dups1(type, &e1->right.expr, &e2);
486 expr_eliminate_dups1(type, &e1, &e2->right.expr);
533 expr_eliminate_dups2(type, &e1->right.expr, &e2);
538 expr_eliminate_dups2(type, &e1, &e2->right.expr);
619 e->right.expr = expr_transform(e->right.expr);
626 if (e->right.sym == &symbol_no) {
629 e->right.sym = NULL;
632 if (e->right.sym == &symbol_mod) {
636 e->right.sym = NULL;
639 if (e->right.sym == &symbol_yes) {
641 e->right.sym = NULL;
648 if (e->right.sym == &symbol_no) {
650 e->right.sym = NULL;
653 if (e->right.sym == &symbol_mod) {
657 e->right.sym = NULL;
660 if (e->right.sym == &symbol_yes) {
663 e->right.sym = NULL;
689 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
691 tmp->right.expr = NULL;
698 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
700 tmp->right.expr = NULL;
751 expr_contains_symbol(dep->right.expr, sym);
757 dep->right.sym == sym;
774 expr_depends_symbol(dep->right.expr, sym);
779 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod)
785 if (dep->right.sym == &symbol_no)
823 expr_extract_eq(type, ep, &e1->right.expr, &e2);
828 expr_extract_eq(type, ep, ep1, &e2->right.expr);
859 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym);
869 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym);
920 val2 = expr_calc_value(e->right.expr);
924 val2 = expr_calc_value(e->right.expr);
931 sym_calc_value(e->right.sym);
933 str2 = sym_get_string_value(e->right.sym);
937 sym_calc_value(e->right.sym);
939 str2 = sym_get_string_value(e->right.sym);
998 fn(data, e->right.sym->name);
1003 fn(data, e->right.sym->name);
1008 expr_print(e->right.expr, fn, data, E_OR);
1013 expr_print(e->right.expr, fn, data, E_AND);
1020 fn(data, e->right.sym->name);