/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | misc.cc | 950 node = node->right; in lookup() 978 node = node->right; in insert() 1034 entry *right = node->right; in rebalance() local 1037 unsigned rdepth = (right != 0) ? right->depth : 0; in rebalance() 1053 left->right = node; in rebalance() 1059 if ((node->right = right->left) != 0) { in rebalance() 1064 node->parent->right = right; in rebalance() 1069 root = right; in rebalance() 1071 right->left = node; in rebalance() 1075 node = right; in rebalance() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_assign_vs_compare.c | 26 if (!get_value(expr->right, &val)) in check_constant() 34 struct expression *right = strip_expr(expr->right); in check_address() local 39 if (right->type != EXPR_PREOP || in check_address() 40 right->op != '&') in check_address() 46 str = expr_to_str(right); in check_address()
|
H A D | smatch_math.c | 312 right = strip_expr(expr->right); in handle_offset_subtraction() 327 if (right->type != EXPR_PREOP || right->op != '&') in handle_offset_subtraction() 329 right = strip_expr(right->unop); in handle_offset_subtraction() 459 if (!get_implied_value(expr->right, &right)) in handle_mod_rl() 471 right = sval_cast(get_type(expr), right); in handle_mod_rl() 478 *res = alloc_rl(sval_cast(right.type, zero), right); in handle_mod_rl() 566 sval_t right; in handle_left_shift() local 592 if (!get_value(expr->right, &right)) in handle_known_binop() 766 right = get_real_base_type(expr->right->symbol); in handle_comparison_rl() 815 if (get_value(expr->right, &right)) in handle_logical_rl() [all …]
|
H A D | smatch_ranges.c | 1160 if (sval_cmp(right->min, right->max) != 0) in true_comparison_range() 1196 if (sval_cmp(right->min, right->max) != 0) in false_comparison_range_sval() 1614 max = rl_max(right); in handle_mod_rl() 1686 if (!left || !right) in divide_rl_helper() 1690 right_min = rl_min(right); in divide_rl_helper() 1691 right_max = rl_max(right); in divide_rl_helper() 1711 if (is_whole_rl(right)) in handle_divide_rl() 1905 two = rl_to_binfo(right); in handle_AND_rl() 1995 cast_type = rl_type(right); in rl_binop() 2000 right = cast_rl(cast_type, right); in rl_binop() [all …]
|
H A D | check_buffer_too_small_for_struct.c | 39 right_type = get_type(expr->right); in match_assign() 48 bytes = get_array_size_bytes(expr->right); in match_assign() 52 size_expr = get_size_variable(expr->right, &limit_type); in match_assign() 68 struct expression *right; in match_dereferences() local 90 right = get_assigned_expr(expr); in match_dereferences() 91 size_expr = get_size_variable(right, &limit_type); in match_dereferences() 101 name = expr_to_str(right); in match_dereferences()
|
H A D | check_bit_shift.c | 60 if (positions_eq(expr->pos, expr->right->pos)) in match_assign() 62 name = get_shifter(expr->right); in match_assign() 74 if (positions_eq(expr->pos, expr->right->pos)) in match_binop() 78 name = get_shifter(expr->right); in match_binop() 120 if (positions_eq(expr->pos, expr->right->pos)) in match_binop_info() 124 if (expr->right->type != EXPR_VALUE) in match_binop_info() 126 name = pos_ident(expr->right->pos); in match_binop_info() 129 if (!get_value(expr->right, &sval)) in match_binop_info()
|
H A D | check_signed_integer_overflow_check.c | 31 struct expression *left, *right; in match_condition() local 46 right = strip_expr(expr->right); in match_condition() 58 if (has_variable(left, right) == 1) { in match_condition() 60 right_name = expr_to_str(right); in match_condition() 90 get_absolute_min(expr->right, &right_min); in match_binop()
|
H A D | smatch_mtag_map.c | 31 struct expression *left, *right; in match_assign() local 40 right = strip_expr(expr->right); in match_assign() 42 if (!type_is_ptr(get_type(right))) in match_assign() 44 if (!get_implied_value(right, &sval)) in match_assign()
|
H A D | smatch_buf_size.c | 276 call = strip_expr(expr->right); in db_returns_buf_size() 677 struct expression *right; in match_array_assignment() local 686 right = strip_expr(expr->right); in match_array_assignment() 687 right = strip_ampersands(right); in match_array_assignment() 694 if (is_allocation_function(right)) in match_array_assignment() 723 struct expression *right; in match_alloc() local 727 right = strip_expr(expr->right); in match_alloc() 736 struct expression *right; in match_calloc() local 741 right = strip_expr(expr->right); in match_calloc() 781 struct expression *right; in match_alloc_pages() local [all …]
|
H A D | smatch_expressions.c | 93 struct expression *assign_expression(struct expression *left, int op, struct expression *right) in assign_expression() argument 97 if (!right) in assign_expression() 101 expr = alloc_expression(right->pos, EXPR_ASSIGNMENT); in assign_expression() 104 expr->right = right; in assign_expression() 108 struct expression *binop_expression(struct expression *left, int op, struct expression *right) in binop_expression() argument 112 expr = alloc_tmp_expression(right->pos, EXPR_BINOP); in binop_expression() 115 expr->right = right; in binop_expression() 137 struct expression *compare_expression(struct expression *left, int op, struct expression *right) in compare_expression() argument 144 expr->right = right; in compare_expression()
|
H A D | smatch_strlen.c | 67 if (!get_implied_strlen(expr->right, &rl)) in match_string_assignment() 74 struct expression *right; in match_strlen() local 80 right = strip_expr(expr->right); in match_strlen() 81 str = get_argument_from_call_expr(right->args, 0); in match_strlen() 98 struct expression *right; in match_strlen_condition() local 111 right = strip_expr(expr->right); in match_strlen_condition() 117 if (right->type == EXPR_CALL && sym_name_is("strlen", right->fn)) { in match_strlen_condition() 118 str = get_argument_from_call_expr(right->args, 0); in match_strlen_condition() 129 if (!get_value(right, &sval)) in match_strlen_condition()
|
H A D | smatch_type.c | 76 right = get_type(expr->right); in get_binop_type() 77 if (!right) in get_binop_type() 84 return right; in get_binop_type() 89 if (type_is_fp(right)) { in get_binop_type() 92 return right; in get_binop_type() 95 return right; in get_binop_type() 104 if (right->type == SYM_PTR || right->type == SYM_ARRAY) in get_binop_type() 105 return right; in get_binop_type() 112 return right; in get_binop_type() 372 ret = right; in get_promoted_type() [all …]
|
H A D | smatch_kernel_user_data.c | 147 user_rl_capped(expr->right)) in binop_capped() 518 struct expression *right; in handle_struct_assignment() local 535 right = strip_expr(expr->right); in handle_struct_assignment() 536 right_type = get_type(right); in handle_struct_assignment() 593 expr->right); in handle_op_assign() 619 if (is_fake_call(expr->right)) in match_assign() 717 right = strip_expr(expr->right); in handle_compare() 747 get_user_rl(right, &right_rl); in handle_compare() 914 if (!get_user_rl(expr->right, &right)) in var_user_rl() 937 get_user_rl(expr->right, &right); in var_user_rl() [all …]
|
H A D | smatch_capped.c | 99 if (expr->op == '&' && !get_value(expr->right, &sval)) in is_capped() 104 !get_value(expr->right, &sval) && is_capped(expr->right)) in is_capped() 110 if (!is_capped(expr->right)) in is_capped() 114 get_absolute_rl(expr->right, &right_rl); in is_capped() 145 struct expression *left, *right; in match_condition() local 157 right = strip_expr(expr->right); in match_condition() 164 get_implied_value(right, &sval)) in match_condition() 196 set_true_false_states_expr(my_id, right, right_true, right_false); in match_condition() 211 if (is_capped(expr->right)) { in match_assign()
|
H A D | smatch_function_ptrs.c | 315 struct expression *right; in match_function_assign() local 323 right = strip_expr(expr->right); in match_function_assign() 324 if (right->type == EXPR_PREOP && right->op == '&') in match_function_assign() 325 right = strip_expr(right->unop); in match_function_assign() 327 if (right->type != EXPR_SYMBOL && in match_function_assign() 328 right->type != EXPR_DEREF && in match_function_assign() 329 right->type != EXPR_CALL) in match_function_assign() 332 if (!can_hold_function_ptr(right) || in match_function_assign() 336 fn_name = get_fnptr_name(right); in match_function_assign() 344 type = get_type(right); in match_function_assign()
|
H A D | check_macros.c | 46 if (positions_eq(expr->right->pos, pos)) in match_one_side() 64 if (expr->right->type == EXPR_POSTOP) in match_join() 65 match_inside(expr->right, expr->pos); in match_join() 69 if (expr->right->type == EXPR_BINOP) in match_join() 70 match_one_side(expr->right, expr->pos, expr->op); in match_join()
|
H A D | check_deref.c | 189 if (!expr_is_zero(expr->right)) in match_assign() 206 struct expression *right; in match_assigns_address() local 208 right = strip_expr(expr->right); in match_assigns_address() 209 if (right->type != EXPR_PREOP || right->op != '&') in match_assigns_address() 211 set_state_expr(my_id, right, &ok); in match_assigns_address() 217 match_condition(expr->right); in match_condition() 246 if (called_with_no_fail(expr->right, gfp_param)) in match_assign_returns_null()
|
H A D | evaluate.c | 183 right = integer_promotion(right); in bigger_int_type() 192 goto right; in bigger_int_type() 201 right: in bigger_int_type() 202 left = right; in bigger_int_type() 981 expr->right = cast_to(expr->right, rtype); in evaluate_binop() 1074 expr->right = cast_to(expr->right, ctype); in evaluate_compare() 1103 right = cast_to(right, ltype); in evaluate_compare() 1119 right = cast_to(right, ltype); in evaluate_compare() 1333 expr->right = cast_to(expr->right, target); in evaluate_assign_op() 1354 expr->right = cast_to(expr->right, target); in evaluate_assign_op() [all …]
|
H A D | check_kernel.c | 172 struct expression *right = expr->right; in match_container_of() local 187 macro = get_macro_name(right->pos); in match_container_of() 190 if (right->type != EXPR_CAST) in match_container_of() 192 right = strip_expr(right); in match_container_of() 193 if (right->type != EXPR_BINOP || right->op != '-' || in match_container_of() 194 right->left->type != EXPR_CAST) in match_container_of() 196 right = strip_expr(right->left); in match_container_of() 197 if (right->type != EXPR_SYMBOL) in match_container_of() 199 if (!right->symbol->ident || in match_container_of() 200 strcmp(right->symbol->ident->name, "__mptr") != 0) in match_container_of()
|
/illumos-gate/usr/src/test/util-tests/tests/awk/tests/ |
H A D | lsd1.p | 2 B: benzene pointing right 5 R: ring pointing right with .V4 at B.V6 6 front bond right from R.V6 ; H 7 W: ring pointing right with .V2 at R.V6 put N at 1 double 3,4 8 bond right from W.N ; CH3 12 bond right from C ; N
|
H A D | res.p | 17 CH3 right of O 19 bond right lenght .1 from O ; C 21 bond right length .1 from C 22 B: benzene pointing right 24 bond right from B ; OCH3
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/test-merge-forward/ |
H A D | test-impl.c | 19 int right; member 26 foo->left = foo->right - foo->count; in mumble() 27 foo->count += foo->right; in mumble() 28 foo->right--; in mumble()
|
/illumos-gate/usr/src/common/avl/ |
H A D | avl.c | 125 int right = 1 - left; in avl_walk() local 155 if (was_child == right) in avl_walk() 290 int right = 1 - left; in avl_rotation() local 352 child->avl_child[right] = node; in avl_rotation() 354 AVL_SETCHILD(node, right); in avl_rotation() 419 child->avl_child[right] = gleft; in avl_rotation() 422 AVL_SETCHILD(gleft, right); in avl_rotation() 438 gchild->avl_child[right] = node; in avl_rotation() 441 AVL_SETCHILD(node, right); in avl_rotation() 671 int right; in avl_remove() local [all …]
|
/illumos-gate/usr/src/common/atomic/sparcv9/ |
H A D | atomic.S | 214 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 286 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 287 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 455 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 489 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 490 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 581 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 615 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 616 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 699 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left [all …]
|
/illumos-gate/usr/src/common/atomic/sparc/ |
H A D | atomic.S | 91 and %o0, 0x3, %o4 ! %o4 = byte offset, left-to-right 92 xor %o4, 0x3, %g1 ! %g1 = byte offset, right-to-left 93 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 165 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 166 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 330 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 364 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 365 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 452 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 486 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right [all …]
|