// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Function: __init_waitqueue_head // with type: void __init_waitqueue_head(wait_queue_head_t *q, struct lock_class_key *) // with return type: void void __init_waitqueue_head(wait_queue_head_t *arg0, struct lock_class_key *arg1) { // Void type return; } // Function: __init_work // with type: void __init_work(struct work_struct *work, int onstack) // with return type: void void __init_work(struct work_struct *arg0, int arg1) { // Void type return; } extern _Bool __VERIFIER_nondet_bool(void) ; extern void *malloc(size_t) ; void *ldv_malloc(size_t size ) { if(__VERIFIER_nondet_bool()) return 0; return malloc(size); } // Function: __kmalloc // with type: void *__kmalloc(size_t size, gfp_t flags) // with return type: (void)* void *__kmalloc(size_t arg0, gfp_t arg1) { // Pointer type return ldv_malloc(arg0); } // Function: __list_add // with type: void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) // with return type: void void __list_add(struct list_head *arg0, struct list_head *arg1, struct list_head *arg2) { // Void type return; } // Function: __list_del_entry // with type: void __list_del_entry(struct list_head *entry) // with return type: void void __list_del_entry(struct list_head *arg0) { // Void type return; } // Function: __mutex_init // with type: void __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) // with return type: void void __mutex_init(struct mutex *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Function: __raw_spin_lock_init // with type: void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name, struct lock_class_key *key) // with return type: void void __raw_spin_lock_init(raw_spinlock_t *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Function: __wake_up // with type: void __wake_up(wait_queue_head_t *q, unsigned int mode, int nr, void *key) // with return type: void void __wake_up(wait_queue_head_t *arg0, unsigned int arg1, int arg2, void *arg3) { // Void type return; } // Function: _copy_to_user // with type: unsigned long int _copy_to_user(void *to, const void *from, unsigned int len) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int _copy_to_user(void *arg0, const void *arg1, unsigned int arg2) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: _dev_info // with type: int _dev_info(const struct device *dev, const char *fmt, ...) // with return type: int int __VERIFIER_nondet_int(void); int _dev_info(const struct device *arg0, const char *arg1, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: _raw_spin_lock // with type: void _raw_spin_lock(raw_spinlock_t *lock) // with return type: void void _raw_spin_lock(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_lock_irq // with type: void _raw_spin_lock_irq(raw_spinlock_t *lock) // with return type: void void _raw_spin_lock_irq(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_lock_irqsave // with type: unsigned long int _raw_spin_lock_irqsave(raw_spinlock_t *lock) // with return type: unsigned long int unsigned long __VERIFIER_nondet_ulong(void); unsigned long int _raw_spin_lock_irqsave(raw_spinlock_t *arg0) { // Simple type return __VERIFIER_nondet_ulong(); } // Function: _raw_spin_unlock // with type: void _raw_spin_unlock(raw_spinlock_t *lock) // with return type: void void _raw_spin_unlock(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_unlock_irq // with type: void _raw_spin_unlock_irq(raw_spinlock_t *lock) // with return type: void void _raw_spin_unlock_irq(raw_spinlock_t *arg0) { // Void type return; } // Function: _raw_spin_unlock_irqrestore // with type: void _raw_spin_unlock_irqrestore(raw_spinlock_t *lock, unsigned long flags) // with return type: void void _raw_spin_unlock_irqrestore(raw_spinlock_t *arg0, unsigned long arg1) { // Void type return; } // Function: dev_err // with type: int dev_err(const struct device *dev, const char *fmt, ...) // with return type: int int __VERIFIER_nondet_int(void); int dev_err(const struct device *arg0, const char *arg1, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: dev_printk // with type: int dev_printk(const char *level, const struct device *dev, const char *fmt, ...) // with return type: int int __VERIFIER_nondet_int(void); int dev_printk(const char *arg0, const struct device *arg1, const char *arg2, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: ezusb_set_reset // with type: int ezusb_set_reset(struct usb_serial *serial, unsigned char reset_bit) // with return type: int int __VERIFIER_nondet_int(void); int ezusb_set_reset(struct usb_serial *arg0, unsigned char arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: ezusb_writememory // with type: int ezusb_writememory(struct usb_serial *serial, int address, unsigned char *data, int length, __u8 bRequest) // with return type: int int __VERIFIER_nondet_int(void); int ezusb_writememory(struct usb_serial *arg0, int arg1, unsigned char *arg2, int arg3, __u8 arg4) { // Simple type return __VERIFIER_nondet_int(); } // Function: finish_wait // with type: void finish_wait(wait_queue_head_t *q, wait_queue_t *wait) // with return type: void void finish_wait(wait_queue_head_t *arg0, wait_queue_t *arg1) { // Void type return; } // Skip function: kfree // Function: kzalloc // with type: void *kzalloc(size_t size, gfp_t flags) // with return type: (void)* void *kzalloc(size_t arg0, gfp_t arg1) { // Pointer type return ldv_malloc(0UL); } // Function: ldv_check_return_value // with type: void ldv_check_return_value(int res) // with return type: void void ldv_check_return_value(int arg0) { // Void type return; } // Function: ldv_initialize // with type: void ldv_initialize() // with return type: void void ldv_initialize() { // Void type return; } // Function: ldv_undefined_pointer // with type: void *ldv_undefined_pointer() // with return type: (void)* void *ldv_undefined_pointer() { // Pointer type return ldv_malloc(0UL); } // Function: list_del // with type: void list_del(struct list_head *entry) // with return type: void void list_del(struct list_head *arg0) { // Void type return; } // Function: lockdep_init_map // with type: void lockdep_init_map(struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass) // with return type: void void lockdep_init_map(struct lockdep_map *arg0, const char *arg1, struct lock_class_key *arg2, int arg3) { // Void type return; } // Skip function: memcpy // Skip function: memset // Function: might_fault // with type: void might_fault() // with return type: void void might_fault() { // Void type return; } // Function: mutex_lock_nested // with type: void mutex_lock_nested(struct mutex *lock, unsigned int subclass) // with return type: void void mutex_lock_nested(struct mutex *arg0, unsigned int arg1) { // Void type return; } // Function: mutex_unlock // with type: void mutex_unlock(struct mutex *lock) // with return type: void void mutex_unlock(struct mutex *arg0) { // Void type return; } // Function: prepare_to_wait // with type: void prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state) // with return type: void void prepare_to_wait(wait_queue_head_t *arg0, wait_queue_t *arg1, int arg2) { // Void type return; } // Function: printk // with type: int printk(const char *fmt, ...) // with return type: int int __VERIFIER_nondet_int(void); int printk(const char *arg0, ...) { // Simple type return __VERIFIER_nondet_int(); } // Function: release_firmware // with type: void release_firmware(const struct firmware *fw) // with return type: void void release_firmware(const struct firmware *arg0) { // Void type return; } // Function: request_firmware // with type: int request_firmware(const struct firmware **fw, const char *name, struct device *device) // with return type: int int __VERIFIER_nondet_int(void); int request_firmware(const struct firmware **arg0, const char *arg1, struct device *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: schedule_timeout // with type: long int schedule_timeout(long timeout) // with return type: long int long __VERIFIER_nondet_long(void); long int schedule_timeout(long arg0) { // Simple type return __VERIFIER_nondet_long(); } // Function: schedule_work // with type: int schedule_work(struct work_struct *work) // with return type: int int __VERIFIER_nondet_int(void); int schedule_work(struct work_struct *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: tty_encode_baud_rate // with type: void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, speed_t obaud) // with return type: void void tty_encode_baud_rate(struct tty_struct *arg0, speed_t arg1, speed_t arg2) { // Void type return; } // Function: tty_flip_buffer_push // with type: void tty_flip_buffer_push(struct tty_struct *tty) // with return type: void void tty_flip_buffer_push(struct tty_struct *arg0) { // Void type return; } // Function: tty_get_baud_rate // with type: speed_t tty_get_baud_rate(struct tty_struct *tty) // with return type: speed_t unsigned int __VERIFIER_nondet_uint(void); speed_t tty_get_baud_rate(struct tty_struct *arg0) { // Typedef type // Real type: unsigned int // Simple type return __VERIFIER_nondet_uint(); } // Function: tty_insert_flip_string_fixed_flag // with type: int tty_insert_flip_string_fixed_flag(struct tty_struct *tty, const unsigned char *chars, char flag, size_t size) // with return type: int int __VERIFIER_nondet_int(void); int tty_insert_flip_string_fixed_flag(struct tty_struct *arg0, const unsigned char *arg1, char arg2, size_t arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: tty_kref_put // with type: void tty_kref_put(struct tty_struct *tty) // with return type: void void tty_kref_put(struct tty_struct *arg0) { // Void type return; } // Function: tty_port_tty_get // with type: struct tty_struct *tty_port_tty_get(struct tty_port *port) // with return type: (struct tty_struct)* struct tty_struct *tty_port_tty_get(struct tty_port *arg0) { // Pointer type return ldv_malloc(sizeof(struct tty_struct)); } // Function: usb_bulk_msg // with type: int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, void *data, int len, int *actual_length, int timeout) // with return type: int int __VERIFIER_nondet_int(void); int usb_bulk_msg(struct usb_device *arg0, unsigned int arg1, void *arg2, int arg3, int *arg4, int arg5) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_clear_halt // with type: int usb_clear_halt(struct usb_device *dev, int pipe) // with return type: int int __VERIFIER_nondet_int(void); int usb_clear_halt(struct usb_device *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_deregister // with type: void usb_deregister(struct usb_driver *) // with return type: void void usb_deregister(struct usb_driver *arg0) { // Void type return; } // Function: usb_kill_urb // with type: void usb_kill_urb(struct urb *urb) // with return type: void void usb_kill_urb(struct urb *arg0) { // Void type return; } // Function: usb_register_driver // with type: int usb_register_driver(struct usb_driver *, struct module *, const char *) // with return type: int int __VERIFIER_nondet_int(void); int usb_register_driver(struct usb_driver *arg0, struct module *arg1, const char *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_serial_deregister // with type: void usb_serial_deregister(struct usb_serial_driver *driver) // with return type: void void usb_serial_deregister(struct usb_serial_driver *arg0) { // Void type return; } // Function: usb_serial_port_softint // with type: void usb_serial_port_softint(struct usb_serial_port *port) // with return type: void void usb_serial_port_softint(struct usb_serial_port *arg0) { // Void type return; } // Function: usb_serial_register // with type: int usb_serial_register(struct usb_serial_driver *driver) // with return type: int int __VERIFIER_nondet_int(void); int usb_serial_register(struct usb_serial_driver *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: usb_submit_urb // with type: int usb_submit_urb(struct urb *urb, gfp_t mem_flags) // with return type: int int __VERIFIER_nondet_int(void); int usb_submit_urb(struct urb *arg0, gfp_t arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: autoremove_wake_function // with type: int autoremove_wake_function(wait_queue_t *, unsigned int, int, void *) // with return type: int int __VERIFIER_nondet_int(void); int autoremove_wake_function(wait_queue_t *arg0, unsigned int arg1, int arg2, void * arg3) { // Simple type return __VERIFIER_nondet_int(); }