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); } // Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // 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: __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: __tasklet_schedule // with type: void __tasklet_schedule(struct tasklet_struct *t) // with return type: void void __tasklet_schedule(struct tasklet_struct *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_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: crc32_le // with type: u32 crc32_le(u32 crc, const unsigned char *p, size_t len) // with return type: u32 unsigned int __VERIFIER_nondet_uint(void); u32 crc32_le(u32 arg0, const unsigned char *arg1, size_t arg2) { // Typedef type // Real type: unsigned int // Simple type return __VERIFIER_nondet_uint(); } // Function: debug_dma_alloc_coherent // with type: void debug_dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t dma_addr, void *virt) // with return type: void void debug_dma_alloc_coherent(struct device *arg0, size_t arg1, dma_addr_t arg2, void *arg3) { // Void type return; } // Function: debug_dma_free_coherent // with type: void debug_dma_free_coherent(struct device *dev, size_t size, void *virt, dma_addr_t addr) // with return type: void void debug_dma_free_coherent(struct device *arg0, size_t arg1, void *arg2, dma_addr_t arg3) { // Void type return; } // Function: dev_get_drvdata // with type: void *dev_get_drvdata(const struct device *dev) // with return type: (void)* void *dev_get_drvdata(const struct device *arg0) { // Pointer type return ldv_malloc(0UL); } // Function: dev_set_drvdata // with type: int dev_set_drvdata(struct device *dev, void *data) // with return type: int int __VERIFIER_nondet_int(void); int dev_set_drvdata(struct device *arg0, void *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_dmx_init // with type: int dvb_dmx_init(struct dvb_demux *dvbdemux) // with return type: int int __VERIFIER_nondet_int(void); int dvb_dmx_init(struct dvb_demux *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_dmx_release // with type: void dvb_dmx_release(struct dvb_demux *dvbdemux) // with return type: void void dvb_dmx_release(struct dvb_demux *arg0) { // Void type return; } // Function: dvb_dmxdev_init // with type: int dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb_adapter *) // with return type: int int __VERIFIER_nondet_int(void); int dvb_dmxdev_init(struct dmxdev *arg0, struct dvb_adapter *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_dmxdev_release // with type: void dvb_dmxdev_release(struct dmxdev *dmxdev) // with return type: void void dvb_dmxdev_release(struct dmxdev *arg0) { // Void type return; } // Function: dvb_filter_pes2ts // with type: int dvb_filter_pes2ts(struct dvb_filter_pes2ts *p2ts, unsigned char *pes, int len, int payload_start) // with return type: int int __VERIFIER_nondet_int(void); int dvb_filter_pes2ts(struct dvb_filter_pes2ts *arg0, unsigned char *arg1, int arg2, int arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_filter_pes2ts_init // with type: void dvb_filter_pes2ts_init(struct dvb_filter_pes2ts *p2ts, unsigned short pid, dvb_filter_pes2ts_cb_t *cb, void *priv) // with return type: void void dvb_filter_pes2ts_init(struct dvb_filter_pes2ts *arg0, unsigned short arg1, dvb_filter_pes2ts_cb_t *arg2, void *arg3) { // Void type return; } // Function: dvb_net_init // with type: int dvb_net_init(struct dvb_adapter *, struct dvb_net *, struct dmx_demux *) // with return type: int int __VERIFIER_nondet_int(void); int dvb_net_init(struct dvb_adapter *arg0, struct dvb_net *arg1, struct dmx_demux *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_net_release // with type: void dvb_net_release(struct dvb_net *) // with return type: void void dvb_net_release(struct dvb_net *arg0) { // Void type return; } // Function: dvb_register_adapter // with type: int dvb_register_adapter(struct dvb_adapter *adap, const char *name, struct module *module, struct device *device, short *adapter_nums) // with return type: int int __VERIFIER_nondet_int(void); int dvb_register_adapter(struct dvb_adapter *arg0, const char *arg1, struct module *arg2, struct device *arg3, short *arg4) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_register_frontend // with type: int dvb_register_frontend(struct dvb_adapter *dvb, struct dvb_frontend *fe) // with return type: int int __VERIFIER_nondet_int(void); int dvb_register_frontend(struct dvb_adapter *arg0, struct dvb_frontend *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_unregister_adapter // with type: int dvb_unregister_adapter(struct dvb_adapter *adap) // with return type: int int __VERIFIER_nondet_int(void); int dvb_unregister_adapter(struct dvb_adapter *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: dvb_unregister_frontend // with type: int dvb_unregister_frontend(struct dvb_frontend *fe) // with return type: int int __VERIFIER_nondet_int(void); int dvb_unregister_frontend(struct dvb_frontend *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: input_event // with type: void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) // with return type: void void input_event(struct input_dev *arg0, unsigned int arg1, unsigned int arg2, int arg3) { // Void type return; } // Function: input_free_device // with type: void input_free_device(struct input_dev *dev) // with return type: void void input_free_device(struct input_dev *arg0) { // Void type return; } // Function: input_register_device // with type: int input_register_device(struct input_dev *) // with return type: int int __VERIFIER_nondet_int(void); int input_register_device(struct input_dev *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: input_unregister_device // with type: void input_unregister_device(struct input_dev *) // with return type: void void input_unregister_device(struct input_dev *arg0) { // Void type return; } // Skip function: kfree // 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; } // Skip function: memcpy // Skip function: memset // Function: mutex_lock_interruptible_nested // with type: int mutex_lock_interruptible_nested(struct mutex *lock, unsigned int subclass) // with return type: int int __VERIFIER_nondet_int(void); int mutex_lock_interruptible_nested(struct mutex *arg0, unsigned int arg1) { // Simple type return __VERIFIER_nondet_int(); } // 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: 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(); } // Skip function: snprintf // Function: strlcat // with type: size_t strlcat(char *, const char *, __kernel_size_t ) // with return type: size_t unsigned long __VERIFIER_nondet_ulong(void); size_t strlcat(char *arg0, const char *arg1, __kernel_size_t arg2) { // Typedef type // Real type: __kernel_size_t // Typedef type // Real type: unsigned long // Simple type return __VERIFIER_nondet_ulong(); } // Function: tasklet_init // with type: void tasklet_init(struct tasklet_struct *t, void (*func)(unsigned long), unsigned long data) // with return type: void void tasklet_init(struct tasklet_struct *arg0, void (*arg1)(unsigned long), unsigned long arg2) { // Void type return; } // Function: tasklet_kill // with type: void tasklet_kill(struct tasklet_struct *t) // with return type: void void tasklet_kill(struct tasklet_struct *arg0) { // Void type return; } // Function: ttusbdecfe_dvbs_attach // with type: struct dvb_frontend *ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config *config) // with return type: (struct dvb_frontend)* struct dvb_frontend *ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config *arg0) { // Pointer type return ldv_malloc(sizeof(struct dvb_frontend)); } // Function: ttusbdecfe_dvbt_attach // with type: struct dvb_frontend *ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config *config) // with return type: (struct dvb_frontend)* struct dvb_frontend *ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config *arg0) { // Pointer type return ldv_malloc(sizeof(struct dvb_frontend)); } // 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_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_set_interface // with type: int usb_set_interface(struct usb_device *dev, int ifnum, int alternate) // with return type: int int __VERIFIER_nondet_int(void); int usb_set_interface(struct usb_device *arg0, int arg1, int arg2) { // 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: warn_slowpath_null // with type: void warn_slowpath_null(const char *file, const int line) // with return type: void void warn_slowpath_null(const char *arg0, const int arg1) { // Void type return; }