// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Skip function: __VERIFIER_nondet_uint // Skip function: __VERIFIER_nondet_ulong // Function: __alloc_skb // with type: struct sk_buff *__alloc_skb(unsigned int, gfp_t , int, int) // with return type: (struct sk_buff)* struct sk_buff *__alloc_skb(unsigned int arg0, gfp_t arg1, int arg2, int arg3) { // Pointer type struct sk_buff *skb = ldv_malloc(sizeof(struct sk_buff)); if(skb) { skb->head = ldv_malloc(arg0); skb->data = skb->head; skb->tail = 0; } return skb; } // Function: __copy_from_user_overflow // with type: void __copy_from_user_overflow() // with return type: void void __copy_from_user_overflow() { // Void type return; } // Function: __might_fault // with type: void __might_fault(const char *, int) // with return type: void void __might_fault(const char *arg0, int arg1) { // Void type return; } // Function: __wake_up // with type: void __wake_up(wait_queue_head_t *, unsigned int, int, void *) // with return type: void void __wake_up(wait_queue_head_t *arg0, unsigned int arg1, int arg2, void *arg3) { // Void type return; } // Function: _copy_from_user // with type: unsigned long int _copy_from_user(void *, const void *, unsigned int) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int _copy_from_user(void *arg0, const void *arg1, unsigned int arg2) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: _raw_read_lock // with type: void _raw_read_lock(rwlock_t *) // with return type: void void _raw_read_lock(rwlock_t *arg0) { // Void type return; } // Function: _raw_read_unlock // with type: void _raw_read_unlock(rwlock_t *) // with return type: void void _raw_read_unlock(rwlock_t *arg0) { // Void type return; } // Function: add_wait_queue // with type: void add_wait_queue(wait_queue_head_t *, wait_queue_t *) // with return type: void void add_wait_queue(wait_queue_head_t *arg0, wait_queue_t *arg1) { // Void type return; } // Function: atm_alloc_charge // with type: struct sk_buff *atm_alloc_charge(struct atm_vcc *, int, gfp_t ) // with return type: (struct sk_buff)* struct sk_buff *atm_alloc_charge(struct atm_vcc *arg0, int arg1, gfp_t arg2) { // Pointer type return ldv_malloc(sizeof(struct sk_buff)); } // Function: atm_dev_deregister // with type: void atm_dev_deregister(struct atm_dev *) // with return type: void void atm_dev_deregister(struct atm_dev *arg0) { // Void type return; } // Function: atm_dev_lookup // with type: struct atm_dev *atm_dev_lookup(int) // with return type: (struct atm_dev)* struct atm_dev *atm_dev_lookup(int arg0) { // Pointer type return ldv_malloc(sizeof(struct atm_dev)); } // Function: atm_dev_register // with type: struct atm_dev *atm_dev_register(const char *, struct device *, const struct atmdev_ops *, int, unsigned long *) // with return type: (struct atm_dev)* struct atm_dev *atm_dev_register(const char *arg0, struct device *arg1, const struct atmdev_ops *arg2, int arg3, unsigned long *arg4) { // Pointer type return ldv_malloc(sizeof(struct atm_dev)); } // Function: atm_init_aal5 // with type: int atm_init_aal5(struct atm_vcc *) // with return type: int int __VERIFIER_nondet_int(void); int atm_init_aal5(struct atm_vcc *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: calloc // Function: capable // with type: bool capable(int) // with return type: bool bool __VERIFIER_nondet_bool(void); bool capable(int arg0) { // Typedef type // Real type: _Bool // Simple type return __VERIFIER_nondet_bool(); } // Function: consume_skb // with type: void consume_skb(struct sk_buff *) // with return type: void void consume_skb(struct sk_buff *arg0) { // Void type return; } // Function: debug_lockdep_rcu_enabled // with type: int debug_lockdep_rcu_enabled() // with return type: int int __VERIFIER_nondet_int(void); int debug_lockdep_rcu_enabled() { // Simple type return __VERIFIER_nondet_int(); } // Function: deregister_atm_ioctl // with type: void deregister_atm_ioctl(struct atm_ioctl *) // with return type: void void deregister_atm_ioctl(struct atm_ioctl *arg0) { // Void type return; } // Skip function: kfree // Function: ktime_get_with_offset // with type: ktime_t ktime_get_with_offset(enum tk_offsets ) // with return type: ktime_t ktime_t ktime_get_with_offset(enum tk_offsets arg0) { // Typedef type // Real type: union ktime // Composite type return *(union ktime *)ldv_xmalloc(sizeof(union ktime)); } // Function: ldv_initialize // with type: void ldv_initialize() // with return type: void void ldv_initialize() { // Void type return; } // Function: ldv_open_2 // with type: int ldv_open_2() // with return type: int int __VERIFIER_nondet_int(void); int ldv_open_2() { // Simple type return __VERIFIER_nondet_int(); } // Skip function: malloc // Skip function: memcpy // Skip function: memset // Function: printk // with type: int printk(const char *, ...) // with return type: int int __VERIFIER_nondet_int(void); int printk(const char *arg0, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: put_device // with type: void put_device(struct device *) // with return type: void void put_device(struct device *arg0) { // Void type return; } // Function: register_atm_ioctl // with type: void register_atm_ioctl(struct atm_ioctl *) // with return type: void void register_atm_ioctl(struct atm_ioctl *arg0) { // Void type return; } // Function: remove_wait_queue // with type: void remove_wait_queue(wait_queue_head_t *, wait_queue_t *) // with return type: void void remove_wait_queue(wait_queue_head_t *arg0, wait_queue_t *arg1) { // Void type return; } // Function: schedule // with type: void schedule() // with return type: void void schedule() { // Void type return; } // Function: skb_pull // with type: unsigned char *skb_pull(struct sk_buff *, unsigned int) // with return type: (unsigned char)* unsigned char *skb_pull(struct sk_buff *arg0, unsigned int arg1) { // Pointer type return ldv_malloc(sizeof(unsigned char)); } // Function: skb_put // with type: unsigned char *skb_put(struct sk_buff *, unsigned int) // with return type: (unsigned char)* unsigned char *skb_put(struct sk_buff *arg0, unsigned int arg1) { unsigned char *ret_val = arg0->data + arg0->tail; // a more precise implementation of skb_put would actually re-allocate memory // here arg0->tail += arg1; // Pointer type return ret_val; } // Skip function: sprintf // Function: vcc_insert_socket // with type: void vcc_insert_socket(struct sock *) // with return type: void void vcc_insert_socket(struct sock *arg0) { // Void type return; } // Function: default_wake_function // with type: int default_wake_function(wait_queue_t *, unsigned int, int, void *) // with return type: int int __VERIFIER_nondet_int(void); int default_wake_function(wait_queue_t *arg0, unsigned int arg1, int arg2, void *arg3) { // Simple type return __VERIFIER_nondet_int(); }