// Skip function: __VERIFIER_error // Skip function: __VERIFIER_nondet_int // Function: __mutex_init // with type: void __mutex_init(struct mutex *, const char *, struct lock_class_key *) // with return type: void void __mutex_init(struct mutex *arg0, const char *arg1, struct lock_class_key *arg2) { // Void type return; } // Function: dev_err // with type: int dev_err(const struct device *, const char *, ...) // 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(); } 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: 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: devm_kzalloc // with type: void *devm_kzalloc(struct device *, size_t , gfp_t ) // with return type: (void)* void *devm_kzalloc(struct device *arg0, size_t arg1, gfp_t arg2) { // Pointer type return ldv_malloc(0UL); } // Function: i2c_del_driver // with type: void i2c_del_driver(struct i2c_driver *) // with return type: void void i2c_del_driver(struct i2c_driver *arg0) { // Void type return; } // Function: i2c_register_driver // with type: int i2c_register_driver(struct module *, struct i2c_driver *) // with return type: int int __VERIFIER_nondet_int(void); int i2c_register_driver(struct module *arg0, struct i2c_driver *arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_smbus_read_byte // with type: s32 i2c_smbus_read_byte(const struct i2c_client *) // with return type: s32 int __VERIFIER_nondet_int(void); s32 i2c_smbus_read_byte(const struct i2c_client *arg0) { // Typedef type // Real type: int // Simple type return __VERIFIER_nondet_int(); } // Function: i2c_smbus_write_byte // with type: s32 i2c_smbus_write_byte(const struct i2c_client *, u8 ) // with return type: s32 int __VERIFIER_nondet_int(void); s32 i2c_smbus_write_byte(const struct i2c_client *arg0, u8 arg1) { // Typedef type // Real type: int // Simple type return __VERIFIER_nondet_int(); } // Function: mutex_lock // with type: void mutex_lock(struct mutex *) // with return type: void void mutex_lock(struct mutex *arg0) { // Void type return; } // Function: mutex_trylock // with type: int mutex_trylock(struct mutex *) // with return type: int int __VERIFIER_nondet_int(void); int mutex_trylock(struct mutex *arg0) { // Simple type return __VERIFIER_nondet_int(); } // Function: mutex_unlock // with type: void mutex_unlock(struct mutex *) // with return type: void void mutex_unlock(struct mutex *arg0) { // Void type return; } // Function: rdev_get_drvdata // with type: void *rdev_get_drvdata(struct regulator_dev *) // with return type: (void)* void *rdev_get_drvdata(struct regulator_dev *arg0) { // Pointer type return ldv_malloc(0UL); } // Function: regulator_list_voltage_linear // with type: int regulator_list_voltage_linear(struct regulator_dev *, unsigned int) // with return type: int int __VERIFIER_nondet_int(void); int regulator_list_voltage_linear(struct regulator_dev *arg0, unsigned int arg1) { // Simple type return __VERIFIER_nondet_int(); } // Function: regulator_map_voltage_linear // with type: int regulator_map_voltage_linear(struct regulator_dev *, int, int) // with return type: int int __VERIFIER_nondet_int(void); int regulator_map_voltage_linear(struct regulator_dev *arg0, int arg1, int arg2) { // Simple type return __VERIFIER_nondet_int(); } // Function: regulator_register // with type: struct regulator_dev *regulator_register(const struct regulator_desc *, const struct regulator_config *) // with return type: (struct regulator_dev)* struct regulator_dev *regulator_register(const struct regulator_desc *arg0, const struct regulator_config *arg1) { // Pointer type return ldv_malloc(sizeof(struct regulator_dev)); } // Function: regulator_unregister // with type: void regulator_unregister(struct regulator_dev *) // with return type: void void regulator_unregister(struct regulator_dev *arg0) { // Void type return; }