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);
203 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym;
243 e->right.expr = expr_eliminate_yn(e->right.expr);
247 expr_free(e->right.expr);
250 e->right.expr = NULL;
254 tmp = e->right.expr;
255 *e = *(e->right.expr);
260 if (e->right.expr->type == E_SYMBOL) {
261 if (e->right.expr->left.sym == &symbol_no) {
263 expr_free(e->right.expr);
266 e->right.expr = NULL;
268 } else if (e->right.expr->left.sym == &symbol_yes) {
269 free(e->right.expr);
279 e->right.expr = expr_eliminate_yn(e->right.expr);
283 tmp = e->right.expr;
284 *e = *(e->right.expr);
289 expr_free(e->right.expr);
292 e->right.expr = NULL;
296 if (e->right.expr->type == E_SYMBOL) {
297 if (e->right.expr->left.sym == &symbol_no) {
298 free(e->right.expr);
303 } else if (e->right.expr->left.sym == &symbol_yes) {
305 expr_free(e->right.expr);
308 e->right.expr = NULL;
331 e->right.expr = expr_trans_bool(e->right.expr);
336 if (e->right.sym == &symbol_no) {
338 e->right.sym = NULL;
381 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
382 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes))) {
387 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
388 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes))) {
393 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
394 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod))) {
444 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_yes) ||
445 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_yes))
449 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_no) ||
450 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_no))
454 if ((e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_mod) ||
455 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_mod))
462 sym2 = e1->right.sym;
463 if ((e2->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
464 return sym2 != e2->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
469 sym2 = e2->right.sym;
470 if ((e1->right.sym->flags & SYMBOL_CONST) && (sym2->flags & SYMBOL_CONST))
471 return sym2 != e1->right.sym ? expr_alloc_comp(E_EQUAL, sym1, sym2)
475 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_no) ||
476 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_yes)))
481 ((e1->right.sym == &symbol_yes && e2->right.sym == &symbol_mod) ||
482 (e1->right.sym == &symbol_mod && e2->right.sym == &symbol_yes)))
487 ((e1->right.sym == &symbol_mod && e2->right.sym == &symbol_no) ||
488 (e1->right.sym == &symbol_no && e2->right.sym == &symbol_mod)))
492 if ((e1->type == E_SYMBOL && e2->type == E_EQUAL && e2->right.sym == &symbol_mod) ||
493 (e2->type == E_SYMBOL && e1->type == E_EQUAL && e1->right.sym == &symbol_mod) ||
494 (e1->type == E_SYMBOL && e2->type == E_UNEQUAL && e2->right.sym == &symbol_yes) ||
495 (e2->type == E_SYMBOL && e1->type == E_UNEQUAL && e1->right.sym == &symbol_yes))
517 expr_eliminate_dups1(type, &e1->right.expr, &e2);
522 expr_eliminate_dups1(type, &e1, &e2->right.expr);
569 expr_eliminate_dups2(type, &e1->right.expr, &e2);
574 expr_eliminate_dups2(type, &e1, &e2->right.expr);
655 e->right.expr = expr_transform(e->right.expr);
662 if (e->right.sym == &symbol_no) {
665 e->right.sym = NULL;
668 if (e->right.sym == &symbol_mod) {
672 e->right.sym = NULL;
675 if (e->right.sym == &symbol_yes) {
677 e->right.sym = NULL;
684 if (e->right.sym == &symbol_no) {
686 e->right.sym = NULL;
689 if (e->right.sym == &symbol_mod) {
693 e->right.sym = NULL;
696 if (e->right.sym == &symbol_yes) {
699 e->right.sym = NULL;
725 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
727 tmp->right.expr = NULL;
734 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr);
736 tmp->right.expr = NULL;
787 expr_contains_symbol(dep->right.expr, sym);
793 dep->right.sym == sym;
810 expr_depends_symbol(dep->right.expr, sym);
815 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod)
821 if (dep->right.sym == &symbol_no)
859 expr_extract_eq(type, ep, &e1->right.expr, &e2);
864 expr_extract_eq(type, ep, ep1, &e2->right.expr);
895 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym);
905 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym);
957 val2 = expr_calc_value(e->right.expr);
961 val2 = expr_calc_value(e->right.expr);
968 sym_calc_value(e->right.sym);
970 str2 = sym_get_string_value(e->right.sym);
974 sym_calc_value(e->right.sym);
976 str2 = sym_get_string_value(e->right.sym);
1038 fn(data, e->right.sym, e->right.sym->name);
1046 fn(data, e->right.sym, e->right.sym->name);
1051 expr_print(e->right.expr, fn, data, E_OR);
1056 expr_print(e->right.expr, fn, data, E_AND);
1059 fn(data, e->right.sym, e->right.sym->name);
1069 fn(data, e->right.sym, e->right.sym->name);