1
2
3
4#line 46 "include/asm-generic/int-ll64.h"
5typedef unsigned short u16;
6#line 49 "include/asm-generic/int-ll64.h"
7typedef unsigned int u32;
8#line 52 "include/asm-generic/int-ll64.h"
9typedef unsigned long long u64;
10#line 219 "include/linux/types.h"
11struct __anonstruct_atomic_t_7 {
12 int counter ;
13};
14#line 219 "include/linux/types.h"
15typedef struct __anonstruct_atomic_t_7 atomic_t;
16#line 229 "include/linux/types.h"
17struct list_head {
18 struct list_head *next ;
19 struct list_head *prev ;
20};
21#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/thread_info.h"
22struct task_struct;
23#line 20
24struct task_struct;
25#line 7 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
26struct task_struct;
27#line 52 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt_types.h"
28struct task_struct;
29#line 329
30struct arch_spinlock;
31#line 329
32struct arch_spinlock;
33#line 139 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/ptrace.h"
34struct task_struct;
35#line 8 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/current.h"
36struct task_struct;
37#line 14 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
38typedef u16 __ticket_t;
39#line 15 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
40typedef u32 __ticketpair_t;
41#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
42struct __raw_tickets {
43 __ticket_t head ;
44 __ticket_t tail ;
45};
46#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
47union __anonunion____missing_field_name_36 {
48 __ticketpair_t head_tail ;
49 struct __raw_tickets tickets ;
50};
51#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
52struct arch_spinlock {
53 union __anonunion____missing_field_name_36 __annonCompField17 ;
54};
55#line 20 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
56typedef struct arch_spinlock arch_spinlock_t;
57#line 12 "include/linux/lockdep.h"
58struct task_struct;
59#line 20 "include/linux/spinlock_types.h"
60struct raw_spinlock {
61 arch_spinlock_t raw_lock ;
62 unsigned int magic ;
63 unsigned int owner_cpu ;
64 void *owner ;
65};
66#line 64 "include/linux/spinlock_types.h"
67union __anonunion____missing_field_name_39 {
68 struct raw_spinlock rlock ;
69};
70#line 64 "include/linux/spinlock_types.h"
71struct spinlock {
72 union __anonunion____missing_field_name_39 __annonCompField19 ;
73};
74#line 64 "include/linux/spinlock_types.h"
75typedef struct spinlock spinlock_t;
76#line 55 "include/linux/wait.h"
77struct task_struct;
78#line 48 "include/linux/mutex.h"
79struct mutex {
80 atomic_t count ;
81 spinlock_t wait_lock ;
82 struct list_head wait_list ;
83 struct task_struct *owner ;
84 char const *name ;
85 void *magic ;
86};
87#line 18 "include/linux/capability.h"
88struct task_struct;
89#line 31 "include/media/rc-map.h"
90struct rc_map_table {
91 u32 scancode ;
92 u32 keycode ;
93};
94#line 36 "include/media/rc-map.h"
95struct rc_map {
96 struct rc_map_table *scan ;
97 unsigned int size ;
98 unsigned int len ;
99 unsigned int alloc ;
100 u64 rc_type ;
101 char const *name ;
102 spinlock_t lock ;
103};
104#line 46 "include/media/rc-map.h"
105struct rc_map_list {
106 struct list_head list ;
107 struct rc_map map ;
108};
109#line 270 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/elf.h"
110struct task_struct;
111#line 76 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
112struct __anonstruct_220 {
113 int : 0 ;
114};
115#line 1 "<compiler builtins>"
116long __builtin_expect(long val , long res ) ;
117#line 152 "include/linux/mutex.h"
118void mutex_lock(struct mutex *lock ) ;
119#line 153
120int __attribute__((__warn_unused_result__)) mutex_lock_interruptible(struct mutex *lock ) ;
121#line 154
122int __attribute__((__warn_unused_result__)) mutex_lock_killable(struct mutex *lock ) ;
123#line 168
124int mutex_trylock(struct mutex *lock ) ;
125#line 169
126void mutex_unlock(struct mutex *lock ) ;
127#line 170
128int atomic_dec_and_mutex_lock(atomic_t *cnt , struct mutex *lock ) ;
129#line 53 "include/media/rc-map.h"
130extern int rc_map_register(struct rc_map_list *map ) ;
131#line 54
132extern void rc_map_unregister(struct rc_map_list *map ) ;
133#line 67 "include/linux/module.h"
134int init_module(void) ;
135#line 68
136void cleanup_module(void) ;
137#line 19 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
138static struct rc_map_table dntv_live_dvbt_pro[53] =
139#line 19 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
140 { {(u32 )22, (u32 )116},
141 {(u32 )91, (u32 )102},
142 {(u32 )85, (u32 )377},
143 {(u32 )88, (u32 )386},
144 {(u32 )90, (u32 )385},
145 {(u32 )89, (u32 )389},
146 {(u32 )3, (u32 )2},
147 {(u32 )1, (u32 )3},
148 {(u32 )6, (u32 )4},
149 {(u32 )9, (u32 )5},
150 {(u32 )29, (u32 )6},
151 {(u32 )31, (u32 )7},
152 {(u32 )13, (u32 )8},
153 {(u32 )25, (u32 )9},
154 {(u32 )27, (u32 )10},
155 {(u32 )12, (u32 )223},
156 {(u32 )21, (u32 )11},
157 {(u32 )74, (u32 )355},
158 {(u32 )19, (u32 )158},
159 {(u32 )0, (u32 )15},
160 {(u32 )75, (u32 )103},
161 {(u32 )78, (u32 )105},
162 {(u32 )79, (u32 )352},
163 {(u32 )82, (u32 )106},
164 {(u32 )81, (u32 )108},
165 {(u32 )30, (u32 )115},
166 {(u32 )10, (u32 )114},
167 {(u32 )2, (u32 )403},
168 {(u32 )5, (u32 )402},
169 {(u32 )17, (u32 )167},
170 {(u32 )20, (u32 )207},
171 {(u32 )76, (u32 )119},
172 {(u32 )26, (u32 )128},
173 {(u32 )64, (u32 )168},
174 {(u32 )18, (u32 )208},
175 {(u32 )65, (u32 )165},
176 {(u32 )66, (u32 )163},
177 {(u32 )84, (u32 )212},
178 {(u32 )80, (u32 )368},
179 {(u32 )71, (u32 )378},
180 {(u32 )77, (u32 )375},
181 {(u32 )67, (u32 )370},
182 {(u32 )16, (u32 )113},
183 {(u32 )73, (u32 )392},
184 {(u32 )7, (u32 )142},
185 {(u32 )8, (u32 )393},
186 {(u32 )14, (u32 )412},
187 {(u32 )69, (u32 )372},
188 {(u32 )70, (u32 )371},
189 {(u32 )86, (u32 )398},
190 {(u32 )87, (u32 )399},
191 {(u32 )92, (u32 )400},
192 {(u32 )93, (u32 )401}};
193#line 76 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
194static struct rc_map_list dntv_live_dvbt_pro_map = {{(struct list_head *)0, (struct list_head *)0}, {dntv_live_dvbt_pro, (unsigned int )(sizeof(dntv_live_dvbt_pro) / sizeof(dntv_live_dvbt_pro[0]) + sizeof(struct __anonstruct_220 )),
195 0U, 0U, (u64 )0, "rc-dntv-live-dvbt-pro",
196 {{{{{0U}}, 0U, 0U, (void *)0}}}}};
197#line 85
198static int init_rc_map_dntv_live_dvbt_pro(void) __attribute__((__section__(".init.text"),
199__no_instrument_function__)) ;
200#line 85 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
201static int init_rc_map_dntv_live_dvbt_pro(void)
202{ int tmp ;
203
204 {
205 {
206#line 87
207 tmp = rc_map_register(& dntv_live_dvbt_pro_map);
208 }
209#line 87
210 return (tmp);
211}
212}
213#line 90
214static void exit_rc_map_dntv_live_dvbt_pro(void) __attribute__((__section__(".exit.text"),
215__no_instrument_function__)) ;
216#line 90 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
217static void exit_rc_map_dntv_live_dvbt_pro(void)
218{
219
220 {
221 {
222#line 92
223 rc_map_unregister(& dntv_live_dvbt_pro_map);
224 }
225#line 93
226 return;
227}
228}
229#line 95 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
230int init_module(void)
231{ int tmp ;
232
233 {
234 {
235#line 95
236 tmp = init_rc_map_dntv_live_dvbt_pro();
237 }
238#line 95
239 return (tmp);
240}
241}
242#line 96 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
243void cleanup_module(void)
244{
245
246 {
247 {
248#line 96
249 exit_rc_map_dntv_live_dvbt_pro();
250 }
251#line 96
252 return;
253}
254}
255#line 98 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
256static char const __mod_license98[12] __attribute__((__used__, __unused__, __section__(".modinfo"),
257__aligned__(1))) =
258#line 98
259 { (char const )'l', (char const )'i', (char const )'c', (char const )'e',
260 (char const )'n', (char const )'s', (char const )'e', (char const )'=',
261 (char const )'G', (char const )'P', (char const )'L', (char const )'\000'};
262#line 99 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
263static char const __mod_author99[50] __attribute__((__used__, __unused__, __section__(".modinfo"),
264__aligned__(1))) =
265#line 99
266 { (char const )'a', (char const )'u', (char const )'t', (char const )'h',
267 (char const )'o', (char const )'r', (char const )'=', (char const )'M',
268 (char const )'a', (char const )'u', (char const )'r', (char const )'o',
269 (char const )' ', (char const )'C', (char const )'a', (char const )'r',
270 (char const )'v', (char const )'a', (char const )'l', (char const )'h',
271 (char const )'o', (char const )' ', (char const )'C', (char const )'h',
272 (char const )'e', (char const )'h', (char const )'a', (char const )'b',
273 (char const )' ', (char const )'<', (char const )'m', (char const )'c',
274 (char const )'h', (char const )'e', (char const )'h', (char const )'a',
275 (char const )'b', (char const )'@', (char const )'r', (char const )'e',
276 (char const )'d', (char const )'h', (char const )'a', (char const )'t',
277 (char const )'.', (char const )'c', (char const )'o', (char const )'m',
278 (char const )'>', (char const )'\000'};
279#line 117
280void ldv_check_final_state(void) ;
281#line 123
282extern void ldv_initialize(void) ;
283#line 126
284extern int __VERIFIER_nondet_int(void) ;
285#line 129 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
286int LDV_IN_INTERRUPT ;
287#line 132 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
288void main(void)
289{ int tmp ;
290 int tmp___0 ;
291 int tmp___1 ;
292
293 {
294 {
295#line 144
296 LDV_IN_INTERRUPT = 1;
297#line 153
298 ldv_initialize();
299#line 159
300 tmp = init_rc_map_dntv_live_dvbt_pro();
301 }
302#line 159
303 if (tmp) {
304#line 160
305 goto ldv_final;
306 } else {
307
308 }
309 {
310#line 162
311 while (1) {
312 while_continue: ;
313 {
314#line 162
315 tmp___1 = __VERIFIER_nondet_int();
316 }
317#line 162
318 if (tmp___1) {
319
320 } else {
321#line 162
322 goto while_break;
323 }
324 {
325#line 165
326 tmp___0 = __VERIFIER_nondet_int();
327 }
328 {
329#line 167
330 goto switch_default;
331#line 165
332 if (0) {
333 switch_default:
334#line 167
335 goto switch_break;
336 } else {
337 switch_break: ;
338 }
339 }
340 }
341 while_break: ;
342 }
343 {
344#line 179
345 exit_rc_map_dntv_live_dvbt_pro();
346 }
347 ldv_final:
348 {
349#line 182
350 ldv_check_final_state();
351 }
352#line 185
353 return;
354}
355}
356#line 5 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/engine-blast-assert.h"
357void ldv_blast_assert(void)
358{
359
360 {
361 ERROR:
362#line 6
363 goto ERROR;
364}
365}
366#line 6 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/engine-blast.h"
367extern int __VERIFIER_nondet_int(void) ;
368#line 19 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
369int ldv_mutex = 1;
370#line 22 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
371int __attribute__((__warn_unused_result__)) mutex_lock_interruptible(struct mutex *lock )
372{ int nondetermined ;
373
374 {
375#line 29
376 if (ldv_mutex == 1) {
377
378 } else {
379 {
380#line 29
381 ldv_blast_assert();
382 }
383 }
384 {
385#line 32
386 nondetermined = __VERIFIER_nondet_int();
387 }
388#line 35
389 if (nondetermined) {
390#line 38
391 ldv_mutex = 2;
392#line 40
393 return (0);
394 } else {
395#line 45
396 return (-4);
397 }
398}
399}
400#line 50 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
401int __attribute__((__warn_unused_result__)) mutex_lock_killable(struct mutex *lock )
402{ int nondetermined ;
403
404 {
405#line 57
406 if (ldv_mutex == 1) {
407
408 } else {
409 {
410#line 57
411 ldv_blast_assert();
412 }
413 }
414 {
415#line 60
416 nondetermined = __VERIFIER_nondet_int();
417 }
418#line 63
419 if (nondetermined) {
420#line 66
421 ldv_mutex = 2;
422#line 68
423 return (0);
424 } else {
425#line 73
426 return (-4);
427 }
428}
429}
430#line 78 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
431int atomic_dec_and_mutex_lock(atomic_t *cnt , struct mutex *lock )
432{ int atomic_value_after_dec ;
433
434 {
435#line 83
436 if (ldv_mutex == 1) {
437
438 } else {
439 {
440#line 83
441 ldv_blast_assert();
442 }
443 }
444 {
445#line 86
446 atomic_value_after_dec = __VERIFIER_nondet_int();
447 }
448#line 89
449 if (atomic_value_after_dec == 0) {
450#line 92
451 ldv_mutex = 2;
452#line 94
453 return (1);
454 } else {
455
456 }
457#line 98
458 return (0);
459}
460}
461#line 103 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
462void mutex_lock(struct mutex *lock )
463{
464
465 {
466#line 108
467 if (ldv_mutex == 1) {
468
469 } else {
470 {
471#line 108
472 ldv_blast_assert();
473 }
474 }
475#line 110
476 ldv_mutex = 2;
477#line 111
478 return;
479}
480}
481#line 114 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
482int mutex_trylock(struct mutex *lock )
483{ int nondetermined ;
484
485 {
486#line 121
487 if (ldv_mutex == 1) {
488
489 } else {
490 {
491#line 121
492 ldv_blast_assert();
493 }
494 }
495 {
496#line 124
497 nondetermined = __VERIFIER_nondet_int();
498 }
499#line 127
500 if (nondetermined) {
501#line 130
502 ldv_mutex = 2;
503#line 132
504 return (1);
505 } else {
506#line 137
507 return (0);
508 }
509}
510}
511#line 142 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
512void mutex_unlock(struct mutex *lock )
513{
514
515 {
516#line 147
517 if (ldv_mutex == 2) {
518
519 } else {
520 {
521#line 147
522 ldv_blast_assert();
523 }
524 }
525#line 149
526 ldv_mutex = 1;
527#line 150
528 return;
529}
530}
531#line 153 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/kernel-rules/files/model0032.c"
532void ldv_check_final_state(void)
533{
534
535 {
536#line 156
537 if (ldv_mutex == 1) {
538
539 } else {
540 {
541#line 156
542 ldv_blast_assert();
543 }
544 }
545#line 157
546 return;
547}
548}
549#line 194 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--32_1--X--cpachecker/linux-3.4/csd_deg_dscv/12886/dscv_tempdir/dscv/ri/32_1/drivers/media/rc/keymaps/rc-dntv-live-dvbt-pro.c.common.c"
550long s__builtin_expect(long val , long res )
551{
552
553 {
554#line 195
555 return (val);
556}
557}