// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Function: __const_udelay // with type: void __const_udelay(unsigned long) // with return type: void void __const_udelay(unsigned long arg0) { // Void type return; } // Function: __pci_register_driver // with type: int __pci_register_driver(struct pci_driver *, struct module *, const char *) // with return type: int int __VERIFIER_nondet_int(void); int __pci_register_driver(struct pci_driver *arg0, struct module *arg1, const char *arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: __release_region // with type: void __release_region(struct resource *, resource_size_t , resource_size_t ) // with return type: void void __release_region(struct resource *arg0, resource_size_t arg1, resource_size_t arg2) { // Void type return; } extern _Bool __VERIFIER_nondet_bool(void) ; extern void *malloc(size_t) ; __inline static IS_ERR(void const *ptr ) ; extern void abort(void); void assume_abort_if_not(int cond) { if(!cond) {abort();} } void *ldv_malloc(size_t size ) { if(__VERIFIER_nondet_bool()) return 0; void *p = malloc(size); assume_abort_if_not(IS_ERR(p) == 0); return p; } // Function: __request_region // with type: struct resource *__request_region(struct resource *, resource_size_t , resource_size_t , const char *, int) // with return type: (struct resource)* struct resource *__request_region(struct resource *arg0, resource_size_t arg1, resource_size_t arg2, const char *arg3, int arg4) { // Pointer type return ldv_malloc(sizeof(struct resource)); } // Function: backlight_device_register // with type: struct backlight_device *backlight_device_register(const char *, struct device *, void *, const struct backlight_ops *, const struct backlight_properties *) // with return type: (struct backlight_device)* struct backlight_device *backlight_device_register(const char *arg0, struct device *arg1, void *arg2, const struct backlight_ops *arg3, const struct backlight_properties *arg4) { // Pointer type return ldv_malloc(sizeof(struct backlight_device)); } // Function: backlight_device_unregister // with type: void backlight_device_unregister(struct backlight_device *) // with return type: void void backlight_device_unregister(struct backlight_device *arg0) { // Void type return; } // Function: console_lock // with type: void console_lock() // with return type: void void console_lock() { // Void type return; } // Function: console_unlock // with type: void console_unlock() // with return type: void void console_unlock() { // Void type return; } // Function: dev_get_drvdata // with type: void *dev_get_drvdata(const struct device *) // 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 *, void *) // 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: fb_alloc_cmap // with type: int fb_alloc_cmap(struct fb_cmap *, int, int) // with return type: int int __VERIFIER_nondet_int(void); int fb_alloc_cmap(struct fb_cmap *arg0, int arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: fb_bl_default_curve // with type: void fb_bl_default_curve(struct fb_info *, u8 , u8 , u8 ) // with return type: void void fb_bl_default_curve(struct fb_info *arg0, u8 arg1, u8 arg2, u8 arg3) { // Void type return; } // Function: fb_find_mode // with type: int fb_find_mode(struct fb_var_screeninfo *, struct fb_info *, const char *, const struct fb_videomode *, unsigned int, const struct fb_videomode *, unsigned int) // with return type: int int __VERIFIER_nondet_int(void); int fb_find_mode(struct fb_var_screeninfo *arg0, struct fb_info *arg1, const char *arg2, const struct fb_videomode *arg3, unsigned int arg4, const struct fb_videomode *arg5, unsigned int arg6) { // Simple type return __VERIFIER_nondet_int(); } // Function: fb_pan_display // with type: int fb_pan_display(struct fb_info *, struct fb_var_screeninfo *) // with return type: int int __VERIFIER_nondet_int(void); int fb_pan_display(struct fb_info *arg0, struct fb_var_screeninfo *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: fb_set_cmap // with type: int fb_set_cmap(struct fb_cmap *, struct fb_info *) // with return type: int int __VERIFIER_nondet_int(void); int fb_set_cmap(struct fb_cmap *arg0, struct fb_info *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: fb_set_suspend // with type: void fb_set_suspend(struct fb_info *, int) // with return type: void void fb_set_suspend(struct fb_info *arg0, int arg1) { // Void type return; } // Function: framebuffer_alloc // with type: struct fb_info *framebuffer_alloc(size_t , struct device *) // with return type: (struct fb_info)* struct fb_info *framebuffer_alloc(size_t arg0, struct device *arg1) { // Pointer type return ldv_malloc(sizeof(struct fb_info)); } // Function: framebuffer_release // with type: void framebuffer_release(struct fb_info *) // with return type: void void framebuffer_release(struct fb_info *arg0) { // Void type return; } // Function: ioremap_nocache // with type: void *ioremap_nocache(resource_size_t , unsigned long) // with return type: (void)* void *ioremap_nocache(resource_size_t arg0, unsigned long arg1) { // Pointer type return ldv_malloc(0UL); } // Function: iounmap // with type: void iounmap(volatile void *) // with return type: void void iounmap(volatile void *arg0) { // Void type return; } // Function: ldv_check_return_value // with type: void ldv_check_return_value(int) // 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_int // with type: int ldv_undefined_int() // with return type: int int __VERIFIER_nondet_int(void); int ldv_undefined_int() { // Simple type return __VERIFIER_nondet_int(); } // Skip function: memset // Function: might_fault // with type: void might_fault() // with return type: void void might_fault() { // Void type return; } // Function: mtrr_add // with type: int mtrr_add(unsigned long, unsigned long, unsigned int, bool ) // with return type: int int __VERIFIER_nondet_int(void); int mtrr_add(unsigned long arg0, unsigned long arg1, unsigned int arg2, bool arg3) { // Simple type return __VERIFIER_nondet_int(); } // Function: mtrr_del // with type: int mtrr_del(int, unsigned long, unsigned long) // with return type: int int __VERIFIER_nondet_int(void); int mtrr_del(int arg0, unsigned long arg1, unsigned long arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: mutex_lock_nested // with type: void mutex_lock_nested(struct mutex *, unsigned int) // 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 *) // with return type: void void mutex_unlock(struct mutex *arg0) { // Void type return; } // Function: pci_enable_device // with type: int pci_enable_device(struct pci_dev *) // with return type: int int __VERIFIER_nondet_int(void); int pci_enable_device(struct pci_dev *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_find_capability // with type: int pci_find_capability(struct pci_dev *, int) // with return type: int int __VERIFIER_nondet_int(void); int pci_find_capability(struct pci_dev *arg0, int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_ioremap_bar // with type: void *pci_ioremap_bar(struct pci_dev *, int) // with return type: (void)* void *pci_ioremap_bar(struct pci_dev *arg0, int arg1) { // Pointer type return ldv_malloc(0UL); } // Function: pci_map_rom // with type: void *pci_map_rom(struct pci_dev *, size_t *) // with return type: (void)* void *pci_map_rom(struct pci_dev *arg0, size_t *arg1) { // Pointer type return ldv_malloc(0UL); } // Function: pci_save_state // with type: int pci_save_state(struct pci_dev *) // with return type: int int __VERIFIER_nondet_int(void); int pci_save_state(struct pci_dev *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_set_power_state // with type: int pci_set_power_state(struct pci_dev *, pci_power_t ) // with return type: int int __VERIFIER_nondet_int(void); int pci_set_power_state(struct pci_dev *arg0, pci_power_t arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: pci_unmap_rom // with type: void pci_unmap_rom(struct pci_dev *, void *) // with return type: void void pci_unmap_rom(struct pci_dev *arg0, void *arg1) { // Void type return; } // Function: pci_unregister_driver // with type: void pci_unregister_driver(struct pci_driver *) // with return type: void void pci_unregister_driver(struct pci_driver *arg0) { // Void type return; } // 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: register_framebuffer // with type: int register_framebuffer(struct fb_info *) // with return type: int int __VERIFIER_nondet_int(void); int register_framebuffer(struct fb_info *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Skip function: snprintf // Skip function: strcpy // 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: unregister_framebuffer // with type: int unregister_framebuffer(struct fb_info *) // with return type: int int __VERIFIER_nondet_int(void); int unregister_framebuffer(struct fb_info *arg0) { // Simple type return __VERIFIER_nondet_int(); }