Lines Matching refs:rl

110 	struct range_list *rl = NULL;  in set_param_buf_size()  local
119 str_to_rl(&int_ctype, value, &rl); in set_param_buf_size()
120 if (!rl || is_whole_rl(rl)) in set_param_buf_size()
122 state = alloc_estate_rl(rl); in set_param_buf_size()
260 struct range_list *rl; in size_from_db() local
262 rl = size_from_db_symbol(expr); in size_from_db()
263 if (rl) in size_from_db()
264 return rl; in size_from_db()
271 struct range_list *rl; in db_returns_buf_size() local
278 call_results_to_rl(call, &int_ctype, math, &rl); in db_returns_buf_size()
279 rl = cast_rl(&int_ctype, rl); in db_returns_buf_size()
280 if (rl_to_sval(rl, &sval) && sval.value == 0) in db_returns_buf_size()
282 set_state_expr(my_size_id, expr->left, alloc_estate_rl(rl)); in db_returns_buf_size()
544 struct range_list *rl; in get_array_size_bytes() local
547 rl = get_array_size_bytes_rl(expr); in get_array_size_bytes()
548 if (!rl_to_sval(rl, &sval)) in get_array_size_bytes()
557 struct range_list *rl; in get_array_size_bytes_max() local
560 rl = get_array_size_bytes_rl(expr); in get_array_size_bytes_max()
561 if (!rl) in get_array_size_bytes_max()
563 bytes = rl_min(rl); in get_array_size_bytes_max()
566 bytes = rl_max(rl); in get_array_size_bytes_max()
574 struct range_list *rl; in get_array_size_bytes_min() local
577 rl = get_array_size_bytes_rl(expr); in get_array_size_bytes_min()
578 if (!rl) in get_array_size_bytes_min()
581 FOR_EACH_PTR(rl, range) { in get_array_size_bytes_min()
615 static void info_record_alloction(struct expression *buffer, struct range_list *rl) in info_record_alloction() argument
627 if (rl && !is_whole_rl(rl)) in info_record_alloction()
628 sql_insert_function_type_size(name, show_rl(rl)); in info_record_alloction()
635 static void store_alloc(struct expression *expr, struct range_list *rl) in store_alloc() argument
639 rl = clone_rl(rl); // FIXME!!! in store_alloc()
640 if (!rl) in store_alloc()
641 rl = size_to_rl(UNKNOWN_SIZE); in store_alloc()
643 if (rl_min(rl).value != UNKNOWN_SIZE || in store_alloc()
644 rl_max(rl).value != UNKNOWN_SIZE || in store_alloc()
646 set_state_expr(my_size_id, expr, alloc_estate_rl(rl)); in store_alloc()
661 info_record_alloction(expr, rl); in store_alloc()
679 struct range_list *rl; in match_array_assignment() local
708 rl = alloc_int_rl(0); in match_array_assignment()
712 rl = get_array_size_bytes_rl(right); in match_array_assignment()
713 if (!rl && __in_fake_assign) in match_array_assignment()
717 store_alloc(left, rl); in match_array_assignment()
725 struct range_list *rl; in match_alloc() local
729 get_absolute_rl(arg, &rl); in match_alloc()
730 rl = cast_rl(&int_ctype, rl); in match_alloc()
731 store_alloc(expr->left, rl); in match_alloc()
738 struct range_list *rl; in match_calloc() local
745 if (get_implied_rl(mult, &rl)) in match_calloc()
746 store_alloc(expr->left, rl); in match_calloc()
799 static int is_type_bytes(struct range_list *rl, struct expression *arg) in is_type_bytes() argument
804 if (!rl_to_sval(rl, &sval)) in is_type_bytes()
825 struct range_list *rl; in match_call() local
834 rl = get_array_size_bytes_rl(arg); in match_call()
835 if (!rl) in match_call()
837 if (rl_min(rl).value == UNKNOWN_SIZE && in match_call()
838 rl_max(rl).value == UNKNOWN_SIZE) in match_call()
840 if (is_whole_rl(rl)) in match_call()
842 if (is_type_bytes(rl, arg)) in match_call()
844 sql_insert_caller_info(expr, BUF_SIZE, i, "$", show_rl(rl)); in match_call()
869 struct range_list *rl; in print_returned_allocations() local
873 rl = get_array_size_bytes_rl(expr); in print_returned_allocations()
875 if (!rl && !param_math) in print_returned_allocations()
879 rl_to_sval(rl, &sval) && in print_returned_allocations()
884 snprintf(buf, sizeof(buf), "%s[%s]", show_rl(rl), param_math); in print_returned_allocations()
886 snprintf(buf, sizeof(buf), "%s", show_rl(rl)); in print_returned_allocations()