Line data Source code
1 :
2 : struct device;
3 :
4 : void *ldv_dev_get_drvdata(const struct device *dev);
5 : int ldv_dev_set_drvdata(struct device *dev, void *data);
6 :
7 : struct spi_master;
8 : struct device;
9 : struct spi_master *ldv_spi_alloc_master(struct device *host, unsigned size);
10 :
11 : #include <linux/ldv/err.h>
12 :
13 : #include <linux/types.h>
14 : void *ldv_kzalloc(size_t size, gfp_t flags);
15 :
16 : struct clk;
17 :
18 : extern void ldv_clk_disable(struct clk *clk);
19 : extern int ldv_clk_enable(void);
20 :
21 : #include <linux/ldv/common.h>
22 : #include <linux/ldv/irq.h>
23 : #include <verifier/common.h>
24 : #include <verifier/nondet.h>
25 : #include <verifier/memory.h>
26 : #include <verifier/thread.h>
27 :
28 : #include <linux/cdev.h>
29 : #include <linux/fs.h>
30 : #include <linux/pagemap.h>
31 :
32 :
33 : struct ldv_struct_character_driver_scenario_1 {
34 : struct file_operations *arg0;
35 : int signal_pending;
36 : };
37 :
38 : struct ldv_struct_insmod_7 {
39 : int signal_pending;
40 : };
41 :
42 : /* EMG Function declarations */
43 : void ldv_character_driver_scenario_callback_2_29(loff_t (*)(struct file *, loff_t , int), struct file *, long long int, int);
44 : void ldv_character_driver_scenario_callback_2_32(ssize_t (*)(struct file *, char *, size_t , loff_t *), struct file *, char *, long unsigned int, loff_t *);
45 : void ldv_character_driver_scenario_callback_2_35(int (*)(struct file *, void *, filldir_t ), struct file *, void *, int (*)(void *, char *, int, loff_t , u64 , unsigned int));
46 : void ldv_character_driver_scenario_callback_3_23(int (*)(struct inode *, struct file *, unsigned int, long unsigned int), struct inode *, struct file *, unsigned int, long unsigned int);
47 : void ldv_character_driver_scenario_callback_3_29(loff_t (*)(struct file *, loff_t , int), struct file *, long long int, int);
48 : void ldv_character_driver_scenario_callback_3_32(ssize_t (*)(struct file *, char *, size_t , loff_t *), struct file *, char *, long unsigned int, loff_t *);
49 : void ldv_character_driver_scenario_callback_3_35(int (*)(struct file *, void *, filldir_t ), struct file *, void *, int (*)(void *, char *, int, loff_t , u64 , unsigned int));
50 : int ldv_character_driver_scenario_probe_2_12(int (*)(struct inode *, struct file *), struct inode *, struct file *);
51 : int ldv_character_driver_scenario_probe_3_12(int (*)(struct inode *, struct file *), struct inode *, struct file *);
52 : void ldv_character_driver_scenario_release_2_2(int (*)(struct inode *, struct file *), struct inode *, struct file *);
53 : void ldv_character_driver_scenario_release_3_2(int (*)(struct inode *, struct file *), struct inode *, struct file *);
54 : void ldv_random_containerless_scenario_callback_4_4(void (*)(struct dentry *), struct dentry *);
55 : void ldv_random_containerless_scenario_callback_4_8(int (*)(struct dentry *, struct nameidata *), struct dentry *, struct nameidata *);
56 : void ldv_random_containerless_scenario_callback_5_15(int (*)(struct inode *, struct dentry *), struct inode *, struct dentry *);
57 : void ldv_random_containerless_scenario_callback_5_16(int (*)(struct inode *, struct dentry *, char *), struct inode *, struct dentry *, char *);
58 : void ldv_random_containerless_scenario_callback_5_19(int (*)(struct inode *, struct dentry *), struct inode *, struct dentry *);
59 : void ldv_random_containerless_scenario_callback_5_8(struct dentry *(*)(struct inode *, struct dentry *, struct nameidata *), struct inode *, struct dentry *, struct nameidata *);
60 : void ldv_random_containerless_scenario_callback_5_9(int (*)(struct inode *, struct dentry *, int), struct inode *, struct dentry *, int);
61 :
62 : /* EMG variable declarations */
63 :
64 : /* EMG variable initialization */
65 :
66 : /* EMG function definitions */
67 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_2_29 */
68 : void ldv_character_driver_scenario_callback_2_29(loff_t (*arg0)(struct file *, loff_t , int), struct file *arg1, long long int arg2, int arg3) {
69 1 : ((& dcache_dir_lseek))(arg1, arg2, arg3);
70 1 : }
71 :
72 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_2_32 */
73 : void ldv_character_driver_scenario_callback_2_32(ssize_t (*arg0)(struct file *, char *, size_t , loff_t *), struct file *arg1, char *arg2, long unsigned int arg3, long long int *arg4) {
74 1 : ((& generic_read_dir))(arg1, arg2, arg3, arg4);
75 1 : }
76 :
77 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_2_35 */
78 : void ldv_character_driver_scenario_callback_2_35(int (*arg0)(struct file *, void *, filldir_t ), struct file *arg1, void *arg2, int (*arg3)(void *, char *, int, loff_t , u64 , unsigned int)) {
79 1 : ((& dcache_readdir))(arg1, arg2, arg3);
80 1 : }
81 :
82 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_3_23 */
83 : void ldv_character_driver_scenario_callback_3_23(int (*arg0)(struct inode *, struct file *, unsigned int, long unsigned int), struct inode *arg1, struct file *arg2, unsigned int arg3, long unsigned int arg4) {
84 12 : ((& autofs4_root_ioctl))(arg1, arg2, arg3, arg4);
85 1 : }
86 :
87 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_3_29 */
88 : void ldv_character_driver_scenario_callback_3_29(loff_t (*arg0)(struct file *, loff_t , int), struct file *arg1, long long int arg2, int arg3) {
89 1 : ((& dcache_dir_lseek))(arg1, arg2, arg3);
90 1 : }
91 :
92 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_3_32 */
93 : void ldv_character_driver_scenario_callback_3_32(ssize_t (*arg0)(struct file *, char *, size_t , loff_t *), struct file *arg1, char *arg2, long unsigned int arg3, long long int *arg4) {
94 1 : ((& generic_read_dir))(arg1, arg2, arg3, arg4);
95 1 : }
96 :
97 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_callback_3_35 */
98 : void ldv_character_driver_scenario_callback_3_35(int (*arg0)(struct file *, void *, filldir_t ), struct file *arg1, void *arg2, int (*arg3)(void *, char *, int, loff_t , u64 , unsigned int)) {
99 1 : ((& dcache_readdir))(arg1, arg2, arg3);
100 1 : }
101 :
102 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_probe_2_12 */
103 : int ldv_character_driver_scenario_probe_2_12(int (*arg0)(struct inode *, struct file *), struct inode *arg1, struct file *arg2) {
104 5 : return ((& autofs4_dir_open))(arg1, arg2);
105 : }
106 1 :
107 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_probe_3_12 */
108 : int ldv_character_driver_scenario_probe_3_12(int (*arg0)(struct inode *, struct file *), struct inode *arg1, struct file *arg2) {
109 2 : return ((& dcache_dir_open))(arg1, arg2);
110 : }
111 1 :
112 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_release_2_2 */
113 : void ldv_character_driver_scenario_release_2_2(int (*arg0)(struct inode *, struct file *), struct inode *arg1, struct file *arg2) {
114 1 : ((& dcache_dir_close))(arg1, arg2);
115 1 : }
116 :
117 : /* AUX_FUNC_CALLBACK ldv_character_driver_scenario_release_3_2 */
118 : void ldv_character_driver_scenario_release_3_2(int (*arg0)(struct inode *, struct file *), struct inode *arg1, struct file *arg2) {
119 1 : ((& dcache_dir_close))(arg1, arg2);
120 1 : }
121 :
122 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_4_4 */
123 : void ldv_random_containerless_scenario_callback_4_4(void (*arg0)(struct dentry *), struct dentry *arg1) {
124 3 : ((& autofs4_dentry_release))(arg1);
125 1 : }
126 :
127 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_4_8 */
128 : void ldv_random_containerless_scenario_callback_4_8(int (*arg0)(struct dentry *, struct nameidata *), struct dentry *arg1, struct nameidata *arg2) {
129 9 : ((& autofs4_revalidate))(arg1, arg2);
130 1 : }
131 :
132 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_5_15 */
133 : void ldv_random_containerless_scenario_callback_5_15(int (*arg0)(struct inode *, struct dentry *), struct inode *arg1, struct dentry *arg2) {
134 5 : ((& autofs4_dir_rmdir))(arg1, arg2);
135 1 : }
136 :
137 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_5_16 */
138 : void ldv_random_containerless_scenario_callback_5_16(int (*arg0)(struct inode *, struct dentry *, char *), struct inode *arg1, struct dentry *arg2, char *arg3) {
139 7 : ((& autofs4_dir_symlink))(arg1, arg2, arg3);
140 1 : }
141 :
142 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_5_19 */
143 : void ldv_random_containerless_scenario_callback_5_19(int (*arg0)(struct inode *, struct dentry *), struct inode *arg1, struct dentry *arg2) {
144 3 : ((& autofs4_dir_unlink))(arg1, arg2);
145 1 : }
146 :
147 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_5_8 */
148 : void ldv_random_containerless_scenario_callback_5_8(struct dentry *(*arg0)(struct inode *, struct dentry *, struct nameidata *), struct inode *arg1, struct dentry *arg2, struct nameidata *arg3) {
149 8 : ((& autofs4_lookup))(arg1, arg2, arg3);
150 1 : }
151 :
152 : /* AUX_FUNC_CALLBACK ldv_random_containerless_scenario_callback_5_9 */
153 : void ldv_random_containerless_scenario_callback_5_9(int (*arg0)(struct inode *, struct dentry *, int), struct inode *arg1, struct dentry *arg2, int arg3) {
154 5 : ((& autofs4_dir_mkdir))(arg1, arg2, arg3);
155 1 : }
156 :
157 :
158 : /* AUX_FUNC ERR_PTR */
159 : static inline void *ERR_PTR (long int error)
160 : {
161 16 :
162 48 : return ldv_err_ptr(error);
163 : }
164 :
165 : /* AUX_FUNC PTR_ERR */
166 : static inline long int PTR_ERR (void const *ptr)
167 : {
168 :
169 : return ldv_ptr_err(ptr);
170 : }
171 :
172 : /* AUX_FUNC IS_ERR */
173 : static inline long int IS_ERR (void const *ptr)
174 : {
175 3 :
176 9 : return ldv_is_err(ptr);
177 : }
178 :
179 : /* AUX_FUNC IS_ERR_OR_NULL */
180 : static inline long int IS_ERR_OR_NULL (void const *ptr)
181 : {
182 :
183 : return ldv_is_err_or_null(ptr);
184 : }
185 :
186 : /* AUX_FUNC kzalloc */
187 : static inline void *kzalloc (size_t size, gfp_t flags)
188 : {
189 :
190 : return ldv_kzalloc(size, flags);
191 : }
|