Showing error 830

User: Jiri Slaby
Error type: Reachable Error Location
Error type description: A specified error location is reachable in some program path
File location: ldv-linux-3.4/43_1a_cilled_safe_ok_nondet_linux-43_1a-drivers--input--joystick--spaceball.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c
Line in file: 3883
Project: SV-COMP 2013
Project version: 2.6.28
Tools: Manual Work
Entered: 2013-01-17 16:57:54 UTC


Source:

   1/* Generated by CIL v. 1.3.7 */
   2/* print_CIL_Input is true */
   3
   4#line 19 "include/asm-generic/int-ll64.h"
   5typedef signed char __s8;
   6#line 20 "include/asm-generic/int-ll64.h"
   7typedef unsigned char __u8;
   8#line 22 "include/asm-generic/int-ll64.h"
   9typedef short __s16;
  10#line 23 "include/asm-generic/int-ll64.h"
  11typedef unsigned short __u16;
  12#line 25 "include/asm-generic/int-ll64.h"
  13typedef int __s32;
  14#line 26 "include/asm-generic/int-ll64.h"
  15typedef unsigned int __u32;
  16#line 30 "include/asm-generic/int-ll64.h"
  17typedef unsigned long long __u64;
  18#line 43 "include/asm-generic/int-ll64.h"
  19typedef unsigned char u8;
  20#line 45 "include/asm-generic/int-ll64.h"
  21typedef short s16;
  22#line 46 "include/asm-generic/int-ll64.h"
  23typedef unsigned short u16;
  24#line 48 "include/asm-generic/int-ll64.h"
  25typedef int s32;
  26#line 49 "include/asm-generic/int-ll64.h"
  27typedef unsigned int u32;
  28#line 51 "include/asm-generic/int-ll64.h"
  29typedef long long s64;
  30#line 52 "include/asm-generic/int-ll64.h"
  31typedef unsigned long long u64;
  32#line 14 "include/asm-generic/posix_types.h"
  33typedef long __kernel_long_t;
  34#line 15 "include/asm-generic/posix_types.h"
  35typedef unsigned long __kernel_ulong_t;
  36#line 52 "include/asm-generic/posix_types.h"
  37typedef unsigned int __kernel_uid32_t;
  38#line 53 "include/asm-generic/posix_types.h"
  39typedef unsigned int __kernel_gid32_t;
  40#line 75 "include/asm-generic/posix_types.h"
  41typedef __kernel_ulong_t __kernel_size_t;
  42#line 76 "include/asm-generic/posix_types.h"
  43typedef __kernel_long_t __kernel_ssize_t;
  44#line 91 "include/asm-generic/posix_types.h"
  45typedef long long __kernel_loff_t;
  46#line 92 "include/asm-generic/posix_types.h"
  47typedef __kernel_long_t __kernel_time_t;
  48#line 21 "include/linux/types.h"
  49typedef __u32 __kernel_dev_t;
  50#line 24 "include/linux/types.h"
  51typedef __kernel_dev_t dev_t;
  52#line 27 "include/linux/types.h"
  53typedef unsigned short umode_t;
  54#line 38 "include/linux/types.h"
  55typedef _Bool bool;
  56#line 40 "include/linux/types.h"
  57typedef __kernel_uid32_t uid_t;
  58#line 41 "include/linux/types.h"
  59typedef __kernel_gid32_t gid_t;
  60#line 54 "include/linux/types.h"
  61typedef __kernel_loff_t loff_t;
  62#line 63 "include/linux/types.h"
  63typedef __kernel_size_t size_t;
  64#line 68 "include/linux/types.h"
  65typedef __kernel_ssize_t ssize_t;
  66#line 78 "include/linux/types.h"
  67typedef __kernel_time_t time_t;
  68#line 142 "include/linux/types.h"
  69typedef unsigned long sector_t;
  70#line 143 "include/linux/types.h"
  71typedef unsigned long blkcnt_t;
  72#line 202 "include/linux/types.h"
  73typedef unsigned int gfp_t;
  74#line 203 "include/linux/types.h"
  75typedef unsigned int fmode_t;
  76#line 221 "include/linux/types.h"
  77struct __anonstruct_atomic_t_6 {
  78   int counter ;
  79};
  80#line 221 "include/linux/types.h"
  81typedef struct __anonstruct_atomic_t_6 atomic_t;
  82#line 226 "include/linux/types.h"
  83struct __anonstruct_atomic64_t_7 {
  84   long counter ;
  85};
  86#line 226 "include/linux/types.h"
  87typedef struct __anonstruct_atomic64_t_7 atomic64_t;
  88#line 227 "include/linux/types.h"
  89struct list_head {
  90   struct list_head *next ;
  91   struct list_head *prev ;
  92};
  93#line 232
  94struct hlist_node;
  95#line 232 "include/linux/types.h"
  96struct hlist_head {
  97   struct hlist_node *first ;
  98};
  99#line 236 "include/linux/types.h"
 100struct hlist_node {
 101   struct hlist_node *next ;
 102   struct hlist_node **pprev ;
 103};
 104#line 247 "include/linux/types.h"
 105struct rcu_head {
 106   struct rcu_head *next ;
 107   void (*func)(struct rcu_head * ) ;
 108};
 109#line 55 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/alternative.h"
 110struct module;
 111#line 55
 112struct module;
 113#line 146 "include/linux/init.h"
 114typedef void (*ctor_fn_t)(void);
 115#line 46 "include/linux/dynamic_debug.h"
 116struct device;
 117#line 46
 118struct device;
 119#line 57
 120struct completion;
 121#line 57
 122struct completion;
 123#line 348 "include/linux/kernel.h"
 124struct pid;
 125#line 348
 126struct pid;
 127#line 112 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/stat.h"
 128struct timespec;
 129#line 112
 130struct timespec;
 131#line 58 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/page_types.h"
 132struct page;
 133#line 58
 134struct page;
 135#line 26 "include/asm-generic/getorder.h"
 136struct task_struct;
 137#line 26
 138struct task_struct;
 139#line 290 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/pgtable_types.h"
 140struct file;
 141#line 290
 142struct file;
 143#line 305
 144struct seq_file;
 145#line 305
 146struct seq_file;
 147#line 327 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt_types.h"
 148struct arch_spinlock;
 149#line 327
 150struct arch_spinlock;
 151#line 306 "include/linux/bitmap.h"
 152struct bug_entry {
 153   int bug_addr_disp ;
 154   int file_disp ;
 155   unsigned short line ;
 156   unsigned short flags ;
 157};
 158#line 234 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/paravirt.h"
 159struct static_key;
 160#line 234
 161struct static_key;
 162#line 433 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/processor.h"
 163struct kmem_cache;
 164#line 23 "include/asm-generic/atomic-long.h"
 165typedef atomic64_t atomic_long_t;
 166#line 14 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
 167typedef u16 __ticket_t;
 168#line 15 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
 169typedef u32 __ticketpair_t;
 170#line 16 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
 171struct __raw_tickets {
 172   __ticket_t head ;
 173   __ticket_t tail ;
 174};
 175#line 26 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
 176union __anonunion_ldv_5907_29 {
 177   __ticketpair_t head_tail ;
 178   struct __raw_tickets tickets ;
 179};
 180#line 26 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
 181struct arch_spinlock {
 182   union __anonunion_ldv_5907_29 ldv_5907 ;
 183};
 184#line 27 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/spinlock_types.h"
 185typedef struct arch_spinlock arch_spinlock_t;
 186#line 33 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
 187struct __anonstruct_ldv_5914_31 {
 188   u32 read ;
 189   s32 write ;
 190};
 191#line 33 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
 192union __anonunion_arch_rwlock_t_30 {
 193   s64 lock ;
 194   struct __anonstruct_ldv_5914_31 ldv_5914 ;
 195};
 196#line 33 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/rwlock.h"
 197typedef union __anonunion_arch_rwlock_t_30 arch_rwlock_t;
 198#line 34
 199struct lockdep_map;
 200#line 34
 201struct lockdep_map;
 202#line 55 "include/linux/debug_locks.h"
 203struct stack_trace {
 204   unsigned int nr_entries ;
 205   unsigned int max_entries ;
 206   unsigned long *entries ;
 207   int skip ;
 208};
 209#line 26 "include/linux/stacktrace.h"
 210struct lockdep_subclass_key {
 211   char __one_byte ;
 212};
 213#line 53 "include/linux/lockdep.h"
 214struct lock_class_key {
 215   struct lockdep_subclass_key subkeys[8U] ;
 216};
 217#line 59 "include/linux/lockdep.h"
 218struct lock_class {
 219   struct list_head hash_entry ;
 220   struct list_head lock_entry ;
 221   struct lockdep_subclass_key *key ;
 222   unsigned int subclass ;
 223   unsigned int dep_gen_id ;
 224   unsigned long usage_mask ;
 225   struct stack_trace usage_traces[13U] ;
 226   struct list_head locks_after ;
 227   struct list_head locks_before ;
 228   unsigned int version ;
 229   unsigned long ops ;
 230   char const   *name ;
 231   int name_version ;
 232   unsigned long contention_point[4U] ;
 233   unsigned long contending_point[4U] ;
 234};
 235#line 144 "include/linux/lockdep.h"
 236struct lockdep_map {
 237   struct lock_class_key *key ;
 238   struct lock_class *class_cache[2U] ;
 239   char const   *name ;
 240   int cpu ;
 241   unsigned long ip ;
 242};
 243#line 556 "include/linux/lockdep.h"
 244struct raw_spinlock {
 245   arch_spinlock_t raw_lock ;
 246   unsigned int magic ;
 247   unsigned int owner_cpu ;
 248   void *owner ;
 249   struct lockdep_map dep_map ;
 250};
 251#line 32 "include/linux/spinlock_types.h"
 252typedef struct raw_spinlock raw_spinlock_t;
 253#line 33 "include/linux/spinlock_types.h"
 254struct __anonstruct_ldv_6122_33 {
 255   u8 __padding[24U] ;
 256   struct lockdep_map dep_map ;
 257};
 258#line 33 "include/linux/spinlock_types.h"
 259union __anonunion_ldv_6123_32 {
 260   struct raw_spinlock rlock ;
 261   struct __anonstruct_ldv_6122_33 ldv_6122 ;
 262};
 263#line 33 "include/linux/spinlock_types.h"
 264struct spinlock {
 265   union __anonunion_ldv_6123_32 ldv_6123 ;
 266};
 267#line 76 "include/linux/spinlock_types.h"
 268typedef struct spinlock spinlock_t;
 269#line 23 "include/linux/rwlock_types.h"
 270struct __anonstruct_rwlock_t_34 {
 271   arch_rwlock_t raw_lock ;
 272   unsigned int magic ;
 273   unsigned int owner_cpu ;
 274   void *owner ;
 275   struct lockdep_map dep_map ;
 276};
 277#line 23 "include/linux/rwlock_types.h"
 278typedef struct __anonstruct_rwlock_t_34 rwlock_t;
 279#line 110 "include/linux/seqlock.h"
 280struct seqcount {
 281   unsigned int sequence ;
 282};
 283#line 121 "include/linux/seqlock.h"
 284typedef struct seqcount seqcount_t;
 285#line 254 "include/linux/seqlock.h"
 286struct timespec {
 287   __kernel_time_t tv_sec ;
 288   long tv_nsec ;
 289};
 290#line 286 "include/linux/time.h"
 291struct kstat {
 292   u64 ino ;
 293   dev_t dev ;
 294   umode_t mode ;
 295   unsigned int nlink ;
 296   uid_t uid ;
 297   gid_t gid ;
 298   dev_t rdev ;
 299   loff_t size ;
 300   struct timespec atime ;
 301   struct timespec mtime ;
 302   struct timespec ctime ;
 303   unsigned long blksize ;
 304   unsigned long long blocks ;
 305};
 306#line 48 "include/linux/wait.h"
 307struct __wait_queue_head {
 308   spinlock_t lock ;
 309   struct list_head task_list ;
 310};
 311#line 53 "include/linux/wait.h"
 312typedef struct __wait_queue_head wait_queue_head_t;
 313#line 670 "include/linux/mmzone.h"
 314struct mutex {
 315   atomic_t count ;
 316   spinlock_t wait_lock ;
 317   struct list_head wait_list ;
 318   struct task_struct *owner ;
 319   char const   *name ;
 320   void *magic ;
 321   struct lockdep_map dep_map ;
 322};
 323#line 171 "include/linux/mutex.h"
 324struct rw_semaphore;
 325#line 171
 326struct rw_semaphore;
 327#line 172 "include/linux/mutex.h"
 328struct rw_semaphore {
 329   long count ;
 330   raw_spinlock_t wait_lock ;
 331   struct list_head wait_list ;
 332   struct lockdep_map dep_map ;
 333};
 334#line 128 "include/linux/rwsem.h"
 335struct completion {
 336   unsigned int done ;
 337   wait_queue_head_t wait ;
 338};
 339#line 312 "include/linux/jiffies.h"
 340union ktime {
 341   s64 tv64 ;
 342};
 343#line 59 "include/linux/ktime.h"
 344typedef union ktime ktime_t;
 345#line 341
 346struct tvec_base;
 347#line 341
 348struct tvec_base;
 349#line 342 "include/linux/ktime.h"
 350struct timer_list {
 351   struct list_head entry ;
 352   unsigned long expires ;
 353   struct tvec_base *base ;
 354   void (*function)(unsigned long  ) ;
 355   unsigned long data ;
 356   int slack ;
 357   int start_pid ;
 358   void *start_site ;
 359   char start_comm[16U] ;
 360   struct lockdep_map lockdep_map ;
 361};
 362#line 302 "include/linux/timer.h"
 363struct work_struct;
 364#line 302
 365struct work_struct;
 366#line 45 "include/linux/workqueue.h"
 367struct work_struct {
 368   atomic_long_t data ;
 369   struct list_head entry ;
 370   void (*func)(struct work_struct * ) ;
 371   struct lockdep_map lockdep_map ;
 372};
 373#line 46 "include/linux/pm.h"
 374struct pm_message {
 375   int event ;
 376};
 377#line 52 "include/linux/pm.h"
 378typedef struct pm_message pm_message_t;
 379#line 53 "include/linux/pm.h"
 380struct dev_pm_ops {
 381   int (*prepare)(struct device * ) ;
 382   void (*complete)(struct device * ) ;
 383   int (*suspend)(struct device * ) ;
 384   int (*resume)(struct device * ) ;
 385   int (*freeze)(struct device * ) ;
 386   int (*thaw)(struct device * ) ;
 387   int (*poweroff)(struct device * ) ;
 388   int (*restore)(struct device * ) ;
 389   int (*suspend_late)(struct device * ) ;
 390   int (*resume_early)(struct device * ) ;
 391   int (*freeze_late)(struct device * ) ;
 392   int (*thaw_early)(struct device * ) ;
 393   int (*poweroff_late)(struct device * ) ;
 394   int (*restore_early)(struct device * ) ;
 395   int (*suspend_noirq)(struct device * ) ;
 396   int (*resume_noirq)(struct device * ) ;
 397   int (*freeze_noirq)(struct device * ) ;
 398   int (*thaw_noirq)(struct device * ) ;
 399   int (*poweroff_noirq)(struct device * ) ;
 400   int (*restore_noirq)(struct device * ) ;
 401   int (*runtime_suspend)(struct device * ) ;
 402   int (*runtime_resume)(struct device * ) ;
 403   int (*runtime_idle)(struct device * ) ;
 404};
 405#line 289
 406enum rpm_status {
 407    RPM_ACTIVE = 0,
 408    RPM_RESUMING = 1,
 409    RPM_SUSPENDED = 2,
 410    RPM_SUSPENDING = 3
 411} ;
 412#line 296
 413enum rpm_request {
 414    RPM_REQ_NONE = 0,
 415    RPM_REQ_IDLE = 1,
 416    RPM_REQ_SUSPEND = 2,
 417    RPM_REQ_AUTOSUSPEND = 3,
 418    RPM_REQ_RESUME = 4
 419} ;
 420#line 304
 421struct wakeup_source;
 422#line 304
 423struct wakeup_source;
 424#line 494 "include/linux/pm.h"
 425struct pm_subsys_data {
 426   spinlock_t lock ;
 427   unsigned int refcount ;
 428};
 429#line 499
 430struct dev_pm_qos_request;
 431#line 499
 432struct pm_qos_constraints;
 433#line 499 "include/linux/pm.h"
 434struct dev_pm_info {
 435   pm_message_t power_state ;
 436   unsigned char can_wakeup : 1 ;
 437   unsigned char async_suspend : 1 ;
 438   bool is_prepared ;
 439   bool is_suspended ;
 440   bool ignore_children ;
 441   spinlock_t lock ;
 442   struct list_head entry ;
 443   struct completion completion ;
 444   struct wakeup_source *wakeup ;
 445   bool wakeup_path ;
 446   struct timer_list suspend_timer ;
 447   unsigned long timer_expires ;
 448   struct work_struct work ;
 449   wait_queue_head_t wait_queue ;
 450   atomic_t usage_count ;
 451   atomic_t child_count ;
 452   unsigned char disable_depth : 3 ;
 453   unsigned char idle_notification : 1 ;
 454   unsigned char request_pending : 1 ;
 455   unsigned char deferred_resume : 1 ;
 456   unsigned char run_wake : 1 ;
 457   unsigned char runtime_auto : 1 ;
 458   unsigned char no_callbacks : 1 ;
 459   unsigned char irq_safe : 1 ;
 460   unsigned char use_autosuspend : 1 ;
 461   unsigned char timer_autosuspends : 1 ;
 462   enum rpm_request request ;
 463   enum rpm_status runtime_status ;
 464   int runtime_error ;
 465   int autosuspend_delay ;
 466   unsigned long last_busy ;
 467   unsigned long active_jiffies ;
 468   unsigned long suspended_jiffies ;
 469   unsigned long accounting_timestamp ;
 470   ktime_t suspend_time ;
 471   s64 max_time_suspended_ns ;
 472   struct dev_pm_qos_request *pq_req ;
 473   struct pm_subsys_data *subsys_data ;
 474   struct pm_qos_constraints *constraints ;
 475};
 476#line 558 "include/linux/pm.h"
 477struct dev_pm_domain {
 478   struct dev_pm_ops ops ;
 479};
 480#line 18 "include/asm-generic/pci_iomap.h"
 481struct vm_area_struct;
 482#line 18
 483struct vm_area_struct;
 484#line 37 "include/linux/kmod.h"
 485struct cred;
 486#line 37
 487struct cred;
 488#line 18 "include/linux/elf.h"
 489typedef __u64 Elf64_Addr;
 490#line 19 "include/linux/elf.h"
 491typedef __u16 Elf64_Half;
 492#line 23 "include/linux/elf.h"
 493typedef __u32 Elf64_Word;
 494#line 24 "include/linux/elf.h"
 495typedef __u64 Elf64_Xword;
 496#line 193 "include/linux/elf.h"
 497struct elf64_sym {
 498   Elf64_Word st_name ;
 499   unsigned char st_info ;
 500   unsigned char st_other ;
 501   Elf64_Half st_shndx ;
 502   Elf64_Addr st_value ;
 503   Elf64_Xword st_size ;
 504};
 505#line 201 "include/linux/elf.h"
 506typedef struct elf64_sym Elf64_Sym;
 507#line 445
 508struct sock;
 509#line 445
 510struct sock;
 511#line 446
 512struct kobject;
 513#line 446
 514struct kobject;
 515#line 447
 516enum kobj_ns_type {
 517    KOBJ_NS_TYPE_NONE = 0,
 518    KOBJ_NS_TYPE_NET = 1,
 519    KOBJ_NS_TYPES = 2
 520} ;
 521#line 453 "include/linux/elf.h"
 522struct kobj_ns_type_operations {
 523   enum kobj_ns_type type ;
 524   void *(*grab_current_ns)(void) ;
 525   void const   *(*netlink_ns)(struct sock * ) ;
 526   void const   *(*initial_ns)(void) ;
 527   void (*drop_ns)(void * ) ;
 528};
 529#line 57 "include/linux/kobject_ns.h"
 530struct attribute {
 531   char const   *name ;
 532   umode_t mode ;
 533   struct lock_class_key *key ;
 534   struct lock_class_key skey ;
 535};
 536#line 33 "include/linux/sysfs.h"
 537struct attribute_group {
 538   char const   *name ;
 539   umode_t (*is_visible)(struct kobject * , struct attribute * , int  ) ;
 540   struct attribute **attrs ;
 541};
 542#line 62 "include/linux/sysfs.h"
 543struct bin_attribute {
 544   struct attribute attr ;
 545   size_t size ;
 546   void *private ;
 547   ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * ,
 548                   loff_t  , size_t  ) ;
 549   ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * ,
 550                    loff_t  , size_t  ) ;
 551   int (*mmap)(struct file * , struct kobject * , struct bin_attribute * , struct vm_area_struct * ) ;
 552};
 553#line 98 "include/linux/sysfs.h"
 554struct sysfs_ops {
 555   ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
 556   ssize_t (*store)(struct kobject * , struct attribute * , char const   * , size_t  ) ;
 557   void const   *(*namespace)(struct kobject * , struct attribute  const  * ) ;
 558};
 559#line 117
 560struct sysfs_dirent;
 561#line 117
 562struct sysfs_dirent;
 563#line 182 "include/linux/sysfs.h"
 564struct kref {
 565   atomic_t refcount ;
 566};
 567#line 49 "include/linux/kobject.h"
 568struct kset;
 569#line 49
 570struct kobj_type;
 571#line 49 "include/linux/kobject.h"
 572struct kobject {
 573   char const   *name ;
 574   struct list_head entry ;
 575   struct kobject *parent ;
 576   struct kset *kset ;
 577   struct kobj_type *ktype ;
 578   struct sysfs_dirent *sd ;
 579   struct kref kref ;
 580   unsigned char state_initialized : 1 ;
 581   unsigned char state_in_sysfs : 1 ;
 582   unsigned char state_add_uevent_sent : 1 ;
 583   unsigned char state_remove_uevent_sent : 1 ;
 584   unsigned char uevent_suppress : 1 ;
 585};
 586#line 107 "include/linux/kobject.h"
 587struct kobj_type {
 588   void (*release)(struct kobject * ) ;
 589   struct sysfs_ops  const  *sysfs_ops ;
 590   struct attribute **default_attrs ;
 591   struct kobj_ns_type_operations  const  *(*child_ns_type)(struct kobject * ) ;
 592   void const   *(*namespace)(struct kobject * ) ;
 593};
 594#line 115 "include/linux/kobject.h"
 595struct kobj_uevent_env {
 596   char *envp[32U] ;
 597   int envp_idx ;
 598   char buf[2048U] ;
 599   int buflen ;
 600};
 601#line 122 "include/linux/kobject.h"
 602struct kset_uevent_ops {
 603   int (* const  filter)(struct kset * , struct kobject * ) ;
 604   char const   *(* const  name)(struct kset * , struct kobject * ) ;
 605   int (* const  uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ;
 606};
 607#line 139 "include/linux/kobject.h"
 608struct kset {
 609   struct list_head list ;
 610   spinlock_t list_lock ;
 611   struct kobject kobj ;
 612   struct kset_uevent_ops  const  *uevent_ops ;
 613};
 614#line 215
 615struct kernel_param;
 616#line 215
 617struct kernel_param;
 618#line 216 "include/linux/kobject.h"
 619struct kernel_param_ops {
 620   int (*set)(char const   * , struct kernel_param  const  * ) ;
 621   int (*get)(char * , struct kernel_param  const  * ) ;
 622   void (*free)(void * ) ;
 623};
 624#line 49 "include/linux/moduleparam.h"
 625struct kparam_string;
 626#line 49
 627struct kparam_array;
 628#line 49 "include/linux/moduleparam.h"
 629union __anonunion_ldv_13363_134 {
 630   void *arg ;
 631   struct kparam_string  const  *str ;
 632   struct kparam_array  const  *arr ;
 633};
 634#line 49 "include/linux/moduleparam.h"
 635struct kernel_param {
 636   char const   *name ;
 637   struct kernel_param_ops  const  *ops ;
 638   u16 perm ;
 639   s16 level ;
 640   union __anonunion_ldv_13363_134 ldv_13363 ;
 641};
 642#line 61 "include/linux/moduleparam.h"
 643struct kparam_string {
 644   unsigned int maxlen ;
 645   char *string ;
 646};
 647#line 67 "include/linux/moduleparam.h"
 648struct kparam_array {
 649   unsigned int max ;
 650   unsigned int elemsize ;
 651   unsigned int *num ;
 652   struct kernel_param_ops  const  *ops ;
 653   void *elem ;
 654};
 655#line 458 "include/linux/moduleparam.h"
 656struct static_key {
 657   atomic_t enabled ;
 658};
 659#line 225 "include/linux/jump_label.h"
 660struct tracepoint;
 661#line 225
 662struct tracepoint;
 663#line 226 "include/linux/jump_label.h"
 664struct tracepoint_func {
 665   void *func ;
 666   void *data ;
 667};
 668#line 29 "include/linux/tracepoint.h"
 669struct tracepoint {
 670   char const   *name ;
 671   struct static_key key ;
 672   void (*regfunc)(void) ;
 673   void (*unregfunc)(void) ;
 674   struct tracepoint_func *funcs ;
 675};
 676#line 86 "include/linux/tracepoint.h"
 677struct kernel_symbol {
 678   unsigned long value ;
 679   char const   *name ;
 680};
 681#line 27 "include/linux/export.h"
 682struct mod_arch_specific {
 683
 684};
 685#line 34 "include/linux/module.h"
 686struct module_param_attrs;
 687#line 34 "include/linux/module.h"
 688struct module_kobject {
 689   struct kobject kobj ;
 690   struct module *mod ;
 691   struct kobject *drivers_dir ;
 692   struct module_param_attrs *mp ;
 693};
 694#line 43 "include/linux/module.h"
 695struct module_attribute {
 696   struct attribute attr ;
 697   ssize_t (*show)(struct module_attribute * , struct module_kobject * , char * ) ;
 698   ssize_t (*store)(struct module_attribute * , struct module_kobject * , char const   * ,
 699                    size_t  ) ;
 700   void (*setup)(struct module * , char const   * ) ;
 701   int (*test)(struct module * ) ;
 702   void (*free)(struct module * ) ;
 703};
 704#line 69
 705struct exception_table_entry;
 706#line 69
 707struct exception_table_entry;
 708#line 198
 709enum module_state {
 710    MODULE_STATE_LIVE = 0,
 711    MODULE_STATE_COMING = 1,
 712    MODULE_STATE_GOING = 2
 713} ;
 714#line 204 "include/linux/module.h"
 715struct module_ref {
 716   unsigned long incs ;
 717   unsigned long decs ;
 718};
 719#line 219
 720struct module_sect_attrs;
 721#line 219
 722struct module_notes_attrs;
 723#line 219
 724struct ftrace_event_call;
 725#line 219 "include/linux/module.h"
 726struct module {
 727   enum module_state state ;
 728   struct list_head list ;
 729   char name[56U] ;
 730   struct module_kobject mkobj ;
 731   struct module_attribute *modinfo_attrs ;
 732   char const   *version ;
 733   char const   *srcversion ;
 734   struct kobject *holders_dir ;
 735   struct kernel_symbol  const  *syms ;
 736   unsigned long const   *crcs ;
 737   unsigned int num_syms ;
 738   struct kernel_param *kp ;
 739   unsigned int num_kp ;
 740   unsigned int num_gpl_syms ;
 741   struct kernel_symbol  const  *gpl_syms ;
 742   unsigned long const   *gpl_crcs ;
 743   struct kernel_symbol  const  *unused_syms ;
 744   unsigned long const   *unused_crcs ;
 745   unsigned int num_unused_syms ;
 746   unsigned int num_unused_gpl_syms ;
 747   struct kernel_symbol  const  *unused_gpl_syms ;
 748   unsigned long const   *unused_gpl_crcs ;
 749   struct kernel_symbol  const  *gpl_future_syms ;
 750   unsigned long const   *gpl_future_crcs ;
 751   unsigned int num_gpl_future_syms ;
 752   unsigned int num_exentries ;
 753   struct exception_table_entry *extable ;
 754   int (*init)(void) ;
 755   void *module_init ;
 756   void *module_core ;
 757   unsigned int init_size ;
 758   unsigned int core_size ;
 759   unsigned int init_text_size ;
 760   unsigned int core_text_size ;
 761   unsigned int init_ro_size ;
 762   unsigned int core_ro_size ;
 763   struct mod_arch_specific arch ;
 764   unsigned int taints ;
 765   unsigned int num_bugs ;
 766   struct list_head bug_list ;
 767   struct bug_entry *bug_table ;
 768   Elf64_Sym *symtab ;
 769   Elf64_Sym *core_symtab ;
 770   unsigned int num_symtab ;
 771   unsigned int core_num_syms ;
 772   char *strtab ;
 773   char *core_strtab ;
 774   struct module_sect_attrs *sect_attrs ;
 775   struct module_notes_attrs *notes_attrs ;
 776   char *args ;
 777   void *percpu ;
 778   unsigned int percpu_size ;
 779   unsigned int num_tracepoints ;
 780   struct tracepoint * const  *tracepoints_ptrs ;
 781   unsigned int num_trace_bprintk_fmt ;
 782   char const   **trace_bprintk_fmt_start ;
 783   struct ftrace_event_call **trace_events ;
 784   unsigned int num_trace_events ;
 785   struct list_head source_list ;
 786   struct list_head target_list ;
 787   struct task_struct *waiter ;
 788   void (*exit)(void) ;
 789   struct module_ref *refptr ;
 790   ctor_fn_t (**ctors)(void) ;
 791   unsigned int num_ctors ;
 792};
 793#line 88 "include/linux/kmemleak.h"
 794struct kmem_cache_cpu {
 795   void **freelist ;
 796   unsigned long tid ;
 797   struct page *page ;
 798   struct page *partial ;
 799   int node ;
 800   unsigned int stat[26U] ;
 801};
 802#line 55 "include/linux/slub_def.h"
 803struct kmem_cache_node {
 804   spinlock_t list_lock ;
 805   unsigned long nr_partial ;
 806   struct list_head partial ;
 807   atomic_long_t nr_slabs ;
 808   atomic_long_t total_objects ;
 809   struct list_head full ;
 810};
 811#line 66 "include/linux/slub_def.h"
 812struct kmem_cache_order_objects {
 813   unsigned long x ;
 814};
 815#line 76 "include/linux/slub_def.h"
 816struct kmem_cache {
 817   struct kmem_cache_cpu *cpu_slab ;
 818   unsigned long flags ;
 819   unsigned long min_partial ;
 820   int size ;
 821   int objsize ;
 822   int offset ;
 823   int cpu_partial ;
 824   struct kmem_cache_order_objects oo ;
 825   struct kmem_cache_order_objects max ;
 826   struct kmem_cache_order_objects min ;
 827   gfp_t allocflags ;
 828   int refcount ;
 829   void (*ctor)(void * ) ;
 830   int inuse ;
 831   int align ;
 832   int reserved ;
 833   char const   *name ;
 834   struct list_head list ;
 835   struct kobject kobj ;
 836   int remote_node_defrag_ratio ;
 837   struct kmem_cache_node *node[1024U] ;
 838};
 839#line 32 "include/linux/input.h"
 840struct input_id {
 841   __u16 bustype ;
 842   __u16 vendor ;
 843   __u16 product ;
 844   __u16 version ;
 845};
 846#line 49 "include/linux/input.h"
 847struct input_absinfo {
 848   __s32 value ;
 849   __s32 minimum ;
 850   __s32 maximum ;
 851   __s32 fuzz ;
 852   __s32 flat ;
 853   __s32 resolution ;
 854};
 855#line 77 "include/linux/input.h"
 856struct input_keymap_entry {
 857   __u8 flags ;
 858   __u8 len ;
 859   __u16 index ;
 860   __u32 keycode ;
 861   __u8 scancode[32U] ;
 862};
 863#line 101 "include/linux/input.h"
 864struct ff_replay {
 865   __u16 length ;
 866   __u16 delay ;
 867};
 868#line 961 "include/linux/input.h"
 869struct ff_trigger {
 870   __u16 button ;
 871   __u16 interval ;
 872};
 873#line 971 "include/linux/input.h"
 874struct ff_envelope {
 875   __u16 attack_length ;
 876   __u16 attack_level ;
 877   __u16 fade_length ;
 878   __u16 fade_level ;
 879};
 880#line 990 "include/linux/input.h"
 881struct ff_constant_effect {
 882   __s16 level ;
 883   struct ff_envelope envelope ;
 884};
 885#line 1000 "include/linux/input.h"
 886struct ff_ramp_effect {
 887   __s16 start_level ;
 888   __s16 end_level ;
 889   struct ff_envelope envelope ;
 890};
 891#line 1012 "include/linux/input.h"
 892struct ff_condition_effect {
 893   __u16 right_saturation ;
 894   __u16 left_saturation ;
 895   __s16 right_coeff ;
 896   __s16 left_coeff ;
 897   __u16 deadband ;
 898   __s16 center ;
 899};
 900#line 1033 "include/linux/input.h"
 901struct ff_periodic_effect {
 902   __u16 waveform ;
 903   __u16 period ;
 904   __s16 magnitude ;
 905   __s16 offset ;
 906   __u16 phase ;
 907   struct ff_envelope envelope ;
 908   __u32 custom_len ;
 909   __s16 *custom_data ;
 910};
 911#line 1064 "include/linux/input.h"
 912struct ff_rumble_effect {
 913   __u16 strong_magnitude ;
 914   __u16 weak_magnitude ;
 915};
 916#line 1077 "include/linux/input.h"
 917union __anonunion_u_135 {
 918   struct ff_constant_effect constant ;
 919   struct ff_ramp_effect ramp ;
 920   struct ff_periodic_effect periodic ;
 921   struct ff_condition_effect condition[2U] ;
 922   struct ff_rumble_effect rumble ;
 923};
 924#line 1077 "include/linux/input.h"
 925struct ff_effect {
 926   __u16 type ;
 927   __s16 id ;
 928   __u16 direction ;
 929   struct ff_trigger trigger ;
 930   struct ff_replay replay ;
 931   union __anonunion_u_135 u ;
 932};
 933#line 1116
 934struct klist_node;
 935#line 1116
 936struct klist_node;
 937#line 37 "include/linux/klist.h"
 938struct klist_node {
 939   void *n_klist ;
 940   struct list_head n_node ;
 941   struct kref n_ref ;
 942};
 943#line 67
 944struct dma_map_ops;
 945#line 67 "include/linux/klist.h"
 946struct dev_archdata {
 947   void *acpi_handle ;
 948   struct dma_map_ops *dma_ops ;
 949   void *iommu ;
 950};
 951#line 17 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/device.h"
 952struct device_private;
 953#line 17
 954struct device_private;
 955#line 18
 956struct device_driver;
 957#line 18
 958struct device_driver;
 959#line 19
 960struct driver_private;
 961#line 19
 962struct driver_private;
 963#line 20
 964struct class;
 965#line 20
 966struct class;
 967#line 21
 968struct subsys_private;
 969#line 21
 970struct subsys_private;
 971#line 22
 972struct bus_type;
 973#line 22
 974struct bus_type;
 975#line 23
 976struct device_node;
 977#line 23
 978struct device_node;
 979#line 24
 980struct iommu_ops;
 981#line 24
 982struct iommu_ops;
 983#line 25 "/home/zakharov/launch/inst/current/envs/linux-3.4/linux-3.4/arch/x86/include/asm/device.h"
 984struct bus_attribute {
 985   struct attribute attr ;
 986   ssize_t (*show)(struct bus_type * , char * ) ;
 987   ssize_t (*store)(struct bus_type * , char const   * , size_t  ) ;
 988};
 989#line 51 "include/linux/device.h"
 990struct device_attribute;
 991#line 51
 992struct driver_attribute;
 993#line 51 "include/linux/device.h"
 994struct bus_type {
 995   char const   *name ;
 996   char const   *dev_name ;
 997   struct device *dev_root ;
 998   struct bus_attribute *bus_attrs ;
 999   struct device_attribute *dev_attrs ;
1000   struct driver_attribute *drv_attrs ;
1001   int (*match)(struct device * , struct device_driver * ) ;
1002   int (*uevent)(struct device * , struct kobj_uevent_env * ) ;
1003   int (*probe)(struct device * ) ;
1004   int (*remove)(struct device * ) ;
1005   void (*shutdown)(struct device * ) ;
1006   int (*suspend)(struct device * , pm_message_t  ) ;
1007   int (*resume)(struct device * ) ;
1008   struct dev_pm_ops  const  *pm ;
1009   struct iommu_ops *iommu_ops ;
1010   struct subsys_private *p ;
1011};
1012#line 125
1013struct device_type;
1014#line 182
1015struct of_device_id;
1016#line 182 "include/linux/device.h"
1017struct device_driver {
1018   char const   *name ;
1019   struct bus_type *bus ;
1020   struct module *owner ;
1021   char const   *mod_name ;
1022   bool suppress_bind_attrs ;
1023   struct of_device_id  const  *of_match_table ;
1024   int (*probe)(struct device * ) ;
1025   int (*remove)(struct device * ) ;
1026   void (*shutdown)(struct device * ) ;
1027   int (*suspend)(struct device * , pm_message_t  ) ;
1028   int (*resume)(struct device * ) ;
1029   struct attribute_group  const  **groups ;
1030   struct dev_pm_ops  const  *pm ;
1031   struct driver_private *p ;
1032};
1033#line 245 "include/linux/device.h"
1034struct driver_attribute {
1035   struct attribute attr ;
1036   ssize_t (*show)(struct device_driver * , char * ) ;
1037   ssize_t (*store)(struct device_driver * , char const   * , size_t  ) ;
1038};
1039#line 299
1040struct class_attribute;
1041#line 299 "include/linux/device.h"
1042struct class {
1043   char const   *name ;
1044   struct module *owner ;
1045   struct class_attribute *class_attrs ;
1046   struct device_attribute *dev_attrs ;
1047   struct bin_attribute *dev_bin_attrs ;
1048   struct kobject *dev_kobj ;
1049   int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ;
1050   char *(*devnode)(struct device * , umode_t * ) ;
1051   void (*class_release)(struct class * ) ;
1052   void (*dev_release)(struct device * ) ;
1053   int (*suspend)(struct device * , pm_message_t  ) ;
1054   int (*resume)(struct device * ) ;
1055   struct kobj_ns_type_operations  const  *ns_type ;
1056   void const   *(*namespace)(struct device * ) ;
1057   struct dev_pm_ops  const  *pm ;
1058   struct subsys_private *p ;
1059};
1060#line 394 "include/linux/device.h"
1061struct class_attribute {
1062   struct attribute attr ;
1063   ssize_t (*show)(struct class * , struct class_attribute * , char * ) ;
1064   ssize_t (*store)(struct class * , struct class_attribute * , char const   * , size_t  ) ;
1065   void const   *(*namespace)(struct class * , struct class_attribute  const  * ) ;
1066};
1067#line 447 "include/linux/device.h"
1068struct device_type {
1069   char const   *name ;
1070   struct attribute_group  const  **groups ;
1071   int (*uevent)(struct device * , struct kobj_uevent_env * ) ;
1072   char *(*devnode)(struct device * , umode_t * ) ;
1073   void (*release)(struct device * ) ;
1074   struct dev_pm_ops  const  *pm ;
1075};
1076#line 474 "include/linux/device.h"
1077struct device_attribute {
1078   struct attribute attr ;
1079   ssize_t (*show)(struct device * , struct device_attribute * , char * ) ;
1080   ssize_t (*store)(struct device * , struct device_attribute * , char const   * ,
1081                    size_t  ) ;
1082};
1083#line 557 "include/linux/device.h"
1084struct device_dma_parameters {
1085   unsigned int max_segment_size ;
1086   unsigned long segment_boundary_mask ;
1087};
1088#line 567
1089struct dma_coherent_mem;
1090#line 567 "include/linux/device.h"
1091struct device {
1092   struct device *parent ;
1093   struct device_private *p ;
1094   struct kobject kobj ;
1095   char const   *init_name ;
1096   struct device_type  const  *type ;
1097   struct mutex mutex ;
1098   struct bus_type *bus ;
1099   struct device_driver *driver ;
1100   void *platform_data ;
1101   struct dev_pm_info power ;
1102   struct dev_pm_domain *pm_domain ;
1103   int numa_node ;
1104   u64 *dma_mask ;
1105   u64 coherent_dma_mask ;
1106   struct device_dma_parameters *dma_parms ;
1107   struct list_head dma_pools ;
1108   struct dma_coherent_mem *dma_mem ;
1109   struct dev_archdata archdata ;
1110   struct device_node *of_node ;
1111   dev_t devt ;
1112   u32 id ;
1113   spinlock_t devres_lock ;
1114   struct list_head devres_head ;
1115   struct klist_node knode_class ;
1116   struct class *class ;
1117   struct attribute_group  const  **groups ;
1118   void (*release)(struct device * ) ;
1119};
1120#line 681 "include/linux/device.h"
1121struct wakeup_source {
1122   char const   *name ;
1123   struct list_head entry ;
1124   spinlock_t lock ;
1125   struct timer_list timer ;
1126   unsigned long timer_expires ;
1127   ktime_t total_time ;
1128   ktime_t max_time ;
1129   ktime_t last_time ;
1130   unsigned long event_count ;
1131   unsigned long active_count ;
1132   unsigned long relax_count ;
1133   unsigned long hit_count ;
1134   unsigned char active : 1 ;
1135};
1136#line 994
1137struct block_device;
1138#line 994
1139struct block_device;
1140#line 93 "include/linux/bit_spinlock.h"
1141struct hlist_bl_node;
1142#line 93 "include/linux/bit_spinlock.h"
1143struct hlist_bl_head {
1144   struct hlist_bl_node *first ;
1145};
1146#line 36 "include/linux/list_bl.h"
1147struct hlist_bl_node {
1148   struct hlist_bl_node *next ;
1149   struct hlist_bl_node **pprev ;
1150};
1151#line 114 "include/linux/rculist_bl.h"
1152struct nameidata;
1153#line 114
1154struct nameidata;
1155#line 115
1156struct path;
1157#line 115
1158struct path;
1159#line 116
1160struct vfsmount;
1161#line 116
1162struct vfsmount;
1163#line 117 "include/linux/rculist_bl.h"
1164struct qstr {
1165   unsigned int hash ;
1166   unsigned int len ;
1167   unsigned char const   *name ;
1168};
1169#line 72 "include/linux/dcache.h"
1170struct inode;
1171#line 72
1172struct dentry_operations;
1173#line 72
1174struct super_block;
1175#line 72 "include/linux/dcache.h"
1176union __anonunion_d_u_136 {
1177   struct list_head d_child ;
1178   struct rcu_head d_rcu ;
1179};
1180#line 72 "include/linux/dcache.h"
1181struct dentry {
1182   unsigned int d_flags ;
1183   seqcount_t d_seq ;
1184   struct hlist_bl_node d_hash ;
1185   struct dentry *d_parent ;
1186   struct qstr d_name ;
1187   struct inode *d_inode ;
1188   unsigned char d_iname[32U] ;
1189   unsigned int d_count ;
1190   spinlock_t d_lock ;
1191   struct dentry_operations  const  *d_op ;
1192   struct super_block *d_sb ;
1193   unsigned long d_time ;
1194   void *d_fsdata ;
1195   struct list_head d_lru ;
1196   union __anonunion_d_u_136 d_u ;
1197   struct list_head d_subdirs ;
1198   struct list_head d_alias ;
1199};
1200#line 123 "include/linux/dcache.h"
1201struct dentry_operations {
1202   int (*d_revalidate)(struct dentry * , struct nameidata * ) ;
1203   int (*d_hash)(struct dentry  const  * , struct inode  const  * , struct qstr * ) ;
1204   int (*d_compare)(struct dentry  const  * , struct inode  const  * , struct dentry  const  * ,
1205                    struct inode  const  * , unsigned int  , char const   * , struct qstr  const  * ) ;
1206   int (*d_delete)(struct dentry  const  * ) ;
1207   void (*d_release)(struct dentry * ) ;
1208   void (*d_prune)(struct dentry * ) ;
1209   void (*d_iput)(struct dentry * , struct inode * ) ;
1210   char *(*d_dname)(struct dentry * , char * , int  ) ;
1211   struct vfsmount *(*d_automount)(struct path * ) ;
1212   int (*d_manage)(struct dentry * , bool  ) ;
1213};
1214#line 402 "include/linux/dcache.h"
1215struct path {
1216   struct vfsmount *mnt ;
1217   struct dentry *dentry ;
1218};
1219#line 58 "include/linux/radix-tree.h"
1220struct radix_tree_node;
1221#line 58 "include/linux/radix-tree.h"
1222struct radix_tree_root {
1223   unsigned int height ;
1224   gfp_t gfp_mask ;
1225   struct radix_tree_node *rnode ;
1226};
1227#line 377
1228struct prio_tree_node;
1229#line 19 "include/linux/prio_tree.h"
1230struct prio_tree_node {
1231   struct prio_tree_node *left ;
1232   struct prio_tree_node *right ;
1233   struct prio_tree_node *parent ;
1234   unsigned long start ;
1235   unsigned long last ;
1236};
1237#line 27 "include/linux/prio_tree.h"
1238struct prio_tree_root {
1239   struct prio_tree_node *prio_tree_node ;
1240   unsigned short index_bits ;
1241   unsigned short raw ;
1242};
1243#line 111
1244enum pid_type {
1245    PIDTYPE_PID = 0,
1246    PIDTYPE_PGID = 1,
1247    PIDTYPE_SID = 2,
1248    PIDTYPE_MAX = 3
1249} ;
1250#line 118
1251struct pid_namespace;
1252#line 118 "include/linux/prio_tree.h"
1253struct upid {
1254   int nr ;
1255   struct pid_namespace *ns ;
1256   struct hlist_node pid_chain ;
1257};
1258#line 56 "include/linux/pid.h"
1259struct pid {
1260   atomic_t count ;
1261   unsigned int level ;
1262   struct hlist_head tasks[3U] ;
1263   struct rcu_head rcu ;
1264   struct upid numbers[1U] ;
1265};
1266#line 45 "include/linux/semaphore.h"
1267struct fiemap_extent {
1268   __u64 fe_logical ;
1269   __u64 fe_physical ;
1270   __u64 fe_length ;
1271   __u64 fe_reserved64[2U] ;
1272   __u32 fe_flags ;
1273   __u32 fe_reserved[3U] ;
1274};
1275#line 38 "include/linux/fiemap.h"
1276struct shrink_control {
1277   gfp_t gfp_mask ;
1278   unsigned long nr_to_scan ;
1279};
1280#line 14 "include/linux/shrinker.h"
1281struct shrinker {
1282   int (*shrink)(struct shrinker * , struct shrink_control * ) ;
1283   int seeks ;
1284   long batch ;
1285   struct list_head list ;
1286   atomic_long_t nr_in_batch ;
1287};
1288#line 43
1289enum migrate_mode {
1290    MIGRATE_ASYNC = 0,
1291    MIGRATE_SYNC_LIGHT = 1,
1292    MIGRATE_SYNC = 2
1293} ;
1294#line 49
1295struct export_operations;
1296#line 49
1297struct export_operations;
1298#line 51
1299struct iovec;
1300#line 51
1301struct iovec;
1302#line 52
1303struct kiocb;
1304#line 52
1305struct kiocb;
1306#line 53
1307struct pipe_inode_info;
1308#line 53
1309struct pipe_inode_info;
1310#line 54
1311struct poll_table_struct;
1312#line 54
1313struct poll_table_struct;
1314#line 55
1315struct kstatfs;
1316#line 55
1317struct kstatfs;
1318#line 435 "include/linux/fs.h"
1319struct iattr {
1320   unsigned int ia_valid ;
1321   umode_t ia_mode ;
1322   uid_t ia_uid ;
1323   gid_t ia_gid ;
1324   loff_t ia_size ;
1325   struct timespec ia_atime ;
1326   struct timespec ia_mtime ;
1327   struct timespec ia_ctime ;
1328   struct file *ia_file ;
1329};
1330#line 119 "include/linux/quota.h"
1331struct if_dqinfo {
1332   __u64 dqi_bgrace ;
1333   __u64 dqi_igrace ;
1334   __u32 dqi_flags ;
1335   __u32 dqi_valid ;
1336};
1337#line 176 "include/linux/percpu_counter.h"
1338struct fs_disk_quota {
1339   __s8 d_version ;
1340   __s8 d_flags ;
1341   __u16 d_fieldmask ;
1342   __u32 d_id ;
1343   __u64 d_blk_hardlimit ;
1344   __u64 d_blk_softlimit ;
1345   __u64 d_ino_hardlimit ;
1346   __u64 d_ino_softlimit ;
1347   __u64 d_bcount ;
1348   __u64 d_icount ;
1349   __s32 d_itimer ;
1350   __s32 d_btimer ;
1351   __u16 d_iwarns ;
1352   __u16 d_bwarns ;
1353   __s32 d_padding2 ;
1354   __u64 d_rtb_hardlimit ;
1355   __u64 d_rtb_softlimit ;
1356   __u64 d_rtbcount ;
1357   __s32 d_rtbtimer ;
1358   __u16 d_rtbwarns ;
1359   __s16 d_padding3 ;
1360   char d_padding4[8U] ;
1361};
1362#line 75 "include/linux/dqblk_xfs.h"
1363struct fs_qfilestat {
1364   __u64 qfs_ino ;
1365   __u64 qfs_nblks ;
1366   __u32 qfs_nextents ;
1367};
1368#line 150 "include/linux/dqblk_xfs.h"
1369typedef struct fs_qfilestat fs_qfilestat_t;
1370#line 151 "include/linux/dqblk_xfs.h"
1371struct fs_quota_stat {
1372   __s8 qs_version ;
1373   __u16 qs_flags ;
1374   __s8 qs_pad ;
1375   fs_qfilestat_t qs_uquota ;
1376   fs_qfilestat_t qs_gquota ;
1377   __u32 qs_incoredqs ;
1378   __s32 qs_btimelimit ;
1379   __s32 qs_itimelimit ;
1380   __s32 qs_rtbtimelimit ;
1381   __u16 qs_bwarnlimit ;
1382   __u16 qs_iwarnlimit ;
1383};
1384#line 165
1385struct dquot;
1386#line 165
1387struct dquot;
1388#line 185 "include/linux/quota.h"
1389typedef __kernel_uid32_t qid_t;
1390#line 186 "include/linux/quota.h"
1391typedef long long qsize_t;
1392#line 189 "include/linux/quota.h"
1393struct mem_dqblk {
1394   qsize_t dqb_bhardlimit ;
1395   qsize_t dqb_bsoftlimit ;
1396   qsize_t dqb_curspace ;
1397   qsize_t dqb_rsvspace ;
1398   qsize_t dqb_ihardlimit ;
1399   qsize_t dqb_isoftlimit ;
1400   qsize_t dqb_curinodes ;
1401   time_t dqb_btime ;
1402   time_t dqb_itime ;
1403};
1404#line 211
1405struct quota_format_type;
1406#line 211
1407struct quota_format_type;
1408#line 212 "include/linux/quota.h"
1409struct mem_dqinfo {
1410   struct quota_format_type *dqi_format ;
1411   int dqi_fmt_id ;
1412   struct list_head dqi_dirty_list ;
1413   unsigned long dqi_flags ;
1414   unsigned int dqi_bgrace ;
1415   unsigned int dqi_igrace ;
1416   qsize_t dqi_maxblimit ;
1417   qsize_t dqi_maxilimit ;
1418   void *dqi_priv ;
1419};
1420#line 275 "include/linux/quota.h"
1421struct dquot {
1422   struct hlist_node dq_hash ;
1423   struct list_head dq_inuse ;
1424   struct list_head dq_free ;
1425   struct list_head dq_dirty ;
1426   struct mutex dq_lock ;
1427   atomic_t dq_count ;
1428   wait_queue_head_t dq_wait_unused ;
1429   struct super_block *dq_sb ;
1430   unsigned int dq_id ;
1431   loff_t dq_off ;
1432   unsigned long dq_flags ;
1433   short dq_type ;
1434   struct mem_dqblk dq_dqb ;
1435};
1436#line 303 "include/linux/quota.h"
1437struct quota_format_ops {
1438   int (*check_quota_file)(struct super_block * , int  ) ;
1439   int (*read_file_info)(struct super_block * , int  ) ;
1440   int (*write_file_info)(struct super_block * , int  ) ;
1441   int (*free_file_info)(struct super_block * , int  ) ;
1442   int (*read_dqblk)(struct dquot * ) ;
1443   int (*commit_dqblk)(struct dquot * ) ;
1444   int (*release_dqblk)(struct dquot * ) ;
1445};
1446#line 314 "include/linux/quota.h"
1447struct dquot_operations {
1448   int (*write_dquot)(struct dquot * ) ;
1449   struct dquot *(*alloc_dquot)(struct super_block * , int  ) ;
1450   void (*destroy_dquot)(struct dquot * ) ;
1451   int (*acquire_dquot)(struct dquot * ) ;
1452   int (*release_dquot)(struct dquot * ) ;
1453   int (*mark_dirty)(struct dquot * ) ;
1454   int (*write_info)(struct super_block * , int  ) ;
1455   qsize_t *(*get_reserved_space)(struct inode * ) ;
1456};
1457#line 328 "include/linux/quota.h"
1458struct quotactl_ops {
1459   int (*quota_on)(struct super_block * , int  , int  , struct path * ) ;
1460   int (*quota_on_meta)(struct super_block * , int  , int  ) ;
1461   int (*quota_off)(struct super_block * , int  ) ;
1462   int (*quota_sync)(struct super_block * , int  , int  ) ;
1463   int (*get_info)(struct super_block * , int  , struct if_dqinfo * ) ;
1464   int (*set_info)(struct super_block * , int  , struct if_dqinfo * ) ;
1465   int (*get_dqblk)(struct super_block * , int  , qid_t  , struct fs_disk_quota * ) ;
1466   int (*set_dqblk)(struct super_block * , int  , qid_t  , struct fs_disk_quota * ) ;
1467   int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ;
1468   int (*set_xstate)(struct super_block * , unsigned int  , int  ) ;
1469};
1470#line 344 "include/linux/quota.h"
1471struct quota_format_type {
1472   int qf_fmt_id ;
1473   struct quota_format_ops  const  *qf_ops ;
1474   struct module *qf_owner ;
1475   struct quota_format_type *qf_next ;
1476};
1477#line 390 "include/linux/quota.h"
1478struct quota_info {
1479   unsigned int flags ;
1480   struct mutex dqio_mutex ;
1481   struct mutex dqonoff_mutex ;
1482   struct rw_semaphore dqptr_sem ;
1483   struct inode *files[2U] ;
1484   struct mem_dqinfo info[2U] ;
1485   struct quota_format_ops  const  *ops[2U] ;
1486};
1487#line 421
1488struct address_space;
1489#line 421
1490struct address_space;
1491#line 422
1492struct writeback_control;
1493#line 422
1494struct writeback_control;
1495#line 585 "include/linux/fs.h"
1496union __anonunion_arg_139 {
1497   char *buf ;
1498   void *data ;
1499};
1500#line 585 "include/linux/fs.h"
1501struct __anonstruct_read_descriptor_t_138 {
1502   size_t written ;
1503   size_t count ;
1504   union __anonunion_arg_139 arg ;
1505   int error ;
1506};
1507#line 585 "include/linux/fs.h"
1508typedef struct __anonstruct_read_descriptor_t_138 read_descriptor_t;
1509#line 588 "include/linux/fs.h"
1510struct address_space_operations {
1511   int (*writepage)(struct page * , struct writeback_control * ) ;
1512   int (*readpage)(struct file * , struct page * ) ;
1513   int (*writepages)(struct address_space * , struct writeback_control * ) ;
1514   int (*set_page_dirty)(struct page * ) ;
1515   int (*readpages)(struct file * , struct address_space * , struct list_head * ,
1516                    unsigned int  ) ;
1517   int (*write_begin)(struct file * , struct address_space * , loff_t  , unsigned int  ,
1518                      unsigned int  , struct page ** , void ** ) ;
1519   int (*write_end)(struct file * , struct address_space * , loff_t  , unsigned int  ,
1520                    unsigned int  , struct page * , void * ) ;
1521   sector_t (*bmap)(struct address_space * , sector_t  ) ;
1522   void (*invalidatepage)(struct page * , unsigned long  ) ;
1523   int (*releasepage)(struct page * , gfp_t  ) ;
1524   void (*freepage)(struct page * ) ;
1525   ssize_t (*direct_IO)(int  , struct kiocb * , struct iovec  const  * , loff_t  ,
1526                        unsigned long  ) ;
1527   int (*get_xip_mem)(struct address_space * , unsigned long  , int  , void ** , unsigned long * ) ;
1528   int (*migratepage)(struct address_space * , struct page * , struct page * , enum migrate_mode  ) ;
1529   int (*launder_page)(struct page * ) ;
1530   int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long  ) ;
1531   int (*error_remove_page)(struct address_space * , struct page * ) ;
1532};
1533#line 642
1534struct backing_dev_info;
1535#line 642
1536struct backing_dev_info;
1537#line 643 "include/linux/fs.h"
1538struct address_space {
1539   struct inode *host ;
1540   struct radix_tree_root page_tree ;
1541   spinlock_t tree_lock ;
1542   unsigned int i_mmap_writable ;
1543   struct prio_tree_root i_mmap ;
1544   struct list_head i_mmap_nonlinear ;
1545   struct mutex i_mmap_mutex ;
1546   unsigned long nrpages ;
1547   unsigned long writeback_index ;
1548   struct address_space_operations  const  *a_ops ;
1549   unsigned long flags ;
1550   struct backing_dev_info *backing_dev_info ;
1551   spinlock_t private_lock ;
1552   struct list_head private_list ;
1553   struct address_space *assoc_mapping ;
1554};
1555#line 664
1556struct request_queue;
1557#line 664
1558struct request_queue;
1559#line 665
1560struct hd_struct;
1561#line 665
1562struct gendisk;
1563#line 665 "include/linux/fs.h"
1564struct block_device {
1565   dev_t bd_dev ;
1566   int bd_openers ;
1567   struct inode *bd_inode ;
1568   struct super_block *bd_super ;
1569   struct mutex bd_mutex ;
1570   struct list_head bd_inodes ;
1571   void *bd_claiming ;
1572   void *bd_holder ;
1573   int bd_holders ;
1574   bool bd_write_holder ;
1575   struct list_head bd_holder_disks ;
1576   struct block_device *bd_contains ;
1577   unsigned int bd_block_size ;
1578   struct hd_struct *bd_part ;
1579   unsigned int bd_part_count ;
1580   int bd_invalidated ;
1581   struct gendisk *bd_disk ;
1582   struct request_queue *bd_queue ;
1583   struct list_head bd_list ;
1584   unsigned long bd_private ;
1585   int bd_fsfreeze_count ;
1586   struct mutex bd_fsfreeze_mutex ;
1587};
1588#line 737
1589struct posix_acl;
1590#line 737
1591struct posix_acl;
1592#line 738
1593struct inode_operations;
1594#line 738 "include/linux/fs.h"
1595union __anonunion_ldv_16579_140 {
1596   unsigned int const   i_nlink ;
1597   unsigned int __i_nlink ;
1598};
1599#line 738 "include/linux/fs.h"
1600union __anonunion_ldv_16598_141 {
1601   struct list_head i_dentry ;
1602   struct rcu_head i_rcu ;
1603};
1604#line 738
1605struct file_operations;
1606#line 738
1607struct file_lock;
1608#line 738
1609struct cdev;
1610#line 738 "include/linux/fs.h"
1611union __anonunion_ldv_16616_142 {
1612   struct pipe_inode_info *i_pipe ;
1613   struct block_device *i_bdev ;
1614   struct cdev *i_cdev ;
1615};
1616#line 738 "include/linux/fs.h"
1617struct inode {
1618   umode_t i_mode ;
1619   unsigned short i_opflags ;
1620   uid_t i_uid ;
1621   gid_t i_gid ;
1622   unsigned int i_flags ;
1623   struct posix_acl *i_acl ;
1624   struct posix_acl *i_default_acl ;
1625   struct inode_operations  const  *i_op ;
1626   struct super_block *i_sb ;
1627   struct address_space *i_mapping ;
1628   void *i_security ;
1629   unsigned long i_ino ;
1630   union __anonunion_ldv_16579_140 ldv_16579 ;
1631   dev_t i_rdev ;
1632   struct timespec i_atime ;
1633   struct timespec i_mtime ;
1634   struct timespec i_ctime ;
1635   spinlock_t i_lock ;
1636   unsigned short i_bytes ;
1637   blkcnt_t i_blocks ;
1638   loff_t i_size ;
1639   unsigned long i_state ;
1640   struct mutex i_mutex ;
1641   unsigned long dirtied_when ;
1642   struct hlist_node i_hash ;
1643   struct list_head i_wb_list ;
1644   struct list_head i_lru ;
1645   struct list_head i_sb_list ;
1646   union __anonunion_ldv_16598_141 ldv_16598 ;
1647   atomic_t i_count ;
1648   unsigned int i_blkbits ;
1649   u64 i_version ;
1650   atomic_t i_dio_count ;
1651   atomic_t i_writecount ;
1652   struct file_operations  const  *i_fop ;
1653   struct file_lock *i_flock ;
1654   struct address_space i_data ;
1655   struct dquot *i_dquot[2U] ;
1656   struct list_head i_devices ;
1657   union __anonunion_ldv_16616_142 ldv_16616 ;
1658   __u32 i_generation ;
1659   __u32 i_fsnotify_mask ;
1660   struct hlist_head i_fsnotify_marks ;
1661   atomic_t i_readcount ;
1662   void *i_private ;
1663};
1664#line 941 "include/linux/fs.h"
1665struct fown_struct {
1666   rwlock_t lock ;
1667   struct pid *pid ;
1668   enum pid_type pid_type ;
1669   uid_t uid ;
1670   uid_t euid ;
1671   int signum ;
1672};
1673#line 949 "include/linux/fs.h"
1674struct file_ra_state {
1675   unsigned long start ;
1676   unsigned int size ;
1677   unsigned int async_size ;
1678   unsigned int ra_pages ;
1679   unsigned int mmap_miss ;
1680   loff_t prev_pos ;
1681};
1682#line 972 "include/linux/fs.h"
1683union __anonunion_f_u_143 {
1684   struct list_head fu_list ;
1685   struct rcu_head fu_rcuhead ;
1686};
1687#line 972 "include/linux/fs.h"
1688struct file {
1689   union __anonunion_f_u_143 f_u ;
1690   struct path f_path ;
1691   struct file_operations  const  *f_op ;
1692   spinlock_t f_lock ;
1693   int f_sb_list_cpu ;
1694   atomic_long_t f_count ;
1695   unsigned int f_flags ;
1696   fmode_t f_mode ;
1697   loff_t f_pos ;
1698   struct fown_struct f_owner ;
1699   struct cred  const  *f_cred ;
1700   struct file_ra_state f_ra ;
1701   u64 f_version ;
1702   void *f_security ;
1703   void *private_data ;
1704   struct list_head f_ep_links ;
1705   struct list_head f_tfile_llink ;
1706   struct address_space *f_mapping ;
1707   unsigned long f_mnt_write_state ;
1708};
1709#line 1111
1710struct files_struct;
1711#line 1111 "include/linux/fs.h"
1712typedef struct files_struct *fl_owner_t;
1713#line 1112 "include/linux/fs.h"
1714struct file_lock_operations {
1715   void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ;
1716   void (*fl_release_private)(struct file_lock * ) ;
1717};
1718#line 1117 "include/linux/fs.h"
1719struct lock_manager_operations {
1720   int (*lm_compare_owner)(struct file_lock * , struct file_lock * ) ;
1721   void (*lm_notify)(struct file_lock * ) ;
1722   int (*lm_grant)(struct file_lock * , struct file_lock * , int  ) ;
1723   void (*lm_release_private)(struct file_lock * ) ;
1724   void (*lm_break)(struct file_lock * ) ;
1725   int (*lm_change)(struct file_lock ** , int  ) ;
1726};
1727#line 1134
1728struct nlm_lockowner;
1729#line 1134
1730struct nlm_lockowner;
1731#line 1135 "include/linux/fs.h"
1732struct nfs_lock_info {
1733   u32 state ;
1734   struct nlm_lockowner *owner ;
1735   struct list_head list ;
1736};
1737#line 14 "include/linux/nfs_fs_i.h"
1738struct nfs4_lock_state;
1739#line 14
1740struct nfs4_lock_state;
1741#line 15 "include/linux/nfs_fs_i.h"
1742struct nfs4_lock_info {
1743   struct nfs4_lock_state *owner ;
1744};
1745#line 19
1746struct fasync_struct;
1747#line 19 "include/linux/nfs_fs_i.h"
1748struct __anonstruct_afs_145 {
1749   struct list_head link ;
1750   int state ;
1751};
1752#line 19 "include/linux/nfs_fs_i.h"
1753union __anonunion_fl_u_144 {
1754   struct nfs_lock_info nfs_fl ;
1755   struct nfs4_lock_info nfs4_fl ;
1756   struct __anonstruct_afs_145 afs ;
1757};
1758#line 19 "include/linux/nfs_fs_i.h"
1759struct file_lock {
1760   struct file_lock *fl_next ;
1761   struct list_head fl_link ;
1762   struct list_head fl_block ;
1763   fl_owner_t fl_owner ;
1764   unsigned int fl_flags ;
1765   unsigned char fl_type ;
1766   unsigned int fl_pid ;
1767   struct pid *fl_nspid ;
1768   wait_queue_head_t fl_wait ;
1769   struct file *fl_file ;
1770   loff_t fl_start ;
1771   loff_t fl_end ;
1772   struct fasync_struct *fl_fasync ;
1773   unsigned long fl_break_time ;
1774   unsigned long fl_downgrade_time ;
1775   struct file_lock_operations  const  *fl_ops ;
1776   struct lock_manager_operations  const  *fl_lmops ;
1777   union __anonunion_fl_u_144 fl_u ;
1778};
1779#line 1221 "include/linux/fs.h"
1780struct fasync_struct {
1781   spinlock_t fa_lock ;
1782   int magic ;
1783   int fa_fd ;
1784   struct fasync_struct *fa_next ;
1785   struct file *fa_file ;
1786   struct rcu_head fa_rcu ;
1787};
1788#line 1417
1789struct file_system_type;
1790#line 1417
1791struct super_operations;
1792#line 1417
1793struct xattr_handler;
1794#line 1417
1795struct mtd_info;
1796#line 1417 "include/linux/fs.h"
1797struct super_block {
1798   struct list_head s_list ;
1799   dev_t s_dev ;
1800   unsigned char s_dirt ;
1801   unsigned char s_blocksize_bits ;
1802   unsigned long s_blocksize ;
1803   loff_t s_maxbytes ;
1804   struct file_system_type *s_type ;
1805   struct super_operations  const  *s_op ;
1806   struct dquot_operations  const  *dq_op ;
1807   struct quotactl_ops  const  *s_qcop ;
1808   struct export_operations  const  *s_export_op ;
1809   unsigned long s_flags ;
1810   unsigned long s_magic ;
1811   struct dentry *s_root ;
1812   struct rw_semaphore s_umount ;
1813   struct mutex s_lock ;
1814   int s_count ;
1815   atomic_t s_active ;
1816   void *s_security ;
1817   struct xattr_handler  const  **s_xattr ;
1818   struct list_head s_inodes ;
1819   struct hlist_bl_head s_anon ;
1820   struct list_head *s_files ;
1821   struct list_head s_mounts ;
1822   struct list_head s_dentry_lru ;
1823   int s_nr_dentry_unused ;
1824   spinlock_t s_inode_lru_lock ;
1825   struct list_head s_inode_lru ;
1826   int s_nr_inodes_unused ;
1827   struct block_device *s_bdev ;
1828   struct backing_dev_info *s_bdi ;
1829   struct mtd_info *s_mtd ;
1830   struct hlist_node s_instances ;
1831   struct quota_info s_dquot ;
1832   int s_frozen ;
1833   wait_queue_head_t s_wait_unfrozen ;
1834   char s_id[32U] ;
1835   u8 s_uuid[16U] ;
1836   void *s_fs_info ;
1837   unsigned int s_max_links ;
1838   fmode_t s_mode ;
1839   u32 s_time_gran ;
1840   struct mutex s_vfs_rename_mutex ;
1841   char *s_subtype ;
1842   char *s_options ;
1843   struct dentry_operations  const  *s_d_op ;
1844   int cleancache_poolid ;
1845   struct shrinker s_shrink ;
1846   atomic_long_t s_remove_count ;
1847   int s_readonly_remount ;
1848};
1849#line 1563 "include/linux/fs.h"
1850struct fiemap_extent_info {
1851   unsigned int fi_flags ;
1852   unsigned int fi_extents_mapped ;
1853   unsigned int fi_extents_max ;
1854   struct fiemap_extent *fi_extents_start ;
1855};
1856#line 1602 "include/linux/fs.h"
1857struct file_operations {
1858   struct module *owner ;
1859   loff_t (*llseek)(struct file * , loff_t  , int  ) ;
1860   ssize_t (*read)(struct file * , char * , size_t  , loff_t * ) ;
1861   ssize_t (*write)(struct file * , char const   * , size_t  , loff_t * ) ;
1862   ssize_t (*aio_read)(struct kiocb * , struct iovec  const  * , unsigned long  ,
1863                       loff_t  ) ;
1864   ssize_t (*aio_write)(struct kiocb * , struct iovec  const  * , unsigned long  ,
1865                        loff_t  ) ;
1866   int (*readdir)(struct file * , void * , int (*)(void * , char const   * , int  ,
1867                                                   loff_t  , u64  , unsigned int  ) ) ;
1868   unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
1869   long (*unlocked_ioctl)(struct file * , unsigned int  , unsigned long  ) ;
1870   long (*compat_ioctl)(struct file * , unsigned int  , unsigned long  ) ;
1871   int (*mmap)(struct file * , struct vm_area_struct * ) ;
1872   int (*open)(struct inode * , struct file * ) ;
1873   int (*flush)(struct file * , fl_owner_t  ) ;
1874   int (*release)(struct inode * , struct file * ) ;
1875   int (*fsync)(struct file * , loff_t  , loff_t  , int  ) ;
1876   int (*aio_fsync)(struct kiocb * , int  ) ;
1877   int (*fasync)(int  , struct file * , int  ) ;
1878   int (*lock)(struct file * , int  , struct file_lock * ) ;
1879   ssize_t (*sendpage)(struct file * , struct page * , int  , size_t  , loff_t * ,
1880                       int  ) ;
1881   unsigned long (*get_unmapped_area)(struct file * , unsigned long  , unsigned long  ,
1882                                      unsigned long  , unsigned long  ) ;
1883   int (*check_flags)(int  ) ;
1884   int (*flock)(struct file * , int  , struct file_lock * ) ;
1885   ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t  ,
1886                           unsigned int  ) ;
1887   ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t  ,
1888                          unsigned int  ) ;
1889   int (*setlease)(struct file * , long  , struct file_lock ** ) ;
1890   long (*fallocate)(struct file * , int  , loff_t  , loff_t  ) ;
1891};
1892#line 1637 "include/linux/fs.h"
1893struct inode_operations {
1894   struct dentry *(*lookup)(struct inode * , struct dentry * , struct nameidata * ) ;
1895   void *(*follow_link)(struct dentry * , struct nameidata * ) ;
1896   int (*permission)(struct inode * , int  ) ;
1897   struct posix_acl *(*get_acl)(struct inode * , int  ) ;
1898   int (*readlink)(struct dentry * , char * , int  ) ;
1899   void (*put_link)(struct dentry * , struct nameidata * , void * ) ;
1900   int (*create)(struct inode * , struct dentry * , umode_t  , struct nameidata * ) ;
1901   int (*link)(struct dentry * , struct inode * , struct dentry * ) ;
1902   int (*unlink)(struct inode * , struct dentry * ) ;
1903   int (*symlink)(struct inode * , struct dentry * , char const   * ) ;
1904   int (*mkdir)(struct inode * , struct dentry * , umode_t  ) ;
1905   int (*rmdir)(struct inode * , struct dentry * ) ;
1906   int (*mknod)(struct inode * , struct dentry * , umode_t  , dev_t  ) ;
1907   int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ;
1908   void (*truncate)(struct inode * ) ;
1909   int (*setattr)(struct dentry * , struct iattr * ) ;
1910   int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ;
1911   int (*setxattr)(struct dentry * , char const   * , void const   * , size_t  , int  ) ;
1912   ssize_t (*getxattr)(struct dentry * , char const   * , void * , size_t  ) ;
1913   ssize_t (*listxattr)(struct dentry * , char * , size_t  ) ;
1914   int (*removexattr)(struct dentry * , char const   * ) ;
1915   void (*truncate_range)(struct inode * , loff_t  , loff_t  ) ;
1916   int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64  , u64  ) ;
1917};
1918#line 1682 "include/linux/fs.h"
1919struct super_operations {
1920   struct inode *(*alloc_inode)(struct super_block * ) ;
1921   void (*destroy_inode)(struct inode * ) ;
1922   void (*dirty_inode)(struct inode * , int  ) ;
1923   int (*write_inode)(struct inode * , struct writeback_control * ) ;
1924   int (*drop_inode)(struct inode * ) ;
1925   void (*evict_inode)(struct inode * ) ;
1926   void (*put_super)(struct super_block * ) ;
1927   void (*write_super)(struct super_block * ) ;
1928   int (*sync_fs)(struct super_block * , int  ) ;
1929   int (*freeze_fs)(struct super_block * ) ;
1930   int (*unfreeze_fs)(struct super_block * ) ;
1931   int (*statfs)(struct dentry * , struct kstatfs * ) ;
1932   int (*remount_fs)(struct super_block * , int * , char * ) ;
1933   void (*umount_begin)(struct super_block * ) ;
1934   int (*show_options)(struct seq_file * , struct dentry * ) ;
1935   int (*show_devname)(struct seq_file * , struct dentry * ) ;
1936   int (*show_path)(struct seq_file * , struct dentry * ) ;
1937   int (*show_stats)(struct seq_file * , struct dentry * ) ;
1938   ssize_t (*quota_read)(struct super_block * , int  , char * , size_t  , loff_t  ) ;
1939   ssize_t (*quota_write)(struct super_block * , int  , char const   * , size_t  ,
1940                          loff_t  ) ;
1941   int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t  ) ;
1942   int (*nr_cached_objects)(struct super_block * ) ;
1943   void (*free_cached_objects)(struct super_block * , int  ) ;
1944};
1945#line 1834 "include/linux/fs.h"
1946struct file_system_type {
1947   char const   *name ;
1948   int fs_flags ;
1949   struct dentry *(*mount)(struct file_system_type * , int  , char const   * , void * ) ;
1950   void (*kill_sb)(struct super_block * ) ;
1951   struct module *owner ;
1952   struct file_system_type *next ;
1953   struct hlist_head fs_supers ;
1954   struct lock_class_key s_lock_key ;
1955   struct lock_class_key s_umount_key ;
1956   struct lock_class_key s_vfs_rename_key ;
1957   struct lock_class_key i_lock_key ;
1958   struct lock_class_key i_mutex_key ;
1959   struct lock_class_key i_mutex_dir_key ;
1960};
1961#line 12 "include/linux/mod_devicetable.h"
1962typedef unsigned long kernel_ulong_t;
1963#line 205 "include/linux/mod_devicetable.h"
1964struct serio_device_id {
1965   __u8 type ;
1966   __u8 extra ;
1967   __u8 id ;
1968   __u8 proto ;
1969};
1970#line 215 "include/linux/mod_devicetable.h"
1971struct of_device_id {
1972   char name[32U] ;
1973   char type[32U] ;
1974   char compatible[128U] ;
1975   void *data ;
1976};
1977#line 269 "include/linux/mod_devicetable.h"
1978struct input_device_id {
1979   kernel_ulong_t flags ;
1980   __u16 bustype ;
1981   __u16 vendor ;
1982   __u16 product ;
1983   __u16 version ;
1984   kernel_ulong_t evbit[1U] ;
1985   kernel_ulong_t keybit[12U] ;
1986   kernel_ulong_t relbit[1U] ;
1987   kernel_ulong_t absbit[1U] ;
1988   kernel_ulong_t mscbit[1U] ;
1989   kernel_ulong_t ledbit[1U] ;
1990   kernel_ulong_t sndbit[1U] ;
1991   kernel_ulong_t ffbit[2U] ;
1992   kernel_ulong_t swbit[1U] ;
1993   kernel_ulong_t driver_info ;
1994};
1995#line 584
1996struct ff_device;
1997#line 584
1998struct input_mt_slot;
1999#line 584
2000struct input_handle;
2001#line 584 "include/linux/mod_devicetable.h"
2002struct input_dev {
2003   char const   *name ;
2004   char const   *phys ;
2005   char const   *uniq ;
2006   struct input_id id ;
2007   unsigned long propbit[1U] ;
2008   unsigned long evbit[1U] ;
2009   unsigned long keybit[12U] ;
2010   unsigned long relbit[1U] ;
2011   unsigned long absbit[1U] ;
2012   unsigned long mscbit[1U] ;
2013   unsigned long ledbit[1U] ;
2014   unsigned long sndbit[1U] ;
2015   unsigned long ffbit[2U] ;
2016   unsigned long swbit[1U] ;
2017   unsigned int hint_events_per_packet ;
2018   unsigned int keycodemax ;
2019   unsigned int keycodesize ;
2020   void *keycode ;
2021   int (*setkeycode)(struct input_dev * , struct input_keymap_entry  const  * , unsigned int * ) ;
2022   int (*getkeycode)(struct input_dev * , struct input_keymap_entry * ) ;
2023   struct ff_device *ff ;
2024   unsigned int repeat_key ;
2025   struct timer_list timer ;
2026   int rep[2U] ;
2027   struct input_mt_slot *mt ;
2028   int mtsize ;
2029   int slot ;
2030   int trkid ;
2031   struct input_absinfo *absinfo ;
2032   unsigned long key[12U] ;
2033   unsigned long led[1U] ;
2034   unsigned long snd[1U] ;
2035   unsigned long sw[1U] ;
2036   int (*open)(struct input_dev * ) ;
2037   void (*close)(struct input_dev * ) ;
2038   int (*flush)(struct input_dev * , struct file * ) ;
2039   int (*event)(struct input_dev * , unsigned int  , unsigned int  , int  ) ;
2040   struct input_handle *grab ;
2041   spinlock_t event_lock ;
2042   struct mutex mutex ;
2043   unsigned int users ;
2044   bool going_away ;
2045   bool sync ;
2046   struct device dev ;
2047   struct list_head h_list ;
2048   struct list_head node ;
2049};
2050#line 1319 "include/linux/input.h"
2051struct input_handler {
2052   void *private ;
2053   void (*event)(struct input_handle * , unsigned int  , unsigned int  , int  ) ;
2054   bool (*filter)(struct input_handle * , unsigned int  , unsigned int  , int  ) ;
2055   bool (*match)(struct input_handler * , struct input_dev * ) ;
2056   int (*connect)(struct input_handler * , struct input_dev * , struct input_device_id  const  * ) ;
2057   void (*disconnect)(struct input_handle * ) ;
2058   void (*start)(struct input_handle * ) ;
2059   struct file_operations  const  *fops ;
2060   int minor ;
2061   char const   *name ;
2062   struct input_device_id  const  *id_table ;
2063   struct list_head h_list ;
2064   struct list_head node ;
2065};
2066#line 1429 "include/linux/input.h"
2067struct input_handle {
2068   void *private ;
2069   int open ;
2070   char const   *name ;
2071   struct input_dev *dev ;
2072   struct input_handler *handler ;
2073   struct list_head d_node ;
2074   struct list_head h_node ;
2075};
2076#line 1591 "include/linux/input.h"
2077struct ff_device {
2078   int (*upload)(struct input_dev * , struct ff_effect * , struct ff_effect * ) ;
2079   int (*erase)(struct input_dev * , int  ) ;
2080   int (*playback)(struct input_dev * , int  , int  ) ;
2081   void (*set_gain)(struct input_dev * , u16  ) ;
2082   void (*set_autocenter)(struct input_dev * , u16  ) ;
2083   void (*destroy)(struct ff_device * ) ;
2084   void *private ;
2085   unsigned long ffbit[2U] ;
2086   struct mutex mutex ;
2087   int max_effects ;
2088   struct ff_effect *effects ;
2089   struct file *effect_owners[0U] ;
2090};
2091#line 1650
2092enum irqreturn {
2093    IRQ_NONE = 0,
2094    IRQ_HANDLED = 1,
2095    IRQ_WAKE_THREAD = 2
2096} ;
2097#line 16 "include/linux/irqreturn.h"
2098typedef enum irqreturn irqreturn_t;
2099#line 41 "include/asm-generic/sections.h"
2100struct exception_table_entry {
2101   unsigned long insn ;
2102   unsigned long fixup ;
2103};
2104#line 702 "include/linux/interrupt.h"
2105struct serio_driver;
2106#line 702 "include/linux/interrupt.h"
2107struct serio {
2108   void *port_data ;
2109   char name[32U] ;
2110   char phys[32U] ;
2111   bool manual_bind ;
2112   struct serio_device_id id ;
2113   spinlock_t lock ;
2114   int (*write)(struct serio * , unsigned char  ) ;
2115   int (*open)(struct serio * ) ;
2116   void (*close)(struct serio * ) ;
2117   int (*start)(struct serio * ) ;
2118   void (*stop)(struct serio * ) ;
2119   struct serio *parent ;
2120   struct list_head child_node ;
2121   struct list_head children ;
2122   unsigned int depth ;
2123   struct serio_driver *drv ;
2124   struct mutex drv_mutex ;
2125   struct device dev ;
2126   struct list_head node ;
2127};
2128#line 56 "include/linux/serio.h"
2129struct serio_driver {
2130   char const   *description ;
2131   struct serio_device_id  const  *id_table ;
2132   bool manual_bind ;
2133   void (*write_wakeup)(struct serio * ) ;
2134   irqreturn_t (*interrupt)(struct serio * , unsigned char  , unsigned int  ) ;
2135   int (*connect)(struct serio * , struct serio_driver * ) ;
2136   int (*reconnect)(struct serio * ) ;
2137   void (*disconnect)(struct serio * ) ;
2138   void (*cleanup)(struct serio * ) ;
2139   struct device_driver driver ;
2140};
2141#line 80 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
2142struct spaceball {
2143   struct input_dev *dev ;
2144   int idx ;
2145   int escape ;
2146   unsigned char data[128U] ;
2147   char phys[32U] ;
2148};
2149#line 2
2150void ldv_spin_lock(void) ;
2151#line 3
2152void ldv_spin_unlock(void) ;
2153#line 4
2154int ldv_spin_trylock(void) ;
2155#line 101 "include/linux/printk.h"
2156extern int printk(char const   *  , ...) ;
2157#line 323 "include/linux/kernel.h"
2158extern int snprintf(char * , size_t  , char const   *  , ...) ;
2159#line 26 "include/linux/export.h"
2160extern struct module __this_module ;
2161#line 161 "include/linux/slab.h"
2162extern void kfree(void const   * ) ;
2163#line 220 "include/linux/slub_def.h"
2164extern void *kmem_cache_alloc(struct kmem_cache * , gfp_t  ) ;
2165#line 223
2166void *ldv_kmem_cache_alloc_16(struct kmem_cache *ldv_func_arg1 , gfp_t ldv_func_arg2 ) ;
2167#line 225
2168extern void *__kmalloc(size_t  , gfp_t  ) ;
2169#line 268 "include/linux/slub_def.h"
2170__inline static void *ldv_kmalloc_12(size_t size , gfp_t flags ) 
2171{ void *tmp___2 ;
2172
2173  {
2174  {
2175#line 283
2176  tmp___2 = __kmalloc(size, flags);
2177  }
2178#line 283
2179  return (tmp___2);
2180}
2181}
2182#line 268
2183__inline static void *kmalloc(size_t size , gfp_t flags ) ;
2184#line 11 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
2185void ldv_check_alloc_flags(gfp_t flags ) ;
2186#line 12
2187void ldv_check_alloc_nonatomic(void) ;
2188#line 14
2189struct page *ldv_check_alloc_flags_and_return_some_page(gfp_t flags ) ;
2190#line 792 "include/linux/device.h"
2191extern void *dev_get_drvdata(struct device  const  * ) ;
2192#line 793
2193extern int dev_set_drvdata(struct device * , void * ) ;
2194#line 1456 "include/linux/input.h"
2195extern struct input_dev *input_allocate_device(void) ;
2196#line 1457
2197extern void input_free_device(struct input_dev * ) ;
2198#line 1480
2199extern int input_register_device(struct input_dev * ) ;
2200#line 1481
2201extern void input_unregister_device(struct input_dev * ) ;
2202#line 1502
2203extern void input_event(struct input_dev * , unsigned int  , unsigned int  , int  ) ;
2204#line 1505 "include/linux/input.h"
2205__inline static void input_report_key(struct input_dev *dev , unsigned int code ,
2206                                      int value ) 
2207{ int __cil_tmp4 ;
2208
2209  {
2210  {
2211#line 1507
2212  __cil_tmp4 = value != 0;
2213#line 1507
2214  input_event(dev, 1U, code, __cil_tmp4);
2215  }
2216#line 1508
2217  return;
2218}
2219}
2220#line 1515 "include/linux/input.h"
2221__inline static void input_report_abs(struct input_dev *dev , unsigned int code ,
2222                                      int value ) 
2223{ 
2224
2225  {
2226  {
2227#line 1517
2228  input_event(dev, 3U, code, value);
2229  }
2230#line 1518
2231  return;
2232}
2233}
2234#line 1530 "include/linux/input.h"
2235__inline static void input_sync(struct input_dev *dev ) 
2236{ 
2237
2238  {
2239  {
2240#line 1532
2241  input_event(dev, 0U, 0U, 0);
2242  }
2243#line 1533
2244  return;
2245}
2246}
2247#line 1558
2248extern void input_set_abs_params(struct input_dev * , unsigned int  , int  , int  ,
2249                                 int  , int  ) ;
2250#line 75 "include/linux/serio.h"
2251extern int serio_open(struct serio * , struct serio_driver * ) ;
2252#line 76
2253extern void serio_close(struct serio * ) ;
2254#line 90
2255extern int __serio_register_driver(struct serio_driver * , struct module * , char const   * ) ;
2256#line 97
2257extern void serio_unregister_driver(struct serio_driver * ) ;
2258#line 117 "include/linux/serio.h"
2259__inline static void *serio_get_drvdata(struct serio *serio ) 
2260{ void *tmp ;
2261  unsigned long __cil_tmp3 ;
2262  unsigned long __cil_tmp4 ;
2263  struct device *__cil_tmp5 ;
2264  struct device  const  *__cil_tmp6 ;
2265
2266  {
2267  {
2268#line 119
2269  __cil_tmp3 = (unsigned long )serio;
2270#line 119
2271  __cil_tmp4 = __cil_tmp3 + 416;
2272#line 119
2273  __cil_tmp5 = (struct device *)__cil_tmp4;
2274#line 119
2275  __cil_tmp6 = (struct device  const  *)__cil_tmp5;
2276#line 119
2277  tmp = dev_get_drvdata(__cil_tmp6);
2278  }
2279#line 119
2280  return (tmp);
2281}
2282}
2283#line 122 "include/linux/serio.h"
2284__inline static void serio_set_drvdata(struct serio *serio , void *data ) 
2285{ unsigned long __cil_tmp3 ;
2286  unsigned long __cil_tmp4 ;
2287  struct device *__cil_tmp5 ;
2288
2289  {
2290  {
2291#line 124
2292  __cil_tmp3 = (unsigned long )serio;
2293#line 124
2294  __cil_tmp4 = __cil_tmp3 + 416;
2295#line 124
2296  __cil_tmp5 = (struct device *)__cil_tmp4;
2297#line 124
2298  dev_set_drvdata(__cil_tmp5, data);
2299  }
2300#line 125
2301  return;
2302}
2303}
2304#line 75 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
2305static int spaceball_axes[6U]  = {      0,      2,      1,      3, 
2306        5,      4};
2307#line 76 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
2308static char *spaceball_names[10U]  = 
2309#line 76
2310  {      (char *)"?",      (char *)"SpaceTec SpaceBall 1003",      (char *)"SpaceTec SpaceBall 2003",      (char *)"SpaceTec SpaceBall 2003B", 
2311        (char *)"SpaceTec SpaceBall 2003C",      (char *)"SpaceTec SpaceBall 3003",      (char *)"SpaceTec SpaceBall SpaceController",      (char *)"SpaceTec SpaceBall 3003C", 
2312        (char *)"SpaceTec SpaceBall 4000FLX",      (char *)"SpaceTec SpaceBall 4000FLX Lefty"};
2313#line 98 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
2314static void spaceball_process_packet(struct spaceball *spaceball ) 
2315{ struct input_dev *dev ;
2316  unsigned char *data ;
2317  int i ;
2318  int tmp ;
2319  unsigned long __cil_tmp6 ;
2320  unsigned long __cil_tmp7 ;
2321  unsigned char (*__cil_tmp8)[128U] ;
2322  unsigned long __cil_tmp9 ;
2323  unsigned long __cil_tmp10 ;
2324  int __cil_tmp11 ;
2325  unsigned long __cil_tmp12 ;
2326  unsigned long __cil_tmp13 ;
2327  unsigned long __cil_tmp14 ;
2328  unsigned long __cil_tmp15 ;
2329  unsigned char __cil_tmp16 ;
2330  unsigned long __cil_tmp17 ;
2331  unsigned long __cil_tmp18 ;
2332  int __cil_tmp19 ;
2333  unsigned long __cil_tmp20 ;
2334  unsigned long __cil_tmp21 ;
2335  int __cil_tmp22 ;
2336  unsigned int __cil_tmp23 ;
2337  int __cil_tmp24 ;
2338  unsigned long __cil_tmp25 ;
2339  unsigned long __cil_tmp26 ;
2340  unsigned char *__cil_tmp27 ;
2341  unsigned char __cil_tmp28 ;
2342  short __cil_tmp29 ;
2343  int __cil_tmp30 ;
2344  int __cil_tmp31 ;
2345  unsigned long __cil_tmp32 ;
2346  unsigned long __cil_tmp33 ;
2347  unsigned char *__cil_tmp34 ;
2348  unsigned char __cil_tmp35 ;
2349  int __cil_tmp36 ;
2350  int __cil_tmp37 ;
2351  short __cil_tmp38 ;
2352  int __cil_tmp39 ;
2353  int __cil_tmp40 ;
2354  unsigned long __cil_tmp41 ;
2355  unsigned long __cil_tmp42 ;
2356  int __cil_tmp43 ;
2357  unsigned char *__cil_tmp44 ;
2358  unsigned char __cil_tmp45 ;
2359  int __cil_tmp46 ;
2360  unsigned char *__cil_tmp47 ;
2361  unsigned char __cil_tmp48 ;
2362  int __cil_tmp49 ;
2363  int __cil_tmp50 ;
2364  unsigned char *__cil_tmp51 ;
2365  unsigned char __cil_tmp52 ;
2366  int __cil_tmp53 ;
2367  int __cil_tmp54 ;
2368  unsigned char *__cil_tmp55 ;
2369  unsigned char __cil_tmp56 ;
2370  int __cil_tmp57 ;
2371  int __cil_tmp58 ;
2372  unsigned char *__cil_tmp59 ;
2373  unsigned char __cil_tmp60 ;
2374  int __cil_tmp61 ;
2375  int __cil_tmp62 ;
2376  unsigned char *__cil_tmp63 ;
2377  unsigned char __cil_tmp64 ;
2378  int __cil_tmp65 ;
2379  int __cil_tmp66 ;
2380  unsigned char *__cil_tmp67 ;
2381  unsigned char __cil_tmp68 ;
2382  int __cil_tmp69 ;
2383  int __cil_tmp70 ;
2384  unsigned char *__cil_tmp71 ;
2385  unsigned char __cil_tmp72 ;
2386  int __cil_tmp73 ;
2387  int __cil_tmp74 ;
2388  unsigned char *__cil_tmp75 ;
2389  unsigned char __cil_tmp76 ;
2390  int __cil_tmp77 ;
2391  int __cil_tmp78 ;
2392  unsigned long __cil_tmp79 ;
2393  unsigned long __cil_tmp80 ;
2394  int __cil_tmp81 ;
2395  unsigned char *__cil_tmp82 ;
2396  unsigned char __cil_tmp83 ;
2397  int __cil_tmp84 ;
2398  int __cil_tmp85 ;
2399  unsigned char *__cil_tmp86 ;
2400  unsigned char __cil_tmp87 ;
2401  int __cil_tmp88 ;
2402  int __cil_tmp89 ;
2403  unsigned char *__cil_tmp90 ;
2404  unsigned char __cil_tmp91 ;
2405  int __cil_tmp92 ;
2406  int __cil_tmp93 ;
2407  unsigned char *__cil_tmp94 ;
2408  unsigned char __cil_tmp95 ;
2409  int __cil_tmp96 ;
2410  int __cil_tmp97 ;
2411  unsigned char *__cil_tmp98 ;
2412  unsigned char __cil_tmp99 ;
2413  int __cil_tmp100 ;
2414  int __cil_tmp101 ;
2415  unsigned char *__cil_tmp102 ;
2416  unsigned char __cil_tmp103 ;
2417  int __cil_tmp104 ;
2418  int __cil_tmp105 ;
2419  unsigned char *__cil_tmp106 ;
2420  unsigned char __cil_tmp107 ;
2421  int __cil_tmp108 ;
2422  int __cil_tmp109 ;
2423  unsigned char *__cil_tmp110 ;
2424  unsigned char __cil_tmp111 ;
2425  int __cil_tmp112 ;
2426  int __cil_tmp113 ;
2427  unsigned char *__cil_tmp114 ;
2428  unsigned char __cil_tmp115 ;
2429  int __cil_tmp116 ;
2430  int __cil_tmp117 ;
2431  unsigned char *__cil_tmp118 ;
2432  unsigned char __cil_tmp119 ;
2433  int __cil_tmp120 ;
2434  int __cil_tmp121 ;
2435  unsigned char *__cil_tmp122 ;
2436  unsigned char __cil_tmp123 ;
2437  int __cil_tmp124 ;
2438  int __cil_tmp125 ;
2439  unsigned char *__cil_tmp126 ;
2440  unsigned char __cil_tmp127 ;
2441  int __cil_tmp128 ;
2442  int __cil_tmp129 ;
2443  unsigned char *__cil_tmp130 ;
2444  unsigned char __cil_tmp131 ;
2445  int __cil_tmp132 ;
2446  int __cil_tmp133 ;
2447  unsigned long __cil_tmp134 ;
2448  unsigned long __cil_tmp135 ;
2449  int __cil_tmp136 ;
2450  int __cil_tmp137 ;
2451  unsigned long __cil_tmp138 ;
2452  unsigned long __cil_tmp139 ;
2453  unsigned long __cil_tmp140 ;
2454  unsigned long __cil_tmp141 ;
2455  unsigned long __cil_tmp142 ;
2456  unsigned long __cil_tmp143 ;
2457  unsigned char (*__cil_tmp144)[128U] ;
2458  unsigned char *__cil_tmp145 ;
2459  unsigned char *__cil_tmp146 ;
2460  unsigned long __cil_tmp147 ;
2461  unsigned long __cil_tmp148 ;
2462  int __cil_tmp149 ;
2463  int __cil_tmp150 ;
2464  unsigned long __cil_tmp151 ;
2465  unsigned long __cil_tmp152 ;
2466  unsigned long __cil_tmp153 ;
2467  unsigned long __cil_tmp154 ;
2468  unsigned long __cil_tmp155 ;
2469  unsigned long __cil_tmp156 ;
2470  unsigned char (*__cil_tmp157)[128U] ;
2471  unsigned char *__cil_tmp158 ;
2472  unsigned char *__cil_tmp159 ;
2473
2474  {
2475#line 100
2476  dev = *((struct input_dev **)spaceball);
2477#line 101
2478  __cil_tmp6 = (unsigned long )spaceball;
2479#line 101
2480  __cil_tmp7 = __cil_tmp6 + 16;
2481#line 101
2482  __cil_tmp8 = (unsigned char (*)[128U])__cil_tmp7;
2483#line 101
2484  data = (unsigned char *)__cil_tmp8;
2485  {
2486#line 104
2487  __cil_tmp9 = (unsigned long )spaceball;
2488#line 104
2489  __cil_tmp10 = __cil_tmp9 + 8;
2490#line 104
2491  __cil_tmp11 = *((int *)__cil_tmp10);
2492#line 104
2493  if (__cil_tmp11 <= 1) {
2494#line 104
2495    return;
2496  } else {
2497
2498  }
2499  }
2500  {
2501#line 106
2502  __cil_tmp12 = 0 * 1UL;
2503#line 106
2504  __cil_tmp13 = 16 + __cil_tmp12;
2505#line 106
2506  __cil_tmp14 = (unsigned long )spaceball;
2507#line 106
2508  __cil_tmp15 = __cil_tmp14 + __cil_tmp13;
2509#line 106
2510  __cil_tmp16 = *((unsigned char *)__cil_tmp15);
2511#line 108
2512  if ((int )__cil_tmp16 == 68) {
2513#line 108
2514    goto case_68;
2515  } else
2516#line 115
2517  if ((int )__cil_tmp16 == 75) {
2518#line 115
2519    goto case_75;
2520  } else
2521#line 127
2522  if ((int )__cil_tmp16 == 46) {
2523#line 127
2524    goto case_46;
2525  } else
2526#line 144
2527  if ((int )__cil_tmp16 == 69) {
2528#line 144
2529    goto case_69;
2530  } else
2531#line 149
2532  if ((int )__cil_tmp16 == 63) {
2533#line 149
2534    goto case_63;
2535  } else
2536#line 106
2537  if (0) {
2538    case_68: /* CIL Label */ ;
2539    {
2540#line 109
2541    __cil_tmp17 = (unsigned long )spaceball;
2542#line 109
2543    __cil_tmp18 = __cil_tmp17 + 8;
2544#line 109
2545    __cil_tmp19 = *((int *)__cil_tmp18);
2546#line 109
2547    if (__cil_tmp19 != 15) {
2548#line 109
2549      return;
2550    } else {
2551
2552    }
2553    }
2554#line 110
2555    i = 0;
2556#line 110
2557    goto ldv_20732;
2558    ldv_20731: 
2559    {
2560#line 111
2561    __cil_tmp20 = i * 4UL;
2562#line 111
2563    __cil_tmp21 = (unsigned long )(spaceball_axes) + __cil_tmp20;
2564#line 111
2565    __cil_tmp22 = *((int *)__cil_tmp21);
2566#line 111
2567    __cil_tmp23 = (unsigned int )__cil_tmp22;
2568#line 111
2569    __cil_tmp24 = i * 2;
2570#line 111
2571    __cil_tmp25 = (unsigned long )__cil_tmp24;
2572#line 111
2573    __cil_tmp26 = __cil_tmp25 + 2UL;
2574#line 111
2575    __cil_tmp27 = data + __cil_tmp26;
2576#line 111
2577    __cil_tmp28 = *__cil_tmp27;
2578#line 111
2579    __cil_tmp29 = (short )__cil_tmp28;
2580#line 111
2581    __cil_tmp30 = (int )__cil_tmp29;
2582#line 111
2583    __cil_tmp31 = i * 2;
2584#line 111
2585    __cil_tmp32 = (unsigned long )__cil_tmp31;
2586#line 111
2587    __cil_tmp33 = __cil_tmp32 + 3UL;
2588#line 111
2589    __cil_tmp34 = data + __cil_tmp33;
2590#line 111
2591    __cil_tmp35 = *__cil_tmp34;
2592#line 111
2593    __cil_tmp36 = (int )__cil_tmp35;
2594#line 111
2595    __cil_tmp37 = __cil_tmp36 << 8;
2596#line 111
2597    __cil_tmp38 = (short )__cil_tmp37;
2598#line 111
2599    __cil_tmp39 = (int )__cil_tmp38;
2600#line 111
2601    __cil_tmp40 = __cil_tmp39 | __cil_tmp30;
2602#line 111
2603    input_report_abs(dev, __cil_tmp23, __cil_tmp40);
2604#line 110
2605    i = i + 1;
2606    }
2607    ldv_20732: ;
2608#line 110
2609    if (i <= 5) {
2610#line 111
2611      goto ldv_20731;
2612    } else {
2613#line 113
2614      goto ldv_20733;
2615    }
2616    ldv_20733: ;
2617#line 113
2618    goto ldv_20734;
2619    case_75: /* CIL Label */ ;
2620    {
2621#line 116
2622    __cil_tmp41 = (unsigned long )spaceball;
2623#line 116
2624    __cil_tmp42 = __cil_tmp41 + 8;
2625#line 116
2626    __cil_tmp43 = *((int *)__cil_tmp42);
2627#line 116
2628    if (__cil_tmp43 != 3) {
2629#line 116
2630      return;
2631    } else {
2632
2633    }
2634    }
2635    {
2636#line 117
2637    __cil_tmp44 = data + 2UL;
2638#line 117
2639    __cil_tmp45 = *__cil_tmp44;
2640#line 117
2641    __cil_tmp46 = (int )__cil_tmp45;
2642#line 117
2643    if (__cil_tmp46 & 1) {
2644#line 117
2645      tmp = 1;
2646    } else {
2647      {
2648#line 117
2649      __cil_tmp47 = data + 2UL;
2650#line 117
2651      __cil_tmp48 = *__cil_tmp47;
2652#line 117
2653      __cil_tmp49 = (int )__cil_tmp48;
2654#line 117
2655      __cil_tmp50 = __cil_tmp49 & 32;
2656#line 117
2657      if (__cil_tmp50 != 0) {
2658#line 117
2659        tmp = 1;
2660      } else {
2661#line 117
2662        tmp = 0;
2663      }
2664      }
2665    }
2666    }
2667    {
2668#line 117
2669    input_report_key(dev, 257U, tmp);
2670#line 118
2671    __cil_tmp51 = data + 2UL;
2672#line 118
2673    __cil_tmp52 = *__cil_tmp51;
2674#line 118
2675    __cil_tmp53 = (int )__cil_tmp52;
2676#line 118
2677    __cil_tmp54 = __cil_tmp53 & 2;
2678#line 118
2679    input_report_key(dev, 258U, __cil_tmp54);
2680#line 119
2681    __cil_tmp55 = data + 2UL;
2682#line 119
2683    __cil_tmp56 = *__cil_tmp55;
2684#line 119
2685    __cil_tmp57 = (int )__cil_tmp56;
2686#line 119
2687    __cil_tmp58 = __cil_tmp57 & 4;
2688#line 119
2689    input_report_key(dev, 259U, __cil_tmp58);
2690#line 120
2691    __cil_tmp59 = data + 2UL;
2692#line 120
2693    __cil_tmp60 = *__cil_tmp59;
2694#line 120
2695    __cil_tmp61 = (int )__cil_tmp60;
2696#line 120
2697    __cil_tmp62 = __cil_tmp61 & 8;
2698#line 120
2699    input_report_key(dev, 260U, __cil_tmp62);
2700#line 121
2701    __cil_tmp63 = data + 1UL;
2702#line 121
2703    __cil_tmp64 = *__cil_tmp63;
2704#line 121
2705    __cil_tmp65 = (int )__cil_tmp64;
2706#line 121
2707    __cil_tmp66 = __cil_tmp65 & 1;
2708#line 121
2709    input_report_key(dev, 261U, __cil_tmp66);
2710#line 122
2711    __cil_tmp67 = data + 1UL;
2712#line 122
2713    __cil_tmp68 = *__cil_tmp67;
2714#line 122
2715    __cil_tmp69 = (int )__cil_tmp68;
2716#line 122
2717    __cil_tmp70 = __cil_tmp69 & 2;
2718#line 122
2719    input_report_key(dev, 262U, __cil_tmp70);
2720#line 123
2721    __cil_tmp71 = data + 1UL;
2722#line 123
2723    __cil_tmp72 = *__cil_tmp71;
2724#line 123
2725    __cil_tmp73 = (int )__cil_tmp72;
2726#line 123
2727    __cil_tmp74 = __cil_tmp73 & 4;
2728#line 123
2729    input_report_key(dev, 263U, __cil_tmp74);
2730#line 124
2731    __cil_tmp75 = data + 1UL;
2732#line 124
2733    __cil_tmp76 = *__cil_tmp75;
2734#line 124
2735    __cil_tmp77 = (int )__cil_tmp76;
2736#line 124
2737    __cil_tmp78 = __cil_tmp77 & 16;
2738#line 124
2739    input_report_key(dev, 264U, __cil_tmp78);
2740    }
2741#line 125
2742    goto ldv_20734;
2743    case_46: /* CIL Label */ ;
2744    {
2745#line 128
2746    __cil_tmp79 = (unsigned long )spaceball;
2747#line 128
2748    __cil_tmp80 = __cil_tmp79 + 8;
2749#line 128
2750    __cil_tmp81 = *((int *)__cil_tmp80);
2751#line 128
2752    if (__cil_tmp81 != 3) {
2753#line 128
2754      return;
2755    } else {
2756
2757    }
2758    }
2759    {
2760#line 129
2761    __cil_tmp82 = data + 2UL;
2762#line 129
2763    __cil_tmp83 = *__cil_tmp82;
2764#line 129
2765    __cil_tmp84 = (int )__cil_tmp83;
2766#line 129
2767    __cil_tmp85 = __cil_tmp84 & 1;
2768#line 129
2769    input_report_key(dev, 257U, __cil_tmp85);
2770#line 130
2771    __cil_tmp86 = data + 2UL;
2772#line 130
2773    __cil_tmp87 = *__cil_tmp86;
2774#line 130
2775    __cil_tmp88 = (int )__cil_tmp87;
2776#line 130
2777    __cil_tmp89 = __cil_tmp88 & 2;
2778#line 130
2779    input_report_key(dev, 258U, __cil_tmp89);
2780#line 131
2781    __cil_tmp90 = data + 2UL;
2782#line 131
2783    __cil_tmp91 = *__cil_tmp90;
2784#line 131
2785    __cil_tmp92 = (int )__cil_tmp91;
2786#line 131
2787    __cil_tmp93 = __cil_tmp92 & 4;
2788#line 131
2789    input_report_key(dev, 259U, __cil_tmp93);
2790#line 132
2791    __cil_tmp94 = data + 2UL;
2792#line 132
2793    __cil_tmp95 = *__cil_tmp94;
2794#line 132
2795    __cil_tmp96 = (int )__cil_tmp95;
2796#line 132
2797    __cil_tmp97 = __cil_tmp96 & 8;
2798#line 132
2799    input_report_key(dev, 260U, __cil_tmp97);
2800#line 133
2801    __cil_tmp98 = data + 2UL;
2802#line 133
2803    __cil_tmp99 = *__cil_tmp98;
2804#line 133
2805    __cil_tmp100 = (int )__cil_tmp99;
2806#line 133
2807    __cil_tmp101 = __cil_tmp100 & 16;
2808#line 133
2809    input_report_key(dev, 261U, __cil_tmp101);
2810#line 134
2811    __cil_tmp102 = data + 2UL;
2812#line 134
2813    __cil_tmp103 = *__cil_tmp102;
2814#line 134
2815    __cil_tmp104 = (int )__cil_tmp103;
2816#line 134
2817    __cil_tmp105 = __cil_tmp104 & 32;
2818#line 134
2819    input_report_key(dev, 262U, __cil_tmp105);
2820#line 135
2821    __cil_tmp106 = data + 2UL;
2822#line 135
2823    __cil_tmp107 = *__cil_tmp106;
2824#line 135
2825    __cil_tmp108 = (int )__cil_tmp107;
2826#line 135
2827    __cil_tmp109 = __cil_tmp108 & 128;
2828#line 135
2829    input_report_key(dev, 263U, __cil_tmp109);
2830#line 136
2831    __cil_tmp110 = data + 1UL;
2832#line 136
2833    __cil_tmp111 = *__cil_tmp110;
2834#line 136
2835    __cil_tmp112 = (int )__cil_tmp111;
2836#line 136
2837    __cil_tmp113 = __cil_tmp112 & 1;
2838#line 136
2839    input_report_key(dev, 264U, __cil_tmp113);
2840#line 137
2841    __cil_tmp114 = data + 1UL;
2842#line 137
2843    __cil_tmp115 = *__cil_tmp114;
2844#line 137
2845    __cil_tmp116 = (int )__cil_tmp115;
2846#line 137
2847    __cil_tmp117 = __cil_tmp116 & 2;
2848#line 137
2849    input_report_key(dev, 265U, __cil_tmp117);
2850#line 138
2851    __cil_tmp118 = data + 1UL;
2852#line 138
2853    __cil_tmp119 = *__cil_tmp118;
2854#line 138
2855    __cil_tmp120 = (int )__cil_tmp119;
2856#line 138
2857    __cil_tmp121 = __cil_tmp120 & 4;
2858#line 138
2859    input_report_key(dev, 304U, __cil_tmp121);
2860#line 139
2861    __cil_tmp122 = data + 1UL;
2862#line 139
2863    __cil_tmp123 = *__cil_tmp122;
2864#line 139
2865    __cil_tmp124 = (int )__cil_tmp123;
2866#line 139
2867    __cil_tmp125 = __cil_tmp124 & 8;
2868#line 139
2869    input_report_key(dev, 305U, __cil_tmp125);
2870#line 140
2871    __cil_tmp126 = data + 1UL;
2872#line 140
2873    __cil_tmp127 = *__cil_tmp126;
2874#line 140
2875    __cil_tmp128 = (int )__cil_tmp127;
2876#line 140
2877    __cil_tmp129 = __cil_tmp128 & 16;
2878#line 140
2879    input_report_key(dev, 306U, __cil_tmp129);
2880#line 141
2881    __cil_tmp130 = data + 1UL;
2882#line 141
2883    __cil_tmp131 = *__cil_tmp130;
2884#line 141
2885    __cil_tmp132 = (int )__cil_tmp131;
2886#line 141
2887    __cil_tmp133 = __cil_tmp132 & 32;
2888#line 141
2889    input_report_key(dev, 316U, __cil_tmp133);
2890    }
2891#line 142
2892    goto ldv_20734;
2893    case_69: /* CIL Label */ 
2894    {
2895#line 145
2896    __cil_tmp134 = (unsigned long )spaceball;
2897#line 145
2898    __cil_tmp135 = __cil_tmp134 + 8;
2899#line 145
2900    __cil_tmp136 = *((int *)__cil_tmp135);
2901#line 145
2902    __cil_tmp137 = __cil_tmp136 + -1;
2903#line 145
2904    __cil_tmp138 = __cil_tmp137 * 1UL;
2905#line 145
2906    __cil_tmp139 = 16 + __cil_tmp138;
2907#line 145
2908    __cil_tmp140 = (unsigned long )spaceball;
2909#line 145
2910    __cil_tmp141 = __cil_tmp140 + __cil_tmp139;
2911#line 145
2912    *((unsigned char *)__cil_tmp141) = (unsigned char)0;
2913#line 146
2914    __cil_tmp142 = (unsigned long )spaceball;
2915#line 146
2916    __cil_tmp143 = __cil_tmp142 + 16;
2917#line 146
2918    __cil_tmp144 = (unsigned char (*)[128U])__cil_tmp143;
2919#line 146
2920    __cil_tmp145 = (unsigned char *)__cil_tmp144;
2921#line 146
2922    __cil_tmp146 = __cil_tmp145 + 1UL;
2923#line 146
2924    printk("<3>spaceball: Device error. [%s]\n", __cil_tmp146);
2925    }
2926#line 147
2927    goto ldv_20734;
2928    case_63: /* CIL Label */ 
2929    {
2930#line 150
2931    __cil_tmp147 = (unsigned long )spaceball;
2932#line 150
2933    __cil_tmp148 = __cil_tmp147 + 8;
2934#line 150
2935    __cil_tmp149 = *((int *)__cil_tmp148);
2936#line 150
2937    __cil_tmp150 = __cil_tmp149 + -1;
2938#line 150
2939    __cil_tmp151 = __cil_tmp150 * 1UL;
2940#line 150
2941    __cil_tmp152 = 16 + __cil_tmp151;
2942#line 150
2943    __cil_tmp153 = (unsigned long )spaceball;
2944#line 150
2945    __cil_tmp154 = __cil_tmp153 + __cil_tmp152;
2946#line 150
2947    *((unsigned char *)__cil_tmp154) = (unsigned char)0;
2948#line 151
2949    __cil_tmp155 = (unsigned long )spaceball;
2950#line 151
2951    __cil_tmp156 = __cil_tmp155 + 16;
2952#line 151
2953    __cil_tmp157 = (unsigned char (*)[128U])__cil_tmp156;
2954#line 151
2955    __cil_tmp158 = (unsigned char *)__cil_tmp157;
2956#line 151
2957    __cil_tmp159 = __cil_tmp158 + 1UL;
2958#line 151
2959    printk("<3>spaceball: Bad command. [%s]\n", __cil_tmp159);
2960    }
2961#line 152
2962    goto ldv_20734;
2963  } else {
2964    switch_break: /* CIL Label */ ;
2965  }
2966  }
2967  ldv_20734: 
2968  {
2969#line 155
2970  input_sync(dev);
2971  }
2972#line 156
2973  return;
2974}
2975}
2976#line 164 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
2977static irqreturn_t spaceball_interrupt(struct serio *serio , unsigned char data ,
2978                                       unsigned int flags ) 
2979{ struct spaceball *spaceball ;
2980  void *tmp ;
2981  int tmp___0 ;
2982  unsigned long __cil_tmp7 ;
2983  unsigned long __cil_tmp8 ;
2984  unsigned long __cil_tmp9 ;
2985  unsigned long __cil_tmp10 ;
2986  unsigned long __cil_tmp11 ;
2987  unsigned long __cil_tmp12 ;
2988  int __cil_tmp13 ;
2989  unsigned long __cil_tmp14 ;
2990  unsigned long __cil_tmp15 ;
2991  unsigned long __cil_tmp16 ;
2992  unsigned long __cil_tmp17 ;
2993  unsigned long __cil_tmp18 ;
2994  unsigned long __cil_tmp19 ;
2995  int __cil_tmp20 ;
2996  unsigned long __cil_tmp21 ;
2997  unsigned long __cil_tmp22 ;
2998  unsigned int __cil_tmp23 ;
2999  unsigned int __cil_tmp24 ;
3000  unsigned long __cil_tmp25 ;
3001  unsigned long __cil_tmp26 ;
3002  int __cil_tmp27 ;
3003  unsigned long __cil_tmp28 ;
3004  unsigned long __cil_tmp29 ;
3005  unsigned long __cil_tmp30 ;
3006  unsigned long __cil_tmp31 ;
3007  int __cil_tmp32 ;
3008  unsigned long __cil_tmp33 ;
3009  unsigned long __cil_tmp34 ;
3010  unsigned long __cil_tmp35 ;
3011  unsigned long __cil_tmp36 ;
3012  unsigned long __cil_tmp37 ;
3013  unsigned long __cil_tmp38 ;
3014  int __cil_tmp39 ;
3015  unsigned long __cil_tmp40 ;
3016  unsigned long __cil_tmp41 ;
3017  unsigned long __cil_tmp42 ;
3018  unsigned long __cil_tmp43 ;
3019
3020  {
3021  {
3022#line 167
3023  tmp = serio_get_drvdata(serio);
3024#line 167
3025  spaceball = (struct spaceball *)tmp;
3026  }
3027#line 170
3028  if ((int )data == 13) {
3029#line 170
3030    goto case_13;
3031  } else
3032#line 175
3033  if ((int )data == 94) {
3034#line 175
3035    goto case_94;
3036  } else
3037#line 181
3038  if ((int )data == 77) {
3039#line 181
3040    goto case_77;
3041  } else
3042#line 182
3043  if ((int )data == 81) {
3044#line 182
3045    goto case_81;
3046  } else
3047#line 183
3048  if ((int )data == 83) {
3049#line 183
3050    goto case_83;
3051  } else {
3052    {
3053#line 188
3054    goto switch_default;
3055#line 169
3056    if (0) {
3057      case_13: /* CIL Label */ 
3058      {
3059#line 171
3060      spaceball_process_packet(spaceball);
3061#line 172
3062      __cil_tmp7 = (unsigned long )spaceball;
3063#line 172
3064      __cil_tmp8 = __cil_tmp7 + 8;
3065#line 172
3066      *((int *)__cil_tmp8) = 0;
3067#line 173
3068      __cil_tmp9 = (unsigned long )spaceball;
3069#line 173
3070      __cil_tmp10 = __cil_tmp9 + 12;
3071#line 173
3072      *((int *)__cil_tmp10) = 0;
3073      }
3074#line 174
3075      goto ldv_20746;
3076      case_94: /* CIL Label */ ;
3077      {
3078#line 176
3079      __cil_tmp11 = (unsigned long )spaceball;
3080#line 176
3081      __cil_tmp12 = __cil_tmp11 + 12;
3082#line 176
3083      __cil_tmp13 = *((int *)__cil_tmp12);
3084#line 176
3085      if (__cil_tmp13 == 0) {
3086#line 177
3087        __cil_tmp14 = (unsigned long )spaceball;
3088#line 177
3089        __cil_tmp15 = __cil_tmp14 + 12;
3090#line 177
3091        *((int *)__cil_tmp15) = 1;
3092#line 178
3093        goto ldv_20746;
3094      } else {
3095
3096      }
3097      }
3098#line 180
3099      __cil_tmp16 = (unsigned long )spaceball;
3100#line 180
3101      __cil_tmp17 = __cil_tmp16 + 12;
3102#line 180
3103      *((int *)__cil_tmp17) = 0;
3104      case_77: /* CIL Label */ ;
3105      case_81: /* CIL Label */ ;
3106      case_83: /* CIL Label */ ;
3107      {
3108#line 184
3109      __cil_tmp18 = (unsigned long )spaceball;
3110#line 184
3111      __cil_tmp19 = __cil_tmp18 + 12;
3112#line 184
3113      __cil_tmp20 = *((int *)__cil_tmp19);
3114#line 184
3115      if (__cil_tmp20 != 0) {
3116#line 185
3117        __cil_tmp21 = (unsigned long )spaceball;
3118#line 185
3119        __cil_tmp22 = __cil_tmp21 + 12;
3120#line 185
3121        *((int *)__cil_tmp22) = 0;
3122#line 186
3123        __cil_tmp23 = (unsigned int )data;
3124#line 186
3125        __cil_tmp24 = __cil_tmp23 & 31U;
3126#line 186
3127        data = (unsigned char )__cil_tmp24;
3128      } else {
3129
3130      }
3131      }
3132      switch_default: /* CIL Label */ ;
3133      {
3134#line 189
3135      __cil_tmp25 = (unsigned long )spaceball;
3136#line 189
3137      __cil_tmp26 = __cil_tmp25 + 12;
3138#line 189
3139      __cil_tmp27 = *((int *)__cil_tmp26);
3140#line 189
3141      if (__cil_tmp27 != 0) {
3142#line 190
3143        __cil_tmp28 = (unsigned long )spaceball;
3144#line 190
3145        __cil_tmp29 = __cil_tmp28 + 12;
3146#line 190
3147        *((int *)__cil_tmp29) = 0;
3148      } else {
3149
3150      }
3151      }
3152      {
3153#line 191
3154      __cil_tmp30 = (unsigned long )spaceball;
3155#line 191
3156      __cil_tmp31 = __cil_tmp30 + 8;
3157#line 191
3158      __cil_tmp32 = *((int *)__cil_tmp31);
3159#line 191
3160      if (__cil_tmp32 <= 127) {
3161#line 192
3162        __cil_tmp33 = (unsigned long )spaceball;
3163#line 192
3164        __cil_tmp34 = __cil_tmp33 + 8;
3165#line 192
3166        tmp___0 = *((int *)__cil_tmp34);
3167#line 192
3168        __cil_tmp35 = (unsigned long )spaceball;
3169#line 192
3170        __cil_tmp36 = __cil_tmp35 + 8;
3171#line 192
3172        __cil_tmp37 = (unsigned long )spaceball;
3173#line 192
3174        __cil_tmp38 = __cil_tmp37 + 8;
3175#line 192
3176        __cil_tmp39 = *((int *)__cil_tmp38);
3177#line 192
3178        *((int *)__cil_tmp36) = __cil_tmp39 + 1;
3179#line 192
3180        __cil_tmp40 = tmp___0 * 1UL;
3181#line 192
3182        __cil_tmp41 = 16 + __cil_tmp40;
3183#line 192
3184        __cil_tmp42 = (unsigned long )spaceball;
3185#line 192
3186        __cil_tmp43 = __cil_tmp42 + __cil_tmp41;
3187#line 192
3188        *((unsigned char *)__cil_tmp43) = data;
3189      } else {
3190
3191      }
3192      }
3193#line 193
3194      goto ldv_20746;
3195    } else {
3196      switch_break: /* CIL Label */ ;
3197    }
3198    }
3199  }
3200  ldv_20746: ;
3201#line 195
3202  return ((irqreturn_t )1);
3203}
3204}
3205#line 202 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3206static void spaceball_disconnect(struct serio *serio ) 
3207{ struct spaceball *spaceball ;
3208  void *tmp ;
3209  void *__cil_tmp4 ;
3210  struct input_dev *__cil_tmp5 ;
3211  void const   *__cil_tmp6 ;
3212
3213  {
3214  {
3215#line 204
3216  tmp = serio_get_drvdata(serio);
3217#line 204
3218  spaceball = (struct spaceball *)tmp;
3219#line 206
3220  serio_close(serio);
3221#line 207
3222  __cil_tmp4 = (void *)0;
3223#line 207
3224  serio_set_drvdata(serio, __cil_tmp4);
3225#line 208
3226  __cil_tmp5 = *((struct input_dev **)spaceball);
3227#line 208
3228  input_unregister_device(__cil_tmp5);
3229#line 209
3230  __cil_tmp6 = (void const   *)spaceball;
3231#line 209
3232  kfree(__cil_tmp6);
3233  }
3234#line 210
3235  return;
3236}
3237}
3238#line 218 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3239static int spaceball_connect(struct serio *serio , struct serio_driver *drv ) 
3240{ struct spaceball *spaceball ;
3241  struct input_dev *input_dev ;
3242  int err ;
3243  int i ;
3244  int id ;
3245  void *tmp ;
3246  unsigned long __cil_tmp9 ;
3247  unsigned long __cil_tmp10 ;
3248  unsigned long __cil_tmp11 ;
3249  __u8 __cil_tmp12 ;
3250  struct spaceball *__cil_tmp13 ;
3251  unsigned long __cil_tmp14 ;
3252  unsigned long __cil_tmp15 ;
3253  struct input_dev *__cil_tmp16 ;
3254  unsigned long __cil_tmp17 ;
3255  unsigned long __cil_tmp18 ;
3256  unsigned long __cil_tmp19 ;
3257  unsigned long __cil_tmp20 ;
3258  char (*__cil_tmp21)[32U] ;
3259  char *__cil_tmp22 ;
3260  unsigned long __cil_tmp23 ;
3261  unsigned long __cil_tmp24 ;
3262  char (*__cil_tmp25)[32U] ;
3263  char *__cil_tmp26 ;
3264  unsigned long __cil_tmp27 ;
3265  unsigned long __cil_tmp28 ;
3266  char *__cil_tmp29 ;
3267  unsigned long __cil_tmp30 ;
3268  unsigned long __cil_tmp31 ;
3269  unsigned long __cil_tmp32 ;
3270  unsigned long __cil_tmp33 ;
3271  char (*__cil_tmp34)[32U] ;
3272  unsigned long __cil_tmp35 ;
3273  unsigned long __cil_tmp36 ;
3274  unsigned long __cil_tmp37 ;
3275  unsigned long __cil_tmp38 ;
3276  unsigned long __cil_tmp39 ;
3277  unsigned long __cil_tmp40 ;
3278  unsigned long __cil_tmp41 ;
3279  unsigned long __cil_tmp42 ;
3280  unsigned long __cil_tmp43 ;
3281  unsigned long __cil_tmp44 ;
3282  unsigned long __cil_tmp45 ;
3283  unsigned long __cil_tmp46 ;
3284  unsigned long __cil_tmp47 ;
3285  unsigned long __cil_tmp48 ;
3286  unsigned long __cil_tmp49 ;
3287  unsigned long __cil_tmp50 ;
3288  unsigned long __cil_tmp51 ;
3289  unsigned long __cil_tmp52 ;
3290  unsigned long __cil_tmp53 ;
3291  unsigned long __cil_tmp54 ;
3292  unsigned long __cil_tmp55 ;
3293  unsigned long __cil_tmp56 ;
3294  unsigned long __cil_tmp57 ;
3295  unsigned long __cil_tmp58 ;
3296  unsigned long __cil_tmp59 ;
3297  unsigned long __cil_tmp60 ;
3298  unsigned long __cil_tmp61 ;
3299  unsigned long __cil_tmp62 ;
3300  unsigned long __cil_tmp63 ;
3301  unsigned long __cil_tmp64 ;
3302  unsigned long __cil_tmp65 ;
3303  unsigned long __cil_tmp66 ;
3304  unsigned long __cil_tmp67 ;
3305  unsigned long __cil_tmp68 ;
3306  unsigned long __cil_tmp69 ;
3307  unsigned long __cil_tmp70 ;
3308  unsigned long __cil_tmp71 ;
3309  unsigned long __cil_tmp72 ;
3310  unsigned long __cil_tmp73 ;
3311  unsigned long __cil_tmp74 ;
3312  unsigned long __cil_tmp75 ;
3313  unsigned long __cil_tmp76 ;
3314  unsigned long __cil_tmp77 ;
3315  unsigned long __cil_tmp78 ;
3316  unsigned long __cil_tmp79 ;
3317  unsigned long __cil_tmp80 ;
3318  unsigned long __cil_tmp81 ;
3319  unsigned long __cil_tmp82 ;
3320  unsigned long __cil_tmp83 ;
3321  unsigned long __cil_tmp84 ;
3322  unsigned long __cil_tmp85 ;
3323  unsigned long __cil_tmp86 ;
3324  unsigned long __cil_tmp87 ;
3325  unsigned long __cil_tmp88 ;
3326  unsigned long __cil_tmp89 ;
3327  unsigned int __cil_tmp90 ;
3328  int __cil_tmp91 ;
3329  unsigned int __cil_tmp92 ;
3330  void *__cil_tmp93 ;
3331  struct input_dev *__cil_tmp94 ;
3332  void *__cil_tmp95 ;
3333  void const   *__cil_tmp96 ;
3334
3335  {
3336#line 222
3337  err = -12;
3338#line 225
3339  __cil_tmp9 = 73 + 2;
3340#line 225
3341  __cil_tmp10 = (unsigned long )serio;
3342#line 225
3343  __cil_tmp11 = __cil_tmp10 + __cil_tmp9;
3344#line 225
3345  __cil_tmp12 = *((__u8 *)__cil_tmp11);
3346#line 225
3347  id = (int )__cil_tmp12;
3348#line 225
3349  if (id > 9) {
3350#line 226
3351    return (-19);
3352  } else {
3353
3354  }
3355  {
3356#line 228
3357  tmp = kmalloc(176UL, 208U);
3358#line 228
3359  spaceball = (struct spaceball *)tmp;
3360#line 229
3361  input_dev = input_allocate_device();
3362  }
3363  {
3364#line 230
3365  __cil_tmp13 = (struct spaceball *)0;
3366#line 230
3367  __cil_tmp14 = (unsigned long )__cil_tmp13;
3368#line 230
3369  __cil_tmp15 = (unsigned long )spaceball;
3370#line 230
3371  if (__cil_tmp15 == __cil_tmp14) {
3372#line 231
3373    goto fail1;
3374  } else {
3375    {
3376#line 230
3377    __cil_tmp16 = (struct input_dev *)0;
3378#line 230
3379    __cil_tmp17 = (unsigned long )__cil_tmp16;
3380#line 230
3381    __cil_tmp18 = (unsigned long )input_dev;
3382#line 230
3383    if (__cil_tmp18 == __cil_tmp17) {
3384#line 231
3385      goto fail1;
3386    } else {
3387
3388    }
3389    }
3390  }
3391  }
3392  {
3393#line 233
3394  *((struct input_dev **)spaceball) = input_dev;
3395#line 234
3396  __cil_tmp19 = (unsigned long )spaceball;
3397#line 234
3398  __cil_tmp20 = __cil_tmp19 + 144;
3399#line 234
3400  __cil_tmp21 = (char (*)[32U])__cil_tmp20;
3401#line 234
3402  __cil_tmp22 = (char *)__cil_tmp21;
3403#line 234
3404  __cil_tmp23 = (unsigned long )serio;
3405#line 234
3406  __cil_tmp24 = __cil_tmp23 + 40;
3407#line 234
3408  __cil_tmp25 = (char (*)[32U])__cil_tmp24;
3409#line 234
3410  __cil_tmp26 = (char *)__cil_tmp25;
3411#line 234
3412  snprintf(__cil_tmp22, 32UL, "%s/input0", __cil_tmp26);
3413#line 236
3414  __cil_tmp27 = id * 8UL;
3415#line 236
3416  __cil_tmp28 = (unsigned long )(spaceball_names) + __cil_tmp27;
3417#line 236
3418  __cil_tmp29 = *((char **)__cil_tmp28);
3419#line 236
3420  *((char const   **)input_dev) = (char const   *)__cil_tmp29;
3421#line 237
3422  __cil_tmp30 = (unsigned long )input_dev;
3423#line 237
3424  __cil_tmp31 = __cil_tmp30 + 8;
3425#line 237
3426  __cil_tmp32 = (unsigned long )spaceball;
3427#line 237
3428  __cil_tmp33 = __cil_tmp32 + 144;
3429#line 237
3430  __cil_tmp34 = (char (*)[32U])__cil_tmp33;
3431#line 237
3432  *((char const   **)__cil_tmp31) = (char const   *)__cil_tmp34;
3433#line 238
3434  __cil_tmp35 = (unsigned long )input_dev;
3435#line 238
3436  __cil_tmp36 = __cil_tmp35 + 24;
3437#line 238
3438  *((__u16 *)__cil_tmp36) = (__u16 )19U;
3439#line 239
3440  __cil_tmp37 = 24 + 2;
3441#line 239
3442  __cil_tmp38 = (unsigned long )input_dev;
3443#line 239
3444  __cil_tmp39 = __cil_tmp38 + __cil_tmp37;
3445#line 239
3446  *((__u16 *)__cil_tmp39) = (__u16 )27U;
3447#line 240
3448  __cil_tmp40 = 24 + 4;
3449#line 240
3450  __cil_tmp41 = (unsigned long )input_dev;
3451#line 240
3452  __cil_tmp42 = __cil_tmp41 + __cil_tmp40;
3453#line 240
3454  *((__u16 *)__cil_tmp42) = (__u16 )id;
3455#line 241
3456  __cil_tmp43 = 24 + 6;
3457#line 241
3458  __cil_tmp44 = (unsigned long )input_dev;
3459#line 241
3460  __cil_tmp45 = __cil_tmp44 + __cil_tmp43;
3461#line 241
3462  *((__u16 *)__cil_tmp45) = (__u16 )256U;
3463#line 242
3464  __cil_tmp46 = (unsigned long )input_dev;
3465#line 242
3466  __cil_tmp47 = __cil_tmp46 + 840;
3467#line 242
3468  __cil_tmp48 = (unsigned long )serio;
3469#line 242
3470  __cil_tmp49 = __cil_tmp48 + 416;
3471#line 242
3472  *((struct device **)__cil_tmp47) = (struct device *)__cil_tmp49;
3473#line 244
3474  __cil_tmp50 = 0 * 8UL;
3475#line 244
3476  __cil_tmp51 = 40 + __cil_tmp50;
3477#line 244
3478  __cil_tmp52 = (unsigned long )input_dev;
3479#line 244
3480  __cil_tmp53 = __cil_tmp52 + __cil_tmp51;
3481#line 244
3482  *((unsigned long *)__cil_tmp53) = 10UL;
3483  }
3484#line 247
3485  if (id == 8) {
3486#line 247
3487    goto case_8;
3488  } else
3489#line 248
3490  if (id == 9) {
3491#line 248
3492    goto case_9;
3493  } else
3494#line 258
3495  if (id == 7) {
3496#line 258
3497    goto case_7;
3498  } else {
3499    {
3500#line 253
3501    goto switch_default;
3502#line 246
3503    if (0) {
3504      case_8: /* CIL Label */ ;
3505      case_9: /* CIL Label */ 
3506#line 249
3507      __cil_tmp54 = 4 * 8UL;
3508#line 249
3509      __cil_tmp55 = 48 + __cil_tmp54;
3510#line 249
3511      __cil_tmp56 = (unsigned long )input_dev;
3512#line 249
3513      __cil_tmp57 = __cil_tmp56 + __cil_tmp55;
3514#line 249
3515      __cil_tmp58 = 4 * 8UL;
3516#line 249
3517      __cil_tmp59 = 48 + __cil_tmp58;
3518#line 249
3519      __cil_tmp60 = (unsigned long )input_dev;
3520#line 249
3521      __cil_tmp61 = __cil_tmp60 + __cil_tmp59;
3522#line 249
3523      __cil_tmp62 = *((unsigned long *)__cil_tmp61);
3524#line 249
3525      *((unsigned long *)__cil_tmp57) = __cil_tmp62 | 512UL;
3526#line 250
3527      __cil_tmp63 = 4 * 8UL;
3528#line 250
3529      __cil_tmp64 = 48 + __cil_tmp63;
3530#line 250
3531      __cil_tmp65 = (unsigned long )input_dev;
3532#line 250
3533      __cil_tmp66 = __cil_tmp65 + __cil_tmp64;
3534#line 250
3535      __cil_tmp67 = 4 * 8UL;
3536#line 250
3537      __cil_tmp68 = 48 + __cil_tmp67;
3538#line 250
3539      __cil_tmp69 = (unsigned long )input_dev;
3540#line 250
3541      __cil_tmp70 = __cil_tmp69 + __cil_tmp68;
3542#line 250
3543      __cil_tmp71 = *((unsigned long *)__cil_tmp70);
3544#line 250
3545      *((unsigned long *)__cil_tmp66) = __cil_tmp71 | 1154891829443821568UL;
3546      switch_default: /* CIL Label */ 
3547#line 254
3548      __cil_tmp72 = 4 * 8UL;
3549#line 254
3550      __cil_tmp73 = 48 + __cil_tmp72;
3551#line 254
3552      __cil_tmp74 = (unsigned long )input_dev;
3553#line 254
3554      __cil_tmp75 = __cil_tmp74 + __cil_tmp73;
3555#line 254
3556      __cil_tmp76 = 4 * 8UL;
3557#line 254
3558      __cil_tmp77 = 48 + __cil_tmp76;
3559#line 254
3560      __cil_tmp78 = (unsigned long )input_dev;
3561#line 254
3562      __cil_tmp79 = __cil_tmp78 + __cil_tmp77;
3563#line 254
3564      __cil_tmp80 = *((unsigned long *)__cil_tmp79);
3565#line 254
3566      *((unsigned long *)__cil_tmp75) = __cil_tmp80 | 508UL;
3567      case_7: /* CIL Label */ 
3568#line 259
3569      __cil_tmp81 = 4 * 8UL;
3570#line 259
3571      __cil_tmp82 = 48 + __cil_tmp81;
3572#line 259
3573      __cil_tmp83 = (unsigned long )input_dev;
3574#line 259
3575      __cil_tmp84 = __cil_tmp83 + __cil_tmp82;
3576#line 259
3577      __cil_tmp85 = 4 * 8UL;
3578#line 259
3579      __cil_tmp86 = 48 + __cil_tmp85;
3580#line 259
3581      __cil_tmp87 = (unsigned long )input_dev;
3582#line 259
3583      __cil_tmp88 = __cil_tmp87 + __cil_tmp86;
3584#line 259
3585      __cil_tmp89 = *((unsigned long *)__cil_tmp88);
3586#line 259
3587      *((unsigned long *)__cil_tmp84) = __cil_tmp89 | 258UL;
3588    } else {
3589      switch_break: /* CIL Label */ ;
3590    }
3591    }
3592  }
3593#line 263
3594  i = 0;
3595#line 263
3596  goto ldv_20771;
3597  ldv_20770: 
3598  {
3599#line 264
3600  __cil_tmp90 = (unsigned int )i;
3601#line 264
3602  input_set_abs_params(input_dev, __cil_tmp90, -8000, 8000, 8, 40);
3603#line 265
3604  __cil_tmp91 = i + 3;
3605#line 265
3606  __cil_tmp92 = (unsigned int )__cil_tmp91;
3607#line 265
3608  input_set_abs_params(input_dev, __cil_tmp92, -1600, 1600, 2, 8);
3609#line 263
3610  i = i + 1;
3611  }
3612  ldv_20771: ;
3613#line 263
3614  if (i <= 2) {
3615#line 264
3616    goto ldv_20770;
3617  } else {
3618#line 266
3619    goto ldv_20772;
3620  }
3621  ldv_20772: 
3622  {
3623#line 268
3624  __cil_tmp93 = (void *)spaceball;
3625#line 268
3626  serio_set_drvdata(serio, __cil_tmp93);
3627#line 270
3628  err = serio_open(serio, drv);
3629  }
3630#line 271
3631  if (err != 0) {
3632#line 272
3633    goto fail2;
3634  } else {
3635
3636  }
3637  {
3638#line 274
3639  __cil_tmp94 = *((struct input_dev **)spaceball);
3640#line 274
3641  err = input_register_device(__cil_tmp94);
3642  }
3643#line 275
3644  if (err != 0) {
3645#line 276
3646    goto fail3;
3647  } else {
3648
3649  }
3650#line 278
3651  return (0);
3652  fail3: 
3653  {
3654#line 280
3655  serio_close(serio);
3656  }
3657  fail2: 
3658  {
3659#line 281
3660  __cil_tmp95 = (void *)0;
3661#line 281
3662  serio_set_drvdata(serio, __cil_tmp95);
3663  }
3664  fail1: 
3665  {
3666#line 282
3667  input_free_device(input_dev);
3668#line 283
3669  __cil_tmp96 = (void const   *)spaceball;
3670#line 283
3671  kfree(__cil_tmp96);
3672  }
3673#line 284
3674  return (err);
3675}
3676}
3677#line 291 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3678static struct serio_device_id spaceball_serio_ids[2U]  = {      {(__u8 )2U, (__u8 )255U, (__u8 )255U, (__u8 )27U}, 
3679        {(__u8 )0U, (unsigned char)0, (unsigned char)0, (unsigned char)0}};
3680#line 301 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3681struct serio_device_id  const  __mod_serio_device_table  ;
3682#line 303 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3683static struct serio_driver spaceball_drv  = 
3684#line 303
3685     {"SpaceTec SpaceBall 2003/3003/4000 FLX driver", (struct serio_device_id  const  *)(& spaceball_serio_ids),
3686    (_Bool)0, (void (*)(struct serio * ))0, & spaceball_interrupt, & spaceball_connect,
3687    (int (*)(struct serio * ))0, & spaceball_disconnect, (void (*)(struct serio * ))0,
3688    {"spaceball", (struct bus_type *)0, (struct module *)0, (char const   *)0, (_Bool)0,
3689     (struct of_device_id  const  *)0, (int (*)(struct device * ))0, (int (*)(struct device * ))0,
3690     (void (*)(struct device * ))0, (int (*)(struct device * , pm_message_t  ))0,
3691     (int (*)(struct device * ))0, (struct attribute_group  const  **)0, (struct dev_pm_ops  const  *)0,
3692     (struct driver_private *)0}};
3693#line 318 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3694static int spaceball_init(void) 
3695{ int tmp ;
3696
3697  {
3698  {
3699#line 320
3700  tmp = __serio_register_driver(& spaceball_drv, & __this_module, "spaceball");
3701  }
3702#line 320
3703  return (tmp);
3704}
3705}
3706#line 323 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3707static void spaceball_exit(void) 
3708{ 
3709
3710  {
3711  {
3712#line 325
3713  serio_unregister_driver(& spaceball_drv);
3714  }
3715#line 326
3716  return;
3717}
3718}
3719#line 347
3720extern void ldv_check_final_state(void) ;
3721#line 350
3722extern void ldv_check_return_value(int  ) ;
3723#line 353
3724extern void ldv_initialize(void) ;
3725#line 356
3726extern int __VERIFIER_nondet_int(void) ;
3727#line 359 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3728int LDV_IN_INTERRUPT  ;
3729#line 362 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3730void main(void) 
3731{ struct serio *var_group1 ;
3732  unsigned char var_spaceball_interrupt_1_p1 ;
3733  unsigned int var_spaceball_interrupt_1_p2 ;
3734  struct serio_driver *var_group2 ;
3735  int res_spaceball_connect_3 ;
3736  int ldv_s_spaceball_drv_serio_driver ;
3737  int tmp ;
3738  int tmp___0 ;
3739  int tmp___1 ;
3740  int __cil_tmp10 ;
3741  unsigned char __cil_tmp11 ;
3742
3743  {
3744  {
3745#line 449
3746  ldv_s_spaceball_drv_serio_driver = 0;
3747#line 422
3748  LDV_IN_INTERRUPT = 1;
3749#line 431
3750  ldv_initialize();
3751#line 447
3752  tmp = spaceball_init();
3753  }
3754#line 447
3755  if (tmp != 0) {
3756#line 448
3757    goto ldv_final;
3758  } else {
3759
3760  }
3761#line 453
3762  goto ldv_20820;
3763  ldv_20819: 
3764  {
3765#line 457
3766  tmp___0 = __VERIFIER_nondet_int();
3767  }
3768#line 459
3769  if (tmp___0 == 0) {
3770#line 459
3771    goto case_0;
3772  } else
3773#line 488
3774  if (tmp___0 == 1) {
3775#line 488
3776    goto case_1;
3777  } else
3778#line 514
3779  if (tmp___0 == 2) {
3780#line 514
3781    goto case_2;
3782  } else {
3783    {
3784#line 540
3785    goto switch_default;
3786#line 457
3787    if (0) {
3788      case_0: /* CIL Label */ ;
3789#line 462
3790      if (ldv_s_spaceball_drv_serio_driver == 0) {
3791        {
3792#line 477
3793        res_spaceball_connect_3 = spaceball_connect(var_group1, var_group2);
3794#line 478
3795        ldv_check_return_value(res_spaceball_connect_3);
3796        }
3797#line 479
3798        if (res_spaceball_connect_3 != 0) {
3799#line 480
3800          goto ldv_module_exit;
3801        } else {
3802
3803        }
3804#line 481
3805        ldv_s_spaceball_drv_serio_driver = ldv_s_spaceball_drv_serio_driver + 1;
3806      } else {
3807
3808      }
3809#line 487
3810      goto ldv_20815;
3811      case_1: /* CIL Label */ ;
3812#line 491
3813      if (ldv_s_spaceball_drv_serio_driver == 1) {
3814        {
3815#line 506
3816        spaceball_disconnect(var_group1);
3817#line 507
3818        ldv_s_spaceball_drv_serio_driver = 0;
3819        }
3820      } else {
3821
3822      }
3823#line 513
3824      goto ldv_20815;
3825      case_2: /* CIL Label */ 
3826      {
3827#line 532
3828      __cil_tmp10 = (int )var_spaceball_interrupt_1_p1;
3829#line 532
3830      __cil_tmp11 = (unsigned char )__cil_tmp10;
3831#line 532
3832      spaceball_interrupt(var_group1, __cil_tmp11, var_spaceball_interrupt_1_p2);
3833      }
3834#line 539
3835      goto ldv_20815;
3836      switch_default: /* CIL Label */ ;
3837#line 540
3838      goto ldv_20815;
3839    } else {
3840      switch_break: /* CIL Label */ ;
3841    }
3842    }
3843  }
3844  ldv_20815: ;
3845  ldv_20820: 
3846  {
3847#line 453
3848  tmp___1 = __VERIFIER_nondet_int();
3849  }
3850#line 453
3851  if (tmp___1 != 0) {
3852#line 455
3853    goto ldv_20819;
3854  } else
3855#line 453
3856  if (ldv_s_spaceball_drv_serio_driver != 0) {
3857#line 455
3858    goto ldv_20819;
3859  } else {
3860#line 457
3861    goto ldv_20821;
3862  }
3863  ldv_20821: ;
3864  ldv_module_exit: 
3865  {
3866#line 562
3867  spaceball_exit();
3868  }
3869  ldv_final: 
3870  {
3871#line 565
3872  ldv_check_final_state();
3873  }
3874#line 568
3875  return;
3876}
3877}
3878#line 5 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/kernel-rules/files/engine-blast-assert.h"
3879void ldv_blast_assert(void) 
3880{ 
3881
3882  {
3883  ERROR: ;
3884#line 6
3885  goto ERROR;
3886}
3887}
3888#line 6 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/kernel-rules/files/engine-blast.h"
3889extern int __VERIFIER_nondet_int(void) ;
3890#line 589 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3891int ldv_spin  =    0;
3892#line 593 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3893void ldv_check_alloc_flags(gfp_t flags ) 
3894{ 
3895
3896  {
3897#line 596
3898  if (ldv_spin != 0) {
3899#line 596
3900    if (flags != 32U) {
3901      {
3902#line 596
3903      ldv_blast_assert();
3904      }
3905    } else {
3906
3907    }
3908  } else {
3909
3910  }
3911#line 599
3912  return;
3913}
3914}
3915#line 599
3916extern struct page *ldv_some_page(void) ;
3917#line 602 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3918struct page *ldv_check_alloc_flags_and_return_some_page(gfp_t flags ) 
3919{ struct page *tmp ;
3920
3921  {
3922#line 605
3923  if (ldv_spin != 0) {
3924#line 605
3925    if (flags != 32U) {
3926      {
3927#line 605
3928      ldv_blast_assert();
3929      }
3930    } else {
3931
3932    }
3933  } else {
3934
3935  }
3936  {
3937#line 607
3938  tmp = ldv_some_page();
3939  }
3940#line 607
3941  return (tmp);
3942}
3943}
3944#line 611 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3945void ldv_check_alloc_nonatomic(void) 
3946{ 
3947
3948  {
3949#line 614
3950  if (ldv_spin != 0) {
3951    {
3952#line 614
3953    ldv_blast_assert();
3954    }
3955  } else {
3956
3957  }
3958#line 617
3959  return;
3960}
3961}
3962#line 618 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3963void ldv_spin_lock(void) 
3964{ 
3965
3966  {
3967#line 621
3968  ldv_spin = 1;
3969#line 622
3970  return;
3971}
3972}
3973#line 625 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3974void ldv_spin_unlock(void) 
3975{ 
3976
3977  {
3978#line 628
3979  ldv_spin = 0;
3980#line 629
3981  return;
3982}
3983}
3984#line 632 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
3985int ldv_spin_trylock(void) 
3986{ int is_lock ;
3987
3988  {
3989  {
3990#line 637
3991  is_lock = __VERIFIER_nondet_int();
3992  }
3993#line 639
3994  if (is_lock != 0) {
3995#line 642
3996    return (0);
3997  } else {
3998#line 647
3999    ldv_spin = 1;
4000#line 649
4001    return (1);
4002  }
4003}
4004}
4005#line 771 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
4006__inline static void *kmalloc(size_t size , gfp_t flags ) 
4007{ 
4008
4009  {
4010  {
4011#line 777
4012  ldv_check_alloc_flags(flags);
4013#line 779
4014  ldv_kmalloc_12(size, flags);
4015  }
4016#line 780
4017  return ((void *)0);
4018}
4019}
4020#line 816 "/home/zakharov/launch/work/current--X--drivers/--X--defaultlinux-3.4--X--43_1a--X--cpachecker/linux-3.4/csd_deg_dscv/2870/dscv_tempdir/dscv/ri/43_1a/drivers/input/joystick/spaceball.c.p"
4021void *ldv_kmem_cache_alloc_16(struct kmem_cache *ldv_func_arg1 , gfp_t ldv_func_arg2 ) 
4022{ 
4023
4024  {
4025  {
4026#line 822
4027  ldv_check_alloc_flags(ldv_func_arg2);
4028#line 824
4029  kmem_cache_alloc(ldv_func_arg1, ldv_func_arg2);
4030  }
4031#line 825
4032  return ((void *)0);
4033}
4034}