Home
last modified time | relevance | path

Searched refs:ptr_ctype (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/
H A Dbuiltin.c393 struct symbol *va_list_ctype = &ptr_ctype; in declare_builtins()
423 declare_builtin("__builtin_extract_return_addr", &ptr_ctype, 0, &ptr_ctype, NULL); in declare_builtins()
453 …declare_builtin("__builtin_memcpy", &ptr_ctype, 0, &ptr_ctype, &const_ptr_ctype, size_t_ctype, NUL… in declare_builtins()
454 …declare_builtin("__builtin_memmove", &ptr_ctype, 0, &ptr_ctype, &const_ptr_ctype, size_t_ctype, NU… in declare_builtins()
455 …declare_builtin("__builtin_mempcpy", &ptr_ctype, 0, &ptr_ctype, &const_ptr_ctype, size_t_ctype, NU… in declare_builtins()
456 declare_builtin("__builtin_memset", &ptr_ctype, 0, &ptr_ctype, &int_ctype, size_t_ctype, NULL); in declare_builtins()
470 declare_builtin("__builtin_realloc", &ptr_ctype, 0, &ptr_ctype, size_t_ctype, NULL); in declare_builtins()
522 …declare_builtin("__builtin___memcpy_chk", &ptr_ctype, 0, &ptr_ctype, &const_ptr_ctype, size_t_ctyp… in declare_builtins()
523 …declare_builtin("__builtin___memmove_chk", &ptr_ctype, 0, &ptr_ctype, &const_ptr_ctype, size_t_cty… in declare_builtins()
524 …declare_builtin("__builtin___mempcpy_chk", &ptr_ctype, 0, &ptr_ctype, &const_ptr_ctype, size_t_cty… in declare_builtins()
[all …]
H A Dsmatch_address.c181 orig = cast_rl(&ptr_ctype, orig); in add_offset_to_pointer()
182 min = sval_type_min(&ptr_ctype); in add_offset_to_pointer()
184 max = sval_type_max(&ptr_ctype); in add_offset_to_pointer()
193 if (max.uvalue > sval_type_max(&ptr_ctype).uvalue - offset) { in add_offset_to_pointer()
194 remove = sval_type_max(&ptr_ctype); in add_offset_to_pointer()
H A Dcheck_kernel.c116 pre = alloc_whole_rl(&ptr_ctype); in match_param_err_or_null()
117 call_results_to_rl(call_expr, &ptr_ctype, "0,(-4095)-(-1)", &rl); in match_param_err_or_null()
448 err_ptr_min.type = &ptr_ctype; in check_kernel()
450 err_ptr_max.type = &ptr_ctype; in check_kernel()
452 null_ptr.type = &ptr_ctype; in check_kernel()
455 err_ptr_min = sval_cast(&ptr_ctype, err_ptr_min); in check_kernel()
456 err_ptr_max = sval_cast(&ptr_ctype, err_ptr_max); in check_kernel()
H A Dsmatch.h631 .type = &ptr_ctype,
635 .type = &ptr_ctype,
639 .type = &ptr_ctype,
643 .type = &ptr_ctype,
647 .type = &ptr_ctype,
651 .type = &ptr_ctype,
655 .type = &ptr_ctype,
659 .type = &ptr_ctype,
663 .type = &ptr_ctype,
667 .type = &ptr_ctype,
[all …]
H A Dlib.c1288 predefined_ctype("POINTER", &ptr_ctype, PTYPE_SIZEOF); in predefined_macros()
1347 predefine("__mips", 1, "%d", ptr_ctype.bit_size); in predefined_macros()
1350 predefine("_MIPS_SZPTR", 1, "%d", ptr_ctype.bit_size); in predefined_macros()
1368 predefine("__riscv_xlen", 1, "%d", ptr_ctype.bit_size); in predefined_macros()
H A Devaluate.c615 ctype = &ptr_ctype; in evaluate_ptr_add()
1012 expr->ctype = &ptr_ctype; in evaluate_comma()
1211 *cond = cast_to(*cond, &ptr_ctype); in evaluate_conditional_expression()
1212 expr->cond_false = cast_to(expr->cond_false, &ptr_ctype); in evaluate_conditional_expression()
1213 ctype = &ptr_ctype; in evaluate_conditional_expression()
2350 *p = cast_to(expr, &ptr_ctype); in evaluate_arguments()
3333 expr->ctype = &ptr_ctype; in evaluate_expression()
3334 return &ptr_ctype; in evaluate_expression()
3691 stmt->expression = cast_to(stmt->expression, &ptr_ctype); in evaluate_statement()
H A Dsymbol.c697 string_ctype, ptr_ctype, lazy_ptr_ctype, variable
786 { &ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype },
H A Dsymbol.h274 string_ctype, ptr_ctype, lazy_ptr_ctype,
H A Dsmatch_flow.c83 .type = &ptr_ctype,
87 .type = &ptr_ctype,
98 valid_ptr_rl = cast_rl(&ptr_ctype, valid_ptr_rl); in alloc_valid_ptr_rl()
H A Dsparse-llvm.c638 lhs = value_to_pvalue(fn, &ptr_ctype, lhs); in output_op_compare()
639 rhs = value_to_pvalue(fn, &ptr_ctype, rhs); in output_op_compare()
H A Dsmatch_type.c812 {&ptr_ctype, "ptr"},
H A Dsmatch_kernel_user_data.c1085 if (type && type_bits(type) < type_bits(&ptr_ctype)) in struct_member_callback()
H A Dparse.c487 { "__builtin_va_list", NS_TYPEDEF, .type = &ptr_ctype, .op = &spec_op },
488 { "__builtin_ms_va_list", NS_TYPEDEF, .type = &ptr_ctype, .op = &spec_op },
H A Dsmatch_ranges.c832 type = &ptr_ctype; in alloc_whole_rl()