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/miscdevice.h>
30 : #include <linux/device.h>
31 : #include <linux/rtc.h>
32 : #include <linux/fs.h>
33 : #include <linux/seq_file.h>
34 : #include <linux/timer.h>
35 : #include <linux/pagemap.h>
36 :
37 :
38 : struct ldv_struct_character_driver_scenario_1 {
39 : struct file_operations *arg0;
40 : int signal_pending;
41 : };
42 :
43 : struct ldv_struct_insmod_26 {
44 : int signal_pending;
45 : };
46 :
47 : struct ldv_struct_timer_scenario_25 {
48 : struct timer_list *arg0;
49 : int signal_pending;
50 : };
51 :
52 : struct ldv_struct_traverse_kernel_items_scenario_5 {
53 : struct seq_file *arg0;
54 : struct seq_operations *arg1;
55 : int signal_pending;
56 : };
57 :
58 : /* EMG Function declarations */
59 : void ldv_dispatch_instance_deregister_27_1(struct timer_list *);
60 : int ldv_emg_del_timer(struct timer_list *);
61 : int ldv_emg_del_timer_sync(struct timer_list *);
62 : extern void ldv_timer_scenario_25(void *);
63 :
64 : /* EMG variable declarations */
65 :
66 : /* EMG variable initialization */
67 :
68 : /* EMG function definitions */
69 : /* AUX_FUNC ldv_dispatch_instance_deregister_27_1 */
70 : void ldv_dispatch_instance_deregister_27_1(struct timer_list *arg0) {
71 : struct ldv_struct_timer_scenario_25 *cf_arg_25;
72 : /* Skip thread join call */
73 0 : return;
74 : }
75 :
76 : /* AUX_FUNC ldv_emg_del_timer */
77 : int ldv_emg_del_timer(struct timer_list *arg0) {
78 : /* LDV {"comment": "Control function 'del_timer'", "type": "CONTROL_FUNCTION_BEGIN", "function": "ldv_emg_del_timer"} */
79 0 : /* LDV {"type": "CONTROL_FUNCTION_INIT_BEGIN", "comment": "Declare auxiliary variables."} */
80 : struct timer_list *ldv_27_timer_list_timer_list;
81 : /* LDV {"type": "CONTROL_FUNCTION_INIT_END", "comment": "Declare auxiliary variables."} */
82 : /* LDV {"action": "ASSIGN", "type": "CONDITION_BEGIN", "comment": "Get timer representing structure."} */
83 0 : ldv_27_timer_list_timer_list = arg0;
84 : /* LDV {"action": "ASSIGN", "type": "CONDITION_END"} */
85 :
86 : /* LDV {"action": "INSTANCE_DEREGISTER", "type": "DISPATCH_BEGIN", "comment": "Deregister TIMER callbacks."} */
87 0 : ldv_dispatch_instance_deregister_27_1(ldv_27_timer_list_timer_list);
88 0 : /* LDV {"action": "INSTANCE_DEREGISTER", "type": "DISPATCH_END"} */
89 :
90 : /* Exit function at a terminal state */
91 : /* End of the process */
92 : /* LDV {"comment": "End of control function based on process 'del_timer'", "type": "CONTROL_FUNCTION_END", "function": "ldv_emg_del_timer"} */
93 : }
94 :
95 : /* AUX_FUNC ldv_emg_del_timer_sync */
96 : int ldv_emg_del_timer_sync(struct timer_list *arg0) {
97 : /* LDV {"comment": "Control function 'del_timer_sync'", "type": "CONTROL_FUNCTION_BEGIN", "function": "ldv_emg_del_timer_sync"} */
98 0 : /* LDV {"type": "CONTROL_FUNCTION_INIT_BEGIN", "comment": "Declare auxiliary variables."} */
99 : struct timer_list *ldv_28_timer_list_timer_list;
100 : /* LDV {"type": "CONTROL_FUNCTION_INIT_END", "comment": "Declare auxiliary variables."} */
101 : /* LDV {"action": "ASSIGN", "type": "CONDITION_BEGIN", "comment": "Get timer representing structure."} */
102 0 : ldv_28_timer_list_timer_list = arg0;
103 0 : /* LDV {"action": "ASSIGN", "type": "CONDITION_END"} */
104 :
105 : /* LDV {"action": "INSTANCE_DEREGISTER", "type": "DISPATCH_BEGIN", "comment": "Skip the action, since no callbacks has been found."} */
106 : /* Dispatch 'instance_deregister' is not expected by any process, skipping the action */
107 : /* Skip the dispatch because there is no process to receive the signal */
108 : /* LDV {"action": "INSTANCE_DEREGISTER", "type": "DISPATCH_END"} */
109 :
110 : /* Exit function at a terminal state */
111 : /* End of the process */
112 : /* LDV {"comment": "End of control function based on process 'del_timer_sync'", "type": "CONTROL_FUNCTION_END", "function": "ldv_emg_del_timer_sync"} */
113 : }
114 :
115 :
116 : /* AUX_FUNC ERR_PTR */
117 : static inline void *ERR_PTR (long int error)
118 : {
119 :
120 : return ldv_err_ptr(error);
121 : }
122 :
123 : /* AUX_FUNC PTR_ERR */
124 : static inline long int PTR_ERR (void const *ptr)
125 : {
126 :
127 : return ldv_ptr_err(ptr);
128 : }
129 :
130 : /* AUX_FUNC IS_ERR */
131 : static inline long int IS_ERR (void const *ptr)
132 : {
133 :
134 : return ldv_is_err(ptr);
135 : }
136 :
137 : /* AUX_FUNC IS_ERR_OR_NULL */
138 : static inline long int IS_ERR_OR_NULL (void const *ptr)
139 : {
140 :
141 : return ldv_is_err_or_null(ptr);
142 : }
143 :
144 : /* AUX_FUNC ldv_del_timer_sync_5 */
145 : int ldv_del_timer_sync_5 (struct timer_list *ldv_func_arg1)
146 : {
147 :
148 : /* LDV {"type": "KERNEL_MODEL", "comment": "Perform the model code of the function 'del_timer_sync'"} */
149 : return ldv_emg_del_timer_sync(ldv_func_arg1);
150 : }
151 :
152 : /* AUX_FUNC ldv_del_timer_6 */
153 : int ldv_del_timer_6 (struct timer_list *ldv_func_arg1)
154 : {
155 :
156 : /* LDV {"type": "KERNEL_MODEL", "comment": "Perform the model code of the function 'del_timer'"} */
157 : return ldv_emg_del_timer(ldv_func_arg1);
158 : }
159 :
160 : /* AUX_FUNC kzalloc */
161 : static inline void *kzalloc (size_t size, gfp_t flags)
162 : {
163 :
164 : return ldv_kzalloc(size, flags);
165 : }
166 :
167 : /* AUX_FUNC ldv_dev_get_drvdata_8 */
168 : void *ldv_dev_get_drvdata_8 (struct device const *dev)
169 : {
170 :
171 : return ldv_dev_get_drvdata(dev);
172 : }
|