INT_PTR
curtype = INT_PTR;
case INT_PTR:
add_function_hook("refcount_inc", &refcount_inc, INT_PTR(0));
add_function_hook("refcount_dec", &refcount_dec, INT_PTR(0));
add_function_hook("refcount_add", &refcount_inc, INT_PTR(1));
return_implies_state("refcount_add_not_zero", 1, 1, &match_implies_inc, INT_PTR(1));
return_implies_state("refcount_inc_not_zero", 1, 1, &match_implies_inc, INT_PTR(0));
return_implies_state("atomic_dec_if_positive", 0, INT_MAX, &match_implies_atomic_dec, INT_PTR(0));
add_function_hook("refcount_sub_and_test", &refcount_dec, INT_PTR(1));
add_function_hook("refcount_dec_and_test", &refcount_dec, INT_PTR(0));
add_function_hook("pm_runtime_get_sync", &pm_runtime_get_sync, INT_PTR(0));
add_function_hook("set_bit", &match_call, INT_PTR(0));
add_function_hook("test_bit", &match_call, INT_PTR(0));
add_function_hook("capable", &match_capable, INT_PTR(0));
add_function_hook("ns_capable", &match_ns_capable, INT_PTR(0));
add_function_assign_hook(func, &match_assign_returns_null, INT_PTR(arg));
add_function_hook(func, &match_xmit, INT_PTR(arg));
add_function_hook(func, &match_dma_func, INT_PTR(arg));
add_function_hook("kfree", &match_kfree, INT_PTR(0));
add_function_hook("brelse", &match_kfree, INT_PTR(0));
add_function_hook("kmem_cache_free", &match_kfree, INT_PTR(1));
add_function_hook("vfree", &match_kfree, INT_PTR(0));
add_function_hook("free", &match_free, INT_PTR(0));
add_function_hook("kfree", &match_free, INT_PTR(0));
add_function_hook("kmem_cache_free", &match_free, INT_PTR(1));
add_function_hook(func, &match_free_func, INT_PTR(arg));
add_function_hook("kfree", &match_free_func, INT_PTR(0));
add_function_hook("krealloc", &match_free_func, INT_PTR(0));
add_function_hook("free", &match_free, INT_PTR(0));
add_function_hook("kfree", &match_free, INT_PTR(0));
add_function_hook("kmem_cache_free", &match_free, INT_PTR(1));
add_function_hook("kfree_skb", &match_free, INT_PTR(0));
add_function_hook("kfree_skbmem", &match_free, INT_PTR(0));
add_function_hook("dma_pool_free", &match_free, INT_PTR(1));
add_function_hook("spi_unregister_controller", &match_free, INT_PTR(0));
add_function_hook("kmalloc", &match_alloc, INT_PTR(1));
add_function_hook("kzalloc", &match_alloc, INT_PTR(1));
add_function_hook(#func, check_printf_call, INT_PTR(fmt + (first_to_check << 8)))
add_function_assign_hook("calloc", &match_calloc, INT_PTR(1));
add_function_assign_hook("kcalloc", &match_calloc, INT_PTR(1));
void *idx = INT_PTR(index);
add_function_hook(lock_table[i].function, &match_lock_unlock, INT_PTR(i));
add_function_hook("proc_create", &match_create, INT_PTR(0));
add_function_hook("create_proc_entry", &match_create, INT_PTR(0));
add_function_hook("proc_create_data", &match_create, INT_PTR(0));
add_function_hook("proc_net_fops_create", match_create, INT_PTR(1));
match_clear(NULL, expr, INT_PTR(param));
add_function_hook(func, &match_clear, INT_PTR(arg));
add_function_hook(func, &match_copy_to_user, INT_PTR(arg));
add_function_hook("memset", &match_clear, INT_PTR(0));
add_function_hook("memcpy", &match_clear, INT_PTR(0));
add_function_hook("memzero", &match_clear, INT_PTR(0));
add_function_hook("__memset", &match_clear, INT_PTR(0));
add_function_hook("__memcpy", &match_clear, INT_PTR(0));
add_function_hook("__memzero", &match_clear, INT_PTR(0));
add_function_hook("__builtin_memset", &match_clear, INT_PTR(0));
add_function_hook("__builtin_memcpy", &match_clear, INT_PTR(0));
add_scope_hook(&scope_end, INT_PTR(type_bytes(base)));
add_function_assign_hook("kmalloc", &match_assign, INT_PTR(0));
add_function_assign_hook("kzalloc", &match_assign, INT_PTR(0));
add_function_hook(func, &match_ignore_param, INT_PTR(param));
add_function_hook(name, &print_unwind_functions, INT_PTR(0));
return_implies_state("request_resource", 0, 0, &request_granted, INT_PTR(1));
return_implies_state("request_resource", -EBUSY, -EBUSY, &request_denied, INT_PTR(1));
add_function_hook("release_resource", &match_release, INT_PTR(0));
return_implies_state_sval("__request_region", valid_ptr_min_sval, valid_ptr_max_sval, &request_granted, INT_PTR(1));
return_implies_state("__request_region", 0, 0, &request_denied, INT_PTR(1));
add_function_hook("__release_region", &match_release, INT_PTR(1));
return_implies_state_sval("ioremap", valid_ptr_min_sval, valid_ptr_max_sval, &request_granted, INT_PTR(-1));
return_implies_state("ioremap", 0, 0, &request_denied, INT_PTR(-1));
add_function_hook("iounmap", &match_release, INT_PTR(0));
return_implies_state_sval("pci_iomap", valid_ptr_min_sval, valid_ptr_max_sval, &request_granted, INT_PTR(-1));
return_implies_state("pci_iomap", 0, 0, &request_denied, INT_PTR(-1));
add_function_hook("pci_iounmap", &match_release, INT_PTR(1));
INT_PTR(-1));
return_implies_state("__create_workqueue_key", 0, 0, &request_denied, INT_PTR(-1));
add_function_hook("destroy_workqueue", &match_release, INT_PTR(0));
return_implies_state("request_irq", 0, 0, &request_granted, INT_PTR(0));
return_implies_state("request_irq", -MAX_ERRNO, -1, &request_denied, INT_PTR(0));
add_function_hook("free_irq", &match_release, INT_PTR(0));
return_implies_state("register_netdev", 0, 0, &request_granted, INT_PTR(0));
return_implies_state("register_netdev", -MAX_ERRNO, -1, &request_denied, INT_PTR(0));
add_function_hook("unregister_netdev", &match_release, INT_PTR(0));
return_implies_state("misc_register", 0, 0, &request_granted, INT_PTR(0));
return_implies_state("misc_register", -MAX_ERRNO, -1, &request_denied, INT_PTR(0));
add_function_hook("misc_deregister", &match_release, INT_PTR(0));
add_function_hook(func, &match_parameter, INT_PTR(size));
add_implied_return_hook("snprintf", ¶m_caps_return, INT_PTR(1));
add_function_hook("sprintf", &mark_strings_unknown, INT_PTR(0));
add_function_hook("snprintf", &mark_strings_unknown, INT_PTR(0));
add_function_hook("strcpy", &mark_strings_unknown, INT_PTR(0));
add_function_hook("strncpy", &mark_strings_unknown, INT_PTR(0));
add_function_hook("strlcpy", &mark_strings_unknown, INT_PTR(0));
add_function_hook("strscpy", &mark_strings_unknown, INT_PTR(0));
add_function_assign_hook(func, call_back, INT_PTR(param));
add_function_assign_hook(func, call_back, INT_PTR(param));
add_implied_return_hook("sprintf", &match_sprintf, INT_PTR(1));
add_implied_return_hook("snprintf", &match_sprintf, INT_PTR(2));
add_function_assign_hook(func, call_back, INT_PTR(param));
__add_ptr_list(&backup, INT_PTR(loop_num << 2));
__add_ptr_list(&backup, INT_PTR(loop_count << 2));
__add_ptr_list(&backup, INT_PTR(final_pass << 2));
munged = INT_PTR(num << 2);
state->data = INT_PTR(num);
add_function_hook("copy_from_user", &match_user_copy, INT_PTR(0));
add_function_hook("__copy_from_user", &match_user_copy, INT_PTR(0));
add_function_hook("memcpy_fromiovec", &match_user_copy, INT_PTR(0));
add_function_hook(kstr_funcs[i], &match_user_copy, INT_PTR(2));
add_function_hook("usb_control_msg", &match_user_copy, INT_PTR(6));
add_function_hook(function, &match_memcpy, INT_PTR(param));
add_function_hook("memset", &match_memset, INT_PTR(0));
add_function_hook("memzero", &match_memset, INT_PTR(0));
add_function_hook("__memset", &match_memset, INT_PTR(0));
add_function_hook("__memzero", &match_memset, INT_PTR(0));
add_function_hook("memcpy", &match_memcpy, INT_PTR(0));
add_function_hook("memmove", &match_memcpy, INT_PTR(0));
add_function_hook("__memcpy", &match_memcpy, INT_PTR(0));
add_function_hook("__memmove", &match_memcpy, INT_PTR(0));
add_function_hook("strcpy", &match_memcpy, INT_PTR(0));
add_function_hook("strncpy", &match_memcpy, INT_PTR(0));
add_function_hook("sprintf", &match_memcpy, INT_PTR(0));
add_function_hook("snprintf", &match_memcpy, INT_PTR(0));
state->data = INT_PTR(1);
INT_PTR(alloc_functions[i].param));
insert_func(skipped_funcs, func, INT_PTR(1));
insert_func(silenced_funcs, func, INT_PTR(1));
insert_func(no_inline_funcs, func, INT_PTR(1));
add_function_hook(function, &match_memcpy_unknown, INT_PTR(param));
add_function_hook("memcpy", &match_memcpy, INT_PTR(0));
add_function_hook("memmove", &match_memcpy, INT_PTR(0));
add_function_hook("__memcpy", &match_memcpy, INT_PTR(0));
add_function_hook("__memmove", &match_memcpy, INT_PTR(0));
curtype = INT_PTR;
case INT_PTR: