/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_kernel_user_data.c | 130 if (user_rl_capped(expr->left)) in binop_capped() 511 expr = strip_expr(expr->left); in comes_from_skb_data() 551 tag_as_user_data(expr->left); in handle_struct_assignment() 567 set_state_expr(my_id, expr->left, alloc_estate_whole(get_type(expr->left))); in handle_get_user() 716 left = strip_expr(expr->left); in handle_compare() 720 left = strip_expr(left->left); in handle_compare() 746 get_user_rl(left, &left_rl); in handle_compare() 808 tag_as_user_data(expr->left); in match_user_assign_function() 916 get_absolute_rl(expr->left, &left); in var_user_rl() 936 get_user_rl(expr->left, &left); in var_user_rl() [all …]
|
H A D | smatch_capped.c | 106 if (!is_capped(expr->left)) in is_capped() 113 get_absolute_rl(expr->left, &left_rl); in is_capped() 145 struct expression *left, *right; in match_condition() local 156 left = strip_expr(expr->left); in match_condition() 159 while (left->type == EXPR_ASSIGNMENT) in match_condition() 160 left = strip_expr(left->left); in match_condition() 163 if (get_implied_value(left, &sval) || in match_condition() 195 set_true_false_states_expr(my_id, left, left_true, left_false); in match_condition() 212 set_state_expr(my_id, expr->left, &capped); in match_assign() 214 if (get_state_expr(my_id, expr->left)) in match_assign() [all …]
|
H A D | check_impossible_mask.c | 36 unsigned long long left, right; 38 left = find_possible_bits(expr->left); 39 if (!left) 46 return left & right; 47 return left | right; 99 left_mask = get_possible_bits(expr->left); in match_condition()
|
H A D | check_get_user_overflow.c | 83 if (get_state_expr(my_max_id, expr->left)) { in match_condition() 84 set_true_false_states_expr(my_max_id, expr->left, left_max_true, left_max_false); in match_condition() 85 set_true_false_states_expr(my_min_id, expr->left, left_min_true, left_min_false); in match_condition() 95 if (get_state_expr(my_max_id, expr->left)) { in match_normal_assign() 96 set_state_expr(my_max_id, expr->left, &capped); in match_normal_assign() 97 set_state_expr(my_min_id, expr->left, &capped); in match_normal_assign() 113 set_state_expr(my_max_id, expr->left, &user_data); in match_assign() 114 set_state_expr(my_min_id, expr->left, &user_data); in match_assign() 171 check_expr(expr->left); in match_binop()
|
H A D | smatch_type.c | 66 left = get_type(expr->left); in get_binop_type() 67 if (!left) in get_binop_type() 74 return left; in get_binop_type() 83 return left; in get_binop_type() 86 return left; in get_binop_type() 93 return left; in get_binop_type() 102 if (left->type == SYM_PTR || left->type == SYM_ARRAY) in get_binop_type() 103 return left; in get_binop_type() 111 return left; in get_binop_type() 370 ret = left; in get_promoted_type() [all …]
|
H A D | check_signed.c | 47 sym = get_type(expr->left); in match_assign() 60 left_name = expr_to_str(expr->left); in match_assign() 76 left_name = expr_to_str(expr->left); in match_assign() 91 struct expression *var = expr->left; in cap_gt_zero_and_lt() 119 name2 = expr_to_str(right->left); in cap_gt_zero_and_lt() 139 struct expression *var = expr->left; in cap_lt_zero_or_gt() 167 name2 = expr_to_str(right->left); in cap_lt_zero_or_gt() 224 name = expr_to_str(expr->left); in print_unsigned_never_less_than_zero() 264 if (get_value(expr->left, &known)) { in match_condition() 278 min = sval_type_min(get_type(expr->left)); in match_condition() [all …]
|
H A D | check_missing_break.c | 82 struct expression *left; in match_assign() local 88 left = strip_expr(expr->left); in match_assign() 89 if (get_state_expr(my_id, left) == &no_break) in match_assign() 90 print_missing_break(left); in match_assign() 92 set_state_expr(my_id, left, alloc_my_state(get_switch_expr())); in match_assign() 93 skip_this = left; in match_assign()
|
H A D | smatch_implied.c | 201 sm->left = true_sm; in create_fake_history() 481 sm->left ? sm->left->state->name : "<none>", in sm_state_info() 482 sm->left ? get_stree_id(sm->left->pool) : -1); in sm_state_info() 506 struct sm_state *left; in filter_pools() local 557 if (!left) { in filter_pools() 561 ret->left = NULL; in filter_pools() 565 ret->left = left; in filter_pools() 568 if (left->sym != sm->sym || strcmp(left->name, sm->name) != 0) { in filter_pools() 569 left = clone_sm(left); in filter_pools() 742 left = get_left_most_expr(expr->left); in handle_comparison() [all …]
|
H A D | smatch_nul_terminator.c | 59 array = get_array_base(expr->left); in match_nul_assign() 121 set_terminated(expr->left, state); in match_string_assign() 238 arg = expr->left; in return_info_terminated() 277 struct expression *left, *tmp, *arg; in match_strnlen_test() local 285 left = strip_expr(expr->left); in match_strnlen_test() 287 while ((tmp = get_assigned_expr(left))) { in match_strnlen_test() 290 left = tmp; in match_strnlen_test() 293 if (left->type != EXPR_CALL) in match_strnlen_test() 295 if (!sym_name_is("strnlen", left->fn)) in match_strnlen_test() 297 arg = get_argument_from_call_expr(left->args, 0); in match_strnlen_test()
|
H A D | smatch_function_hooks.c | 358 int left; member 398 left = expr->left; in fake_a_param_assignment() 700 if (db_info->left) in db_compare_callback() 753 call_expr = left; in compare_db_return_states_callbacks() 755 if (left->type != EXPR_CALL) { in compare_db_return_states_callbacks() 758 var_expr = left; in compare_db_return_states_callbacks() 766 db_info.left = call_on_left; in compare_db_return_states_callbacks() 860 call_expr = left; in function_comparison() 865 var_expr = left; in function_comparison() 1014 set_extra_expr_mod(expr->left, alloc_estate_whole(get_type(expr->left))); in db_return_states_assign() [all …]
|
H A D | smatch_math.c | 311 left = strip_expr(expr->left); in handle_offset_subtraction() 314 if (left->type != EXPR_PREOP || left->op != '&') in handle_offset_subtraction() 316 left = strip_expr(left->unop); in handle_offset_subtraction() 461 if (!get_implied_value(expr->left, &left)) in handle_mod_rl() 588 sval_t left, right; in handle_known_binop() local 590 if (!get_value(expr->left, &left)) in handle_known_binop() 756 sval_t left, right; in handle_comparison_rl() local 765 left = get_real_base_type(expr->left->symbol); in handle_comparison_rl() 775 if (get_value(expr->left, &left) && get_value(expr->right, &right)) { in handle_comparison_rl() 813 if (get_value(expr->left, &left)) in handle_logical_rl() [all …]
|
/illumos-gate/usr/src/cmd/acpi/iasl/ |
H A D | prparser.y | 205 %left <op> EXPOP_LOGICAL_OR 206 %left <op> EXPOP_LOGICAL_AND 207 %left <op> EXPOP_OR 208 %left <op> EXPOP_XOR 209 %left <op> EXPOP_AND 210 %left <op> EXPOP_EQUAL EXPOP_NOT_EQUAL 211 %left <op> EXPOP_GREATER EXPOP_LESS EXPOP_GREATER_EQUAL EXPOP_LESS_EQUAL 212 %left <op> EXPOP_SHIFT_RIGHT EXPOP_SHIFT_LEFT 213 %left <op> EXPOP_ADD EXPOP_SUBTRACT 214 %left <op> EXPOP_MULTIPLY EXPOP_DIVIDE EXPOP_MODULO
|
/illumos-gate/usr/src/cmd/make/lib/mksh/ |
H A D | misc.cc | 948 node = node->left; in lookup() 968 node = node->left; in insert() 1035 entry *left = node->left; in rebalance() local 1038 unsigned ldepth = (left != 0) ? left->depth : 0; in rebalance() 1041 if ((node->left = left->right) != 0) { in rebalance() 1048 node->parent->left = left; in rebalance() 1051 root = left; in rebalance() 1053 left->right = node; in rebalance() 1057 node = left; in rebalance() 1071 right->left = node; in rebalance() [all …]
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | inftrees.c | 42 int left; /* number of prefix codes available */ in inflate_table() local 127 left = 1; in inflate_table() 129 left <<= 1; in inflate_table() 130 left -= count[len]; in inflate_table() 131 if (left < 0) return -1; /* over-subscribed */ in inflate_table() 133 if (left > 0 && (type == CODES || max != 1)) in inflate_table() 264 left = (int)(1 << curr); in inflate_table() 266 left -= count[curr + drop]; in inflate_table() 267 if (left <= 0) break; in inflate_table() 269 left <<= 1; in inflate_table()
|
H A D | infback.c | 126 left = strm->avail_out; \ 137 strm->avail_out = left; \ 207 if (left == 0) { \ 209 left = state->wsize; \ 210 state->whave = left; \ 278 left = state->wsize; in inflateBack() 337 if (copy > left) copy = left; in inflateBack() 341 left -= copy; in inflateBack() 509 left--; in inflateBack() 586 copy = left; in inflateBack() [all …]
|
/illumos-gate/usr/src/cmd/sgs/m4/common/ |
H A D | m4y_xpg4.y | 39 %left OROR 40 %left ANDAND 41 %left '|' 42 %left '^' 43 %left '&' 46 %left LSHIFT RSHIFT 47 %left '+' '-' 48 %left '*' '/' '%'
|
H A D | m4y.y | 39 %left OROR 40 %left ANDAND 41 %left '|' '^' 42 %left '&' 45 %left '+' '-' 46 %left '*' '/' '%'
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | join4_28.test | 14 # This file implements tests for left outer joins containing WHERE 15 # clauses that restrict the scope of the left term of the join. 35 select * from t1 left outer join t2 on t1.a=t2.x where t2.z='ok' 40 select * from t1 left outer join t2 on t1.a=t2.x and t2.z='ok' 48 select * from t1 left outer join t2 on t1.a=t2.x where t2.z='ok' 53 select * from t1 left outer join t2 on t1.a=t2.x and t2.z='ok' 58 select * from t1 left outer join t2 on t1.a=t2.x where t2.z>='ok' 63 select * from t1 left outer join t2 on t1.a=t2.x and t2.z>='ok' 68 select * from t1 left outer join t2 on t1.a=t2.x where t2.z IN ('ok') 73 select * from t1 left outer join t2 on t1.a=t2.x and t2.z IN ('ok')
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | awk.g.y | 48 %left BOR 49 %left AND 50 %left NOT 52 %left GETLINE 54 %left OR 56 %left '(' '^' '$' 57 %left CAT 58 %left '+' '-' 59 %left '*' '/' '%' 60 %left STAR PLUS QUEST [all …]
|
/illumos-gate/usr/src/cmd/pools/poolstat/ |
H A D | poolstat.c | 624 used = snprintf(str + pos, left, "%-*s", in header_f() 627 used = snprintf(str + pos, left, "%*s", in header_f() 655 left += used + MAXLINE; in prt_stat_line() 658 *ff->pff_data_ptr)) + 1) >= left) in prt_stat_line() 661 left -= used; in prt_stat_line() 666 left--; in prt_stat_line() 705 >= left) { in prt_stat_hd() 708 left += used + MAXLINE; in prt_stat_hd() 711 NULL)) + 1) >= left) in prt_stat_hd() 714 left -= used; in prt_stat_hd() [all …]
|
/illumos-gate/usr/src/common/avl/ |
H A D | avl.c | 125 int right = 1 - left; in avl_walk() 290 int right = 1 - left; in avl_rotation() 343 node->avl_child[left] = cright; in avl_rotation() 346 AVL_SETCHILD(cright, left); in avl_rotation() 413 node->avl_child[left] = gright; in avl_rotation() 416 AVL_SETCHILD(gright, left); in avl_rotation() 436 AVL_SETCHILD(child, left); in avl_rotation() 670 int left; in avl_remove() local 695 left = (old_balance > 0); in avl_remove() 696 right = 1 - left; in avl_remove() [all …]
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | sub1.c | 687 left[tptr] = d; in mn2() 731 left[tptr] = d; in mn1() 822 return (mn1(i, left[n])); in dupl() 824 return (mn1(i, dupl(left[n]))); in dupl() 938 (void) printf("%d ", left[t]); in treedump() 943 strpt(left[t]); in treedump() 947 strpt(left[t]); in treedump() 959 (void) printf("+ %d", left[t]); in treedump() 962 (void) printf("* %d", left[t]); in treedump() 992 (void) printf(" %d", left[t]); in treedump() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | timers.c | 91 static double left; in sigalrm() local 93 left = 0; in sigalrm() 144 if(tpmin && (left==0 || (tp && tpmin->wakeup < (now+left)))) in sigalrm() 146 if(left==0) in sigalrm() 148 left = setalarm(tpmin->wakeup-now); in sigalrm() 149 if(left && (now+left) < tpmin->wakeup) in sigalrm() 150 setalarm(left); in sigalrm() 152 left=tpmin->wakeup-now; in sigalrm()
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | random.c | 87 size_t left = dlen; in readn_nointr() local 90 for (err = 0; left > 0 && nread != -1; marker += nread, left -= nread) { in readn_nointr() 91 if ((nread = read(fd, marker, left)) < 0) { in readn_nointr() 102 return (err != 0 ? err : dlen - left); in readn_nointr() 112 size_t left = dlen; in writen_nointr() local 115 for (err = 0; left > 0 && nwrite != -1; marker += nwrite, in writen_nointr() 116 left -= nwrite) { in writen_nointr() 117 if ((nwrite = write(fd, marker, left)) < 0) { in writen_nointr() 128 return (err != 0 ? err : dlen - left); in writen_nointr()
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | glob.c | 90 char *left; in glob_debrace() local 98 while (sp != NULL && (left = strchr(sp, '{')) != NULL) in glob_debrace() 99 if ((right = strchr(left, '}')) == NULL) { in glob_debrace() 105 fn_list_appendrange(ret, sp, left); in glob_debrace() 110 if (left + 1 == right) in glob_debrace() 114 left++; in glob_debrace() 116 while ((comma = strchr(left, ',')) != NULL) { in glob_debrace() 120 fn_list_appendrange(dup, left, comma); in glob_debrace() 122 left = comma + 1; in glob_debrace() 125 fn_list_appendrange(ret, left, right); in glob_debrace()
|