Showing error 181

User: Jiri Slaby
Error type: Reachable Error Location
Error type description: A specified error location is reachable in some program path
File location: ldv-drivers/module_get_put-drivers-isdn-gigaset-gigaset.ko-unsafe.cil.out.i.pp.cil.c
Line in file: 11540
Project: SV-COMP 2012
Tools: Manual Work
Entered: 2012-11-19 13:47:39 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 29 "include/asm-generic/int-ll64.h"
   17typedef long long __s64;
   18#line 30 "include/asm-generic/int-ll64.h"
   19typedef unsigned long long __u64;
   20#line 43 "include/asm-generic/int-ll64.h"
   21typedef unsigned char u8;
   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 11 "include/asm-generic/types.h"
   33typedef unsigned short umode_t;
   34#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   35typedef unsigned int __kernel_mode_t;
   36#line 12 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   37typedef unsigned long __kernel_nlink_t;
   38#line 13 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   39typedef long __kernel_off_t;
   40#line 14 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   41typedef int __kernel_pid_t;
   42#line 16 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   43typedef unsigned int __kernel_uid_t;
   44#line 17 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   45typedef unsigned int __kernel_gid_t;
   46#line 18 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   47typedef unsigned long __kernel_size_t;
   48#line 19 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   49typedef long __kernel_ssize_t;
   50#line 21 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   51typedef long __kernel_time_t;
   52#line 23 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   53typedef long __kernel_clock_t;
   54#line 24 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   55typedef int __kernel_timer_t;
   56#line 25 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   57typedef int __kernel_clockid_t;
   58#line 32 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   59typedef long long __kernel_loff_t;
   60#line 41 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   61typedef __kernel_uid_t __kernel_uid32_t;
   62#line 42 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/posix_types_64.h"
   63typedef __kernel_gid_t __kernel_gid32_t;
   64#line 21 "include/linux/types.h"
   65typedef __u32 __kernel_dev_t;
   66#line 24 "include/linux/types.h"
   67typedef __kernel_dev_t dev_t;
   68#line 26 "include/linux/types.h"
   69typedef __kernel_mode_t mode_t;
   70#line 27 "include/linux/types.h"
   71typedef __kernel_nlink_t nlink_t;
   72#line 28 "include/linux/types.h"
   73typedef __kernel_off_t off_t;
   74#line 29 "include/linux/types.h"
   75typedef __kernel_pid_t pid_t;
   76#line 34 "include/linux/types.h"
   77typedef __kernel_clockid_t clockid_t;
   78#line 37 "include/linux/types.h"
   79typedef _Bool bool;
   80#line 39 "include/linux/types.h"
   81typedef __kernel_uid32_t uid_t;
   82#line 40 "include/linux/types.h"
   83typedef __kernel_gid32_t gid_t;
   84#line 53 "include/linux/types.h"
   85typedef __kernel_loff_t loff_t;
   86#line 62 "include/linux/types.h"
   87typedef __kernel_size_t size_t;
   88#line 67 "include/linux/types.h"
   89typedef __kernel_ssize_t ssize_t;
   90#line 77 "include/linux/types.h"
   91typedef __kernel_time_t time_t;
   92#line 110 "include/linux/types.h"
   93typedef __s32 int32_t;
   94#line 116 "include/linux/types.h"
   95typedef __u32 uint32_t;
   96#line 141 "include/linux/types.h"
   97typedef unsigned long sector_t;
   98#line 142 "include/linux/types.h"
   99typedef unsigned long blkcnt_t;
  100#line 154 "include/linux/types.h"
  101typedef u64 dma_addr_t;
  102#line 178 "include/linux/types.h"
  103typedef __u16 __be16;
  104#line 180 "include/linux/types.h"
  105typedef __u32 __be32;
  106#line 185 "include/linux/types.h"
  107typedef __u32 __wsum;
  108#line 201 "include/linux/types.h"
  109typedef unsigned int gfp_t;
  110#line 202 "include/linux/types.h"
  111typedef unsigned int fmode_t;
  112#line 214 "include/linux/types.h"
  113struct __anonstruct_atomic_t_6 {
  114   int counter ;
  115};
  116#line 214 "include/linux/types.h"
  117typedef struct __anonstruct_atomic_t_6 atomic_t;
  118#line 219 "include/linux/types.h"
  119struct __anonstruct_atomic64_t_7 {
  120   long counter ;
  121};
  122#line 219 "include/linux/types.h"
  123typedef struct __anonstruct_atomic64_t_7 atomic64_t;
  124#line 220 "include/linux/types.h"
  125struct list_head {
  126   struct list_head *next ;
  127   struct list_head *prev ;
  128};
  129#line 225
  130struct hlist_node;
  131#line 225
  132struct hlist_node;
  133#line 225 "include/linux/types.h"
  134struct hlist_head {
  135   struct hlist_node *first ;
  136};
  137#line 229 "include/linux/types.h"
  138struct hlist_node {
  139   struct hlist_node *next ;
  140   struct hlist_node **pprev ;
  141};
  142#line 58 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/alternative.h"
  143struct module;
  144#line 58
  145struct module;
  146#line 145 "include/linux/init.h"
  147typedef void (*ctor_fn_t)(void);
  148#line 48 "include/linux/dynamic_debug.h"
  149struct bug_entry {
  150   int bug_addr_disp ;
  151   int file_disp ;
  152   unsigned short line ;
  153   unsigned short flags ;
  154};
  155#line 70 "include/asm-generic/bug.h"
  156struct completion;
  157#line 70
  158struct completion;
  159#line 71
  160struct pt_regs;
  161#line 71
  162struct pt_regs;
  163#line 321 "include/linux/kernel.h"
  164struct pid;
  165#line 321
  166struct pid;
  167#line 671
  168struct timespec;
  169#line 671
  170struct timespec;
  171#line 59 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/page_types.h"
  172struct page;
  173#line 59
  174struct page;
  175#line 21 "include/asm-generic/getorder.h"
  176struct task_struct;
  177#line 21
  178struct task_struct;
  179#line 23
  180struct mm_struct;
  181#line 23
  182struct mm_struct;
  183#line 215 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/segment.h"
  184struct pt_regs {
  185   unsigned long r15 ;
  186   unsigned long r14 ;
  187   unsigned long r13 ;
  188   unsigned long r12 ;
  189   unsigned long bp ;
  190   unsigned long bx ;
  191   unsigned long r11 ;
  192   unsigned long r10 ;
  193   unsigned long r9 ;
  194   unsigned long r8 ;
  195   unsigned long ax ;
  196   unsigned long cx ;
  197   unsigned long dx ;
  198   unsigned long si ;
  199   unsigned long di ;
  200   unsigned long orig_ax ;
  201   unsigned long ip ;
  202   unsigned long cs ;
  203   unsigned long flags ;
  204   unsigned long sp ;
  205   unsigned long ss ;
  206};
  207#line 282 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/ptrace.h"
  208struct kernel_vm86_regs {
  209   struct pt_regs pt ;
  210   unsigned short es ;
  211   unsigned short __esh ;
  212   unsigned short ds ;
  213   unsigned short __dsh ;
  214   unsigned short fs ;
  215   unsigned short __fsh ;
  216   unsigned short gs ;
  217   unsigned short __gsh ;
  218};
  219#line 203 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/vm86.h"
  220union __anonunion_ldv_2292_12 {
  221   struct pt_regs *regs ;
  222   struct kernel_vm86_regs *vm86 ;
  223};
  224#line 203 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/vm86.h"
  225struct math_emu_info {
  226   long ___orig_eip ;
  227   union __anonunion_ldv_2292_12 ldv_2292 ;
  228};
  229#line 13 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_64_types.h"
  230typedef unsigned long pgdval_t;
  231#line 14 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_64_types.h"
  232typedef unsigned long pgprotval_t;
  233#line 18 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_64_types.h"
  234struct pgprot {
  235   pgprotval_t pgprot ;
  236};
  237#line 190 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  238typedef struct pgprot pgprot_t;
  239#line 192 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  240struct __anonstruct_pgd_t_15 {
  241   pgdval_t pgd ;
  242};
  243#line 192 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  244typedef struct __anonstruct_pgd_t_15 pgd_t;
  245#line 280 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  246typedef struct page *pgtable_t;
  247#line 288
  248struct file;
  249#line 288
  250struct file;
  251#line 303
  252struct seq_file;
  253#line 303
  254struct seq_file;
  255#line 335 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  256struct __anonstruct_ldv_2526_19 {
  257   unsigned int a ;
  258   unsigned int b ;
  259};
  260#line 335 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  261struct __anonstruct_ldv_2541_20 {
  262   u16 limit0 ;
  263   u16 base0 ;
  264   unsigned char base1 ;
  265   unsigned char type : 4 ;
  266   unsigned char s : 1 ;
  267   unsigned char dpl : 2 ;
  268   unsigned char p : 1 ;
  269   unsigned char limit : 4 ;
  270   unsigned char avl : 1 ;
  271   unsigned char l : 1 ;
  272   unsigned char d : 1 ;
  273   unsigned char g : 1 ;
  274   unsigned char base2 ;
  275};
  276#line 335 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  277union __anonunion_ldv_2542_18 {
  278   struct __anonstruct_ldv_2526_19 ldv_2526 ;
  279   struct __anonstruct_ldv_2541_20 ldv_2541 ;
  280};
  281#line 335 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/pgtable_types.h"
  282struct desc_struct {
  283   union __anonunion_ldv_2542_18 ldv_2542 ;
  284};
  285#line 122 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/desc_defs.h"
  286struct thread_struct;
  287#line 122
  288struct thread_struct;
  289#line 124
  290struct cpumask;
  291#line 124
  292struct cpumask;
  293#line 320 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/paravirt_types.h"
  294struct arch_spinlock;
  295#line 320
  296struct arch_spinlock;
  297#line 304 "include/linux/bitmap.h"
  298struct cpumask {
  299   unsigned long bits[64U] ;
  300};
  301#line 13 "include/linux/cpumask.h"
  302typedef struct cpumask cpumask_t;
  303#line 622 "include/linux/cpumask.h"
  304typedef struct cpumask *cpumask_var_t;
  305#line 145 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  306struct seq_operations;
  307#line 145
  308struct seq_operations;
  309#line 277 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  310struct i387_fsave_struct {
  311   u32 cwd ;
  312   u32 swd ;
  313   u32 twd ;
  314   u32 fip ;
  315   u32 fcs ;
  316   u32 foo ;
  317   u32 fos ;
  318   u32 st_space[20U] ;
  319   u32 status ;
  320};
  321#line 295 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  322struct __anonstruct_ldv_5171_24 {
  323   u64 rip ;
  324   u64 rdp ;
  325};
  326#line 295 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  327struct __anonstruct_ldv_5177_25 {
  328   u32 fip ;
  329   u32 fcs ;
  330   u32 foo ;
  331   u32 fos ;
  332};
  333#line 295 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  334union __anonunion_ldv_5178_23 {
  335   struct __anonstruct_ldv_5171_24 ldv_5171 ;
  336   struct __anonstruct_ldv_5177_25 ldv_5177 ;
  337};
  338#line 295 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  339union __anonunion_ldv_5187_26 {
  340   u32 padding1[12U] ;
  341   u32 sw_reserved[12U] ;
  342};
  343#line 295 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  344struct i387_fxsave_struct {
  345   u16 cwd ;
  346   u16 swd ;
  347   u16 twd ;
  348   u16 fop ;
  349   union __anonunion_ldv_5178_23 ldv_5178 ;
  350   u32 mxcsr ;
  351   u32 mxcsr_mask ;
  352   u32 st_space[32U] ;
  353   u32 xmm_space[64U] ;
  354   u32 padding[12U] ;
  355   union __anonunion_ldv_5187_26 ldv_5187 ;
  356};
  357#line 329 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  358struct i387_soft_struct {
  359   u32 cwd ;
  360   u32 swd ;
  361   u32 twd ;
  362   u32 fip ;
  363   u32 fcs ;
  364   u32 foo ;
  365   u32 fos ;
  366   u32 st_space[20U] ;
  367   u8 ftop ;
  368   u8 changed ;
  369   u8 lookahead ;
  370   u8 no_update ;
  371   u8 rm ;
  372   u8 alimit ;
  373   struct math_emu_info *info ;
  374   u32 entry_eip ;
  375};
  376#line 350 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  377struct ymmh_struct {
  378   u32 ymmh_space[64U] ;
  379};
  380#line 355 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  381struct xsave_hdr_struct {
  382   u64 xstate_bv ;
  383   u64 reserved1[2U] ;
  384   u64 reserved2[5U] ;
  385};
  386#line 361 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  387struct xsave_struct {
  388   struct i387_fxsave_struct i387 ;
  389   struct xsave_hdr_struct xsave_hdr ;
  390   struct ymmh_struct ymmh ;
  391};
  392#line 367 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  393union thread_xstate {
  394   struct i387_fsave_struct fsave ;
  395   struct i387_fxsave_struct fxsave ;
  396   struct i387_soft_struct soft ;
  397   struct xsave_struct xsave ;
  398};
  399#line 375 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  400struct fpu {
  401   union thread_xstate *state ;
  402};
  403#line 421
  404struct kmem_cache;
  405#line 421
  406struct kmem_cache;
  407#line 422
  408struct perf_event;
  409#line 422
  410struct perf_event;
  411#line 423 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/processor.h"
  412struct thread_struct {
  413   struct desc_struct tls_array[3U] ;
  414   unsigned long sp0 ;
  415   unsigned long sp ;
  416   unsigned long usersp ;
  417   unsigned short es ;
  418   unsigned short ds ;
  419   unsigned short fsindex ;
  420   unsigned short gsindex ;
  421   unsigned long fs ;
  422   unsigned long gs ;
  423   struct perf_event *ptrace_bps[4U] ;
  424   unsigned long debugreg6 ;
  425   unsigned long ptrace_dr7 ;
  426   unsigned long cr2 ;
  427   unsigned long trap_no ;
  428   unsigned long error_code ;
  429   struct fpu fpu ;
  430   unsigned long *io_bitmap_ptr ;
  431   unsigned long iopl ;
  432   unsigned int io_bitmap_max ;
  433};
  434#line 23 "include/asm-generic/atomic-long.h"
  435typedef atomic64_t atomic_long_t;
  436#line 8 "include/linux/bottom_half.h"
  437struct arch_spinlock {
  438   unsigned int slock ;
  439};
  440#line 10 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
  441typedef struct arch_spinlock arch_spinlock_t;
  442#line 16 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
  443struct __anonstruct_arch_rwlock_t_29 {
  444   unsigned int lock ;
  445};
  446#line 16 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/spinlock_types.h"
  447typedef struct __anonstruct_arch_rwlock_t_29 arch_rwlock_t;
  448#line 17
  449struct lockdep_map;
  450#line 17
  451struct lockdep_map;
  452#line 55 "include/linux/debug_locks.h"
  453struct stack_trace {
  454   unsigned int nr_entries ;
  455   unsigned int max_entries ;
  456   unsigned long *entries ;
  457   int skip ;
  458};
  459#line 26 "include/linux/stacktrace.h"
  460struct lockdep_subclass_key {
  461   char __one_byte ;
  462};
  463#line 53 "include/linux/lockdep.h"
  464struct lock_class_key {
  465   struct lockdep_subclass_key subkeys[8U] ;
  466};
  467#line 59 "include/linux/lockdep.h"
  468struct lock_class {
  469   struct list_head hash_entry ;
  470   struct list_head lock_entry ;
  471   struct lockdep_subclass_key *key ;
  472   unsigned int subclass ;
  473   unsigned int dep_gen_id ;
  474   unsigned long usage_mask ;
  475   struct stack_trace usage_traces[13U] ;
  476   struct list_head locks_after ;
  477   struct list_head locks_before ;
  478   unsigned int version ;
  479   unsigned long ops ;
  480   char const   *name ;
  481   int name_version ;
  482   unsigned long contention_point[4U] ;
  483   unsigned long contending_point[4U] ;
  484};
  485#line 144 "include/linux/lockdep.h"
  486struct lockdep_map {
  487   struct lock_class_key *key ;
  488   struct lock_class *class_cache[2U] ;
  489   char const   *name ;
  490   int cpu ;
  491   unsigned long ip ;
  492};
  493#line 187 "include/linux/lockdep.h"
  494struct held_lock {
  495   u64 prev_chain_key ;
  496   unsigned long acquire_ip ;
  497   struct lockdep_map *instance ;
  498   struct lockdep_map *nest_lock ;
  499   u64 waittime_stamp ;
  500   u64 holdtime_stamp ;
  501   unsigned short class_idx : 13 ;
  502   unsigned char irq_context : 2 ;
  503   unsigned char trylock : 1 ;
  504   unsigned char read : 2 ;
  505   unsigned char check : 2 ;
  506   unsigned char hardirqs_off : 1 ;
  507   unsigned short references : 11 ;
  508};
  509#line 552 "include/linux/lockdep.h"
  510struct raw_spinlock {
  511   arch_spinlock_t raw_lock ;
  512   unsigned int magic ;
  513   unsigned int owner_cpu ;
  514   void *owner ;
  515   struct lockdep_map dep_map ;
  516};
  517#line 32 "include/linux/spinlock_types.h"
  518typedef struct raw_spinlock raw_spinlock_t;
  519#line 33 "include/linux/spinlock_types.h"
  520struct __anonstruct_ldv_6059_31 {
  521   u8 __padding[24U] ;
  522   struct lockdep_map dep_map ;
  523};
  524#line 33 "include/linux/spinlock_types.h"
  525union __anonunion_ldv_6060_30 {
  526   struct raw_spinlock rlock ;
  527   struct __anonstruct_ldv_6059_31 ldv_6059 ;
  528};
  529#line 33 "include/linux/spinlock_types.h"
  530struct spinlock {
  531   union __anonunion_ldv_6060_30 ldv_6060 ;
  532};
  533#line 76 "include/linux/spinlock_types.h"
  534typedef struct spinlock spinlock_t;
  535#line 23 "include/linux/rwlock_types.h"
  536struct __anonstruct_rwlock_t_32 {
  537   arch_rwlock_t raw_lock ;
  538   unsigned int magic ;
  539   unsigned int owner_cpu ;
  540   void *owner ;
  541   struct lockdep_map dep_map ;
  542};
  543#line 23 "include/linux/rwlock_types.h"
  544typedef struct __anonstruct_rwlock_t_32 rwlock_t;
  545#line 36 "include/linux/seqlock.h"
  546struct __anonstruct_seqlock_t_33 {
  547   unsigned int sequence ;
  548   spinlock_t lock ;
  549};
  550#line 36 "include/linux/seqlock.h"
  551typedef struct __anonstruct_seqlock_t_33 seqlock_t;
  552#line 110 "include/linux/seqlock.h"
  553struct seqcount {
  554   unsigned int sequence ;
  555};
  556#line 121 "include/linux/seqlock.h"
  557typedef struct seqcount seqcount_t;
  558#line 233 "include/linux/seqlock.h"
  559struct timespec {
  560   __kernel_time_t tv_sec ;
  561   long tv_nsec ;
  562};
  563#line 286 "include/linux/time.h"
  564struct kstat {
  565   u64 ino ;
  566   dev_t dev ;
  567   umode_t mode ;
  568   unsigned int nlink ;
  569   uid_t uid ;
  570   gid_t gid ;
  571   dev_t rdev ;
  572   loff_t size ;
  573   struct timespec atime ;
  574   struct timespec mtime ;
  575   struct timespec ctime ;
  576   unsigned long blksize ;
  577   unsigned long long blocks ;
  578};
  579#line 28 "include/linux/wait.h"
  580struct __wait_queue;
  581#line 28
  582struct __wait_queue;
  583#line 28 "include/linux/wait.h"
  584typedef struct __wait_queue wait_queue_t;
  585#line 31 "include/linux/wait.h"
  586struct __wait_queue {
  587   unsigned int flags ;
  588   void *private ;
  589   int (*func)(wait_queue_t * , unsigned int  , int  , void * ) ;
  590   struct list_head task_list ;
  591};
  592#line 49 "include/linux/wait.h"
  593struct __wait_queue_head {
  594   spinlock_t lock ;
  595   struct list_head task_list ;
  596};
  597#line 54 "include/linux/wait.h"
  598typedef struct __wait_queue_head wait_queue_head_t;
  599#line 96 "include/linux/nodemask.h"
  600struct __anonstruct_nodemask_t_34 {
  601   unsigned long bits[16U] ;
  602};
  603#line 96 "include/linux/nodemask.h"
  604typedef struct __anonstruct_nodemask_t_34 nodemask_t;
  605#line 640 "include/linux/mmzone.h"
  606struct mutex {
  607   atomic_t count ;
  608   spinlock_t wait_lock ;
  609   struct list_head wait_list ;
  610   struct task_struct *owner ;
  611   char const   *name ;
  612   void *magic ;
  613   struct lockdep_map dep_map ;
  614};
  615#line 63 "include/linux/mutex.h"
  616struct mutex_waiter {
  617   struct list_head list ;
  618   struct task_struct *task ;
  619   void *magic ;
  620};
  621#line 171
  622struct rw_semaphore;
  623#line 171
  624struct rw_semaphore;
  625#line 172 "include/linux/mutex.h"
  626struct rw_semaphore {
  627   long count ;
  628   spinlock_t wait_lock ;
  629   struct list_head wait_list ;
  630   struct lockdep_map dep_map ;
  631};
  632#line 763 "include/linux/mmzone.h"
  633struct ctl_table;
  634#line 763
  635struct ctl_table;
  636#line 175 "include/linux/ioport.h"
  637struct device;
  638#line 175
  639struct device;
  640#line 312 "include/linux/jiffies.h"
  641union ktime {
  642   s64 tv64 ;
  643};
  644#line 59 "include/linux/ktime.h"
  645typedef union ktime ktime_t;
  646#line 99 "include/linux/debugobjects.h"
  647struct tvec_base;
  648#line 99
  649struct tvec_base;
  650#line 100 "include/linux/debugobjects.h"
  651struct timer_list {
  652   struct list_head entry ;
  653   unsigned long expires ;
  654   struct tvec_base *base ;
  655   void (*function)(unsigned long  ) ;
  656   unsigned long data ;
  657   int slack ;
  658   int start_pid ;
  659   void *start_site ;
  660   char start_comm[16U] ;
  661   struct lockdep_map lockdep_map ;
  662};
  663#line 289 "include/linux/timer.h"
  664struct hrtimer;
  665#line 289
  666struct hrtimer;
  667#line 290
  668enum hrtimer_restart;
  669#line 290
  670enum hrtimer_restart;
  671#line 290
  672enum hrtimer_restart;
  673#line 302
  674struct work_struct;
  675#line 302
  676struct work_struct;
  677#line 45 "include/linux/workqueue.h"
  678struct work_struct {
  679   atomic_long_t data ;
  680   struct list_head entry ;
  681   void (*func)(struct work_struct * ) ;
  682   struct lockdep_map lockdep_map ;
  683};
  684#line 86 "include/linux/workqueue.h"
  685struct delayed_work {
  686   struct work_struct work ;
  687   struct timer_list timer ;
  688};
  689#line 443 "include/linux/workqueue.h"
  690struct completion {
  691   unsigned int done ;
  692   wait_queue_head_t wait ;
  693};
  694#line 46 "include/linux/pm.h"
  695struct pm_message {
  696   int event ;
  697};
  698#line 52 "include/linux/pm.h"
  699typedef struct pm_message pm_message_t;
  700#line 53 "include/linux/pm.h"
  701struct dev_pm_ops {
  702   int (*prepare)(struct device * ) ;
  703   void (*complete)(struct device * ) ;
  704   int (*suspend)(struct device * ) ;
  705   int (*resume)(struct device * ) ;
  706   int (*freeze)(struct device * ) ;
  707   int (*thaw)(struct device * ) ;
  708   int (*poweroff)(struct device * ) ;
  709   int (*restore)(struct device * ) ;
  710   int (*suspend_noirq)(struct device * ) ;
  711   int (*resume_noirq)(struct device * ) ;
  712   int (*freeze_noirq)(struct device * ) ;
  713   int (*thaw_noirq)(struct device * ) ;
  714   int (*poweroff_noirq)(struct device * ) ;
  715   int (*restore_noirq)(struct device * ) ;
  716   int (*runtime_suspend)(struct device * ) ;
  717   int (*runtime_resume)(struct device * ) ;
  718   int (*runtime_idle)(struct device * ) ;
  719};
  720#line 272
  721enum rpm_status {
  722    RPM_ACTIVE = 0,
  723    RPM_RESUMING = 1,
  724    RPM_SUSPENDED = 2,
  725    RPM_SUSPENDING = 3
  726} ;
  727#line 279
  728enum rpm_request {
  729    RPM_REQ_NONE = 0,
  730    RPM_REQ_IDLE = 1,
  731    RPM_REQ_SUSPEND = 2,
  732    RPM_REQ_AUTOSUSPEND = 3,
  733    RPM_REQ_RESUME = 4
  734} ;
  735#line 287
  736struct wakeup_source;
  737#line 287
  738struct wakeup_source;
  739#line 288 "include/linux/pm.h"
  740struct dev_pm_info {
  741   pm_message_t power_state ;
  742   unsigned char can_wakeup : 1 ;
  743   unsigned char async_suspend : 1 ;
  744   bool is_prepared ;
  745   bool is_suspended ;
  746   spinlock_t lock ;
  747   struct list_head entry ;
  748   struct completion completion ;
  749   struct wakeup_source *wakeup ;
  750   struct timer_list suspend_timer ;
  751   unsigned long timer_expires ;
  752   struct work_struct work ;
  753   wait_queue_head_t wait_queue ;
  754   atomic_t usage_count ;
  755   atomic_t child_count ;
  756   unsigned char disable_depth : 3 ;
  757   unsigned char ignore_children : 1 ;
  758   unsigned char idle_notification : 1 ;
  759   unsigned char request_pending : 1 ;
  760   unsigned char deferred_resume : 1 ;
  761   unsigned char run_wake : 1 ;
  762   unsigned char runtime_auto : 1 ;
  763   unsigned char no_callbacks : 1 ;
  764   unsigned char irq_safe : 1 ;
  765   unsigned char use_autosuspend : 1 ;
  766   unsigned char timer_autosuspends : 1 ;
  767   enum rpm_request request ;
  768   enum rpm_status runtime_status ;
  769   int runtime_error ;
  770   int autosuspend_delay ;
  771   unsigned long last_busy ;
  772   unsigned long active_jiffies ;
  773   unsigned long suspended_jiffies ;
  774   unsigned long accounting_timestamp ;
  775   void *subsys_data ;
  776};
  777#line 469 "include/linux/pm.h"
  778struct dev_power_domain {
  779   struct dev_pm_ops ops ;
  780};
  781#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/mmu.h"
  782struct __anonstruct_mm_context_t_99 {
  783   void *ldt ;
  784   int size ;
  785   unsigned short ia32_compat ;
  786   struct mutex lock ;
  787   void *vdso ;
  788};
  789#line 22 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/mmu.h"
  790typedef struct __anonstruct_mm_context_t_99 mm_context_t;
  791#line 71 "include/asm-generic/iomap.h"
  792struct vm_area_struct;
  793#line 71
  794struct vm_area_struct;
  795#line 53 "include/linux/rcupdate.h"
  796struct rcu_head {
  797   struct rcu_head *next ;
  798   void (*func)(struct rcu_head * ) ;
  799};
  800#line 841
  801struct nsproxy;
  802#line 841
  803struct nsproxy;
  804#line 842
  805struct ctl_table_root;
  806#line 842
  807struct ctl_table_root;
  808#line 843 "include/linux/rcupdate.h"
  809struct ctl_table_set {
  810   struct list_head list ;
  811   struct ctl_table_set *parent ;
  812   int (*is_seen)(struct ctl_table_set * ) ;
  813};
  814#line 947 "include/linux/sysctl.h"
  815struct ctl_table_header;
  816#line 947
  817struct ctl_table_header;
  818#line 965 "include/linux/sysctl.h"
  819typedef int proc_handler(struct ctl_table * , int  , void * , size_t * , loff_t * );
  820#line 985 "include/linux/sysctl.h"
  821struct ctl_table {
  822   char const   *procname ;
  823   void *data ;
  824   int maxlen ;
  825   mode_t mode ;
  826   struct ctl_table *child ;
  827   struct ctl_table *parent ;
  828   proc_handler *proc_handler ;
  829   void *extra1 ;
  830   void *extra2 ;
  831};
  832#line 1027 "include/linux/sysctl.h"
  833struct ctl_table_root {
  834   struct list_head root_list ;
  835   struct ctl_table_set default_set ;
  836   struct ctl_table_set *(*lookup)(struct ctl_table_root * , struct nsproxy * ) ;
  837   int (*permissions)(struct ctl_table_root * , struct nsproxy * , struct ctl_table * ) ;
  838};
  839#line 1035 "include/linux/sysctl.h"
  840struct __anonstruct_ldv_12193_124 {
  841   struct ctl_table *ctl_table ;
  842   struct list_head ctl_entry ;
  843   int used ;
  844   int count ;
  845};
  846#line 1035 "include/linux/sysctl.h"
  847union __anonunion_ldv_12195_123 {
  848   struct __anonstruct_ldv_12193_124 ldv_12193 ;
  849   struct rcu_head rcu ;
  850};
  851#line 1035 "include/linux/sysctl.h"
  852struct ctl_table_header {
  853   union __anonunion_ldv_12195_123 ldv_12195 ;
  854   struct completion *unregistering ;
  855   struct ctl_table *ctl_table_arg ;
  856   struct ctl_table_root *root ;
  857   struct ctl_table_set *set ;
  858   struct ctl_table *attached_by ;
  859   struct ctl_table *attached_to ;
  860   struct ctl_table_header *parent ;
  861};
  862#line 36 "include/linux/kmod.h"
  863struct cred;
  864#line 36
  865struct cred;
  866#line 27 "include/linux/elf.h"
  867typedef __u64 Elf64_Addr;
  868#line 28 "include/linux/elf.h"
  869typedef __u16 Elf64_Half;
  870#line 32 "include/linux/elf.h"
  871typedef __u32 Elf64_Word;
  872#line 33 "include/linux/elf.h"
  873typedef __u64 Elf64_Xword;
  874#line 202 "include/linux/elf.h"
  875struct elf64_sym {
  876   Elf64_Word st_name ;
  877   unsigned char st_info ;
  878   unsigned char st_other ;
  879   Elf64_Half st_shndx ;
  880   Elf64_Addr st_value ;
  881   Elf64_Xword st_size ;
  882};
  883#line 210 "include/linux/elf.h"
  884typedef struct elf64_sym Elf64_Sym;
  885#line 444
  886struct sock;
  887#line 444
  888struct sock;
  889#line 445
  890struct kobject;
  891#line 445
  892struct kobject;
  893#line 446
  894enum kobj_ns_type {
  895    KOBJ_NS_TYPE_NONE = 0,
  896    KOBJ_NS_TYPE_NET = 1,
  897    KOBJ_NS_TYPES = 2
  898} ;
  899#line 452 "include/linux/elf.h"
  900struct kobj_ns_type_operations {
  901   enum kobj_ns_type type ;
  902   void *(*grab_current_ns)(void) ;
  903   void const   *(*netlink_ns)(struct sock * ) ;
  904   void const   *(*initial_ns)(void) ;
  905   void (*drop_ns)(void * ) ;
  906};
  907#line 57 "include/linux/kobject_ns.h"
  908struct attribute {
  909   char const   *name ;
  910   mode_t mode ;
  911   struct lock_class_key *key ;
  912   struct lock_class_key skey ;
  913};
  914#line 33 "include/linux/sysfs.h"
  915struct attribute_group {
  916   char const   *name ;
  917   mode_t (*is_visible)(struct kobject * , struct attribute * , int  ) ;
  918   struct attribute **attrs ;
  919};
  920#line 62 "include/linux/sysfs.h"
  921struct bin_attribute {
  922   struct attribute attr ;
  923   size_t size ;
  924   void *private ;
  925   ssize_t (*read)(struct file * , struct kobject * , struct bin_attribute * , char * ,
  926                   loff_t  , size_t  ) ;
  927   ssize_t (*write)(struct file * , struct kobject * , struct bin_attribute * , char * ,
  928                    loff_t  , size_t  ) ;
  929   int (*mmap)(struct file * , struct kobject * , struct bin_attribute * , struct vm_area_struct * ) ;
  930};
  931#line 98 "include/linux/sysfs.h"
  932struct sysfs_ops {
  933   ssize_t (*show)(struct kobject * , struct attribute * , char * ) ;
  934   ssize_t (*store)(struct kobject * , struct attribute * , char const   * , size_t  ) ;
  935};
  936#line 116
  937struct sysfs_dirent;
  938#line 116
  939struct sysfs_dirent;
  940#line 181 "include/linux/sysfs.h"
  941struct kref {
  942   atomic_t refcount ;
  943};
  944#line 49 "include/linux/kobject.h"
  945struct kset;
  946#line 49
  947struct kset;
  948#line 49
  949struct kobj_type;
  950#line 49
  951struct kobj_type;
  952#line 49 "include/linux/kobject.h"
  953struct kobject {
  954   char const   *name ;
  955   struct list_head entry ;
  956   struct kobject *parent ;
  957   struct kset *kset ;
  958   struct kobj_type *ktype ;
  959   struct sysfs_dirent *sd ;
  960   struct kref kref ;
  961   unsigned char state_initialized : 1 ;
  962   unsigned char state_in_sysfs : 1 ;
  963   unsigned char state_add_uevent_sent : 1 ;
  964   unsigned char state_remove_uevent_sent : 1 ;
  965   unsigned char uevent_suppress : 1 ;
  966};
  967#line 109 "include/linux/kobject.h"
  968struct kobj_type {
  969   void (*release)(struct kobject * ) ;
  970   struct sysfs_ops  const  *sysfs_ops ;
  971   struct attribute **default_attrs ;
  972   struct kobj_ns_type_operations  const  *(*child_ns_type)(struct kobject * ) ;
  973   void const   *(*namespace)(struct kobject * ) ;
  974};
  975#line 117 "include/linux/kobject.h"
  976struct kobj_uevent_env {
  977   char *envp[32U] ;
  978   int envp_idx ;
  979   char buf[2048U] ;
  980   int buflen ;
  981};
  982#line 124 "include/linux/kobject.h"
  983struct kset_uevent_ops {
  984   int (* const  filter)(struct kset * , struct kobject * ) ;
  985   char const   *(* const  name)(struct kset * , struct kobject * ) ;
  986   int (* const  uevent)(struct kset * , struct kobject * , struct kobj_uevent_env * ) ;
  987};
  988#line 141 "include/linux/kobject.h"
  989struct kset {
  990   struct list_head list ;
  991   spinlock_t list_lock ;
  992   struct kobject kobj ;
  993   struct kset_uevent_ops  const  *uevent_ops ;
  994};
  995#line 219
  996struct kernel_param;
  997#line 219
  998struct kernel_param;
  999#line 220 "include/linux/kobject.h"
 1000struct kernel_param_ops {
 1001   int (*set)(char const   * , struct kernel_param  const  * ) ;
 1002   int (*get)(char * , struct kernel_param  const  * ) ;
 1003   void (*free)(void * ) ;
 1004};
 1005#line 44 "include/linux/moduleparam.h"
 1006struct kparam_string;
 1007#line 44
 1008struct kparam_string;
 1009#line 44
 1010struct kparam_array;
 1011#line 44
 1012struct kparam_array;
 1013#line 44 "include/linux/moduleparam.h"
 1014union __anonunion_ldv_12924_129 {
 1015   void *arg ;
 1016   struct kparam_string  const  *str ;
 1017   struct kparam_array  const  *arr ;
 1018};
 1019#line 44 "include/linux/moduleparam.h"
 1020struct kernel_param {
 1021   char const   *name ;
 1022   struct kernel_param_ops  const  *ops ;
 1023   u16 perm ;
 1024   u16 flags ;
 1025   union __anonunion_ldv_12924_129 ldv_12924 ;
 1026};
 1027#line 59 "include/linux/moduleparam.h"
 1028struct kparam_string {
 1029   unsigned int maxlen ;
 1030   char *string ;
 1031};
 1032#line 65 "include/linux/moduleparam.h"
 1033struct kparam_array {
 1034   unsigned int max ;
 1035   unsigned int elemsize ;
 1036   unsigned int *num ;
 1037   struct kernel_param_ops  const  *ops ;
 1038   void *elem ;
 1039};
 1040#line 404 "include/linux/moduleparam.h"
 1041struct jump_label_key {
 1042   atomic_t enabled ;
 1043};
 1044#line 99 "include/linux/jump_label.h"
 1045struct tracepoint;
 1046#line 99
 1047struct tracepoint;
 1048#line 100 "include/linux/jump_label.h"
 1049struct tracepoint_func {
 1050   void *func ;
 1051   void *data ;
 1052};
 1053#line 29 "include/linux/tracepoint.h"
 1054struct tracepoint {
 1055   char const   *name ;
 1056   struct jump_label_key key ;
 1057   void (*regfunc)(void) ;
 1058   void (*unregfunc)(void) ;
 1059   struct tracepoint_func *funcs ;
 1060};
 1061#line 84 "include/linux/tracepoint.h"
 1062struct mod_arch_specific {
 1063
 1064};
 1065#line 127 "include/trace/events/module.h"
 1066struct kernel_symbol {
 1067   unsigned long value ;
 1068   char const   *name ;
 1069};
 1070#line 48 "include/linux/module.h"
 1071struct module_attribute {
 1072   struct attribute attr ;
 1073   ssize_t (*show)(struct module_attribute * , struct module * , char * ) ;
 1074   ssize_t (*store)(struct module_attribute * , struct module * , char const   * ,
 1075                    size_t  ) ;
 1076   void (*setup)(struct module * , char const   * ) ;
 1077   int (*test)(struct module * ) ;
 1078   void (*free)(struct module * ) ;
 1079};
 1080#line 68
 1081struct module_param_attrs;
 1082#line 68
 1083struct module_param_attrs;
 1084#line 68 "include/linux/module.h"
 1085struct module_kobject {
 1086   struct kobject kobj ;
 1087   struct module *mod ;
 1088   struct kobject *drivers_dir ;
 1089   struct module_param_attrs *mp ;
 1090};
 1091#line 81
 1092struct exception_table_entry;
 1093#line 81
 1094struct exception_table_entry;
 1095#line 218
 1096enum module_state {
 1097    MODULE_STATE_LIVE = 0,
 1098    MODULE_STATE_COMING = 1,
 1099    MODULE_STATE_GOING = 2
 1100} ;
 1101#line 224 "include/linux/module.h"
 1102struct module_ref {
 1103   unsigned int incs ;
 1104   unsigned int decs ;
 1105};
 1106#line 418
 1107struct module_sect_attrs;
 1108#line 418
 1109struct module_sect_attrs;
 1110#line 418
 1111struct module_notes_attrs;
 1112#line 418
 1113struct module_notes_attrs;
 1114#line 418
 1115struct ftrace_event_call;
 1116#line 418
 1117struct ftrace_event_call;
 1118#line 418 "include/linux/module.h"
 1119struct module {
 1120   enum module_state state ;
 1121   struct list_head list ;
 1122   char name[56U] ;
 1123   struct module_kobject mkobj ;
 1124   struct module_attribute *modinfo_attrs ;
 1125   char const   *version ;
 1126   char const   *srcversion ;
 1127   struct kobject *holders_dir ;
 1128   struct kernel_symbol  const  *syms ;
 1129   unsigned long const   *crcs ;
 1130   unsigned int num_syms ;
 1131   struct kernel_param *kp ;
 1132   unsigned int num_kp ;
 1133   unsigned int num_gpl_syms ;
 1134   struct kernel_symbol  const  *gpl_syms ;
 1135   unsigned long const   *gpl_crcs ;
 1136   struct kernel_symbol  const  *unused_syms ;
 1137   unsigned long const   *unused_crcs ;
 1138   unsigned int num_unused_syms ;
 1139   unsigned int num_unused_gpl_syms ;
 1140   struct kernel_symbol  const  *unused_gpl_syms ;
 1141   unsigned long const   *unused_gpl_crcs ;
 1142   struct kernel_symbol  const  *gpl_future_syms ;
 1143   unsigned long const   *gpl_future_crcs ;
 1144   unsigned int num_gpl_future_syms ;
 1145   unsigned int num_exentries ;
 1146   struct exception_table_entry *extable ;
 1147   int (*init)(void) ;
 1148   void *module_init ;
 1149   void *module_core ;
 1150   unsigned int init_size ;
 1151   unsigned int core_size ;
 1152   unsigned int init_text_size ;
 1153   unsigned int core_text_size ;
 1154   unsigned int init_ro_size ;
 1155   unsigned int core_ro_size ;
 1156   struct mod_arch_specific arch ;
 1157   unsigned int taints ;
 1158   unsigned int num_bugs ;
 1159   struct list_head bug_list ;
 1160   struct bug_entry *bug_table ;
 1161   Elf64_Sym *symtab ;
 1162   Elf64_Sym *core_symtab ;
 1163   unsigned int num_symtab ;
 1164   unsigned int core_num_syms ;
 1165   char *strtab ;
 1166   char *core_strtab ;
 1167   struct module_sect_attrs *sect_attrs ;
 1168   struct module_notes_attrs *notes_attrs ;
 1169   char *args ;
 1170   void *percpu ;
 1171   unsigned int percpu_size ;
 1172   unsigned int num_tracepoints ;
 1173   struct tracepoint * const  *tracepoints_ptrs ;
 1174   unsigned int num_trace_bprintk_fmt ;
 1175   char const   **trace_bprintk_fmt_start ;
 1176   struct ftrace_event_call **trace_events ;
 1177   unsigned int num_trace_events ;
 1178   unsigned int num_ftrace_callsites ;
 1179   unsigned long *ftrace_callsites ;
 1180   struct list_head source_list ;
 1181   struct list_head target_list ;
 1182   struct task_struct *waiter ;
 1183   void (*exit)(void) ;
 1184   struct module_ref *refptr ;
 1185   ctor_fn_t (**ctors)(void) ;
 1186   unsigned int num_ctors ;
 1187};
 1188#line 93 "include/linux/capability.h"
 1189struct kernel_cap_struct {
 1190   __u32 cap[2U] ;
 1191};
 1192#line 96 "include/linux/capability.h"
 1193typedef struct kernel_cap_struct kernel_cap_t;
 1194#line 104
 1195struct dentry;
 1196#line 104
 1197struct dentry;
 1198#line 105
 1199struct user_namespace;
 1200#line 105
 1201struct user_namespace;
 1202#line 553 "include/linux/capability.h"
 1203struct rb_node {
 1204   unsigned long rb_parent_color ;
 1205   struct rb_node *rb_right ;
 1206   struct rb_node *rb_left ;
 1207};
 1208#line 108 "include/linux/rbtree.h"
 1209struct rb_root {
 1210   struct rb_node *rb_node ;
 1211};
 1212#line 176
 1213struct prio_tree_node;
 1214#line 176
 1215struct prio_tree_node;
 1216#line 176 "include/linux/rbtree.h"
 1217struct raw_prio_tree_node {
 1218   struct prio_tree_node *left ;
 1219   struct prio_tree_node *right ;
 1220   struct prio_tree_node *parent ;
 1221};
 1222#line 19 "include/linux/prio_tree.h"
 1223struct prio_tree_node {
 1224   struct prio_tree_node *left ;
 1225   struct prio_tree_node *right ;
 1226   struct prio_tree_node *parent ;
 1227   unsigned long start ;
 1228   unsigned long last ;
 1229};
 1230#line 27 "include/linux/prio_tree.h"
 1231struct prio_tree_root {
 1232   struct prio_tree_node *prio_tree_node ;
 1233   unsigned short index_bits ;
 1234   unsigned short raw ;
 1235};
 1236#line 115
 1237struct address_space;
 1238#line 115
 1239struct address_space;
 1240#line 116 "include/linux/prio_tree.h"
 1241struct __anonstruct_ldv_13922_132 {
 1242   u16 inuse ;
 1243   u16 objects ;
 1244};
 1245#line 116 "include/linux/prio_tree.h"
 1246union __anonunion_ldv_13923_131 {
 1247   atomic_t _mapcount ;
 1248   struct __anonstruct_ldv_13922_132 ldv_13922 ;
 1249};
 1250#line 116 "include/linux/prio_tree.h"
 1251struct __anonstruct_ldv_13928_134 {
 1252   unsigned long private ;
 1253   struct address_space *mapping ;
 1254};
 1255#line 116 "include/linux/prio_tree.h"
 1256union __anonunion_ldv_13931_133 {
 1257   struct __anonstruct_ldv_13928_134 ldv_13928 ;
 1258   struct kmem_cache *slab ;
 1259   struct page *first_page ;
 1260};
 1261#line 116 "include/linux/prio_tree.h"
 1262union __anonunion_ldv_13935_135 {
 1263   unsigned long index ;
 1264   void *freelist ;
 1265};
 1266#line 116 "include/linux/prio_tree.h"
 1267struct page {
 1268   unsigned long flags ;
 1269   atomic_t _count ;
 1270   union __anonunion_ldv_13923_131 ldv_13923 ;
 1271   union __anonunion_ldv_13931_133 ldv_13931 ;
 1272   union __anonunion_ldv_13935_135 ldv_13935 ;
 1273   struct list_head lru ;
 1274};
 1275#line 124 "include/linux/mm_types.h"
 1276struct __anonstruct_vm_set_137 {
 1277   struct list_head list ;
 1278   void *parent ;
 1279   struct vm_area_struct *head ;
 1280};
 1281#line 124 "include/linux/mm_types.h"
 1282union __anonunion_shared_136 {
 1283   struct __anonstruct_vm_set_137 vm_set ;
 1284   struct raw_prio_tree_node prio_tree_node ;
 1285};
 1286#line 124
 1287struct anon_vma;
 1288#line 124
 1289struct anon_vma;
 1290#line 124
 1291struct vm_operations_struct;
 1292#line 124
 1293struct vm_operations_struct;
 1294#line 124
 1295struct mempolicy;
 1296#line 124
 1297struct mempolicy;
 1298#line 124 "include/linux/mm_types.h"
 1299struct vm_area_struct {
 1300   struct mm_struct *vm_mm ;
 1301   unsigned long vm_start ;
 1302   unsigned long vm_end ;
 1303   struct vm_area_struct *vm_next ;
 1304   struct vm_area_struct *vm_prev ;
 1305   pgprot_t vm_page_prot ;
 1306   unsigned long vm_flags ;
 1307   struct rb_node vm_rb ;
 1308   union __anonunion_shared_136 shared ;
 1309   struct list_head anon_vma_chain ;
 1310   struct anon_vma *anon_vma ;
 1311   struct vm_operations_struct  const  *vm_ops ;
 1312   unsigned long vm_pgoff ;
 1313   struct file *vm_file ;
 1314   void *vm_private_data ;
 1315   struct mempolicy *vm_policy ;
 1316};
 1317#line 187 "include/linux/mm_types.h"
 1318struct core_thread {
 1319   struct task_struct *task ;
 1320   struct core_thread *next ;
 1321};
 1322#line 193 "include/linux/mm_types.h"
 1323struct core_state {
 1324   atomic_t nr_threads ;
 1325   struct core_thread dumper ;
 1326   struct completion startup ;
 1327};
 1328#line 206 "include/linux/mm_types.h"
 1329struct mm_rss_stat {
 1330   atomic_long_t count[3U] ;
 1331};
 1332#line 219
 1333struct linux_binfmt;
 1334#line 219
 1335struct linux_binfmt;
 1336#line 219
 1337struct mmu_notifier_mm;
 1338#line 219
 1339struct mmu_notifier_mm;
 1340#line 219 "include/linux/mm_types.h"
 1341struct mm_struct {
 1342   struct vm_area_struct *mmap ;
 1343   struct rb_root mm_rb ;
 1344   struct vm_area_struct *mmap_cache ;
 1345   unsigned long (*get_unmapped_area)(struct file * , unsigned long  , unsigned long  ,
 1346                                      unsigned long  , unsigned long  ) ;
 1347   void (*unmap_area)(struct mm_struct * , unsigned long  ) ;
 1348   unsigned long mmap_base ;
 1349   unsigned long task_size ;
 1350   unsigned long cached_hole_size ;
 1351   unsigned long free_area_cache ;
 1352   pgd_t *pgd ;
 1353   atomic_t mm_users ;
 1354   atomic_t mm_count ;
 1355   int map_count ;
 1356   spinlock_t page_table_lock ;
 1357   struct rw_semaphore mmap_sem ;
 1358   struct list_head mmlist ;
 1359   unsigned long hiwater_rss ;
 1360   unsigned long hiwater_vm ;
 1361   unsigned long total_vm ;
 1362   unsigned long locked_vm ;
 1363   unsigned long shared_vm ;
 1364   unsigned long exec_vm ;
 1365   unsigned long stack_vm ;
 1366   unsigned long reserved_vm ;
 1367   unsigned long def_flags ;
 1368   unsigned long nr_ptes ;
 1369   unsigned long start_code ;
 1370   unsigned long end_code ;
 1371   unsigned long start_data ;
 1372   unsigned long end_data ;
 1373   unsigned long start_brk ;
 1374   unsigned long brk ;
 1375   unsigned long start_stack ;
 1376   unsigned long arg_start ;
 1377   unsigned long arg_end ;
 1378   unsigned long env_start ;
 1379   unsigned long env_end ;
 1380   unsigned long saved_auxv[44U] ;
 1381   struct mm_rss_stat rss_stat ;
 1382   struct linux_binfmt *binfmt ;
 1383   cpumask_var_t cpu_vm_mask_var ;
 1384   mm_context_t context ;
 1385   unsigned int faultstamp ;
 1386   unsigned int token_priority ;
 1387   unsigned int last_interval ;
 1388   atomic_t oom_disable_count ;
 1389   unsigned long flags ;
 1390   struct core_state *core_state ;
 1391   spinlock_t ioctx_lock ;
 1392   struct hlist_head ioctx_list ;
 1393   struct task_struct *owner ;
 1394   struct file *exe_file ;
 1395   unsigned long num_exe_file_vmas ;
 1396   struct mmu_notifier_mm *mmu_notifier_mm ;
 1397   pgtable_t pmd_huge_pte ;
 1398   struct cpumask cpumask_allocation ;
 1399};
 1400#line 7 "include/asm-generic/cputime.h"
 1401typedef unsigned long cputime_t;
 1402#line 118 "include/linux/sem.h"
 1403struct sem_undo_list;
 1404#line 118
 1405struct sem_undo_list;
 1406#line 131 "include/linux/sem.h"
 1407struct sem_undo_list {
 1408   atomic_t refcnt ;
 1409   spinlock_t lock ;
 1410   struct list_head list_proc ;
 1411};
 1412#line 140 "include/linux/sem.h"
 1413struct sysv_sem {
 1414   struct sem_undo_list *undo_list ;
 1415};
 1416#line 149
 1417struct siginfo;
 1418#line 149
 1419struct siginfo;
 1420#line 32 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
 1421struct __anonstruct_sigset_t_138 {
 1422   unsigned long sig[1U] ;
 1423};
 1424#line 32 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
 1425typedef struct __anonstruct_sigset_t_138 sigset_t;
 1426#line 17 "include/asm-generic/signal-defs.h"
 1427typedef void __signalfn_t(int  );
 1428#line 18 "include/asm-generic/signal-defs.h"
 1429typedef __signalfn_t *__sighandler_t;
 1430#line 20 "include/asm-generic/signal-defs.h"
 1431typedef void __restorefn_t(void);
 1432#line 21 "include/asm-generic/signal-defs.h"
 1433typedef __restorefn_t *__sigrestore_t;
 1434#line 126 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
 1435struct sigaction {
 1436   __sighandler_t sa_handler ;
 1437   unsigned long sa_flags ;
 1438   __sigrestore_t sa_restorer ;
 1439   sigset_t sa_mask ;
 1440};
 1441#line 173 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
 1442struct k_sigaction {
 1443   struct sigaction sa ;
 1444};
 1445#line 185 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/signal.h"
 1446union sigval {
 1447   int sival_int ;
 1448   void *sival_ptr ;
 1449};
 1450#line 10 "include/asm-generic/siginfo.h"
 1451typedef union sigval sigval_t;
 1452#line 11 "include/asm-generic/siginfo.h"
 1453struct __anonstruct__kill_140 {
 1454   __kernel_pid_t _pid ;
 1455   __kernel_uid32_t _uid ;
 1456};
 1457#line 11 "include/asm-generic/siginfo.h"
 1458struct __anonstruct__timer_141 {
 1459   __kernel_timer_t _tid ;
 1460   int _overrun ;
 1461   char _pad[0U] ;
 1462   sigval_t _sigval ;
 1463   int _sys_private ;
 1464};
 1465#line 11 "include/asm-generic/siginfo.h"
 1466struct __anonstruct__rt_142 {
 1467   __kernel_pid_t _pid ;
 1468   __kernel_uid32_t _uid ;
 1469   sigval_t _sigval ;
 1470};
 1471#line 11 "include/asm-generic/siginfo.h"
 1472struct __anonstruct__sigchld_143 {
 1473   __kernel_pid_t _pid ;
 1474   __kernel_uid32_t _uid ;
 1475   int _status ;
 1476   __kernel_clock_t _utime ;
 1477   __kernel_clock_t _stime ;
 1478};
 1479#line 11 "include/asm-generic/siginfo.h"
 1480struct __anonstruct__sigfault_144 {
 1481   void *_addr ;
 1482   short _addr_lsb ;
 1483};
 1484#line 11 "include/asm-generic/siginfo.h"
 1485struct __anonstruct__sigpoll_145 {
 1486   long _band ;
 1487   int _fd ;
 1488};
 1489#line 11 "include/asm-generic/siginfo.h"
 1490union __anonunion__sifields_139 {
 1491   int _pad[28U] ;
 1492   struct __anonstruct__kill_140 _kill ;
 1493   struct __anonstruct__timer_141 _timer ;
 1494   struct __anonstruct__rt_142 _rt ;
 1495   struct __anonstruct__sigchld_143 _sigchld ;
 1496   struct __anonstruct__sigfault_144 _sigfault ;
 1497   struct __anonstruct__sigpoll_145 _sigpoll ;
 1498};
 1499#line 11 "include/asm-generic/siginfo.h"
 1500struct siginfo {
 1501   int si_signo ;
 1502   int si_errno ;
 1503   int si_code ;
 1504   union __anonunion__sifields_139 _sifields ;
 1505};
 1506#line 94 "include/asm-generic/siginfo.h"
 1507typedef struct siginfo siginfo_t;
 1508#line 14 "include/linux/signal.h"
 1509struct user_struct;
 1510#line 14
 1511struct user_struct;
 1512#line 24 "include/linux/signal.h"
 1513struct sigpending {
 1514   struct list_head list ;
 1515   sigset_t signal ;
 1516};
 1517#line 387
 1518enum pid_type {
 1519    PIDTYPE_PID = 0,
 1520    PIDTYPE_PGID = 1,
 1521    PIDTYPE_SID = 2,
 1522    PIDTYPE_MAX = 3
 1523} ;
 1524#line 394
 1525struct pid_namespace;
 1526#line 394
 1527struct pid_namespace;
 1528#line 394 "include/linux/signal.h"
 1529struct upid {
 1530   int nr ;
 1531   struct pid_namespace *ns ;
 1532   struct hlist_node pid_chain ;
 1533};
 1534#line 56 "include/linux/pid.h"
 1535struct pid {
 1536   atomic_t count ;
 1537   unsigned int level ;
 1538   struct hlist_head tasks[3U] ;
 1539   struct rcu_head rcu ;
 1540   struct upid numbers[1U] ;
 1541};
 1542#line 68 "include/linux/pid.h"
 1543struct pid_link {
 1544   struct hlist_node node ;
 1545   struct pid *pid ;
 1546};
 1547#line 175 "include/linux/pid.h"
 1548struct percpu_counter {
 1549   spinlock_t lock ;
 1550   s64 count ;
 1551   struct list_head list ;
 1552   s32 *counters ;
 1553};
 1554#line 90 "include/linux/proportions.h"
 1555struct prop_local_single {
 1556   unsigned long events ;
 1557   unsigned long period ;
 1558   int shift ;
 1559   spinlock_t lock ;
 1560};
 1561#line 10 "include/linux/seccomp.h"
 1562struct __anonstruct_seccomp_t_148 {
 1563   int mode ;
 1564};
 1565#line 10 "include/linux/seccomp.h"
 1566typedef struct __anonstruct_seccomp_t_148 seccomp_t;
 1567#line 427 "include/linux/rculist.h"
 1568struct plist_head {
 1569   struct list_head node_list ;
 1570   raw_spinlock_t *rawlock ;
 1571   spinlock_t *spinlock ;
 1572};
 1573#line 88 "include/linux/plist.h"
 1574struct plist_node {
 1575   int prio ;
 1576   struct list_head prio_list ;
 1577   struct list_head node_list ;
 1578};
 1579#line 38 "include/linux/rtmutex.h"
 1580struct rt_mutex_waiter;
 1581#line 38
 1582struct rt_mutex_waiter;
 1583#line 41 "include/linux/resource.h"
 1584struct rlimit {
 1585   unsigned long rlim_cur ;
 1586   unsigned long rlim_max ;
 1587};
 1588#line 85 "include/linux/resource.h"
 1589struct timerqueue_node {
 1590   struct rb_node node ;
 1591   ktime_t expires ;
 1592};
 1593#line 12 "include/linux/timerqueue.h"
 1594struct timerqueue_head {
 1595   struct rb_root head ;
 1596   struct timerqueue_node *next ;
 1597};
 1598#line 50
 1599struct hrtimer_clock_base;
 1600#line 50
 1601struct hrtimer_clock_base;
 1602#line 51
 1603struct hrtimer_cpu_base;
 1604#line 51
 1605struct hrtimer_cpu_base;
 1606#line 60
 1607enum hrtimer_restart {
 1608    HRTIMER_NORESTART = 0,
 1609    HRTIMER_RESTART = 1
 1610} ;
 1611#line 65 "include/linux/timerqueue.h"
 1612struct hrtimer {
 1613   struct timerqueue_node node ;
 1614   ktime_t _softexpires ;
 1615   enum hrtimer_restart (*function)(struct hrtimer * ) ;
 1616   struct hrtimer_clock_base *base ;
 1617   unsigned long state ;
 1618   int start_pid ;
 1619   void *start_site ;
 1620   char start_comm[16U] ;
 1621};
 1622#line 132 "include/linux/hrtimer.h"
 1623struct hrtimer_clock_base {
 1624   struct hrtimer_cpu_base *cpu_base ;
 1625   int index ;
 1626   clockid_t clockid ;
 1627   struct timerqueue_head active ;
 1628   ktime_t resolution ;
 1629   ktime_t (*get_time)(void) ;
 1630   ktime_t softirq_time ;
 1631   ktime_t offset ;
 1632};
 1633#line 162 "include/linux/hrtimer.h"
 1634struct hrtimer_cpu_base {
 1635   raw_spinlock_t lock ;
 1636   unsigned long active_bases ;
 1637   ktime_t expires_next ;
 1638   int hres_active ;
 1639   int hang_detected ;
 1640   unsigned long nr_events ;
 1641   unsigned long nr_retries ;
 1642   unsigned long nr_hangs ;
 1643   ktime_t max_hang_time ;
 1644   struct hrtimer_clock_base clock_base[3U] ;
 1645};
 1646#line 452 "include/linux/hrtimer.h"
 1647struct task_io_accounting {
 1648   u64 rchar ;
 1649   u64 wchar ;
 1650   u64 syscr ;
 1651   u64 syscw ;
 1652   u64 read_bytes ;
 1653   u64 write_bytes ;
 1654   u64 cancelled_write_bytes ;
 1655};
 1656#line 45 "include/linux/task_io_accounting.h"
 1657struct latency_record {
 1658   unsigned long backtrace[12U] ;
 1659   unsigned int count ;
 1660   unsigned long time ;
 1661   unsigned long max ;
 1662};
 1663#line 29 "include/linux/key.h"
 1664typedef int32_t key_serial_t;
 1665#line 32 "include/linux/key.h"
 1666typedef uint32_t key_perm_t;
 1667#line 33
 1668struct key;
 1669#line 33
 1670struct key;
 1671#line 34
 1672struct signal_struct;
 1673#line 34
 1674struct signal_struct;
 1675#line 35
 1676struct key_type;
 1677#line 35
 1678struct key_type;
 1679#line 37
 1680struct keyring_list;
 1681#line 37
 1682struct keyring_list;
 1683#line 115
 1684struct key_user;
 1685#line 115
 1686struct key_user;
 1687#line 115 "include/linux/key.h"
 1688union __anonunion_ldv_15189_149 {
 1689   time_t expiry ;
 1690   time_t revoked_at ;
 1691};
 1692#line 115 "include/linux/key.h"
 1693union __anonunion_type_data_150 {
 1694   struct list_head link ;
 1695   unsigned long x[2U] ;
 1696   void *p[2U] ;
 1697   int reject_error ;
 1698};
 1699#line 115 "include/linux/key.h"
 1700union __anonunion_payload_151 {
 1701   unsigned long value ;
 1702   void *rcudata ;
 1703   void *data ;
 1704   struct keyring_list *subscriptions ;
 1705};
 1706#line 115 "include/linux/key.h"
 1707struct key {
 1708   atomic_t usage ;
 1709   key_serial_t serial ;
 1710   struct rb_node serial_node ;
 1711   struct key_type *type ;
 1712   struct rw_semaphore sem ;
 1713   struct key_user *user ;
 1714   void *security ;
 1715   union __anonunion_ldv_15189_149 ldv_15189 ;
 1716   uid_t uid ;
 1717   gid_t gid ;
 1718   key_perm_t perm ;
 1719   unsigned short quotalen ;
 1720   unsigned short datalen ;
 1721   unsigned long flags ;
 1722   char *description ;
 1723   union __anonunion_type_data_150 type_data ;
 1724   union __anonunion_payload_151 payload ;
 1725};
 1726#line 310
 1727struct audit_context;
 1728#line 310
 1729struct audit_context;
 1730#line 27 "include/linux/selinux.h"
 1731struct inode;
 1732#line 27
 1733struct inode;
 1734#line 28 "include/linux/selinux.h"
 1735struct group_info {
 1736   atomic_t usage ;
 1737   int ngroups ;
 1738   int nblocks ;
 1739   gid_t small_block[32U] ;
 1740   gid_t *blocks[0U] ;
 1741};
 1742#line 77 "include/linux/cred.h"
 1743struct thread_group_cred {
 1744   atomic_t usage ;
 1745   pid_t tgid ;
 1746   spinlock_t lock ;
 1747   struct key *session_keyring ;
 1748   struct key *process_keyring ;
 1749   struct rcu_head rcu ;
 1750};
 1751#line 91 "include/linux/cred.h"
 1752struct cred {
 1753   atomic_t usage ;
 1754   atomic_t subscribers ;
 1755   void *put_addr ;
 1756   unsigned int magic ;
 1757   uid_t uid ;
 1758   gid_t gid ;
 1759   uid_t suid ;
 1760   gid_t sgid ;
 1761   uid_t euid ;
 1762   gid_t egid ;
 1763   uid_t fsuid ;
 1764   gid_t fsgid ;
 1765   unsigned int securebits ;
 1766   kernel_cap_t cap_inheritable ;
 1767   kernel_cap_t cap_permitted ;
 1768   kernel_cap_t cap_effective ;
 1769   kernel_cap_t cap_bset ;
 1770   unsigned char jit_keyring ;
 1771   struct key *thread_keyring ;
 1772   struct key *request_key_auth ;
 1773   struct thread_group_cred *tgcred ;
 1774   void *security ;
 1775   struct user_struct *user ;
 1776   struct user_namespace *user_ns ;
 1777   struct group_info *group_info ;
 1778   struct rcu_head rcu ;
 1779};
 1780#line 264
 1781struct futex_pi_state;
 1782#line 264
 1783struct futex_pi_state;
 1784#line 265
 1785struct robust_list_head;
 1786#line 265
 1787struct robust_list_head;
 1788#line 266
 1789struct bio_list;
 1790#line 266
 1791struct bio_list;
 1792#line 267
 1793struct fs_struct;
 1794#line 267
 1795struct fs_struct;
 1796#line 268
 1797struct perf_event_context;
 1798#line 268
 1799struct perf_event_context;
 1800#line 269
 1801struct blk_plug;
 1802#line 269
 1803struct blk_plug;
 1804#line 149 "include/linux/sched.h"
 1805struct cfs_rq;
 1806#line 149
 1807struct cfs_rq;
 1808#line 44 "include/linux/aio_abi.h"
 1809struct io_event {
 1810   __u64 data ;
 1811   __u64 obj ;
 1812   __s64 res ;
 1813   __s64 res2 ;
 1814};
 1815#line 106 "include/linux/aio_abi.h"
 1816struct iovec {
 1817   void *iov_base ;
 1818   __kernel_size_t iov_len ;
 1819};
 1820#line 54 "include/linux/uio.h"
 1821struct kioctx;
 1822#line 54
 1823struct kioctx;
 1824#line 55 "include/linux/uio.h"
 1825union __anonunion_ki_obj_152 {
 1826   void *user ;
 1827   struct task_struct *tsk ;
 1828};
 1829#line 55
 1830struct eventfd_ctx;
 1831#line 55
 1832struct eventfd_ctx;
 1833#line 55 "include/linux/uio.h"
 1834struct kiocb {
 1835   struct list_head ki_run_list ;
 1836   unsigned long ki_flags ;
 1837   int ki_users ;
 1838   unsigned int ki_key ;
 1839   struct file *ki_filp ;
 1840   struct kioctx *ki_ctx ;
 1841   int (*ki_cancel)(struct kiocb * , struct io_event * ) ;
 1842   ssize_t (*ki_retry)(struct kiocb * ) ;
 1843   void (*ki_dtor)(struct kiocb * ) ;
 1844   union __anonunion_ki_obj_152 ki_obj ;
 1845   __u64 ki_user_data ;
 1846   loff_t ki_pos ;
 1847   void *private ;
 1848   unsigned short ki_opcode ;
 1849   size_t ki_nbytes ;
 1850   char *ki_buf ;
 1851   size_t ki_left ;
 1852   struct iovec ki_inline_vec ;
 1853   struct iovec *ki_iovec ;
 1854   unsigned long ki_nr_segs ;
 1855   unsigned long ki_cur_seg ;
 1856   struct list_head ki_list ;
 1857   struct eventfd_ctx *ki_eventfd ;
 1858};
 1859#line 161 "include/linux/aio.h"
 1860struct aio_ring_info {
 1861   unsigned long mmap_base ;
 1862   unsigned long mmap_size ;
 1863   struct page **ring_pages ;
 1864   spinlock_t ring_lock ;
 1865   long nr_pages ;
 1866   unsigned int nr ;
 1867   unsigned int tail ;
 1868   struct page *internal_pages[8U] ;
 1869};
 1870#line 177 "include/linux/aio.h"
 1871struct kioctx {
 1872   atomic_t users ;
 1873   int dead ;
 1874   struct mm_struct *mm ;
 1875   unsigned long user_id ;
 1876   struct hlist_node list ;
 1877   wait_queue_head_t wait ;
 1878   spinlock_t ctx_lock ;
 1879   int reqs_active ;
 1880   struct list_head active_reqs ;
 1881   struct list_head run_list ;
 1882   unsigned int max_reqs ;
 1883   struct aio_ring_info ring_info ;
 1884   struct delayed_work wq ;
 1885   struct rcu_head rcu_head ;
 1886};
 1887#line 404 "include/linux/sched.h"
 1888struct sighand_struct {
 1889   atomic_t count ;
 1890   struct k_sigaction action[64U] ;
 1891   spinlock_t siglock ;
 1892   wait_queue_head_t signalfd_wqh ;
 1893};
 1894#line 447 "include/linux/sched.h"
 1895struct pacct_struct {
 1896   int ac_flag ;
 1897   long ac_exitcode ;
 1898   unsigned long ac_mem ;
 1899   cputime_t ac_utime ;
 1900   cputime_t ac_stime ;
 1901   unsigned long ac_minflt ;
 1902   unsigned long ac_majflt ;
 1903};
 1904#line 455 "include/linux/sched.h"
 1905struct cpu_itimer {
 1906   cputime_t expires ;
 1907   cputime_t incr ;
 1908   u32 error ;
 1909   u32 incr_error ;
 1910};
 1911#line 462 "include/linux/sched.h"
 1912struct task_cputime {
 1913   cputime_t utime ;
 1914   cputime_t stime ;
 1915   unsigned long long sum_exec_runtime ;
 1916};
 1917#line 479 "include/linux/sched.h"
 1918struct thread_group_cputimer {
 1919   struct task_cputime cputime ;
 1920   int running ;
 1921   spinlock_t lock ;
 1922};
 1923#line 515
 1924struct autogroup;
 1925#line 515
 1926struct autogroup;
 1927#line 516
 1928struct tty_struct;
 1929#line 516
 1930struct tty_struct;
 1931#line 516
 1932struct taskstats;
 1933#line 516
 1934struct taskstats;
 1935#line 516
 1936struct tty_audit_buf;
 1937#line 516
 1938struct tty_audit_buf;
 1939#line 516 "include/linux/sched.h"
 1940struct signal_struct {
 1941   atomic_t sigcnt ;
 1942   atomic_t live ;
 1943   int nr_threads ;
 1944   wait_queue_head_t wait_chldexit ;
 1945   struct task_struct *curr_target ;
 1946   struct sigpending shared_pending ;
 1947   int group_exit_code ;
 1948   int notify_count ;
 1949   struct task_struct *group_exit_task ;
 1950   int group_stop_count ;
 1951   unsigned int flags ;
 1952   struct list_head posix_timers ;
 1953   struct hrtimer real_timer ;
 1954   struct pid *leader_pid ;
 1955   ktime_t it_real_incr ;
 1956   struct cpu_itimer it[2U] ;
 1957   struct thread_group_cputimer cputimer ;
 1958   struct task_cputime cputime_expires ;
 1959   struct list_head cpu_timers[3U] ;
 1960   struct pid *tty_old_pgrp ;
 1961   int leader ;
 1962   struct tty_struct *tty ;
 1963   struct autogroup *autogroup ;
 1964   cputime_t utime ;
 1965   cputime_t stime ;
 1966   cputime_t cutime ;
 1967   cputime_t cstime ;
 1968   cputime_t gtime ;
 1969   cputime_t cgtime ;
 1970   cputime_t prev_utime ;
 1971   cputime_t prev_stime ;
 1972   unsigned long nvcsw ;
 1973   unsigned long nivcsw ;
 1974   unsigned long cnvcsw ;
 1975   unsigned long cnivcsw ;
 1976   unsigned long min_flt ;
 1977   unsigned long maj_flt ;
 1978   unsigned long cmin_flt ;
 1979   unsigned long cmaj_flt ;
 1980   unsigned long inblock ;
 1981   unsigned long oublock ;
 1982   unsigned long cinblock ;
 1983   unsigned long coublock ;
 1984   unsigned long maxrss ;
 1985   unsigned long cmaxrss ;
 1986   struct task_io_accounting ioac ;
 1987   unsigned long long sum_sched_runtime ;
 1988   struct rlimit rlim[16U] ;
 1989   struct pacct_struct pacct ;
 1990   struct taskstats *stats ;
 1991   unsigned int audit_tty ;
 1992   struct tty_audit_buf *tty_audit_buf ;
 1993   struct rw_semaphore threadgroup_fork_lock ;
 1994   int oom_adj ;
 1995   int oom_score_adj ;
 1996   int oom_score_adj_min ;
 1997   struct mutex cred_guard_mutex ;
 1998};
 1999#line 683 "include/linux/sched.h"
 2000struct user_struct {
 2001   atomic_t __count ;
 2002   atomic_t processes ;
 2003   atomic_t files ;
 2004   atomic_t sigpending ;
 2005   atomic_t inotify_watches ;
 2006   atomic_t inotify_devs ;
 2007   atomic_t fanotify_listeners ;
 2008   atomic_long_t epoll_watches ;
 2009   unsigned long mq_bytes ;
 2010   unsigned long locked_shm ;
 2011   struct key *uid_keyring ;
 2012   struct key *session_keyring ;
 2013   struct hlist_node uidhash_node ;
 2014   uid_t uid ;
 2015   struct user_namespace *user_ns ;
 2016   atomic_long_t locked_vm ;
 2017};
 2018#line 728
 2019struct backing_dev_info;
 2020#line 728
 2021struct backing_dev_info;
 2022#line 729
 2023struct reclaim_state;
 2024#line 729
 2025struct reclaim_state;
 2026#line 730 "include/linux/sched.h"
 2027struct sched_info {
 2028   unsigned long pcount ;
 2029   unsigned long long run_delay ;
 2030   unsigned long long last_arrival ;
 2031   unsigned long long last_queued ;
 2032};
 2033#line 744 "include/linux/sched.h"
 2034struct task_delay_info {
 2035   spinlock_t lock ;
 2036   unsigned int flags ;
 2037   struct timespec blkio_start ;
 2038   struct timespec blkio_end ;
 2039   u64 blkio_delay ;
 2040   u64 swapin_delay ;
 2041   u32 blkio_count ;
 2042   u32 swapin_count ;
 2043   struct timespec freepages_start ;
 2044   struct timespec freepages_end ;
 2045   u64 freepages_delay ;
 2046   u32 freepages_count ;
 2047};
 2048#line 1037
 2049struct io_context;
 2050#line 1037
 2051struct io_context;
 2052#line 1059
 2053struct pipe_inode_info;
 2054#line 1059
 2055struct pipe_inode_info;
 2056#line 1061
 2057struct rq;
 2058#line 1061
 2059struct rq;
 2060#line 1062 "include/linux/sched.h"
 2061struct sched_class {
 2062   struct sched_class  const  *next ;
 2063   void (*enqueue_task)(struct rq * , struct task_struct * , int  ) ;
 2064   void (*dequeue_task)(struct rq * , struct task_struct * , int  ) ;
 2065   void (*yield_task)(struct rq * ) ;
 2066   bool (*yield_to_task)(struct rq * , struct task_struct * , bool  ) ;
 2067   void (*check_preempt_curr)(struct rq * , struct task_struct * , int  ) ;
 2068   struct task_struct *(*pick_next_task)(struct rq * ) ;
 2069   void (*put_prev_task)(struct rq * , struct task_struct * ) ;
 2070   int (*select_task_rq)(struct task_struct * , int  , int  ) ;
 2071   void (*pre_schedule)(struct rq * , struct task_struct * ) ;
 2072   void (*post_schedule)(struct rq * ) ;
 2073   void (*task_waking)(struct task_struct * ) ;
 2074   void (*task_woken)(struct rq * , struct task_struct * ) ;
 2075   void (*set_cpus_allowed)(struct task_struct * , struct cpumask  const  * ) ;
 2076   void (*rq_online)(struct rq * ) ;
 2077   void (*rq_offline)(struct rq * ) ;
 2078   void (*set_curr_task)(struct rq * ) ;
 2079   void (*task_tick)(struct rq * , struct task_struct * , int  ) ;
 2080   void (*task_fork)(struct task_struct * ) ;
 2081   void (*switched_from)(struct rq * , struct task_struct * ) ;
 2082   void (*switched_to)(struct rq * , struct task_struct * ) ;
 2083   void (*prio_changed)(struct rq * , struct task_struct * , int  ) ;
 2084   unsigned int (*get_rr_interval)(struct rq * , struct task_struct * ) ;
 2085   void (*task_move_group)(struct task_struct * , int  ) ;
 2086};
 2087#line 1127 "include/linux/sched.h"
 2088struct load_weight {
 2089   unsigned long weight ;
 2090   unsigned long inv_weight ;
 2091};
 2092#line 1132 "include/linux/sched.h"
 2093struct sched_statistics {
 2094   u64 wait_start ;
 2095   u64 wait_max ;
 2096   u64 wait_count ;
 2097   u64 wait_sum ;
 2098   u64 iowait_count ;
 2099   u64 iowait_sum ;
 2100   u64 sleep_start ;
 2101   u64 sleep_max ;
 2102   s64 sum_sleep_runtime ;
 2103   u64 block_start ;
 2104   u64 block_max ;
 2105   u64 exec_max ;
 2106   u64 slice_max ;
 2107   u64 nr_migrations_cold ;
 2108   u64 nr_failed_migrations_affine ;
 2109   u64 nr_failed_migrations_running ;
 2110   u64 nr_failed_migrations_hot ;
 2111   u64 nr_forced_migrations ;
 2112   u64 nr_wakeups ;
 2113   u64 nr_wakeups_sync ;
 2114   u64 nr_wakeups_migrate ;
 2115   u64 nr_wakeups_local ;
 2116   u64 nr_wakeups_remote ;
 2117   u64 nr_wakeups_affine ;
 2118   u64 nr_wakeups_affine_attempts ;
 2119   u64 nr_wakeups_passive ;
 2120   u64 nr_wakeups_idle ;
 2121};
 2122#line 1167 "include/linux/sched.h"
 2123struct sched_entity {
 2124   struct load_weight load ;
 2125   struct rb_node run_node ;
 2126   struct list_head group_node ;
 2127   unsigned int on_rq ;
 2128   u64 exec_start ;
 2129   u64 sum_exec_runtime ;
 2130   u64 vruntime ;
 2131   u64 prev_sum_exec_runtime ;
 2132   u64 nr_migrations ;
 2133   struct sched_statistics statistics ;
 2134   struct sched_entity *parent ;
 2135   struct cfs_rq *cfs_rq ;
 2136   struct cfs_rq *my_q ;
 2137};
 2138#line 1193
 2139struct rt_rq;
 2140#line 1193
 2141struct rt_rq;
 2142#line 1193 "include/linux/sched.h"
 2143struct sched_rt_entity {
 2144   struct list_head run_list ;
 2145   unsigned long timeout ;
 2146   unsigned int time_slice ;
 2147   int nr_cpus_allowed ;
 2148   struct sched_rt_entity *back ;
 2149   struct sched_rt_entity *parent ;
 2150   struct rt_rq *rt_rq ;
 2151   struct rt_rq *my_q ;
 2152};
 2153#line 1217
 2154struct mem_cgroup;
 2155#line 1217
 2156struct mem_cgroup;
 2157#line 1217 "include/linux/sched.h"
 2158struct memcg_batch_info {
 2159   int do_batch ;
 2160   struct mem_cgroup *memcg ;
 2161   unsigned long nr_pages ;
 2162   unsigned long memsw_nr_pages ;
 2163};
 2164#line 1569
 2165struct files_struct;
 2166#line 1569
 2167struct files_struct;
 2168#line 1569
 2169struct irqaction;
 2170#line 1569
 2171struct irqaction;
 2172#line 1569
 2173struct css_set;
 2174#line 1569
 2175struct css_set;
 2176#line 1569
 2177struct compat_robust_list_head;
 2178#line 1569
 2179struct compat_robust_list_head;
 2180#line 1569
 2181struct ftrace_ret_stack;
 2182#line 1569
 2183struct ftrace_ret_stack;
 2184#line 1569 "include/linux/sched.h"
 2185struct task_struct {
 2186   long volatile   state ;
 2187   void *stack ;
 2188   atomic_t usage ;
 2189   unsigned int flags ;
 2190   unsigned int ptrace ;
 2191   struct task_struct *wake_entry ;
 2192   int on_cpu ;
 2193   int on_rq ;
 2194   int prio ;
 2195   int static_prio ;
 2196   int normal_prio ;
 2197   unsigned int rt_priority ;
 2198   struct sched_class  const  *sched_class ;
 2199   struct sched_entity se ;
 2200   struct sched_rt_entity rt ;
 2201   struct hlist_head preempt_notifiers ;
 2202   unsigned char fpu_counter ;
 2203   unsigned int btrace_seq ;
 2204   unsigned int policy ;
 2205   cpumask_t cpus_allowed ;
 2206   struct sched_info sched_info ;
 2207   struct list_head tasks ;
 2208   struct plist_node pushable_tasks ;
 2209   struct mm_struct *mm ;
 2210   struct mm_struct *active_mm ;
 2211   unsigned char brk_randomized : 1 ;
 2212   int exit_state ;
 2213   int exit_code ;
 2214   int exit_signal ;
 2215   int pdeath_signal ;
 2216   unsigned int group_stop ;
 2217   unsigned int personality ;
 2218   unsigned char did_exec : 1 ;
 2219   unsigned char in_execve : 1 ;
 2220   unsigned char in_iowait : 1 ;
 2221   unsigned char sched_reset_on_fork : 1 ;
 2222   unsigned char sched_contributes_to_load : 1 ;
 2223   pid_t pid ;
 2224   pid_t tgid ;
 2225   unsigned long stack_canary ;
 2226   struct task_struct *real_parent ;
 2227   struct task_struct *parent ;
 2228   struct list_head children ;
 2229   struct list_head sibling ;
 2230   struct task_struct *group_leader ;
 2231   struct list_head ptraced ;
 2232   struct list_head ptrace_entry ;
 2233   struct pid_link pids[3U] ;
 2234   struct list_head thread_group ;
 2235   struct completion *vfork_done ;
 2236   int *set_child_tid ;
 2237   int *clear_child_tid ;
 2238   cputime_t utime ;
 2239   cputime_t stime ;
 2240   cputime_t utimescaled ;
 2241   cputime_t stimescaled ;
 2242   cputime_t gtime ;
 2243   cputime_t prev_utime ;
 2244   cputime_t prev_stime ;
 2245   unsigned long nvcsw ;
 2246   unsigned long nivcsw ;
 2247   struct timespec start_time ;
 2248   struct timespec real_start_time ;
 2249   unsigned long min_flt ;
 2250   unsigned long maj_flt ;
 2251   struct task_cputime cputime_expires ;
 2252   struct list_head cpu_timers[3U] ;
 2253   struct cred  const  *real_cred ;
 2254   struct cred  const  *cred ;
 2255   struct cred *replacement_session_keyring ;
 2256   char comm[16U] ;
 2257   int link_count ;
 2258   int total_link_count ;
 2259   struct sysv_sem sysvsem ;
 2260   unsigned long last_switch_count ;
 2261   struct thread_struct thread ;
 2262   struct fs_struct *fs ;
 2263   struct files_struct *files ;
 2264   struct nsproxy *nsproxy ;
 2265   struct signal_struct *signal ;
 2266   struct sighand_struct *sighand ;
 2267   sigset_t blocked ;
 2268   sigset_t real_blocked ;
 2269   sigset_t saved_sigmask ;
 2270   struct sigpending pending ;
 2271   unsigned long sas_ss_sp ;
 2272   size_t sas_ss_size ;
 2273   int (*notifier)(void * ) ;
 2274   void *notifier_data ;
 2275   sigset_t *notifier_mask ;
 2276   struct audit_context *audit_context ;
 2277   uid_t loginuid ;
 2278   unsigned int sessionid ;
 2279   seccomp_t seccomp ;
 2280   u32 parent_exec_id ;
 2281   u32 self_exec_id ;
 2282   spinlock_t alloc_lock ;
 2283   struct irqaction *irqaction ;
 2284   raw_spinlock_t pi_lock ;
 2285   struct plist_head pi_waiters ;
 2286   struct rt_mutex_waiter *pi_blocked_on ;
 2287   struct mutex_waiter *blocked_on ;
 2288   unsigned int irq_events ;
 2289   unsigned long hardirq_enable_ip ;
 2290   unsigned long hardirq_disable_ip ;
 2291   unsigned int hardirq_enable_event ;
 2292   unsigned int hardirq_disable_event ;
 2293   int hardirqs_enabled ;
 2294   int hardirq_context ;
 2295   unsigned long softirq_disable_ip ;
 2296   unsigned long softirq_enable_ip ;
 2297   unsigned int softirq_disable_event ;
 2298   unsigned int softirq_enable_event ;
 2299   int softirqs_enabled ;
 2300   int softirq_context ;
 2301   u64 curr_chain_key ;
 2302   int lockdep_depth ;
 2303   unsigned int lockdep_recursion ;
 2304   struct held_lock held_locks[48U] ;
 2305   gfp_t lockdep_reclaim_gfp ;
 2306   void *journal_info ;
 2307   struct bio_list *bio_list ;
 2308   struct blk_plug *plug ;
 2309   struct reclaim_state *reclaim_state ;
 2310   struct backing_dev_info *backing_dev_info ;
 2311   struct io_context *io_context ;
 2312   unsigned long ptrace_message ;
 2313   siginfo_t *last_siginfo ;
 2314   struct task_io_accounting ioac ;
 2315   u64 acct_rss_mem1 ;
 2316   u64 acct_vm_mem1 ;
 2317   cputime_t acct_timexpd ;
 2318   nodemask_t mems_allowed ;
 2319   int mems_allowed_change_disable ;
 2320   int cpuset_mem_spread_rotor ;
 2321   int cpuset_slab_spread_rotor ;
 2322   struct css_set *cgroups ;
 2323   struct list_head cg_list ;
 2324   struct robust_list_head *robust_list ;
 2325   struct compat_robust_list_head *compat_robust_list ;
 2326   struct list_head pi_state_list ;
 2327   struct futex_pi_state *pi_state_cache ;
 2328   struct perf_event_context *perf_event_ctxp[2U] ;
 2329   struct mutex perf_event_mutex ;
 2330   struct list_head perf_event_list ;
 2331   struct mempolicy *mempolicy ;
 2332   short il_next ;
 2333   short pref_node_fork ;
 2334   atomic_t fs_excl ;
 2335   struct rcu_head rcu ;
 2336   struct pipe_inode_info *splice_pipe ;
 2337   struct task_delay_info *delays ;
 2338   int make_it_fail ;
 2339   struct prop_local_single dirties ;
 2340   int latency_record_count ;
 2341   struct latency_record latency_record[32U] ;
 2342   unsigned long timer_slack_ns ;
 2343   unsigned long default_timer_slack_ns ;
 2344   struct list_head *scm_work_list ;
 2345   int curr_ret_stack ;
 2346   struct ftrace_ret_stack *ret_stack ;
 2347   unsigned long long ftrace_timestamp ;
 2348   atomic_t trace_overrun ;
 2349   atomic_t tracing_graph_pause ;
 2350   unsigned long trace ;
 2351   unsigned long trace_recursion ;
 2352   struct memcg_batch_info memcg_batch ;
 2353   atomic_t ptrace_bp_refcnt ;
 2354};
 2355#line 118 "include/linux/kmemleak.h"
 2356struct kmem_cache_cpu {
 2357   void **freelist ;
 2358   unsigned long tid ;
 2359   struct page *page ;
 2360   int node ;
 2361   unsigned int stat[19U] ;
 2362};
 2363#line 46 "include/linux/slub_def.h"
 2364struct kmem_cache_node {
 2365   spinlock_t list_lock ;
 2366   unsigned long nr_partial ;
 2367   struct list_head partial ;
 2368   atomic_long_t nr_slabs ;
 2369   atomic_long_t total_objects ;
 2370   struct list_head full ;
 2371};
 2372#line 57 "include/linux/slub_def.h"
 2373struct kmem_cache_order_objects {
 2374   unsigned long x ;
 2375};
 2376#line 67 "include/linux/slub_def.h"
 2377struct kmem_cache {
 2378   struct kmem_cache_cpu *cpu_slab ;
 2379   unsigned long flags ;
 2380   unsigned long min_partial ;
 2381   int size ;
 2382   int objsize ;
 2383   int offset ;
 2384   struct kmem_cache_order_objects oo ;
 2385   struct kmem_cache_order_objects max ;
 2386   struct kmem_cache_order_objects min ;
 2387   gfp_t allocflags ;
 2388   int refcount ;
 2389   void (*ctor)(void * ) ;
 2390   int inuse ;
 2391   int align ;
 2392   int reserved ;
 2393   char const   *name ;
 2394   struct list_head list ;
 2395   struct kobject kobj ;
 2396   int remote_node_defrag_ratio ;
 2397   struct kmem_cache_node *node[1024U] ;
 2398};
 2399#line 38 "include/linux/socket.h"
 2400typedef unsigned short sa_family_t;
 2401#line 39 "include/linux/socket.h"
 2402struct sockaddr {
 2403   sa_family_t sa_family ;
 2404   char sa_data[14U] ;
 2405};
 2406#line 179 "include/asm-generic/fcntl.h"
 2407struct poll_table_struct;
 2408#line 179
 2409struct poll_table_struct;
 2410#line 180
 2411struct net;
 2412#line 180
 2413struct net;
 2414#line 197
 2415struct fasync_struct;
 2416#line 197
 2417struct fasync_struct;
 2418#line 176 "include/linux/textsearch.h"
 2419struct exception_table_entry {
 2420   unsigned long insn ;
 2421   unsigned long fixup ;
 2422};
 2423#line 108 "include/net/checksum.h"
 2424struct sk_buff;
 2425#line 108
 2426struct sk_buff;
 2427#line 120
 2428struct klist_node;
 2429#line 120
 2430struct klist_node;
 2431#line 37 "include/linux/klist.h"
 2432struct klist_node {
 2433   void *n_klist ;
 2434   struct list_head n_node ;
 2435   struct kref n_ref ;
 2436};
 2437#line 67
 2438struct dma_map_ops;
 2439#line 67
 2440struct dma_map_ops;
 2441#line 67 "include/linux/klist.h"
 2442struct dev_archdata {
 2443   void *acpi_handle ;
 2444   struct dma_map_ops *dma_ops ;
 2445   void *iommu ;
 2446};
 2447#line 17 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/device.h"
 2448struct device_private;
 2449#line 17
 2450struct device_private;
 2451#line 18
 2452struct device_driver;
 2453#line 18
 2454struct device_driver;
 2455#line 19
 2456struct driver_private;
 2457#line 19
 2458struct driver_private;
 2459#line 20
 2460struct class;
 2461#line 20
 2462struct class;
 2463#line 21
 2464struct subsys_private;
 2465#line 21
 2466struct subsys_private;
 2467#line 22
 2468struct bus_type;
 2469#line 22
 2470struct bus_type;
 2471#line 23
 2472struct device_node;
 2473#line 23
 2474struct device_node;
 2475#line 24 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/device.h"
 2476struct bus_attribute {
 2477   struct attribute attr ;
 2478   ssize_t (*show)(struct bus_type * , char * ) ;
 2479   ssize_t (*store)(struct bus_type * , char const   * , size_t  ) ;
 2480};
 2481#line 49 "include/linux/device.h"
 2482struct device_attribute;
 2483#line 49
 2484struct device_attribute;
 2485#line 49
 2486struct driver_attribute;
 2487#line 49
 2488struct driver_attribute;
 2489#line 49 "include/linux/device.h"
 2490struct bus_type {
 2491   char const   *name ;
 2492   struct bus_attribute *bus_attrs ;
 2493   struct device_attribute *dev_attrs ;
 2494   struct driver_attribute *drv_attrs ;
 2495   int (*match)(struct device * , struct device_driver * ) ;
 2496   int (*uevent)(struct device * , struct kobj_uevent_env * ) ;
 2497   int (*probe)(struct device * ) ;
 2498   int (*remove)(struct device * ) ;
 2499   void (*shutdown)(struct device * ) ;
 2500   int (*suspend)(struct device * , pm_message_t  ) ;
 2501   int (*resume)(struct device * ) ;
 2502   struct dev_pm_ops  const  *pm ;
 2503   struct subsys_private *p ;
 2504};
 2505#line 153
 2506struct of_device_id;
 2507#line 153
 2508struct of_device_id;
 2509#line 153 "include/linux/device.h"
 2510struct device_driver {
 2511   char const   *name ;
 2512   struct bus_type *bus ;
 2513   struct module *owner ;
 2514   char const   *mod_name ;
 2515   bool suppress_bind_attrs ;
 2516   struct of_device_id  const  *of_match_table ;
 2517   int (*probe)(struct device * ) ;
 2518   int (*remove)(struct device * ) ;
 2519   void (*shutdown)(struct device * ) ;
 2520   int (*suspend)(struct device * , pm_message_t  ) ;
 2521   int (*resume)(struct device * ) ;
 2522   struct attribute_group  const  **groups ;
 2523   struct dev_pm_ops  const  *pm ;
 2524   struct driver_private *p ;
 2525};
 2526#line 218 "include/linux/device.h"
 2527struct driver_attribute {
 2528   struct attribute attr ;
 2529   ssize_t (*show)(struct device_driver * , char * ) ;
 2530   ssize_t (*store)(struct device_driver * , char const   * , size_t  ) ;
 2531};
 2532#line 248
 2533struct class_attribute;
 2534#line 248
 2535struct class_attribute;
 2536#line 248 "include/linux/device.h"
 2537struct class {
 2538   char const   *name ;
 2539   struct module *owner ;
 2540   struct class_attribute *class_attrs ;
 2541   struct device_attribute *dev_attrs ;
 2542   struct bin_attribute *dev_bin_attrs ;
 2543   struct kobject *dev_kobj ;
 2544   int (*dev_uevent)(struct device * , struct kobj_uevent_env * ) ;
 2545   char *(*devnode)(struct device * , mode_t * ) ;
 2546   void (*class_release)(struct class * ) ;
 2547   void (*dev_release)(struct device * ) ;
 2548   int (*suspend)(struct device * , pm_message_t  ) ;
 2549   int (*resume)(struct device * ) ;
 2550   struct kobj_ns_type_operations  const  *ns_type ;
 2551   void const   *(*namespace)(struct device * ) ;
 2552   struct dev_pm_ops  const  *pm ;
 2553   struct subsys_private *p ;
 2554};
 2555#line 305
 2556struct device_type;
 2557#line 305
 2558struct device_type;
 2559#line 344 "include/linux/device.h"
 2560struct class_attribute {
 2561   struct attribute attr ;
 2562   ssize_t (*show)(struct class * , struct class_attribute * , char * ) ;
 2563   ssize_t (*store)(struct class * , struct class_attribute * , char const   * , size_t  ) ;
 2564};
 2565#line 395 "include/linux/device.h"
 2566struct device_type {
 2567   char const   *name ;
 2568   struct attribute_group  const  **groups ;
 2569   int (*uevent)(struct device * , struct kobj_uevent_env * ) ;
 2570   char *(*devnode)(struct device * , mode_t * ) ;
 2571   void (*release)(struct device * ) ;
 2572   struct dev_pm_ops  const  *pm ;
 2573};
 2574#line 422 "include/linux/device.h"
 2575struct device_attribute {
 2576   struct attribute attr ;
 2577   ssize_t (*show)(struct device * , struct device_attribute * , char * ) ;
 2578   ssize_t (*store)(struct device * , struct device_attribute * , char const   * ,
 2579                    size_t  ) ;
 2580};
 2581#line 483 "include/linux/device.h"
 2582struct device_dma_parameters {
 2583   unsigned int max_segment_size ;
 2584   unsigned long segment_boundary_mask ;
 2585};
 2586#line 492
 2587struct dma_coherent_mem;
 2588#line 492
 2589struct dma_coherent_mem;
 2590#line 492 "include/linux/device.h"
 2591struct device {
 2592   struct device *parent ;
 2593   struct device_private *p ;
 2594   struct kobject kobj ;
 2595   char const   *init_name ;
 2596   struct device_type  const  *type ;
 2597   struct mutex mutex ;
 2598   struct bus_type *bus ;
 2599   struct device_driver *driver ;
 2600   void *platform_data ;
 2601   struct dev_pm_info power ;
 2602   struct dev_power_domain *pwr_domain ;
 2603   int numa_node ;
 2604   u64 *dma_mask ;
 2605   u64 coherent_dma_mask ;
 2606   struct device_dma_parameters *dma_parms ;
 2607   struct list_head dma_pools ;
 2608   struct dma_coherent_mem *dma_mem ;
 2609   struct dev_archdata archdata ;
 2610   struct device_node *of_node ;
 2611   dev_t devt ;
 2612   spinlock_t devres_lock ;
 2613   struct list_head devres_head ;
 2614   struct klist_node knode_class ;
 2615   struct class *class ;
 2616   struct attribute_group  const  **groups ;
 2617   void (*release)(struct device * ) ;
 2618};
 2619#line 604 "include/linux/device.h"
 2620struct wakeup_source {
 2621   char *name ;
 2622   struct list_head entry ;
 2623   spinlock_t lock ;
 2624   struct timer_list timer ;
 2625   unsigned long timer_expires ;
 2626   ktime_t total_time ;
 2627   ktime_t max_time ;
 2628   ktime_t last_time ;
 2629   unsigned long event_count ;
 2630   unsigned long active_count ;
 2631   unsigned long relax_count ;
 2632   unsigned long hit_count ;
 2633   unsigned char active : 1 ;
 2634};
 2635#line 34 "include/linux/bug.h"
 2636struct dma_attrs {
 2637   unsigned long flags[1U] ;
 2638};
 2639#line 65 "include/linux/dma-attrs.h"
 2640struct scatterlist {
 2641   unsigned long sg_magic ;
 2642   unsigned long page_link ;
 2643   unsigned int offset ;
 2644   unsigned int length ;
 2645   dma_addr_t dma_address ;
 2646   unsigned int dma_length ;
 2647};
 2648#line 92 "include/linux/bit_spinlock.h"
 2649struct file_ra_state;
 2650#line 92
 2651struct file_ra_state;
 2652#line 93
 2653struct writeback_control;
 2654#line 93
 2655struct writeback_control;
 2656#line 175 "include/linux/mm.h"
 2657struct vm_fault {
 2658   unsigned int flags ;
 2659   unsigned long pgoff ;
 2660   void *virtual_address ;
 2661   struct page *page ;
 2662};
 2663#line 192 "include/linux/mm.h"
 2664struct vm_operations_struct {
 2665   void (*open)(struct vm_area_struct * ) ;
 2666   void (*close)(struct vm_area_struct * ) ;
 2667   int (*fault)(struct vm_area_struct * , struct vm_fault * ) ;
 2668   int (*page_mkwrite)(struct vm_area_struct * , struct vm_fault * ) ;
 2669   int (*access)(struct vm_area_struct * , unsigned long  , void * , int  , int  ) ;
 2670   int (*set_policy)(struct vm_area_struct * , struct mempolicy * ) ;
 2671   struct mempolicy *(*get_policy)(struct vm_area_struct * , unsigned long  ) ;
 2672   int (*migrate)(struct vm_area_struct * , nodemask_t const   * , nodemask_t const   * ,
 2673                  unsigned long  ) ;
 2674};
 2675#line 266 "include/linux/scatterlist.h"
 2676enum dma_data_direction {
 2677    DMA_BIDIRECTIONAL = 0,
 2678    DMA_TO_DEVICE = 1,
 2679    DMA_FROM_DEVICE = 2,
 2680    DMA_NONE = 3
 2681} ;
 2682#line 273 "include/linux/scatterlist.h"
 2683struct dma_map_ops {
 2684   void *(*alloc_coherent)(struct device * , size_t  , dma_addr_t * , gfp_t  ) ;
 2685   void (*free_coherent)(struct device * , size_t  , void * , dma_addr_t  ) ;
 2686   dma_addr_t (*map_page)(struct device * , struct page * , unsigned long  , size_t  ,
 2687                          enum dma_data_direction  , struct dma_attrs * ) ;
 2688   void (*unmap_page)(struct device * , dma_addr_t  , size_t  , enum dma_data_direction  ,
 2689                      struct dma_attrs * ) ;
 2690   int (*map_sg)(struct device * , struct scatterlist * , int  , enum dma_data_direction  ,
 2691                 struct dma_attrs * ) ;
 2692   void (*unmap_sg)(struct device * , struct scatterlist * , int  , enum dma_data_direction  ,
 2693                    struct dma_attrs * ) ;
 2694   void (*sync_single_for_cpu)(struct device * , dma_addr_t  , size_t  , enum dma_data_direction  ) ;
 2695   void (*sync_single_for_device)(struct device * , dma_addr_t  , size_t  , enum dma_data_direction  ) ;
 2696   void (*sync_sg_for_cpu)(struct device * , struct scatterlist * , int  , enum dma_data_direction  ) ;
 2697   void (*sync_sg_for_device)(struct device * , struct scatterlist * , int  , enum dma_data_direction  ) ;
 2698   int (*mapping_error)(struct device * , dma_addr_t  ) ;
 2699   int (*dma_supported)(struct device * , u64  ) ;
 2700   int (*set_dma_mask)(struct device * , u64  ) ;
 2701   int is_phys ;
 2702};
 2703#line 33 "include/linux/dmaengine.h"
 2704typedef s32 dma_cookie_t;
 2705#line 874
 2706struct net_device;
 2707#line 874
 2708struct net_device;
 2709#line 875 "include/linux/dmaengine.h"
 2710struct nf_conntrack {
 2711   atomic_t use ;
 2712};
 2713#line 102 "include/linux/skbuff.h"
 2714struct nf_bridge_info {
 2715   atomic_t use ;
 2716   struct net_device *physindev ;
 2717   struct net_device *physoutdev ;
 2718   unsigned int mask ;
 2719   unsigned long data[4U] ;
 2720};
 2721#line 112 "include/linux/skbuff.h"
 2722struct sk_buff_head {
 2723   struct sk_buff *next ;
 2724   struct sk_buff *prev ;
 2725   __u32 qlen ;
 2726   spinlock_t lock ;
 2727};
 2728#line 259 "include/linux/skbuff.h"
 2729typedef unsigned int sk_buff_data_t;
 2730#line 260
 2731struct sec_path;
 2732#line 260
 2733struct sec_path;
 2734#line 260 "include/linux/skbuff.h"
 2735struct __anonstruct_ldv_22262_156 {
 2736   __u16 csum_start ;
 2737   __u16 csum_offset ;
 2738};
 2739#line 260 "include/linux/skbuff.h"
 2740union __anonunion_ldv_22263_155 {
 2741   __wsum csum ;
 2742   struct __anonstruct_ldv_22262_156 ldv_22262 ;
 2743};
 2744#line 260 "include/linux/skbuff.h"
 2745union __anonunion_ldv_22293_157 {
 2746   __u32 mark ;
 2747   __u32 dropcount ;
 2748};
 2749#line 260 "include/linux/skbuff.h"
 2750struct sk_buff {
 2751   struct sk_buff *next ;
 2752   struct sk_buff *prev ;
 2753   ktime_t tstamp ;
 2754   struct sock *sk ;
 2755   struct net_device *dev ;
 2756   char cb[48U] ;
 2757   unsigned long _skb_refdst ;
 2758   struct sec_path *sp ;
 2759   unsigned int len ;
 2760   unsigned int data_len ;
 2761   __u16 mac_len ;
 2762   __u16 hdr_len ;
 2763   union __anonunion_ldv_22263_155 ldv_22263 ;
 2764   __u32 priority ;
 2765   unsigned char local_df : 1 ;
 2766   unsigned char cloned : 1 ;
 2767   unsigned char ip_summed : 2 ;
 2768   unsigned char nohdr : 1 ;
 2769   unsigned char nfctinfo : 3 ;
 2770   unsigned char pkt_type : 3 ;
 2771   unsigned char fclone : 2 ;
 2772   unsigned char ipvs_property : 1 ;
 2773   unsigned char peeked : 1 ;
 2774   unsigned char nf_trace : 1 ;
 2775   __be16 protocol ;
 2776   void (*destructor)(struct sk_buff * ) ;
 2777   struct nf_conntrack *nfct ;
 2778   struct sk_buff *nfct_reasm ;
 2779   struct nf_bridge_info *nf_bridge ;
 2780   int skb_iif ;
 2781   __u16 tc_index ;
 2782   __u16 tc_verd ;
 2783   __u32 rxhash ;
 2784   __u16 queue_mapping ;
 2785   unsigned char ndisc_nodetype : 2 ;
 2786   unsigned char ooo_okay : 1 ;
 2787   dma_cookie_t dma_cookie ;
 2788   __u32 secmark ;
 2789   union __anonunion_ldv_22293_157 ldv_22293 ;
 2790   __u16 vlan_tci ;
 2791   sk_buff_data_t transport_header ;
 2792   sk_buff_data_t network_header ;
 2793   sk_buff_data_t mac_header ;
 2794   sk_buff_data_t tail ;
 2795   sk_buff_data_t end ;
 2796   unsigned char *head ;
 2797   unsigned char *data ;
 2798   unsigned int truesize ;
 2799   atomic_t users ;
 2800};
 2801#line 450
 2802struct dst_entry;
 2803#line 450
 2804struct dst_entry;
 2805#line 41 "include/linux/hdlc/ioctl.h"
 2806struct __anonstruct_sync_serial_settings_158 {
 2807   unsigned int clock_rate ;
 2808   unsigned int clock_type ;
 2809   unsigned short loopback ;
 2810};
 2811#line 41 "include/linux/hdlc/ioctl.h"
 2812typedef struct __anonstruct_sync_serial_settings_158 sync_serial_settings;
 2813#line 48 "include/linux/hdlc/ioctl.h"
 2814struct __anonstruct_te1_settings_159 {
 2815   unsigned int clock_rate ;
 2816   unsigned int clock_type ;
 2817   unsigned short loopback ;
 2818   unsigned int slot_map ;
 2819};
 2820#line 48 "include/linux/hdlc/ioctl.h"
 2821typedef struct __anonstruct_te1_settings_159 te1_settings;
 2822#line 53 "include/linux/hdlc/ioctl.h"
 2823struct __anonstruct_raw_hdlc_proto_160 {
 2824   unsigned short encoding ;
 2825   unsigned short parity ;
 2826};
 2827#line 53 "include/linux/hdlc/ioctl.h"
 2828typedef struct __anonstruct_raw_hdlc_proto_160 raw_hdlc_proto;
 2829#line 63 "include/linux/hdlc/ioctl.h"
 2830struct __anonstruct_fr_proto_161 {
 2831   unsigned int t391 ;
 2832   unsigned int t392 ;
 2833   unsigned int n391 ;
 2834   unsigned int n392 ;
 2835   unsigned int n393 ;
 2836   unsigned short lmi ;
 2837   unsigned short dce ;
 2838};
 2839#line 63 "include/linux/hdlc/ioctl.h"
 2840typedef struct __anonstruct_fr_proto_161 fr_proto;
 2841#line 67 "include/linux/hdlc/ioctl.h"
 2842struct __anonstruct_fr_proto_pvc_162 {
 2843   unsigned int dlci ;
 2844};
 2845#line 67 "include/linux/hdlc/ioctl.h"
 2846typedef struct __anonstruct_fr_proto_pvc_162 fr_proto_pvc;
 2847#line 72 "include/linux/hdlc/ioctl.h"
 2848struct __anonstruct_fr_proto_pvc_info_163 {
 2849   unsigned int dlci ;
 2850   char master[16U] ;
 2851};
 2852#line 72 "include/linux/hdlc/ioctl.h"
 2853typedef struct __anonstruct_fr_proto_pvc_info_163 fr_proto_pvc_info;
 2854#line 77 "include/linux/hdlc/ioctl.h"
 2855struct __anonstruct_cisco_proto_164 {
 2856   unsigned int interval ;
 2857   unsigned int timeout ;
 2858};
 2859#line 77 "include/linux/hdlc/ioctl.h"
 2860typedef struct __anonstruct_cisco_proto_164 cisco_proto;
 2861#line 93 "include/linux/hdlc/ioctl.h"
 2862struct ifmap {
 2863   unsigned long mem_start ;
 2864   unsigned long mem_end ;
 2865   unsigned short base_addr ;
 2866   unsigned char irq ;
 2867   unsigned char dma ;
 2868   unsigned char port ;
 2869};
 2870#line 142 "include/linux/if.h"
 2871union __anonunion_ifs_ifsu_165 {
 2872   raw_hdlc_proto *raw_hdlc ;
 2873   cisco_proto *cisco ;
 2874   fr_proto *fr ;
 2875   fr_proto_pvc *fr_pvc ;
 2876   fr_proto_pvc_info *fr_pvc_info ;
 2877   sync_serial_settings *sync ;
 2878   te1_settings *te1 ;
 2879};
 2880#line 142 "include/linux/if.h"
 2881struct if_settings {
 2882   unsigned int type ;
 2883   unsigned int size ;
 2884   union __anonunion_ifs_ifsu_165 ifs_ifsu ;
 2885};
 2886#line 160 "include/linux/if.h"
 2887union __anonunion_ifr_ifrn_166 {
 2888   char ifrn_name[16U] ;
 2889};
 2890#line 160 "include/linux/if.h"
 2891union __anonunion_ifr_ifru_167 {
 2892   struct sockaddr ifru_addr ;
 2893   struct sockaddr ifru_dstaddr ;
 2894   struct sockaddr ifru_broadaddr ;
 2895   struct sockaddr ifru_netmask ;
 2896   struct sockaddr ifru_hwaddr ;
 2897   short ifru_flags ;
 2898   int ifru_ivalue ;
 2899   int ifru_mtu ;
 2900   struct ifmap ifru_map ;
 2901   char ifru_slave[16U] ;
 2902   char ifru_newname[16U] ;
 2903   void *ifru_data ;
 2904   struct if_settings ifru_settings ;
 2905};
 2906#line 160 "include/linux/if.h"
 2907struct ifreq {
 2908   union __anonunion_ifr_ifrn_166 ifr_ifrn ;
 2909   union __anonunion_ifr_ifru_167 ifr_ifru ;
 2910};
 2911#line 224 "include/linux/if.h"
 2912struct ethhdr {
 2913   unsigned char h_dest[6U] ;
 2914   unsigned char h_source[6U] ;
 2915   __be16 h_proto ;
 2916};
 2917#line 113 "include/linux/netlink.h"
 2918struct nlattr {
 2919   __u16 nla_len ;
 2920   __u16 nla_type ;
 2921};
 2922#line 39 "include/linux/if_link.h"
 2923struct rtnl_link_stats64 {
 2924   __u64 rx_packets ;
 2925   __u64 tx_packets ;
 2926   __u64 rx_bytes ;
 2927   __u64 tx_bytes ;
 2928   __u64 rx_errors ;
 2929   __u64 tx_errors ;
 2930   __u64 rx_dropped ;
 2931   __u64 tx_dropped ;
 2932   __u64 multicast ;
 2933   __u64 collisions ;
 2934   __u64 rx_length_errors ;
 2935   __u64 rx_over_errors ;
 2936   __u64 rx_crc_errors ;
 2937   __u64 rx_frame_errors ;
 2938   __u64 rx_fifo_errors ;
 2939   __u64 rx_missed_errors ;
 2940   __u64 tx_aborted_errors ;
 2941   __u64 tx_carrier_errors ;
 2942   __u64 tx_fifo_errors ;
 2943   __u64 tx_heartbeat_errors ;
 2944   __u64 tx_window_errors ;
 2945   __u64 rx_compressed ;
 2946   __u64 tx_compressed ;
 2947};
 2948#line 302 "include/linux/if_link.h"
 2949struct ifla_vf_info {
 2950   __u32 vf ;
 2951   __u8 mac[32U] ;
 2952   __u32 vlan ;
 2953   __u32 qos ;
 2954   __u32 tx_rate ;
 2955};
 2956#line 382
 2957struct file_operations;
 2958#line 382
 2959struct file_operations;
 2960#line 60 "include/linux/miscdevice.h"
 2961struct pm_qos_request_list {
 2962   struct plist_node list ;
 2963   int pm_qos_class ;
 2964};
 2965#line 57 "include/linux/delay.h"
 2966struct block_device;
 2967#line 57
 2968struct block_device;
 2969#line 89 "include/linux/kdev_t.h"
 2970struct hlist_bl_node;
 2971#line 89
 2972struct hlist_bl_node;
 2973#line 89 "include/linux/kdev_t.h"
 2974struct hlist_bl_head {
 2975   struct hlist_bl_node *first ;
 2976};
 2977#line 36 "include/linux/list_bl.h"
 2978struct hlist_bl_node {
 2979   struct hlist_bl_node *next ;
 2980   struct hlist_bl_node **pprev ;
 2981};
 2982#line 114 "include/linux/rculist_bl.h"
 2983struct nameidata;
 2984#line 114
 2985struct nameidata;
 2986#line 115
 2987struct path;
 2988#line 115
 2989struct path;
 2990#line 116
 2991struct vfsmount;
 2992#line 116
 2993struct vfsmount;
 2994#line 117 "include/linux/rculist_bl.h"
 2995struct qstr {
 2996   unsigned int hash ;
 2997   unsigned int len ;
 2998   unsigned char const   *name ;
 2999};
 3000#line 100 "include/linux/dcache.h"
 3001struct dentry_operations;
 3002#line 100
 3003struct dentry_operations;
 3004#line 100
 3005struct super_block;
 3006#line 100
 3007struct super_block;
 3008#line 100 "include/linux/dcache.h"
 3009union __anonunion_d_u_169 {
 3010   struct list_head d_child ;
 3011   struct rcu_head d_rcu ;
 3012};
 3013#line 100 "include/linux/dcache.h"
 3014struct dentry {
 3015   unsigned int d_flags ;
 3016   seqcount_t d_seq ;
 3017   struct hlist_bl_node d_hash ;
 3018   struct dentry *d_parent ;
 3019   struct qstr d_name ;
 3020   struct inode *d_inode ;
 3021   unsigned char d_iname[32U] ;
 3022   unsigned int d_count ;
 3023   spinlock_t d_lock ;
 3024   struct dentry_operations  const  *d_op ;
 3025   struct super_block *d_sb ;
 3026   unsigned long d_time ;
 3027   void *d_fsdata ;
 3028   struct list_head d_lru ;
 3029   union __anonunion_d_u_169 d_u ;
 3030   struct list_head d_subdirs ;
 3031   struct list_head d_alias ;
 3032};
 3033#line 151 "include/linux/dcache.h"
 3034struct dentry_operations {
 3035   int (*d_revalidate)(struct dentry * , struct nameidata * ) ;
 3036   int (*d_hash)(struct dentry  const  * , struct inode  const  * , struct qstr * ) ;
 3037   int (*d_compare)(struct dentry  const  * , struct inode  const  * , struct dentry  const  * ,
 3038                    struct inode  const  * , unsigned int  , char const   * , struct qstr  const  * ) ;
 3039   int (*d_delete)(struct dentry  const  * ) ;
 3040   void (*d_release)(struct dentry * ) ;
 3041   void (*d_iput)(struct dentry * , struct inode * ) ;
 3042   char *(*d_dname)(struct dentry * , char * , int  ) ;
 3043   struct vfsmount *(*d_automount)(struct path * ) ;
 3044   int (*d_manage)(struct dentry * , bool  ) ;
 3045};
 3046#line 422 "include/linux/dcache.h"
 3047struct path {
 3048   struct vfsmount *mnt ;
 3049   struct dentry *dentry ;
 3050};
 3051#line 51 "include/linux/radix-tree.h"
 3052struct radix_tree_node;
 3053#line 51
 3054struct radix_tree_node;
 3055#line 51 "include/linux/radix-tree.h"
 3056struct radix_tree_root {
 3057   unsigned int height ;
 3058   gfp_t gfp_mask ;
 3059   struct radix_tree_node *rnode ;
 3060};
 3061#line 45 "include/linux/semaphore.h"
 3062struct fiemap_extent {
 3063   __u64 fe_logical ;
 3064   __u64 fe_physical ;
 3065   __u64 fe_length ;
 3066   __u64 fe_reserved64[2U] ;
 3067   __u32 fe_flags ;
 3068   __u32 fe_reserved[3U] ;
 3069};
 3070#line 38 "include/linux/fiemap.h"
 3071struct export_operations;
 3072#line 38
 3073struct export_operations;
 3074#line 40
 3075struct kstatfs;
 3076#line 40
 3077struct kstatfs;
 3078#line 426 "include/linux/fs.h"
 3079struct iattr {
 3080   unsigned int ia_valid ;
 3081   umode_t ia_mode ;
 3082   uid_t ia_uid ;
 3083   gid_t ia_gid ;
 3084   loff_t ia_size ;
 3085   struct timespec ia_atime ;
 3086   struct timespec ia_mtime ;
 3087   struct timespec ia_ctime ;
 3088   struct file *ia_file ;
 3089};
 3090#line 119 "include/linux/quota.h"
 3091struct if_dqinfo {
 3092   __u64 dqi_bgrace ;
 3093   __u64 dqi_igrace ;
 3094   __u32 dqi_flags ;
 3095   __u32 dqi_valid ;
 3096};
 3097#line 152 "include/linux/quota.h"
 3098struct fs_disk_quota {
 3099   __s8 d_version ;
 3100   __s8 d_flags ;
 3101   __u16 d_fieldmask ;
 3102   __u32 d_id ;
 3103   __u64 d_blk_hardlimit ;
 3104   __u64 d_blk_softlimit ;
 3105   __u64 d_ino_hardlimit ;
 3106   __u64 d_ino_softlimit ;
 3107   __u64 d_bcount ;
 3108   __u64 d_icount ;
 3109   __s32 d_itimer ;
 3110   __s32 d_btimer ;
 3111   __u16 d_iwarns ;
 3112   __u16 d_bwarns ;
 3113   __s32 d_padding2 ;
 3114   __u64 d_rtb_hardlimit ;
 3115   __u64 d_rtb_softlimit ;
 3116   __u64 d_rtbcount ;
 3117   __s32 d_rtbtimer ;
 3118   __u16 d_rtbwarns ;
 3119   __s16 d_padding3 ;
 3120   char d_padding4[8U] ;
 3121};
 3122#line 75 "include/linux/dqblk_xfs.h"
 3123struct fs_qfilestat {
 3124   __u64 qfs_ino ;
 3125   __u64 qfs_nblks ;
 3126   __u32 qfs_nextents ;
 3127};
 3128#line 150 "include/linux/dqblk_xfs.h"
 3129typedef struct fs_qfilestat fs_qfilestat_t;
 3130#line 151 "include/linux/dqblk_xfs.h"
 3131struct fs_quota_stat {
 3132   __s8 qs_version ;
 3133   __u16 qs_flags ;
 3134   __s8 qs_pad ;
 3135   fs_qfilestat_t qs_uquota ;
 3136   fs_qfilestat_t qs_gquota ;
 3137   __u32 qs_incoredqs ;
 3138   __s32 qs_btimelimit ;
 3139   __s32 qs_itimelimit ;
 3140   __s32 qs_rtbtimelimit ;
 3141   __u16 qs_bwarnlimit ;
 3142   __u16 qs_iwarnlimit ;
 3143};
 3144#line 165
 3145struct dquot;
 3146#line 165
 3147struct dquot;
 3148#line 185 "include/linux/quota.h"
 3149typedef __kernel_uid32_t qid_t;
 3150#line 186 "include/linux/quota.h"
 3151typedef long long qsize_t;
 3152#line 189 "include/linux/quota.h"
 3153struct mem_dqblk {
 3154   qsize_t dqb_bhardlimit ;
 3155   qsize_t dqb_bsoftlimit ;
 3156   qsize_t dqb_curspace ;
 3157   qsize_t dqb_rsvspace ;
 3158   qsize_t dqb_ihardlimit ;
 3159   qsize_t dqb_isoftlimit ;
 3160   qsize_t dqb_curinodes ;
 3161   time_t dqb_btime ;
 3162   time_t dqb_itime ;
 3163};
 3164#line 211
 3165struct quota_format_type;
 3166#line 211
 3167struct quota_format_type;
 3168#line 212 "include/linux/quota.h"
 3169struct mem_dqinfo {
 3170   struct quota_format_type *dqi_format ;
 3171   int dqi_fmt_id ;
 3172   struct list_head dqi_dirty_list ;
 3173   unsigned long dqi_flags ;
 3174   unsigned int dqi_bgrace ;
 3175   unsigned int dqi_igrace ;
 3176   qsize_t dqi_maxblimit ;
 3177   qsize_t dqi_maxilimit ;
 3178   void *dqi_priv ;
 3179};
 3180#line 271 "include/linux/quota.h"
 3181struct dquot {
 3182   struct hlist_node dq_hash ;
 3183   struct list_head dq_inuse ;
 3184   struct list_head dq_free ;
 3185   struct list_head dq_dirty ;
 3186   struct mutex dq_lock ;
 3187   atomic_t dq_count ;
 3188   wait_queue_head_t dq_wait_unused ;
 3189   struct super_block *dq_sb ;
 3190   unsigned int dq_id ;
 3191   loff_t dq_off ;
 3192   unsigned long dq_flags ;
 3193   short dq_type ;
 3194   struct mem_dqblk dq_dqb ;
 3195};
 3196#line 299 "include/linux/quota.h"
 3197struct quota_format_ops {
 3198   int (*check_quota_file)(struct super_block * , int  ) ;
 3199   int (*read_file_info)(struct super_block * , int  ) ;
 3200   int (*write_file_info)(struct super_block * , int  ) ;
 3201   int (*free_file_info)(struct super_block * , int  ) ;
 3202   int (*read_dqblk)(struct dquot * ) ;
 3203   int (*commit_dqblk)(struct dquot * ) ;
 3204   int (*release_dqblk)(struct dquot * ) ;
 3205};
 3206#line 310 "include/linux/quota.h"
 3207struct dquot_operations {
 3208   int (*write_dquot)(struct dquot * ) ;
 3209   struct dquot *(*alloc_dquot)(struct super_block * , int  ) ;
 3210   void (*destroy_dquot)(struct dquot * ) ;
 3211   int (*acquire_dquot)(struct dquot * ) ;
 3212   int (*release_dquot)(struct dquot * ) ;
 3213   int (*mark_dirty)(struct dquot * ) ;
 3214   int (*write_info)(struct super_block * , int  ) ;
 3215   qsize_t *(*get_reserved_space)(struct inode * ) ;
 3216};
 3217#line 324 "include/linux/quota.h"
 3218struct quotactl_ops {
 3219   int (*quota_on)(struct super_block * , int  , int  , struct path * ) ;
 3220   int (*quota_on_meta)(struct super_block * , int  , int  ) ;
 3221   int (*quota_off)(struct super_block * , int  ) ;
 3222   int (*quota_sync)(struct super_block * , int  , int  ) ;
 3223   int (*get_info)(struct super_block * , int  , struct if_dqinfo * ) ;
 3224   int (*set_info)(struct super_block * , int  , struct if_dqinfo * ) ;
 3225   int (*get_dqblk)(struct super_block * , int  , qid_t  , struct fs_disk_quota * ) ;
 3226   int (*set_dqblk)(struct super_block * , int  , qid_t  , struct fs_disk_quota * ) ;
 3227   int (*get_xstate)(struct super_block * , struct fs_quota_stat * ) ;
 3228   int (*set_xstate)(struct super_block * , unsigned int  , int  ) ;
 3229};
 3230#line 340 "include/linux/quota.h"
 3231struct quota_format_type {
 3232   int qf_fmt_id ;
 3233   struct quota_format_ops  const  *qf_ops ;
 3234   struct module *qf_owner ;
 3235   struct quota_format_type *qf_next ;
 3236};
 3237#line 386 "include/linux/quota.h"
 3238struct quota_info {
 3239   unsigned int flags ;
 3240   struct mutex dqio_mutex ;
 3241   struct mutex dqonoff_mutex ;
 3242   struct rw_semaphore dqptr_sem ;
 3243   struct inode *files[2U] ;
 3244   struct mem_dqinfo info[2U] ;
 3245   struct quota_format_ops  const  *ops[2U] ;
 3246};
 3247#line 576 "include/linux/fs.h"
 3248union __anonunion_arg_171 {
 3249   char *buf ;
 3250   void *data ;
 3251};
 3252#line 576 "include/linux/fs.h"
 3253struct __anonstruct_read_descriptor_t_170 {
 3254   size_t written ;
 3255   size_t count ;
 3256   union __anonunion_arg_171 arg ;
 3257   int error ;
 3258};
 3259#line 576 "include/linux/fs.h"
 3260typedef struct __anonstruct_read_descriptor_t_170 read_descriptor_t;
 3261#line 579 "include/linux/fs.h"
 3262struct address_space_operations {
 3263   int (*writepage)(struct page * , struct writeback_control * ) ;
 3264   int (*readpage)(struct file * , struct page * ) ;
 3265   int (*writepages)(struct address_space * , struct writeback_control * ) ;
 3266   int (*set_page_dirty)(struct page * ) ;
 3267   int (*readpages)(struct file * , struct address_space * , struct list_head * ,
 3268                    unsigned int  ) ;
 3269   int (*write_begin)(struct file * , struct address_space * , loff_t  , unsigned int  ,
 3270                      unsigned int  , struct page ** , void ** ) ;
 3271   int (*write_end)(struct file * , struct address_space * , loff_t  , unsigned int  ,
 3272                    unsigned int  , struct page * , void * ) ;
 3273   sector_t (*bmap)(struct address_space * , sector_t  ) ;
 3274   void (*invalidatepage)(struct page * , unsigned long  ) ;
 3275   int (*releasepage)(struct page * , gfp_t  ) ;
 3276   void (*freepage)(struct page * ) ;
 3277   ssize_t (*direct_IO)(int  , struct kiocb * , struct iovec  const  * , loff_t  ,
 3278                        unsigned long  ) ;
 3279   int (*get_xip_mem)(struct address_space * , unsigned long  , int  , void ** , unsigned long * ) ;
 3280   int (*migratepage)(struct address_space * , struct page * , struct page * ) ;
 3281   int (*launder_page)(struct page * ) ;
 3282   int (*is_partially_uptodate)(struct page * , read_descriptor_t * , unsigned long  ) ;
 3283   int (*error_remove_page)(struct address_space * , struct page * ) ;
 3284};
 3285#line 630 "include/linux/fs.h"
 3286struct address_space {
 3287   struct inode *host ;
 3288   struct radix_tree_root page_tree ;
 3289   spinlock_t tree_lock ;
 3290   unsigned int i_mmap_writable ;
 3291   struct prio_tree_root i_mmap ;
 3292   struct list_head i_mmap_nonlinear ;
 3293   struct mutex i_mmap_mutex ;
 3294   unsigned long nrpages ;
 3295   unsigned long writeback_index ;
 3296   struct address_space_operations  const  *a_ops ;
 3297   unsigned long flags ;
 3298   struct backing_dev_info *backing_dev_info ;
 3299   spinlock_t private_lock ;
 3300   struct list_head private_list ;
 3301   struct address_space *assoc_mapping ;
 3302};
 3303#line 652
 3304struct hd_struct;
 3305#line 652
 3306struct hd_struct;
 3307#line 652
 3308struct gendisk;
 3309#line 652
 3310struct gendisk;
 3311#line 652 "include/linux/fs.h"
 3312struct block_device {
 3313   dev_t bd_dev ;
 3314   int bd_openers ;
 3315   struct inode *bd_inode ;
 3316   struct super_block *bd_super ;
 3317   struct mutex bd_mutex ;
 3318   struct list_head bd_inodes ;
 3319   void *bd_claiming ;
 3320   void *bd_holder ;
 3321   int bd_holders ;
 3322   bool bd_write_holder ;
 3323   struct list_head bd_holder_disks ;
 3324   struct block_device *bd_contains ;
 3325   unsigned int bd_block_size ;
 3326   struct hd_struct *bd_part ;
 3327   unsigned int bd_part_count ;
 3328   int bd_invalidated ;
 3329   struct gendisk *bd_disk ;
 3330   struct list_head bd_list ;
 3331   unsigned long bd_private ;
 3332   int bd_fsfreeze_count ;
 3333   struct mutex bd_fsfreeze_mutex ;
 3334};
 3335#line 723
 3336struct posix_acl;
 3337#line 723
 3338struct posix_acl;
 3339#line 724
 3340struct inode_operations;
 3341#line 724
 3342struct inode_operations;
 3343#line 724 "include/linux/fs.h"
 3344union __anonunion_ldv_24848_172 {
 3345   struct list_head i_dentry ;
 3346   struct rcu_head i_rcu ;
 3347};
 3348#line 724
 3349struct file_lock;
 3350#line 724
 3351struct file_lock;
 3352#line 724
 3353struct cdev;
 3354#line 724
 3355struct cdev;
 3356#line 724 "include/linux/fs.h"
 3357union __anonunion_ldv_24874_173 {
 3358   struct pipe_inode_info *i_pipe ;
 3359   struct block_device *i_bdev ;
 3360   struct cdev *i_cdev ;
 3361};
 3362#line 724 "include/linux/fs.h"
 3363struct inode {
 3364   umode_t i_mode ;
 3365   uid_t i_uid ;
 3366   gid_t i_gid ;
 3367   struct inode_operations  const  *i_op ;
 3368   struct super_block *i_sb ;
 3369   spinlock_t i_lock ;
 3370   unsigned int i_flags ;
 3371   unsigned long i_state ;
 3372   void *i_security ;
 3373   struct mutex i_mutex ;
 3374   unsigned long dirtied_when ;
 3375   struct hlist_node i_hash ;
 3376   struct list_head i_wb_list ;
 3377   struct list_head i_lru ;
 3378   struct list_head i_sb_list ;
 3379   union __anonunion_ldv_24848_172 ldv_24848 ;
 3380   unsigned long i_ino ;
 3381   atomic_t i_count ;
 3382   unsigned int i_nlink ;
 3383   dev_t i_rdev ;
 3384   unsigned int i_blkbits ;
 3385   u64 i_version ;
 3386   loff_t i_size ;
 3387   struct timespec i_atime ;
 3388   struct timespec i_mtime ;
 3389   struct timespec i_ctime ;
 3390   blkcnt_t i_blocks ;
 3391   unsigned short i_bytes ;
 3392   struct rw_semaphore i_alloc_sem ;
 3393   struct file_operations  const  *i_fop ;
 3394   struct file_lock *i_flock ;
 3395   struct address_space *i_mapping ;
 3396   struct address_space i_data ;
 3397   struct dquot *i_dquot[2U] ;
 3398   struct list_head i_devices ;
 3399   union __anonunion_ldv_24874_173 ldv_24874 ;
 3400   __u32 i_generation ;
 3401   __u32 i_fsnotify_mask ;
 3402   struct hlist_head i_fsnotify_marks ;
 3403   atomic_t i_readcount ;
 3404   atomic_t i_writecount ;
 3405   struct posix_acl *i_acl ;
 3406   struct posix_acl *i_default_acl ;
 3407   void *i_private ;
 3408};
 3409#line 902 "include/linux/fs.h"
 3410struct fown_struct {
 3411   rwlock_t lock ;
 3412   struct pid *pid ;
 3413   enum pid_type pid_type ;
 3414   uid_t uid ;
 3415   uid_t euid ;
 3416   int signum ;
 3417};
 3418#line 910 "include/linux/fs.h"
 3419struct file_ra_state {
 3420   unsigned long start ;
 3421   unsigned int size ;
 3422   unsigned int async_size ;
 3423   unsigned int ra_pages ;
 3424   unsigned int mmap_miss ;
 3425   loff_t prev_pos ;
 3426};
 3427#line 933 "include/linux/fs.h"
 3428union __anonunion_f_u_174 {
 3429   struct list_head fu_list ;
 3430   struct rcu_head fu_rcuhead ;
 3431};
 3432#line 933 "include/linux/fs.h"
 3433struct file {
 3434   union __anonunion_f_u_174 f_u ;
 3435   struct path f_path ;
 3436   struct file_operations  const  *f_op ;
 3437   spinlock_t f_lock ;
 3438   int f_sb_list_cpu ;
 3439   atomic_long_t f_count ;
 3440   unsigned int f_flags ;
 3441   fmode_t f_mode ;
 3442   loff_t f_pos ;
 3443   struct fown_struct f_owner ;
 3444   struct cred  const  *f_cred ;
 3445   struct file_ra_state f_ra ;
 3446   u64 f_version ;
 3447   void *f_security ;
 3448   void *private_data ;
 3449   struct list_head f_ep_links ;
 3450   struct address_space *f_mapping ;
 3451   unsigned long f_mnt_write_state ;
 3452};
 3453#line 1064 "include/linux/fs.h"
 3454typedef struct files_struct *fl_owner_t;
 3455#line 1065 "include/linux/fs.h"
 3456struct file_lock_operations {
 3457   void (*fl_copy_lock)(struct file_lock * , struct file_lock * ) ;
 3458   void (*fl_release_private)(struct file_lock * ) ;
 3459};
 3460#line 1070 "include/linux/fs.h"
 3461struct lock_manager_operations {
 3462   int (*fl_compare_owner)(struct file_lock * , struct file_lock * ) ;
 3463   void (*fl_notify)(struct file_lock * ) ;
 3464   int (*fl_grant)(struct file_lock * , struct file_lock * , int  ) ;
 3465   void (*fl_release_private)(struct file_lock * ) ;
 3466   void (*fl_break)(struct file_lock * ) ;
 3467   int (*fl_change)(struct file_lock ** , int  ) ;
 3468};
 3469#line 163 "include/linux/nfs.h"
 3470struct nlm_lockowner;
 3471#line 163
 3472struct nlm_lockowner;
 3473#line 164 "include/linux/nfs.h"
 3474struct nfs_lock_info {
 3475   u32 state ;
 3476   struct nlm_lockowner *owner ;
 3477   struct list_head list ;
 3478};
 3479#line 18 "include/linux/nfs_fs_i.h"
 3480struct nfs4_lock_state;
 3481#line 18
 3482struct nfs4_lock_state;
 3483#line 19 "include/linux/nfs_fs_i.h"
 3484struct nfs4_lock_info {
 3485   struct nfs4_lock_state *owner ;
 3486};
 3487#line 23 "include/linux/nfs_fs_i.h"
 3488struct __anonstruct_afs_176 {
 3489   struct list_head link ;
 3490   int state ;
 3491};
 3492#line 23 "include/linux/nfs_fs_i.h"
 3493union __anonunion_fl_u_175 {
 3494   struct nfs_lock_info nfs_fl ;
 3495   struct nfs4_lock_info nfs4_fl ;
 3496   struct __anonstruct_afs_176 afs ;
 3497};
 3498#line 23 "include/linux/nfs_fs_i.h"
 3499struct file_lock {
 3500   struct file_lock *fl_next ;
 3501   struct list_head fl_link ;
 3502   struct list_head fl_block ;
 3503   fl_owner_t fl_owner ;
 3504   unsigned char fl_flags ;
 3505   unsigned char fl_type ;
 3506   unsigned int fl_pid ;
 3507   struct pid *fl_nspid ;
 3508   wait_queue_head_t fl_wait ;
 3509   struct file *fl_file ;
 3510   loff_t fl_start ;
 3511   loff_t fl_end ;
 3512   struct fasync_struct *fl_fasync ;
 3513   unsigned long fl_break_time ;
 3514   struct file_lock_operations  const  *fl_ops ;
 3515   struct lock_manager_operations  const  *fl_lmops ;
 3516   union __anonunion_fl_u_175 fl_u ;
 3517};
 3518#line 1171 "include/linux/fs.h"
 3519struct fasync_struct {
 3520   spinlock_t fa_lock ;
 3521   int magic ;
 3522   int fa_fd ;
 3523   struct fasync_struct *fa_next ;
 3524   struct file *fa_file ;
 3525   struct rcu_head fa_rcu ;
 3526};
 3527#line 1363
 3528struct file_system_type;
 3529#line 1363
 3530struct file_system_type;
 3531#line 1363
 3532struct super_operations;
 3533#line 1363
 3534struct super_operations;
 3535#line 1363
 3536struct xattr_handler;
 3537#line 1363
 3538struct xattr_handler;
 3539#line 1363
 3540struct mtd_info;
 3541#line 1363
 3542struct mtd_info;
 3543#line 1363 "include/linux/fs.h"
 3544struct super_block {
 3545   struct list_head s_list ;
 3546   dev_t s_dev ;
 3547   unsigned char s_dirt ;
 3548   unsigned char s_blocksize_bits ;
 3549   unsigned long s_blocksize ;
 3550   loff_t s_maxbytes ;
 3551   struct file_system_type *s_type ;
 3552   struct super_operations  const  *s_op ;
 3553   struct dquot_operations  const  *dq_op ;
 3554   struct quotactl_ops  const  *s_qcop ;
 3555   struct export_operations  const  *s_export_op ;
 3556   unsigned long s_flags ;
 3557   unsigned long s_magic ;
 3558   struct dentry *s_root ;
 3559   struct rw_semaphore s_umount ;
 3560   struct mutex s_lock ;
 3561   int s_count ;
 3562   atomic_t s_active ;
 3563   void *s_security ;
 3564   struct xattr_handler  const  **s_xattr ;
 3565   struct list_head s_inodes ;
 3566   struct hlist_bl_head s_anon ;
 3567   struct list_head *s_files ;
 3568   struct list_head s_dentry_lru ;
 3569   int s_nr_dentry_unused ;
 3570   struct block_device *s_bdev ;
 3571   struct backing_dev_info *s_bdi ;
 3572   struct mtd_info *s_mtd ;
 3573   struct list_head s_instances ;
 3574   struct quota_info s_dquot ;
 3575   int s_frozen ;
 3576   wait_queue_head_t s_wait_unfrozen ;
 3577   char s_id[32U] ;
 3578   u8 s_uuid[16U] ;
 3579   void *s_fs_info ;
 3580   fmode_t s_mode ;
 3581   u32 s_time_gran ;
 3582   struct mutex s_vfs_rename_mutex ;
 3583   char *s_subtype ;
 3584   char *s_options ;
 3585   struct dentry_operations  const  *s_d_op ;
 3586   int cleancache_poolid ;
 3587};
 3588#line 1495 "include/linux/fs.h"
 3589struct fiemap_extent_info {
 3590   unsigned int fi_flags ;
 3591   unsigned int fi_extents_mapped ;
 3592   unsigned int fi_extents_max ;
 3593   struct fiemap_extent *fi_extents_start ;
 3594};
 3595#line 1534 "include/linux/fs.h"
 3596struct file_operations {
 3597   struct module *owner ;
 3598   loff_t (*llseek)(struct file * , loff_t  , int  ) ;
 3599   ssize_t (*read)(struct file * , char * , size_t  , loff_t * ) ;
 3600   ssize_t (*write)(struct file * , char const   * , size_t  , loff_t * ) ;
 3601   ssize_t (*aio_read)(struct kiocb * , struct iovec  const  * , unsigned long  ,
 3602                       loff_t  ) ;
 3603   ssize_t (*aio_write)(struct kiocb * , struct iovec  const  * , unsigned long  ,
 3604                        loff_t  ) ;
 3605   int (*readdir)(struct file * , void * , int (*)(void * , char const   * , int  ,
 3606                                                   loff_t  , u64  , unsigned int  ) ) ;
 3607   unsigned int (*poll)(struct file * , struct poll_table_struct * ) ;
 3608   long (*unlocked_ioctl)(struct file * , unsigned int  , unsigned long  ) ;
 3609   long (*compat_ioctl)(struct file * , unsigned int  , unsigned long  ) ;
 3610   int (*mmap)(struct file * , struct vm_area_struct * ) ;
 3611   int (*open)(struct inode * , struct file * ) ;
 3612   int (*flush)(struct file * , fl_owner_t  ) ;
 3613   int (*release)(struct inode * , struct file * ) ;
 3614   int (*fsync)(struct file * , int  ) ;
 3615   int (*aio_fsync)(struct kiocb * , int  ) ;
 3616   int (*fasync)(int  , struct file * , int  ) ;
 3617   int (*lock)(struct file * , int  , struct file_lock * ) ;
 3618   ssize_t (*sendpage)(struct file * , struct page * , int  , size_t  , loff_t * ,
 3619                       int  ) ;
 3620   unsigned long (*get_unmapped_area)(struct file * , unsigned long  , unsigned long  ,
 3621                                      unsigned long  , unsigned long  ) ;
 3622   int (*check_flags)(int  ) ;
 3623   int (*flock)(struct file * , int  , struct file_lock * ) ;
 3624   ssize_t (*splice_write)(struct pipe_inode_info * , struct file * , loff_t * , size_t  ,
 3625                           unsigned int  ) ;
 3626   ssize_t (*splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t  ,
 3627                          unsigned int  ) ;
 3628   int (*setlease)(struct file * , long  , struct file_lock ** ) ;
 3629   long (*fallocate)(struct file * , int  , loff_t  , loff_t  ) ;
 3630};
 3631#line 1574 "include/linux/fs.h"
 3632struct inode_operations {
 3633   struct dentry *(*lookup)(struct inode * , struct dentry * , struct nameidata * ) ;
 3634   void *(*follow_link)(struct dentry * , struct nameidata * ) ;
 3635   int (*permission)(struct inode * , int  , unsigned int  ) ;
 3636   int (*check_acl)(struct inode * , int  , unsigned int  ) ;
 3637   int (*readlink)(struct dentry * , char * , int  ) ;
 3638   void (*put_link)(struct dentry * , struct nameidata * , void * ) ;
 3639   int (*create)(struct inode * , struct dentry * , int  , struct nameidata * ) ;
 3640   int (*link)(struct dentry * , struct inode * , struct dentry * ) ;
 3641   int (*unlink)(struct inode * , struct dentry * ) ;
 3642   int (*symlink)(struct inode * , struct dentry * , char const   * ) ;
 3643   int (*mkdir)(struct inode * , struct dentry * , int  ) ;
 3644   int (*rmdir)(struct inode * , struct dentry * ) ;
 3645   int (*mknod)(struct inode * , struct dentry * , int  , dev_t  ) ;
 3646   int (*rename)(struct inode * , struct dentry * , struct inode * , struct dentry * ) ;
 3647   void (*truncate)(struct inode * ) ;
 3648   int (*setattr)(struct dentry * , struct iattr * ) ;
 3649   int (*getattr)(struct vfsmount * , struct dentry * , struct kstat * ) ;
 3650   int (*setxattr)(struct dentry * , char const   * , void const   * , size_t  , int  ) ;
 3651   ssize_t (*getxattr)(struct dentry * , char const   * , void * , size_t  ) ;
 3652   ssize_t (*listxattr)(struct dentry * , char * , size_t  ) ;
 3653   int (*removexattr)(struct dentry * , char const   * ) ;
 3654   void (*truncate_range)(struct inode * , loff_t  , loff_t  ) ;
 3655   int (*fiemap)(struct inode * , struct fiemap_extent_info * , u64  , u64  ) ;
 3656};
 3657#line 1620 "include/linux/fs.h"
 3658struct super_operations {
 3659   struct inode *(*alloc_inode)(struct super_block * ) ;
 3660   void (*destroy_inode)(struct inode * ) ;
 3661   void (*dirty_inode)(struct inode * , int  ) ;
 3662   int (*write_inode)(struct inode * , struct writeback_control * ) ;
 3663   int (*drop_inode)(struct inode * ) ;
 3664   void (*evict_inode)(struct inode * ) ;
 3665   void (*put_super)(struct super_block * ) ;
 3666   void (*write_super)(struct super_block * ) ;
 3667   int (*sync_fs)(struct super_block * , int  ) ;
 3668   int (*freeze_fs)(struct super_block * ) ;
 3669   int (*unfreeze_fs)(struct super_block * ) ;
 3670   int (*statfs)(struct dentry * , struct kstatfs * ) ;
 3671   int (*remount_fs)(struct super_block * , int * , char * ) ;
 3672   void (*umount_begin)(struct super_block * ) ;
 3673   int (*show_options)(struct seq_file * , struct vfsmount * ) ;
 3674   int (*show_devname)(struct seq_file * , struct vfsmount * ) ;
 3675   int (*show_path)(struct seq_file * , struct vfsmount * ) ;
 3676   int (*show_stats)(struct seq_file * , struct vfsmount * ) ;
 3677   ssize_t (*quota_read)(struct super_block * , int  , char * , size_t  , loff_t  ) ;
 3678   ssize_t (*quota_write)(struct super_block * , int  , char const   * , size_t  ,
 3679                          loff_t  ) ;
 3680   int (*bdev_try_to_free_page)(struct super_block * , struct page * , gfp_t  ) ;
 3681};
 3682#line 1801 "include/linux/fs.h"
 3683struct file_system_type {
 3684   char const   *name ;
 3685   int fs_flags ;
 3686   struct dentry *(*mount)(struct file_system_type * , int  , char const   * , void * ) ;
 3687   void (*kill_sb)(struct super_block * ) ;
 3688   struct module *owner ;
 3689   struct file_system_type *next ;
 3690   struct list_head fs_supers ;
 3691   struct lock_class_key s_lock_key ;
 3692   struct lock_class_key s_umount_key ;
 3693   struct lock_class_key s_vfs_rename_key ;
 3694   struct lock_class_key i_lock_key ;
 3695   struct lock_class_key i_mutex_key ;
 3696   struct lock_class_key i_mutex_dir_key ;
 3697   struct lock_class_key i_alloc_sem_key ;
 3698};
 3699#line 37 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/compat.h"
 3700typedef s32 compat_long_t;
 3701#line 196 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/compat.h"
 3702typedef u32 compat_uptr_t;
 3703#line 205 "include/linux/compat.h"
 3704struct compat_robust_list {
 3705   compat_uptr_t next ;
 3706};
 3707#line 209 "include/linux/compat.h"
 3708struct compat_robust_list_head {
 3709   struct compat_robust_list list ;
 3710   compat_long_t futex_offset ;
 3711   compat_uptr_t list_op_pending ;
 3712};
 3713#line 563 "include/linux/compat.h"
 3714struct ethtool_cmd {
 3715   __u32 cmd ;
 3716   __u32 supported ;
 3717   __u32 advertising ;
 3718   __u16 speed ;
 3719   __u8 duplex ;
 3720   __u8 port ;
 3721   __u8 phy_address ;
 3722   __u8 transceiver ;
 3723   __u8 autoneg ;
 3724   __u8 mdio_support ;
 3725   __u32 maxtxpkt ;
 3726   __u32 maxrxpkt ;
 3727   __u16 speed_hi ;
 3728   __u8 eth_tp_mdix ;
 3729   __u8 reserved2 ;
 3730   __u32 lp_advertising ;
 3731   __u32 reserved[2U] ;
 3732};
 3733#line 61 "include/linux/ethtool.h"
 3734struct ethtool_drvinfo {
 3735   __u32 cmd ;
 3736   char driver[32U] ;
 3737   char version[32U] ;
 3738   char fw_version[32U] ;
 3739   char bus_info[32U] ;
 3740   char reserved1[32U] ;
 3741   char reserved2[12U] ;
 3742   __u32 n_priv_flags ;
 3743   __u32 n_stats ;
 3744   __u32 testinfo_len ;
 3745   __u32 eedump_len ;
 3746   __u32 regdump_len ;
 3747};
 3748#line 87 "include/linux/ethtool.h"
 3749struct ethtool_wolinfo {
 3750   __u32 cmd ;
 3751   __u32 supported ;
 3752   __u32 wolopts ;
 3753   __u8 sopass[6U] ;
 3754};
 3755#line 102 "include/linux/ethtool.h"
 3756struct ethtool_regs {
 3757   __u32 cmd ;
 3758   __u32 version ;
 3759   __u32 len ;
 3760   __u8 data[0U] ;
 3761};
 3762#line 110 "include/linux/ethtool.h"
 3763struct ethtool_eeprom {
 3764   __u32 cmd ;
 3765   __u32 magic ;
 3766   __u32 offset ;
 3767   __u32 len ;
 3768   __u8 data[0U] ;
 3769};
 3770#line 119 "include/linux/ethtool.h"
 3771struct ethtool_coalesce {
 3772   __u32 cmd ;
 3773   __u32 rx_coalesce_usecs ;
 3774   __u32 rx_max_coalesced_frames ;
 3775   __u32 rx_coalesce_usecs_irq ;
 3776   __u32 rx_max_coalesced_frames_irq ;
 3777   __u32 tx_coalesce_usecs ;
 3778   __u32 tx_max_coalesced_frames ;
 3779   __u32 tx_coalesce_usecs_irq ;
 3780   __u32 tx_max_coalesced_frames_irq ;
 3781   __u32 stats_block_coalesce_usecs ;
 3782   __u32 use_adaptive_rx_coalesce ;
 3783   __u32 use_adaptive_tx_coalesce ;
 3784   __u32 pkt_rate_low ;
 3785   __u32 rx_coalesce_usecs_low ;
 3786   __u32 rx_max_coalesced_frames_low ;
 3787   __u32 tx_coalesce_usecs_low ;
 3788   __u32 tx_max_coalesced_frames_low ;
 3789   __u32 pkt_rate_high ;
 3790   __u32 rx_coalesce_usecs_high ;
 3791   __u32 rx_max_coalesced_frames_high ;
 3792   __u32 tx_coalesce_usecs_high ;
 3793   __u32 tx_max_coalesced_frames_high ;
 3794   __u32 rate_sample_interval ;
 3795};
 3796#line 215 "include/linux/ethtool.h"
 3797struct ethtool_ringparam {
 3798   __u32 cmd ;
 3799   __u32 rx_max_pending ;
 3800   __u32 rx_mini_max_pending ;
 3801   __u32 rx_jumbo_max_pending ;
 3802   __u32 tx_max_pending ;
 3803   __u32 rx_pending ;
 3804   __u32 rx_mini_pending ;
 3805   __u32 rx_jumbo_pending ;
 3806   __u32 tx_pending ;
 3807};
 3808#line 237 "include/linux/ethtool.h"
 3809struct ethtool_channels {
 3810   __u32 cmd ;
 3811   __u32 max_rx ;
 3812   __u32 max_tx ;
 3813   __u32 max_other ;
 3814   __u32 max_combined ;
 3815   __u32 rx_count ;
 3816   __u32 tx_count ;
 3817   __u32 other_count ;
 3818   __u32 combined_count ;
 3819};
 3820#line 265 "include/linux/ethtool.h"
 3821struct ethtool_pauseparam {
 3822   __u32 cmd ;
 3823   __u32 autoneg ;
 3824   __u32 rx_pause ;
 3825   __u32 tx_pause ;
 3826};
 3827#line 314 "include/linux/ethtool.h"
 3828struct ethtool_test {
 3829   __u32 cmd ;
 3830   __u32 flags ;
 3831   __u32 reserved ;
 3832   __u32 len ;
 3833   __u64 data[0U] ;
 3834};
 3835#line 326 "include/linux/ethtool.h"
 3836struct ethtool_stats {
 3837   __u32 cmd ;
 3838   __u32 n_stats ;
 3839   __u64 data[0U] ;
 3840};
 3841#line 347 "include/linux/ethtool.h"
 3842struct ethtool_tcpip4_spec {
 3843   __be32 ip4src ;
 3844   __be32 ip4dst ;
 3845   __be16 psrc ;
 3846   __be16 pdst ;
 3847   __u8 tos ;
 3848};
 3849#line 380 "include/linux/ethtool.h"
 3850struct ethtool_ah_espip4_spec {
 3851   __be32 ip4src ;
 3852   __be32 ip4dst ;
 3853   __be32 spi ;
 3854   __u8 tos ;
 3855};
 3856#line 396 "include/linux/ethtool.h"
 3857struct ethtool_usrip4_spec {
 3858   __be32 ip4src ;
 3859   __be32 ip4dst ;
 3860   __be32 l4_4_bytes ;
 3861   __u8 tos ;
 3862   __u8 ip_ver ;
 3863   __u8 proto ;
 3864};
 3865#line 416 "include/linux/ethtool.h"
 3866union ethtool_flow_union {
 3867   struct ethtool_tcpip4_spec tcp_ip4_spec ;
 3868   struct ethtool_tcpip4_spec udp_ip4_spec ;
 3869   struct ethtool_tcpip4_spec sctp_ip4_spec ;
 3870   struct ethtool_ah_espip4_spec ah_ip4_spec ;
 3871   struct ethtool_ah_espip4_spec esp_ip4_spec ;
 3872   struct ethtool_usrip4_spec usr_ip4_spec ;
 3873   struct ethhdr ether_spec ;
 3874   __u8 hdata[60U] ;
 3875};
 3876#line 427 "include/linux/ethtool.h"
 3877struct ethtool_flow_ext {
 3878   __be16 vlan_etype ;
 3879   __be16 vlan_tci ;
 3880   __be32 data[2U] ;
 3881};
 3882#line 433 "include/linux/ethtool.h"
 3883struct ethtool_rx_flow_spec {
 3884   __u32 flow_type ;
 3885   union ethtool_flow_union h_u ;
 3886   struct ethtool_flow_ext h_ext ;
 3887   union ethtool_flow_union m_u ;
 3888   struct ethtool_flow_ext m_ext ;
 3889   __u64 ring_cookie ;
 3890   __u32 location ;
 3891};
 3892#line 456 "include/linux/ethtool.h"
 3893struct ethtool_rxnfc {
 3894   __u32 cmd ;
 3895   __u32 flow_type ;
 3896   __u64 data ;
 3897   struct ethtool_rx_flow_spec fs ;
 3898   __u32 rule_cnt ;
 3899   __u32 rule_locs[0U] ;
 3900};
 3901#line 526 "include/linux/ethtool.h"
 3902struct ethtool_rxfh_indir {
 3903   __u32 cmd ;
 3904   __u32 size ;
 3905   __u32 ring_index[0U] ;
 3906};
 3907#line 542 "include/linux/ethtool.h"
 3908union __anonunion_h_u_182 {
 3909   struct ethtool_tcpip4_spec tcp_ip4_spec ;
 3910   struct ethtool_tcpip4_spec udp_ip4_spec ;
 3911   struct ethtool_tcpip4_spec sctp_ip4_spec ;
 3912   struct ethtool_ah_espip4_spec ah_ip4_spec ;
 3913   struct ethtool_ah_espip4_spec esp_ip4_spec ;
 3914   struct ethtool_usrip4_spec usr_ip4_spec ;
 3915   struct ethhdr ether_spec ;
 3916   __u8 hdata[72U] ;
 3917};
 3918#line 542 "include/linux/ethtool.h"
 3919union __anonunion_m_u_183 {
 3920   struct ethtool_tcpip4_spec tcp_ip4_spec ;
 3921   struct ethtool_tcpip4_spec udp_ip4_spec ;
 3922   struct ethtool_tcpip4_spec sctp_ip4_spec ;
 3923   struct ethtool_ah_espip4_spec ah_ip4_spec ;
 3924   struct ethtool_ah_espip4_spec esp_ip4_spec ;
 3925   struct ethtool_usrip4_spec usr_ip4_spec ;
 3926   struct ethhdr ether_spec ;
 3927   __u8 hdata[72U] ;
 3928};
 3929#line 542 "include/linux/ethtool.h"
 3930struct ethtool_rx_ntuple_flow_spec {
 3931   __u32 flow_type ;
 3932   union __anonunion_h_u_182 h_u ;
 3933   union __anonunion_m_u_183 m_u ;
 3934   __u16 vlan_tag ;
 3935   __u16 vlan_tag_mask ;
 3936   __u64 data ;
 3937   __u64 data_mask ;
 3938   __s32 action ;
 3939};
 3940#line 579 "include/linux/ethtool.h"
 3941struct ethtool_rx_ntuple {
 3942   __u32 cmd ;
 3943   struct ethtool_rx_ntuple_flow_spec fs ;
 3944};
 3945#line 595 "include/linux/ethtool.h"
 3946struct ethtool_flash {
 3947   __u32 cmd ;
 3948   __u32 region ;
 3949   char data[128U] ;
 3950};
 3951#line 603 "include/linux/ethtool.h"
 3952struct ethtool_dump {
 3953   __u32 cmd ;
 3954   __u32 version ;
 3955   __u32 flag ;
 3956   __u32 len ;
 3957   __u8 data[0U] ;
 3958};
 3959#line 721 "include/linux/ethtool.h"
 3960struct ethtool_rx_ntuple_list {
 3961   struct list_head list ;
 3962   unsigned int count ;
 3963};
 3964#line 728
 3965enum ethtool_phys_id_state {
 3966    ETHTOOL_ID_INACTIVE = 0,
 3967    ETHTOOL_ID_ACTIVE = 1,
 3968    ETHTOOL_ID_ON = 2,
 3969    ETHTOOL_ID_OFF = 3
 3970} ;
 3971#line 763 "include/linux/ethtool.h"
 3972struct ethtool_ops {
 3973   int (*get_settings)(struct net_device * , struct ethtool_cmd * ) ;
 3974   int (*set_settings)(struct net_device * , struct ethtool_cmd * ) ;
 3975   void (*get_drvinfo)(struct net_device * , struct ethtool_drvinfo * ) ;
 3976   int (*get_regs_len)(struct net_device * ) ;
 3977   void (*get_regs)(struct net_device * , struct ethtool_regs * , void * ) ;
 3978   void (*get_wol)(struct net_device * , struct ethtool_wolinfo * ) ;
 3979   int (*set_wol)(struct net_device * , struct ethtool_wolinfo * ) ;
 3980   u32 (*get_msglevel)(struct net_device * ) ;
 3981   void (*set_msglevel)(struct net_device * , u32  ) ;
 3982   int (*nway_reset)(struct net_device * ) ;
 3983   u32 (*get_link)(struct net_device * ) ;
 3984   int (*get_eeprom_len)(struct net_device * ) ;
 3985   int (*get_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ;
 3986   int (*set_eeprom)(struct net_device * , struct ethtool_eeprom * , u8 * ) ;
 3987   int (*get_coalesce)(struct net_device * , struct ethtool_coalesce * ) ;
 3988   int (*set_coalesce)(struct net_device * , struct ethtool_coalesce * ) ;
 3989   void (*get_ringparam)(struct net_device * , struct ethtool_ringparam * ) ;
 3990   int (*set_ringparam)(struct net_device * , struct ethtool_ringparam * ) ;
 3991   void (*get_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ;
 3992   int (*set_pauseparam)(struct net_device * , struct ethtool_pauseparam * ) ;
 3993   u32 (*get_rx_csum)(struct net_device * ) ;
 3994   int (*set_rx_csum)(struct net_device * , u32  ) ;
 3995   u32 (*get_tx_csum)(struct net_device * ) ;
 3996   int (*set_tx_csum)(struct net_device * , u32  ) ;
 3997   u32 (*get_sg)(struct net_device * ) ;
 3998   int (*set_sg)(struct net_device * , u32  ) ;
 3999   u32 (*get_tso)(struct net_device * ) ;
 4000   int (*set_tso)(struct net_device * , u32  ) ;
 4001   void (*self_test)(struct net_device * , struct ethtool_test * , u64 * ) ;
 4002   void (*get_strings)(struct net_device * , u32  , u8 * ) ;
 4003   int (*set_phys_id)(struct net_device * , enum ethtool_phys_id_state  ) ;
 4004   void (*get_ethtool_stats)(struct net_device * , struct ethtool_stats * , u64 * ) ;
 4005   int (*begin)(struct net_device * ) ;
 4006   void (*complete)(struct net_device * ) ;
 4007   u32 (*get_ufo)(struct net_device * ) ;
 4008   int (*set_ufo)(struct net_device * , u32  ) ;
 4009   u32 (*get_flags)(struct net_device * ) ;
 4010   int (*set_flags)(struct net_device * , u32  ) ;
 4011   u32 (*get_priv_flags)(struct net_device * ) ;
 4012   int (*set_priv_flags)(struct net_device * , u32  ) ;
 4013   int (*get_sset_count)(struct net_device * , int  ) ;
 4014   int (*get_rxnfc)(struct net_device * , struct ethtool_rxnfc * , void * ) ;
 4015   int (*set_rxnfc)(struct net_device * , struct ethtool_rxnfc * ) ;
 4016   int (*flash_device)(struct net_device * , struct ethtool_flash * ) ;
 4017   int (*reset)(struct net_device * , u32 * ) ;
 4018   int (*set_rx_ntuple)(struct net_device * , struct ethtool_rx_ntuple * ) ;
 4019   int (*get_rx_ntuple)(struct net_device * , u32  , void * ) ;
 4020   int (*get_rxfh_indir)(struct net_device * , struct ethtool_rxfh_indir * ) ;
 4021   int (*set_rxfh_indir)(struct net_device * , struct ethtool_rxfh_indir  const  * ) ;
 4022   void (*get_channels)(struct net_device * , struct ethtool_channels * ) ;
 4023   int (*set_channels)(struct net_device * , struct ethtool_channels * ) ;
 4024   int (*get_dump_flag)(struct net_device * , struct ethtool_dump * ) ;
 4025   int (*get_dump_data)(struct net_device * , struct ethtool_dump * , void * ) ;
 4026   int (*set_dump)(struct net_device * , struct ethtool_dump * ) ;
 4027};
 4028#line 972
 4029struct prot_inuse;
 4030#line 972
 4031struct prot_inuse;
 4032#line 973 "include/linux/ethtool.h"
 4033struct netns_core {
 4034   struct ctl_table_header *sysctl_hdr ;
 4035   int sysctl_somaxconn ;
 4036   struct prot_inuse *inuse ;
 4037};
 4038#line 38 "include/net/snmp.h"
 4039struct u64_stats_sync {
 4040
 4041};
 4042#line 138 "include/linux/u64_stats_sync.h"
 4043struct ipstats_mib {
 4044   u64 mibs[31U] ;
 4045   struct u64_stats_sync syncp ;
 4046};
 4047#line 61 "include/net/snmp.h"
 4048struct icmp_mib {
 4049   unsigned long mibs[27U] ;
 4050};
 4051#line 67 "include/net/snmp.h"
 4052struct icmpmsg_mib {
 4053   unsigned long mibs[512U] ;
 4054};
 4055#line 72 "include/net/snmp.h"
 4056struct icmpv6_mib {
 4057   unsigned long mibs[5U] ;
 4058};
 4059#line 83 "include/net/snmp.h"
 4060struct icmpv6msg_mib {
 4061   unsigned long mibs[512U] ;
 4062};
 4063#line 93 "include/net/snmp.h"
 4064struct tcp_mib {
 4065   unsigned long mibs[15U] ;
 4066};
 4067#line 100 "include/net/snmp.h"
 4068struct udp_mib {
 4069   unsigned long mibs[7U] ;
 4070};
 4071#line 106 "include/net/snmp.h"
 4072struct linux_mib {
 4073   unsigned long mibs[80U] ;
 4074};
 4075#line 112 "include/net/snmp.h"
 4076struct linux_xfrm_mib {
 4077   unsigned long mibs[27U] ;
 4078};
 4079#line 118
 4080struct proc_dir_entry;
 4081#line 118
 4082struct proc_dir_entry;
 4083#line 118 "include/net/snmp.h"
 4084struct netns_mib {
 4085   struct tcp_mib *tcp_statistics[2U] ;
 4086   struct ipstats_mib *ip_statistics[2U] ;
 4087   struct linux_mib *net_statistics[2U] ;
 4088   struct udp_mib *udp_statistics[2U] ;
 4089   struct udp_mib *udplite_statistics[2U] ;
 4090   struct icmp_mib *icmp_statistics[2U] ;
 4091   struct icmpmsg_mib *icmpmsg_statistics[2U] ;
 4092   struct proc_dir_entry *proc_net_devsnmp6 ;
 4093   struct udp_mib *udp_stats_in6[2U] ;
 4094   struct udp_mib *udplite_stats_in6[2U] ;
 4095   struct ipstats_mib *ipv6_statistics[2U] ;
 4096   struct icmpv6_mib *icmpv6_statistics[2U] ;
 4097   struct icmpv6msg_mib *icmpv6msg_statistics[2U] ;
 4098   struct linux_xfrm_mib *xfrm_statistics[2U] ;
 4099};
 4100#line 26 "include/net/netns/mib.h"
 4101struct netns_unix {
 4102   int sysctl_max_dgram_qlen ;
 4103   struct ctl_table_header *ctl ;
 4104};
 4105#line 12 "include/net/netns/unix.h"
 4106struct netns_packet {
 4107   spinlock_t sklist_lock ;
 4108   struct hlist_head sklist ;
 4109};
 4110#line 14 "include/net/netns/packet.h"
 4111struct netns_frags {
 4112   int nqueues ;
 4113   atomic_t mem ;
 4114   struct list_head lru_list ;
 4115   int timeout ;
 4116   int high_thresh ;
 4117   int low_thresh ;
 4118};
 4119#line 73 "include/net/inet_frag.h"
 4120struct ipv4_devconf;
 4121#line 73
 4122struct ipv4_devconf;
 4123#line 74
 4124struct fib_rules_ops;
 4125#line 74
 4126struct fib_rules_ops;
 4127#line 75
 4128struct xt_table;
 4129#line 75
 4130struct xt_table;
 4131#line 75 "include/net/inet_frag.h"
 4132struct netns_ipv4 {
 4133   struct ctl_table_header *forw_hdr ;
 4134   struct ctl_table_header *frags_hdr ;
 4135   struct ctl_table_header *ipv4_hdr ;
 4136   struct ctl_table_header *route_hdr ;
 4137   struct ipv4_devconf *devconf_all ;
 4138   struct ipv4_devconf *devconf_dflt ;
 4139   struct fib_rules_ops *rules_ops ;
 4140   struct hlist_head *fib_table_hash ;
 4141   struct sock *fibnl ;
 4142   struct sock **icmp_sk ;
 4143   struct sock *tcp_sock ;
 4144   struct netns_frags frags ;
 4145   struct xt_table *iptable_filter ;
 4146   struct xt_table *iptable_mangle ;
 4147   struct xt_table *iptable_raw ;
 4148   struct xt_table *arptable_filter ;
 4149   struct xt_table *iptable_security ;
 4150   struct xt_table *nat_table ;
 4151   struct hlist_head *nat_bysource ;
 4152   unsigned int nat_htable_size ;
 4153   int sysctl_icmp_echo_ignore_all ;
 4154   int sysctl_icmp_echo_ignore_broadcasts ;
 4155   int sysctl_icmp_ignore_bogus_error_responses ;
 4156   int sysctl_icmp_ratelimit ;
 4157   int sysctl_icmp_ratemask ;
 4158   int sysctl_icmp_errors_use_inbound_ifaddr ;
 4159   int sysctl_rt_cache_rebuild_count ;
 4160   int current_rt_cache_rebuild_count ;
 4161   unsigned int sysctl_ping_group_range[2U] ;
 4162   atomic_t rt_genid ;
 4163   atomic_t dev_addr_genid ;
 4164   struct list_head mr_tables ;
 4165   struct fib_rules_ops *mr_rules_ops ;
 4166};
 4167#line 70 "include/net/netns/ipv4.h"
 4168struct dst_ops {
 4169   unsigned short family ;
 4170   __be16 protocol ;
 4171   unsigned int gc_thresh ;
 4172   int (*gc)(struct dst_ops * ) ;
 4173   struct dst_entry *(*check)(struct dst_entry * , __u32  ) ;
 4174   unsigned int (*default_advmss)(struct dst_entry  const  * ) ;
 4175   unsigned int (*default_mtu)(struct dst_entry  const  * ) ;
 4176   u32 *(*cow_metrics)(struct dst_entry * , unsigned long  ) ;
 4177   void (*destroy)(struct dst_entry * ) ;
 4178   void (*ifdown)(struct dst_entry * , struct net_device * , int  ) ;
 4179   struct dst_entry *(*negative_advice)(struct dst_entry * ) ;
 4180   void (*link_failure)(struct sk_buff * ) ;
 4181   void (*update_pmtu)(struct dst_entry * , u32  ) ;
 4182   int (*local_out)(struct sk_buff * ) ;
 4183   struct kmem_cache *kmem_cachep ;
 4184   struct percpu_counter pcpuc_entries ;
 4185};
 4186#line 66 "include/net/dst_ops.h"
 4187struct netns_sysctl_ipv6 {
 4188   struct ctl_table_header *table ;
 4189   struct ctl_table_header *frags_hdr ;
 4190   int bindv6only ;
 4191   int flush_delay ;
 4192   int ip6_rt_max_size ;
 4193   int ip6_rt_gc_min_interval ;
 4194   int ip6_rt_gc_timeout ;
 4195   int ip6_rt_gc_interval ;
 4196   int ip6_rt_gc_elasticity ;
 4197   int ip6_rt_mtu_expires ;
 4198   int ip6_rt_min_advmss ;
 4199   int icmpv6_time ;
 4200};
 4201#line 29 "include/net/netns/ipv6.h"
 4202struct ipv6_devconf;
 4203#line 29
 4204struct ipv6_devconf;
 4205#line 29
 4206struct rt6_info;
 4207#line 29
 4208struct rt6_info;
 4209#line 29
 4210struct rt6_statistics;
 4211#line 29
 4212struct rt6_statistics;
 4213#line 29
 4214struct fib6_table;
 4215#line 29
 4216struct fib6_table;
 4217#line 29 "include/net/netns/ipv6.h"
 4218struct netns_ipv6 {
 4219   struct netns_sysctl_ipv6 sysctl ;
 4220   struct ipv6_devconf *devconf_all ;
 4221   struct ipv6_devconf *devconf_dflt ;
 4222   struct netns_frags frags ;
 4223   struct xt_table *ip6table_filter ;
 4224   struct xt_table *ip6table_mangle ;
 4225   struct xt_table *ip6table_raw ;
 4226   struct xt_table *ip6table_security ;
 4227   struct rt6_info *ip6_null_entry ;
 4228   struct rt6_statistics *rt6_stats ;
 4229   struct timer_list ip6_fib_timer ;
 4230   struct hlist_head *fib_table_hash ;
 4231   struct fib6_table *fib6_main_tbl ;
 4232   struct dst_ops ip6_dst_ops ;
 4233   unsigned int ip6_rt_gc_expire ;
 4234   unsigned long ip6_rt_last_gc ;
 4235   struct rt6_info *ip6_prohibit_entry ;
 4236   struct rt6_info *ip6_blk_hole_entry ;
 4237   struct fib6_table *fib6_local_tbl ;
 4238   struct fib_rules_ops *fib6_rules_ops ;
 4239   struct sock **icmp_sk ;
 4240   struct sock *ndisc_sk ;
 4241   struct sock *tcp_sk ;
 4242   struct sock *igmp_sk ;
 4243   struct list_head mr6_tables ;
 4244   struct fib_rules_ops *mr6_rules_ops ;
 4245};
 4246#line 68 "include/net/netns/ipv6.h"
 4247struct netns_dccp {
 4248   struct sock *v4_ctl_sk ;
 4249   struct sock *v6_ctl_sk ;
 4250};
 4251#line 46 "include/linux/proc_fs.h"
 4252typedef int read_proc_t(char * , char ** , off_t  , int  , int * , void * );
 4253#line 48 "include/linux/proc_fs.h"
 4254typedef int write_proc_t(struct file * , char const   * , unsigned long  , void * );
 4255#line 49 "include/linux/proc_fs.h"
 4256struct proc_dir_entry {
 4257   unsigned int low_ino ;
 4258   unsigned int namelen ;
 4259   char const   *name ;
 4260   mode_t mode ;
 4261   nlink_t nlink ;
 4262   uid_t uid ;
 4263   gid_t gid ;
 4264   loff_t size ;
 4265   struct inode_operations  const  *proc_iops ;
 4266   struct file_operations  const  *proc_fops ;
 4267   struct proc_dir_entry *next ;
 4268   struct proc_dir_entry *parent ;
 4269   struct proc_dir_entry *subdir ;
 4270   void *data ;
 4271   read_proc_t *read_proc ;
 4272   write_proc_t *write_proc ;
 4273   atomic_t count ;
 4274   int pde_users ;
 4275   spinlock_t pde_unload_lock ;
 4276   struct completion *pde_unload_completion ;
 4277   struct list_head pde_openers ;
 4278};
 4279#line 121
 4280struct tty_driver;
 4281#line 121
 4282struct tty_driver;
 4283#line 376 "include/linux/netfilter.h"
 4284struct ebt_table;
 4285#line 376
 4286struct ebt_table;
 4287#line 377 "include/linux/netfilter.h"
 4288struct netns_xt {
 4289   struct list_head tables[13U] ;
 4290   struct ebt_table *broute_table ;
 4291   struct ebt_table *frame_filter ;
 4292   struct ebt_table *frame_nat ;
 4293};
 4294#line 17 "include/net/netns/x_tables.h"
 4295struct hlist_nulls_node;
 4296#line 17
 4297struct hlist_nulls_node;
 4298#line 17 "include/net/netns/x_tables.h"
 4299struct hlist_nulls_head {
 4300   struct hlist_nulls_node *first ;
 4301};
 4302#line 20 "include/linux/list_nulls.h"
 4303struct hlist_nulls_node {
 4304   struct hlist_nulls_node *next ;
 4305   struct hlist_nulls_node **pprev ;
 4306};
 4307#line 86
 4308struct ip_conntrack_stat;
 4309#line 86
 4310struct ip_conntrack_stat;
 4311#line 86 "include/linux/list_nulls.h"
 4312struct netns_ct {
 4313   atomic_t count ;
 4314   unsigned int expect_count ;
 4315   unsigned int htable_size ;
 4316   struct kmem_cache *nf_conntrack_cachep ;
 4317   struct hlist_nulls_head *hash ;
 4318   struct hlist_head *expect_hash ;
 4319   struct hlist_nulls_head unconfirmed ;
 4320   struct hlist_nulls_head dying ;
 4321   struct ip_conntrack_stat *stat ;
 4322   int sysctl_events ;
 4323   unsigned int sysctl_events_retry_timeout ;
 4324   int sysctl_acct ;
 4325   int sysctl_tstamp ;
 4326   int sysctl_checksum ;
 4327   unsigned int sysctl_log_invalid ;
 4328   struct ctl_table_header *sysctl_header ;
 4329   struct ctl_table_header *acct_sysctl_header ;
 4330   struct ctl_table_header *tstamp_sysctl_header ;
 4331   struct ctl_table_header *event_sysctl_header ;
 4332   char *slabname ;
 4333};
 4334#line 484 "include/linux/xfrm.h"
 4335struct xfrm_policy_hash {
 4336   struct hlist_head *table ;
 4337   unsigned int hmask ;
 4338};
 4339#line 16 "include/net/netns/xfrm.h"
 4340struct netns_xfrm {
 4341   struct list_head state_all ;
 4342   struct hlist_head *state_bydst ;
 4343   struct hlist_head *state_bysrc ;
 4344   struct hlist_head *state_byspi ;
 4345   unsigned int state_hmask ;
 4346   unsigned int state_num ;
 4347   struct work_struct state_hash_work ;
 4348   struct hlist_head state_gc_list ;
 4349   struct work_struct state_gc_work ;
 4350   wait_queue_head_t km_waitq ;
 4351   struct list_head policy_all ;
 4352   struct hlist_head *policy_byidx ;
 4353   unsigned int policy_idx_hmask ;
 4354   struct hlist_head policy_inexact[6U] ;
 4355   struct xfrm_policy_hash policy_bydst[6U] ;
 4356   unsigned int policy_count[6U] ;
 4357   struct work_struct policy_hash_work ;
 4358   struct sock *nlsk ;
 4359   struct sock *nlsk_stash ;
 4360   u32 sysctl_aevent_etime ;
 4361   u32 sysctl_aevent_rseqth ;
 4362   int sysctl_larval_drop ;
 4363   u32 sysctl_acq_expires ;
 4364   struct ctl_table_header *sysctl_hdr ;
 4365   struct dst_ops xfrm4_dst_ops ;
 4366   struct dst_ops xfrm6_dst_ops ;
 4367};
 4368#line 62
 4369struct net_generic;
 4370#line 62
 4371struct net_generic;
 4372#line 63
 4373struct netns_ipvs;
 4374#line 63
 4375struct netns_ipvs;
 4376#line 64 "include/net/netns/xfrm.h"
 4377struct net {
 4378   atomic_t passive ;
 4379   atomic_t count ;
 4380   spinlock_t rules_mod_lock ;
 4381   struct list_head list ;
 4382   struct list_head cleanup_list ;
 4383   struct list_head exit_list ;
 4384   struct proc_dir_entry *proc_net ;
 4385   struct proc_dir_entry *proc_net_stat ;
 4386   struct ctl_table_set sysctls ;
 4387   struct sock *rtnl ;
 4388   struct sock *genl_sock ;
 4389   struct list_head dev_base_head ;
 4390   struct hlist_head *dev_name_head ;
 4391   struct hlist_head *dev_index_head ;
 4392   struct list_head rules_ops ;
 4393   struct net_device *loopback_dev ;
 4394   struct netns_core core ;
 4395   struct netns_mib mib ;
 4396   struct netns_packet packet ;
 4397   struct netns_unix unx ;
 4398   struct netns_ipv4 ipv4 ;
 4399   struct netns_ipv6 ipv6 ;
 4400   struct netns_dccp dccp ;
 4401   struct netns_xt xt ;
 4402   struct netns_ct ct ;
 4403   struct sock *nfnl ;
 4404   struct sock *nfnl_stash ;
 4405   struct sk_buff_head wext_nlevents ;
 4406   struct net_generic *gen ;
 4407   struct netns_xfrm xfrm ;
 4408   struct netns_ipvs *ipvs ;
 4409};
 4410#line 104 "include/net/net_namespace.h"
 4411struct seq_file {
 4412   char *buf ;
 4413   size_t size ;
 4414   size_t from ;
 4415   size_t count ;
 4416   loff_t index ;
 4417   loff_t read_pos ;
 4418   u64 version ;
 4419   struct mutex lock ;
 4420   struct seq_operations  const  *op ;
 4421   void *private ;
 4422};
 4423#line 28 "include/linux/seq_file.h"
 4424struct seq_operations {
 4425   void *(*start)(struct seq_file * , loff_t * ) ;
 4426   void (*stop)(struct seq_file * , void * ) ;
 4427   void *(*next)(struct seq_file * , void * , loff_t * ) ;
 4428   int (*show)(struct seq_file * , void * ) ;
 4429};
 4430#line 59 "include/net/dsa.h"
 4431struct ieee_ets {
 4432   __u8 willing ;
 4433   __u8 ets_cap ;
 4434   __u8 cbs ;
 4435   __u8 tc_tx_bw[8U] ;
 4436   __u8 tc_rx_bw[8U] ;
 4437   __u8 tc_tsa[8U] ;
 4438   __u8 prio_tc[8U] ;
 4439   __u8 tc_reco_bw[8U] ;
 4440   __u8 tc_reco_tsa[8U] ;
 4441   __u8 reco_prio_tc[8U] ;
 4442};
 4443#line 69 "include/linux/dcbnl.h"
 4444struct ieee_pfc {
 4445   __u8 pfc_cap ;
 4446   __u8 pfc_en ;
 4447   __u8 mbc ;
 4448   __u16 delay ;
 4449   __u64 requests[8U] ;
 4450   __u64 indications[8U] ;
 4451};
 4452#line 89 "include/linux/dcbnl.h"
 4453struct cee_pg {
 4454   __u8 willing ;
 4455   __u8 error ;
 4456   __u8 pg_en ;
 4457   __u8 tcs_supported ;
 4458   __u8 pg_bw[8U] ;
 4459   __u8 prio_pg[8U] ;
 4460};
 4461#line 112 "include/linux/dcbnl.h"
 4462struct cee_pfc {
 4463   __u8 willing ;
 4464   __u8 error ;
 4465   __u8 pfc_en ;
 4466   __u8 tcs_supported ;
 4467};
 4468#line 127 "include/linux/dcbnl.h"
 4469struct dcb_app {
 4470   __u8 selector ;
 4471   __u8 priority ;
 4472   __u16 protocol ;
 4473};
 4474#line 156 "include/linux/dcbnl.h"
 4475struct dcb_peer_app_info {
 4476   __u8 willing ;
 4477   __u8 error ;
 4478};
 4479#line 33 "include/net/dcbnl.h"
 4480struct dcbnl_rtnl_ops {
 4481   int (*ieee_getets)(struct net_device * , struct ieee_ets * ) ;
 4482   int (*ieee_setets)(struct net_device * , struct ieee_ets * ) ;
 4483   int (*ieee_getpfc)(struct net_device * , struct ieee_pfc * ) ;
 4484   int (*ieee_setpfc)(struct net_device * , struct ieee_pfc * ) ;
 4485   int (*ieee_getapp)(struct net_device * , struct dcb_app * ) ;
 4486   int (*ieee_setapp)(struct net_device * , struct dcb_app * ) ;
 4487   int (*ieee_peer_getets)(struct net_device * , struct ieee_ets * ) ;
 4488   int (*ieee_peer_getpfc)(struct net_device * , struct ieee_pfc * ) ;
 4489   u8 (*getstate)(struct net_device * ) ;
 4490   u8 (*setstate)(struct net_device * , u8  ) ;
 4491   void (*getpermhwaddr)(struct net_device * , u8 * ) ;
 4492   void (*setpgtccfgtx)(struct net_device * , int  , u8  , u8  , u8  , u8  ) ;
 4493   void (*setpgbwgcfgtx)(struct net_device * , int  , u8  ) ;
 4494   void (*setpgtccfgrx)(struct net_device * , int  , u8  , u8  , u8  , u8  ) ;
 4495   void (*setpgbwgcfgrx)(struct net_device * , int  , u8  ) ;
 4496   void (*getpgtccfgtx)(struct net_device * , int  , u8 * , u8 * , u8 * , u8 * ) ;
 4497   void (*getpgbwgcfgtx)(struct net_device * , int  , u8 * ) ;
 4498   void (*getpgtccfgrx)(struct net_device * , int  , u8 * , u8 * , u8 * , u8 * ) ;
 4499   void (*getpgbwgcfgrx)(struct net_device * , int  , u8 * ) ;
 4500   void (*setpfccfg)(struct net_device * , int  , u8  ) ;
 4501   void (*getpfccfg)(struct net_device * , int  , u8 * ) ;
 4502   u8 (*setall)(struct net_device * ) ;
 4503   u8 (*getcap)(struct net_device * , int  , u8 * ) ;
 4504   u8 (*getnumtcs)(struct net_device * , int  , u8 * ) ;
 4505   u8 (*setnumtcs)(struct net_device * , int  , u8  ) ;
 4506   u8 (*getpfcstate)(struct net_device * ) ;
 4507   void (*setpfcstate)(struct net_device * , u8  ) ;
 4508   void (*getbcncfg)(struct net_device * , int  , u32 * ) ;
 4509   void (*setbcncfg)(struct net_device * , int  , u32  ) ;
 4510   void (*getbcnrp)(struct net_device * , int  , u8 * ) ;
 4511   void (*setbcnrp)(struct net_device * , int  , u8  ) ;
 4512   u8 (*setapp)(struct net_device * , u8  , u16  , u8  ) ;
 4513   u8 (*getapp)(struct net_device * , u8  , u16  ) ;
 4514   u8 (*getfeatcfg)(struct net_device * , int  , u8 * ) ;
 4515   u8 (*setfeatcfg)(struct net_device * , int  , u8  ) ;
 4516   u8 (*getdcbx)(struct net_device * ) ;
 4517   u8 (*setdcbx)(struct net_device * , u8  ) ;
 4518   int (*peer_getappinfo)(struct net_device * , struct dcb_peer_app_info * , u16 * ) ;
 4519   int (*peer_getapptable)(struct net_device * , struct dcb_app * ) ;
 4520   int (*cee_peer_getpg)(struct net_device * , struct cee_pg * ) ;
 4521   int (*cee_peer_getpfc)(struct net_device * , struct cee_pfc * ) ;
 4522};
 4523#line 91
 4524struct vlan_group;
 4525#line 91
 4526struct vlan_group;
 4527#line 92
 4528struct netpoll_info;
 4529#line 92
 4530struct netpoll_info;
 4531#line 93
 4532struct phy_device;
 4533#line 93
 4534struct phy_device;
 4535#line 94
 4536struct wireless_dev;
 4537#line 94
 4538struct wireless_dev;
 4539#line 95
 4540enum netdev_tx {
 4541    __NETDEV_TX_MIN = (-0x7FFFFFFF-1),
 4542    NETDEV_TX_OK = 0,
 4543    NETDEV_TX_BUSY = 16,
 4544    NETDEV_TX_LOCKED = 32
 4545} ;
 4546#line 117 "include/linux/netdevice.h"
 4547typedef enum netdev_tx netdev_tx_t;
 4548#line 136 "include/linux/netdevice.h"
 4549struct net_device_stats {
 4550   unsigned long rx_packets ;
 4551   unsigned long tx_packets ;
 4552   unsigned long rx_bytes ;
 4553   unsigned long tx_bytes ;
 4554   unsigned long rx_errors ;
 4555   unsigned long tx_errors ;
 4556   unsigned long rx_dropped ;
 4557   unsigned long tx_dropped ;
 4558   unsigned long multicast ;
 4559   unsigned long collisions ;
 4560   unsigned long rx_length_errors ;
 4561   unsigned long rx_over_errors ;
 4562   unsigned long rx_crc_errors ;
 4563   unsigned long rx_frame_errors ;
 4564   unsigned long rx_fifo_errors ;
 4565   unsigned long rx_missed_errors ;
 4566   unsigned long tx_aborted_errors ;
 4567   unsigned long tx_carrier_errors ;
 4568   unsigned long tx_fifo_errors ;
 4569   unsigned long tx_heartbeat_errors ;
 4570   unsigned long tx_window_errors ;
 4571   unsigned long rx_compressed ;
 4572   unsigned long tx_compressed ;
 4573};
 4574#line 211
 4575struct neighbour;
 4576#line 211
 4577struct neighbour;
 4578#line 212
 4579struct neigh_parms;
 4580#line 212
 4581struct neigh_parms;
 4582#line 239 "include/linux/netdevice.h"
 4583struct netdev_hw_addr_list {
 4584   struct list_head list ;
 4585   int count ;
 4586};
 4587#line 244 "include/linux/netdevice.h"
 4588struct hh_cache {
 4589   struct hh_cache *hh_next ;
 4590   atomic_t hh_refcnt ;
 4591   __be16 hh_type ;
 4592   u16 hh_len ;
 4593   int (*hh_output)(struct sk_buff * ) ;
 4594   seqlock_t hh_lock ;
 4595   unsigned long hh_data[16U] ;
 4596};
 4597#line 292 "include/linux/netdevice.h"
 4598struct header_ops {
 4599   int (*create)(struct sk_buff * , struct net_device * , unsigned short  , void const   * ,
 4600                 void const   * , unsigned int  ) ;
 4601   int (*parse)(struct sk_buff  const  * , unsigned char * ) ;
 4602   int (*rebuild)(struct sk_buff * ) ;
 4603   int (*cache)(struct neighbour  const  * , struct hh_cache * ) ;
 4604   void (*cache_update)(struct hh_cache * , struct net_device  const  * , unsigned char const   * ) ;
 4605};
 4606#line 392
 4607enum rx_handler_result {
 4608    RX_HANDLER_CONSUMED = 0,
 4609    RX_HANDLER_ANOTHER = 1,
 4610    RX_HANDLER_EXACT = 2,
 4611    RX_HANDLER_PASS = 3
 4612} ;
 4613#line 440 "include/linux/netdevice.h"
 4614typedef enum rx_handler_result rx_handler_result_t;
 4615#line 441 "include/linux/netdevice.h"
 4616typedef rx_handler_result_t rx_handler_func_t(struct sk_buff ** );
 4617#line 548
 4618struct Qdisc;
 4619#line 548
 4620struct Qdisc;
 4621#line 548 "include/linux/netdevice.h"
 4622struct netdev_queue {
 4623   struct net_device *dev ;
 4624   struct Qdisc *qdisc ;
 4625   unsigned long state ;
 4626   struct Qdisc *qdisc_sleeping ;
 4627   struct kobject kobj ;
 4628   int numa_node ;
 4629   spinlock_t _xmit_lock ;
 4630   int xmit_lock_owner ;
 4631   unsigned long trans_start ;
 4632};
 4633#line 590 "include/linux/netdevice.h"
 4634struct rps_map {
 4635   unsigned int len ;
 4636   struct rcu_head rcu ;
 4637   u16 cpus[0U] ;
 4638};
 4639#line 602 "include/linux/netdevice.h"
 4640struct rps_dev_flow {
 4641   u16 cpu ;
 4642   u16 filter ;
 4643   unsigned int last_qtail ;
 4644};
 4645#line 614 "include/linux/netdevice.h"
 4646struct rps_dev_flow_table {
 4647   unsigned int mask ;
 4648   struct rcu_head rcu ;
 4649   struct work_struct free_work ;
 4650   struct rps_dev_flow flows[0U] ;
 4651};
 4652#line 666 "include/linux/netdevice.h"
 4653struct netdev_rx_queue {
 4654   struct rps_map *rps_map ;
 4655   struct rps_dev_flow_table *rps_flow_table ;
 4656   struct kobject kobj ;
 4657   struct net_device *dev ;
 4658};
 4659#line 676 "include/linux/netdevice.h"
 4660struct xps_map {
 4661   unsigned int len ;
 4662   unsigned int alloc_len ;
 4663   struct rcu_head rcu ;
 4664   u16 queues[0U] ;
 4665};
 4666#line 689 "include/linux/netdevice.h"
 4667struct xps_dev_maps {
 4668   struct rcu_head rcu ;
 4669   struct xps_map *cpu_map[0U] ;
 4670};
 4671#line 700 "include/linux/netdevice.h"
 4672struct netdev_tc_txq {
 4673   u16 count ;
 4674   u16 offset ;
 4675};
 4676#line 711 "include/linux/netdevice.h"
 4677struct net_device_ops {
 4678   int (*ndo_init)(struct net_device * ) ;
 4679   void (*ndo_uninit)(struct net_device * ) ;
 4680   int (*ndo_open)(struct net_device * ) ;
 4681   int (*ndo_stop)(struct net_device * ) ;
 4682   netdev_tx_t (*ndo_start_xmit)(struct sk_buff * , struct net_device * ) ;
 4683   u16 (*ndo_select_queue)(struct net_device * , struct sk_buff * ) ;
 4684   void (*ndo_change_rx_flags)(struct net_device * , int  ) ;
 4685   void (*ndo_set_rx_mode)(struct net_device * ) ;
 4686   void (*ndo_set_multicast_list)(struct net_device * ) ;
 4687   int (*ndo_set_mac_address)(struct net_device * , void * ) ;
 4688   int (*ndo_validate_addr)(struct net_device * ) ;
 4689   int (*ndo_do_ioctl)(struct net_device * , struct ifreq * , int  ) ;
 4690   int (*ndo_set_config)(struct net_device * , struct ifmap * ) ;
 4691   int (*ndo_change_mtu)(struct net_device * , int  ) ;
 4692   int (*ndo_neigh_setup)(struct net_device * , struct neigh_parms * ) ;
 4693   void (*ndo_tx_timeout)(struct net_device * ) ;
 4694   struct rtnl_link_stats64 *(*ndo_get_stats64)(struct net_device * , struct rtnl_link_stats64 * ) ;
 4695   struct net_device_stats *(*ndo_get_stats)(struct net_device * ) ;
 4696   void (*ndo_vlan_rx_register)(struct net_device * , struct vlan_group * ) ;
 4697   void (*ndo_vlan_rx_add_vid)(struct net_device * , unsigned short  ) ;
 4698   void (*ndo_vlan_rx_kill_vid)(struct net_device * , unsigned short  ) ;
 4699   void (*ndo_poll_controller)(struct net_device * ) ;
 4700   int (*ndo_netpoll_setup)(struct net_device * , struct netpoll_info * ) ;
 4701   void (*ndo_netpoll_cleanup)(struct net_device * ) ;
 4702   int (*ndo_set_vf_mac)(struct net_device * , int  , u8 * ) ;
 4703   int (*ndo_set_vf_vlan)(struct net_device * , int  , u16  , u8  ) ;
 4704   int (*ndo_set_vf_tx_rate)(struct net_device * , int  , int  ) ;
 4705   int (*ndo_get_vf_config)(struct net_device * , int  , struct ifla_vf_info * ) ;
 4706   int (*ndo_set_vf_port)(struct net_device * , int  , struct nlattr ** ) ;
 4707   int (*ndo_get_vf_port)(struct net_device * , int  , struct sk_buff * ) ;
 4708   int (*ndo_setup_tc)(struct net_device * , u8  ) ;
 4709   int (*ndo_fcoe_enable)(struct net_device * ) ;
 4710   int (*ndo_fcoe_disable)(struct net_device * ) ;
 4711   int (*ndo_fcoe_ddp_setup)(struct net_device * , u16  , struct scatterlist * , unsigned int  ) ;
 4712   int (*ndo_fcoe_ddp_done)(struct net_device * , u16  ) ;
 4713   int (*ndo_fcoe_ddp_target)(struct net_device * , u16  , struct scatterlist * ,
 4714                              unsigned int  ) ;
 4715   int (*ndo_fcoe_get_wwn)(struct net_device * , u64 * , int  ) ;
 4716   int (*ndo_rx_flow_steer)(struct net_device * , struct sk_buff  const  * , u16  ,
 4717                            u32  ) ;
 4718   int (*ndo_add_slave)(struct net_device * , struct net_device * ) ;
 4719   int (*ndo_del_slave)(struct net_device * , struct net_device * ) ;
 4720   u32 (*ndo_fix_features)(struct net_device * , u32  ) ;
 4721   int (*ndo_set_features)(struct net_device * , u32  ) ;
 4722};
 4723#line 995
 4724struct iw_handler_def;
 4725#line 995
 4726struct iw_handler_def;
 4727#line 995
 4728struct iw_public_data;
 4729#line 995
 4730struct iw_public_data;
 4731#line 995
 4732struct in_device;
 4733#line 995
 4734struct in_device;
 4735#line 995
 4736struct dn_dev;
 4737#line 995
 4738struct dn_dev;
 4739#line 995
 4740struct inet6_dev;
 4741#line 995
 4742struct inet6_dev;
 4743#line 995
 4744struct cpu_rmap;
 4745#line 995
 4746struct cpu_rmap;
 4747#line 995
 4748struct pcpu_lstats;
 4749#line 995
 4750struct pcpu_lstats;
 4751#line 995
 4752struct pcpu_tstats;
 4753#line 995
 4754struct pcpu_tstats;
 4755#line 995
 4756struct pcpu_dstats;
 4757#line 995
 4758struct pcpu_dstats;
 4759#line 995 "include/linux/netdevice.h"
 4760union __anonunion_ldv_30926_191 {
 4761   void *ml_priv ;
 4762   struct pcpu_lstats *lstats ;
 4763   struct pcpu_tstats *tstats ;
 4764   struct pcpu_dstats *dstats ;
 4765};
 4766#line 995
 4767struct garp_port;
 4768#line 995
 4769struct garp_port;
 4770#line 995
 4771struct rtnl_link_ops;
 4772#line 995
 4773struct rtnl_link_ops;
 4774#line 995 "include/linux/netdevice.h"
 4775struct net_device {
 4776   char name[16U] ;
 4777   struct pm_qos_request_list pm_qos_req ;
 4778   struct hlist_node name_hlist ;
 4779   char *ifalias ;
 4780   unsigned long mem_end ;
 4781   unsigned long mem_start ;
 4782   unsigned long base_addr ;
 4783   unsigned int irq ;
 4784   unsigned long state ;
 4785   struct list_head dev_list ;
 4786   struct list_head napi_list ;
 4787   struct list_head unreg_list ;
 4788   u32 features ;
 4789   u32 hw_features ;
 4790   u32 wanted_features ;
 4791   u32 vlan_features ;
 4792   int ifindex ;
 4793   int iflink ;
 4794   struct net_device_stats stats ;
 4795   atomic_long_t rx_dropped ;
 4796   struct iw_handler_def  const  *wireless_handlers ;
 4797   struct iw_public_data *wireless_data ;
 4798   struct net_device_ops  const  *netdev_ops ;
 4799   struct ethtool_ops  const  *ethtool_ops ;
 4800   struct header_ops  const  *header_ops ;
 4801   unsigned int flags ;
 4802   unsigned int priv_flags ;
 4803   unsigned short gflags ;
 4804   unsigned short padded ;
 4805   unsigned char operstate ;
 4806   unsigned char link_mode ;
 4807   unsigned char if_port ;
 4808   unsigned char dma ;
 4809   unsigned int mtu ;
 4810   unsigned short type ;
 4811   unsigned short hard_header_len ;
 4812   unsigned short needed_headroom ;
 4813   unsigned short needed_tailroom ;
 4814   unsigned char perm_addr[32U] ;
 4815   unsigned char addr_assign_type ;
 4816   unsigned char addr_len ;
 4817   unsigned short dev_id ;
 4818   spinlock_t addr_list_lock ;
 4819   struct netdev_hw_addr_list uc ;
 4820   struct netdev_hw_addr_list mc ;
 4821   int uc_promisc ;
 4822   unsigned int promiscuity ;
 4823   unsigned int allmulti ;
 4824   struct vlan_group *vlgrp ;
 4825   void *dsa_ptr ;
 4826   void *atalk_ptr ;
 4827   struct in_device *ip_ptr ;
 4828   struct dn_dev *dn_ptr ;
 4829   struct inet6_dev *ip6_ptr ;
 4830   void *ec_ptr ;
 4831   void *ax25_ptr ;
 4832   struct wireless_dev *ieee80211_ptr ;
 4833   unsigned long last_rx ;
 4834   struct net_device *master ;
 4835   unsigned char *dev_addr ;
 4836   struct netdev_hw_addr_list dev_addrs ;
 4837   unsigned char broadcast[32U] ;
 4838   struct kset *queues_kset ;
 4839   struct netdev_rx_queue *_rx ;
 4840   unsigned int num_rx_queues ;
 4841   unsigned int real_num_rx_queues ;
 4842   struct cpu_rmap *rx_cpu_rmap ;
 4843   rx_handler_func_t *rx_handler ;
 4844   void *rx_handler_data ;
 4845   struct netdev_queue *ingress_queue ;
 4846   struct netdev_queue *_tx ;
 4847   unsigned int num_tx_queues ;
 4848   unsigned int real_num_tx_queues ;
 4849   struct Qdisc *qdisc ;
 4850   unsigned long tx_queue_len ;
 4851   spinlock_t tx_global_lock ;
 4852   struct xps_dev_maps *xps_maps ;
 4853   unsigned long trans_start ;
 4854   int watchdog_timeo ;
 4855   struct timer_list watchdog_timer ;
 4856   int *pcpu_refcnt ;
 4857   struct list_head todo_list ;
 4858   struct hlist_node index_hlist ;
 4859   struct list_head link_watch_list ;
 4860   unsigned char reg_state ;
 4861   bool dismantle ;
 4862   unsigned short rtnl_link_state ;
 4863   void (*destructor)(struct net_device * ) ;
 4864   struct netpoll_info *npinfo ;
 4865   struct net *nd_net ;
 4866   union __anonunion_ldv_30926_191 ldv_30926 ;
 4867   struct garp_port *garp_port ;
 4868   struct device dev ;
 4869   struct attribute_group  const  *sysfs_groups[4U] ;
 4870   struct rtnl_link_ops  const  *rtnl_link_ops ;
 4871   unsigned int gso_max_size ;
 4872   struct dcbnl_rtnl_ops  const  *dcbnl_ops ;
 4873   u8 num_tc ;
 4874   struct netdev_tc_txq tc_to_txq[16U] ;
 4875   u8 prio_tc_map[16U] ;
 4876   unsigned int fcoe_ddp_xid ;
 4877   struct ethtool_rx_ntuple_list ethtool_ntuple_list ;
 4878   struct phy_device *phydev ;
 4879   int group ;
 4880};
 4881#line 1559
 4882enum irqreturn {
 4883    IRQ_NONE = 0,
 4884    IRQ_HANDLED = 1,
 4885    IRQ_WAKE_THREAD = 2
 4886} ;
 4887#line 16 "include/linux/irqreturn.h"
 4888typedef enum irqreturn irqreturn_t;
 4889#line 91 "include/linux/interrupt.h"
 4890struct irqaction {
 4891   irqreturn_t (*handler)(int  , void * ) ;
 4892   unsigned long flags ;
 4893   void *dev_id ;
 4894   struct irqaction *next ;
 4895   int irq ;
 4896   irqreturn_t (*thread_fn)(int  , void * ) ;
 4897   struct task_struct *thread ;
 4898   unsigned long thread_flags ;
 4899   unsigned long thread_mask ;
 4900   char const   *name ;
 4901   struct proc_dir_entry *dir ;
 4902};
 4903#line 474 "include/linux/interrupt.h"
 4904struct tasklet_struct {
 4905   struct tasklet_struct *next ;
 4906   unsigned long state ;
 4907   atomic_t count ;
 4908   void (*func)(unsigned long  ) ;
 4909   unsigned long data ;
 4910};
 4911#line 6 "include/asm-generic/termbits.h"
 4912typedef unsigned char cc_t;
 4913#line 7 "include/asm-generic/termbits.h"
 4914typedef unsigned int speed_t;
 4915#line 8 "include/asm-generic/termbits.h"
 4916typedef unsigned int tcflag_t;
 4917#line 30 "include/asm-generic/termbits.h"
 4918struct ktermios {
 4919   tcflag_t c_iflag ;
 4920   tcflag_t c_oflag ;
 4921   tcflag_t c_cflag ;
 4922   tcflag_t c_lflag ;
 4923   cc_t c_line ;
 4924   cc_t c_cc[19U] ;
 4925   speed_t c_ispeed ;
 4926   speed_t c_ospeed ;
 4927};
 4928#line 41 "include/asm-generic/termbits.h"
 4929struct winsize {
 4930   unsigned short ws_row ;
 4931   unsigned short ws_col ;
 4932   unsigned short ws_xpixel ;
 4933   unsigned short ws_ypixel ;
 4934};
 4935#line 138 "include/asm-generic/termios.h"
 4936struct termiox {
 4937   __u16 x_hflag ;
 4938   __u16 x_cflag ;
 4939   __u16 x_rflag[5U] ;
 4940   __u16 x_sflag ;
 4941};
 4942#line 16 "include/linux/termios.h"
 4943struct cdev {
 4944   struct kobject kobj ;
 4945   struct module *owner ;
 4946   struct file_operations  const  *ops ;
 4947   struct list_head list ;
 4948   dev_t dev ;
 4949   unsigned int count ;
 4950};
 4951#line 34 "include/linux/cdev.h"
 4952struct serial_icounter_struct;
 4953#line 34
 4954struct serial_icounter_struct;
 4955#line 35 "include/linux/cdev.h"
 4956struct tty_operations {
 4957   struct tty_struct *(*lookup)(struct tty_driver * , struct inode * , int  ) ;
 4958   int (*install)(struct tty_driver * , struct tty_struct * ) ;
 4959   void (*remove)(struct tty_driver * , struct tty_struct * ) ;
 4960   int (*open)(struct tty_struct * , struct file * ) ;
 4961   void (*close)(struct tty_struct * , struct file * ) ;
 4962   void (*shutdown)(struct tty_struct * ) ;
 4963   void (*cleanup)(struct tty_struct * ) ;
 4964   int (*write)(struct tty_struct * , unsigned char const   * , int  ) ;
 4965   int (*put_char)(struct tty_struct * , unsigned char  ) ;
 4966   void (*flush_chars)(struct tty_struct * ) ;
 4967   int (*write_room)(struct tty_struct * ) ;
 4968   int (*chars_in_buffer)(struct tty_struct * ) ;
 4969   int (*ioctl)(struct tty_struct * , unsigned int  , unsigned long  ) ;
 4970   long (*compat_ioctl)(struct tty_struct * , unsigned int  , unsigned long  ) ;
 4971   void (*set_termios)(struct tty_struct * , struct ktermios * ) ;
 4972   void (*throttle)(struct tty_struct * ) ;
 4973   void (*unthrottle)(struct tty_struct * ) ;
 4974   void (*stop)(struct tty_struct * ) ;
 4975   void (*start)(struct tty_struct * ) ;
 4976   void (*hangup)(struct tty_struct * ) ;
 4977   int (*break_ctl)(struct tty_struct * , int  ) ;
 4978   void (*flush_buffer)(struct tty_struct * ) ;
 4979   void (*set_ldisc)(struct tty_struct * ) ;
 4980   void (*wait_until_sent)(struct tty_struct * , int  ) ;
 4981   void (*send_xchar)(struct tty_struct * , char  ) ;
 4982   int (*tiocmget)(struct tty_struct * ) ;
 4983   int (*tiocmset)(struct tty_struct * , unsigned int  , unsigned int  ) ;
 4984   int (*resize)(struct tty_struct * , struct winsize * ) ;
 4985   int (*set_termiox)(struct tty_struct * , struct termiox * ) ;
 4986   int (*get_icount)(struct tty_struct * , struct serial_icounter_struct * ) ;
 4987   int (*poll_init)(struct tty_driver * , int  , char * ) ;
 4988   int (*poll_get_char)(struct tty_driver * , int  ) ;
 4989   void (*poll_put_char)(struct tty_driver * , int  , char  ) ;
 4990   struct file_operations  const  *proc_fops ;
 4991};
 4992#line 287 "include/linux/tty_driver.h"
 4993struct tty_driver {
 4994   int magic ;
 4995   struct kref kref ;
 4996   struct cdev cdev ;
 4997   struct module *owner ;
 4998   char const   *driver_name ;
 4999   char const   *name ;
 5000   int name_base ;
 5001   int major ;
 5002   int minor_start ;
 5003   int minor_num ;
 5004   int num ;
 5005   short type ;
 5006   short subtype ;
 5007   struct ktermios init_termios ;
 5008   int flags ;
 5009   struct proc_dir_entry *proc_entry ;
 5010   struct tty_driver *other ;
 5011   struct tty_struct **ttys ;
 5012   struct ktermios **termios ;
 5013   struct ktermios **termios_locked ;
 5014   void *driver_state ;
 5015   struct tty_operations  const  *ops ;
 5016   struct list_head tty_drivers ;
 5017};
 5018#line 48 "include/linux/pps_kernel.h"
 5019struct pps_event_time {
 5020   struct timespec ts_real ;
 5021};
 5022#line 116 "include/linux/pps_kernel.h"
 5023struct tty_ldisc_ops {
 5024   int magic ;
 5025   char *name ;
 5026   int num ;
 5027   int flags ;
 5028   int (*open)(struct tty_struct * ) ;
 5029   void (*close)(struct tty_struct * ) ;
 5030   void (*flush_buffer)(struct tty_struct * ) ;
 5031   ssize_t (*chars_in_buffer)(struct tty_struct * ) ;
 5032   ssize_t (*read)(struct tty_struct * , struct file * , unsigned char * , size_t  ) ;
 5033   ssize_t (*write)(struct tty_struct * , struct file * , unsigned char const   * ,
 5034                    size_t  ) ;
 5035   int (*ioctl)(struct tty_struct * , struct file * , unsigned int  , unsigned long  ) ;
 5036   long (*compat_ioctl)(struct tty_struct * , struct file * , unsigned int  , unsigned long  ) ;
 5037   void (*set_termios)(struct tty_struct * , struct ktermios * ) ;
 5038   unsigned int (*poll)(struct tty_struct * , struct file * , struct poll_table_struct * ) ;
 5039   int (*hangup)(struct tty_struct * ) ;
 5040   void (*receive_buf)(struct tty_struct * , unsigned char const   * , char * , int  ) ;
 5041   void (*write_wakeup)(struct tty_struct * ) ;
 5042   void (*dcd_change)(struct tty_struct * , unsigned int  , struct pps_event_time * ) ;
 5043   struct module *owner ;
 5044   int refcount ;
 5045};
 5046#line 153 "include/linux/tty_ldisc.h"
 5047struct tty_ldisc {
 5048   struct tty_ldisc_ops *ops ;
 5049   atomic_t users ;
 5050};
 5051#line 158 "include/linux/tty_ldisc.h"
 5052struct tty_buffer {
 5053   struct tty_buffer *next ;
 5054   char *char_buf_ptr ;
 5055   unsigned char *flag_buf_ptr ;
 5056   int used ;
 5057   int size ;
 5058   int commit ;
 5059   int read ;
 5060   unsigned long data[0U] ;
 5061};
 5062#line 74 "include/linux/tty.h"
 5063struct tty_bufhead {
 5064   struct work_struct work ;
 5065   spinlock_t lock ;
 5066   struct tty_buffer *head ;
 5067   struct tty_buffer *tail ;
 5068   struct tty_buffer *free ;
 5069   int memory_used ;
 5070};
 5071#line 94
 5072struct tty_port;
 5073#line 94
 5074struct tty_port;
 5075#line 95 "include/linux/tty.h"
 5076struct tty_port_operations {
 5077   int (*carrier_raised)(struct tty_port * ) ;
 5078   void (*dtr_rts)(struct tty_port * , int  ) ;
 5079   void (*shutdown)(struct tty_port * ) ;
 5080   void (*drop)(struct tty_port * ) ;
 5081   int (*activate)(struct tty_port * , struct tty_struct * ) ;
 5082   void (*destruct)(struct tty_port * ) ;
 5083};
 5084#line 221 "include/linux/tty.h"
 5085struct tty_port {
 5086   struct tty_struct *tty ;
 5087   struct tty_port_operations  const  *ops ;
 5088   spinlock_t lock ;
 5089   int blocked_open ;
 5090   int count ;
 5091   wait_queue_head_t open_wait ;
 5092   wait_queue_head_t close_wait ;
 5093   wait_queue_head_t delta_msr_wait ;
 5094   unsigned long flags ;
 5095   unsigned char console : 1 ;
 5096   struct mutex mutex ;
 5097   struct mutex buf_mutex ;
 5098   unsigned char *xmit_buf ;
 5099   unsigned int close_delay ;
 5100   unsigned int closing_wait ;
 5101   int drain_delay ;
 5102   struct kref kref ;
 5103};
 5104#line 243 "include/linux/tty.h"
 5105struct tty_struct {
 5106   int magic ;
 5107   struct kref kref ;
 5108   struct device *dev ;
 5109   struct tty_driver *driver ;
 5110   struct tty_operations  const  *ops ;
 5111   int index ;
 5112   struct mutex ldisc_mutex ;
 5113   struct tty_ldisc *ldisc ;
 5114   struct mutex termios_mutex ;
 5115   spinlock_t ctrl_lock ;
 5116   struct ktermios *termios ;
 5117   struct ktermios *termios_locked ;
 5118   struct termiox *termiox ;
 5119   char name[64U] ;
 5120   struct pid *pgrp ;
 5121   struct pid *session ;
 5122   unsigned long flags ;
 5123   int count ;
 5124   struct winsize winsize ;
 5125   unsigned char stopped : 1 ;
 5126   unsigned char hw_stopped : 1 ;
 5127   unsigned char flow_stopped : 1 ;
 5128   unsigned char packet : 1 ;
 5129   unsigned char low_latency : 1 ;
 5130   unsigned char warned : 1 ;
 5131   unsigned char ctrl_status ;
 5132   unsigned int receive_room ;
 5133   struct tty_struct *link ;
 5134   struct fasync_struct *fasync ;
 5135   struct tty_bufhead buf ;
 5136   int alt_speed ;
 5137   wait_queue_head_t write_wait ;
 5138   wait_queue_head_t read_wait ;
 5139   struct work_struct hangup_work ;
 5140   void *disc_data ;
 5141   void *driver_data ;
 5142   struct list_head tty_files ;
 5143   unsigned int column ;
 5144   unsigned char lnext : 1 ;
 5145   unsigned char erasing : 1 ;
 5146   unsigned char raw : 1 ;
 5147   unsigned char real_raw : 1 ;
 5148   unsigned char icanon : 1 ;
 5149   unsigned char closing : 1 ;
 5150   unsigned char echo_overrun : 1 ;
 5151   unsigned short minimum_to_wake ;
 5152   unsigned long overrun_time ;
 5153   int num_overrun ;
 5154   unsigned long process_char_map[4U] ;
 5155   char *read_buf ;
 5156   int read_head ;
 5157   int read_tail ;
 5158   int read_cnt ;
 5159   unsigned long read_flags[64U] ;
 5160   unsigned char *echo_buf ;
 5161   unsigned int echo_pos ;
 5162   unsigned int echo_cnt ;
 5163   int canon_data ;
 5164   unsigned long canon_head ;
 5165   unsigned int canon_column ;
 5166   struct mutex atomic_read_lock ;
 5167   struct mutex atomic_write_lock ;
 5168   struct mutex output_lock ;
 5169   struct mutex echo_lock ;
 5170   unsigned char *write_buf ;
 5171   int write_cnt ;
 5172   spinlock_t read_lock ;
 5173   struct work_struct SAK_work ;
 5174   struct tty_port *port ;
 5175};
 5176#line 64 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5177enum debuglevel {
 5178    DEBUG_INTR = 8,
 5179    DEBUG_CMD = 32,
 5180    DEBUG_STREAM = 64,
 5181    DEBUG_STREAM_DUMP = 128,
 5182    DEBUG_LLDATA = 256,
 5183    DEBUG_EVENT = 512,
 5184    DEBUG_HDLC = 2048,
 5185    DEBUG_CHANNEL = 4096,
 5186    DEBUG_TRANSCMD = 8192,
 5187    DEBUG_MCMD = 16384,
 5188    DEBUG_INIT = 32768,
 5189    DEBUG_SUSPEND = 65536,
 5190    DEBUG_OUTPUT = 131072,
 5191    DEBUG_ISO = 262144,
 5192    DEBUG_IF = 524288,
 5193    DEBUG_USBREQ = 1048576,
 5194    DEBUG_LOCKCMD = 2097152,
 5195    DEBUG_ANY = 4194303
 5196} ;
 5197#line 110
 5198struct gigaset_ops;
 5199#line 110
 5200struct gigaset_ops;
 5201#line 111
 5202struct gigaset_driver;
 5203#line 111
 5204struct gigaset_driver;
 5205#line 112
 5206struct usb_cardstate;
 5207#line 112
 5208struct usb_cardstate;
 5209#line 113
 5210struct ser_cardstate;
 5211#line 113
 5212struct ser_cardstate;
 5213#line 114
 5214struct bas_cardstate;
 5215#line 114
 5216struct bas_cardstate;
 5217#line 115
 5218struct bc_state;
 5219#line 115
 5220struct bc_state;
 5221#line 116
 5222struct usb_bc_state;
 5223#line 116
 5224struct usb_bc_state;
 5225#line 117
 5226struct ser_bc_state;
 5227#line 117
 5228struct ser_bc_state;
 5229#line 118
 5230struct bas_bc_state;
 5231#line 118
 5232struct bas_bc_state;
 5233#line 119 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5234struct reply_t {
 5235   int resp_code ;
 5236   int min_ConState ;
 5237   int max_ConState ;
 5238   int parameter ;
 5239   int new_ConState ;
 5240   int timeout ;
 5241   int action[3U] ;
 5242   char *command ;
 5243};
 5244#line 276
 5245struct cardstate;
 5246#line 276
 5247struct cardstate;
 5248#line 276 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5249struct inbuf_t {
 5250   struct cardstate *cs ;
 5251   int inputstate ;
 5252   int head ;
 5253   int tail ;
 5254   unsigned char data[8192U] ;
 5255};
 5256#line 283 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5257struct isowbuf_t {
 5258   int read ;
 5259   int nextread ;
 5260   int write ;
 5261   atomic_t writesem ;
 5262   int wbits ;
 5263   unsigned char data[4112U] ;
 5264   unsigned char idle ;
 5265};
 5266#line 310
 5267struct urb;
 5268#line 310
 5269struct urb;
 5270#line 310 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5271struct isow_urbctx_t {
 5272   struct urb *urb ;
 5273   struct bc_state *bcs ;
 5274   int limit ;
 5275   int status ;
 5276};
 5277#line 325 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5278struct at_state_t {
 5279   struct list_head list ;
 5280   int waiting ;
 5281   int getstring ;
 5282   unsigned int timer_index ;
 5283   unsigned long timer_expires ;
 5284   int timer_active ;
 5285   unsigned int ConState ;
 5286   struct reply_t *replystruct ;
 5287   int cid ;
 5288   int int_var[3U] ;
 5289   char *str_var[5U] ;
 5290   unsigned int pending_commands ;
 5291   unsigned int seq_index ;
 5292   struct cardstate *cs ;
 5293   struct bc_state *bcs ;
 5294};
 5295#line 348 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5296struct event_t {
 5297   int type ;
 5298   void *ptr ;
 5299   void *arg ;
 5300   int parameter ;
 5301   int cid ;
 5302   struct at_state_t *at_state ;
 5303};
 5304#line 356 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5305union __anonunion_hw_193 {
 5306   struct ser_bc_state *ser ;
 5307   struct usb_bc_state *usb ;
 5308   struct bas_bc_state *bas ;
 5309};
 5310#line 356 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5311struct bc_state {
 5312   struct sk_buff *tx_skb ;
 5313   struct sk_buff_head squeue ;
 5314   int corrupted ;
 5315   int trans_down ;
 5316   int trans_up ;
 5317   struct at_state_t at_state ;
 5318   unsigned int rx_bufsize ;
 5319   struct sk_buff *rx_skb ;
 5320   __u16 rx_fcs ;
 5321   int inputstate ;
 5322   int channel ;
 5323   struct cardstate *cs ;
 5324   unsigned int chstate ;
 5325   int ignore ;
 5326   unsigned int proto2 ;
 5327   char *commands[7U] ;
 5328   int emptycount ;
 5329   int busy ;
 5330   int use_count ;
 5331   union __anonunion_hw_193 hw ;
 5332   void *ap ;
 5333   int apconnstate ;
 5334   spinlock_t aplock ;
 5335};
 5336#line 401
 5337struct cmdbuf_t;
 5338#line 401
 5339struct cmdbuf_t;
 5340#line 401 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5341union __anonunion_hw_194 {
 5342   struct usb_cardstate *usb ;
 5343   struct ser_cardstate *ser ;
 5344   struct bas_cardstate *bas ;
 5345};
 5346#line 401 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5347struct cardstate {
 5348   struct gigaset_driver *driver ;
 5349   unsigned int minor_index ;
 5350   struct device *dev ;
 5351   struct device *tty_dev ;
 5352   unsigned int flags ;
 5353   struct gigaset_ops  const  *ops ;
 5354   wait_queue_head_t waitqueue ;
 5355   int waiting ;
 5356   int mode ;
 5357   int mstate ;
 5358   int cmd_result ;
 5359   int channels ;
 5360   struct bc_state *bcs ;
 5361   int onechannel ;
 5362   spinlock_t lock ;
 5363   struct at_state_t at_state ;
 5364   struct list_head temp_at_states ;
 5365   struct inbuf_t *inbuf ;
 5366   struct cmdbuf_t *cmdbuf ;
 5367   struct cmdbuf_t *lastcmdbuf ;
 5368   spinlock_t cmdlock ;
 5369   unsigned int curlen ;
 5370   unsigned int cmdbytes ;
 5371   unsigned int open_count ;
 5372   struct tty_struct *tty ;
 5373   struct tasklet_struct if_wake_tasklet ;
 5374   unsigned int control_state ;
 5375   unsigned int fwver[4U] ;
 5376   int gotfwver ;
 5377   unsigned int running ;
 5378   unsigned int connected ;
 5379   unsigned int isdn_up ;
 5380   unsigned int cidmode ;
 5381   int myid ;
 5382   void *iif ;
 5383   unsigned short hw_hdr_len ;
 5384   struct reply_t *tabnocid ;
 5385   struct reply_t *tabcid ;
 5386   int cs_init ;
 5387   int ignoreframes ;
 5388   struct mutex mutex ;
 5389   struct timer_list timer ;
 5390   int retry_count ;
 5391   int dle ;
 5392   int cur_at_seq ;
 5393   int curchannel ;
 5394   int commands_pending ;
 5395   struct tasklet_struct event_tasklet ;
 5396   struct tasklet_struct write_tasklet ;
 5397   struct event_t events[64U] ;
 5398   unsigned int ev_tail ;
 5399   unsigned int ev_head ;
 5400   spinlock_t ev_lock ;
 5401   unsigned char respdata[512U] ;
 5402   unsigned int cbytes ;
 5403   union __anonunion_hw_194 hw ;
 5404};
 5405#line 504 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5406struct gigaset_driver {
 5407   struct list_head list ;
 5408   spinlock_t lock ;
 5409   struct tty_driver *tty ;
 5410   unsigned int have_tty ;
 5411   unsigned int minor ;
 5412   unsigned int minors ;
 5413   struct cardstate *cs ;
 5414   int blocked ;
 5415   struct gigaset_ops  const  *ops ;
 5416   struct module *owner ;
 5417};
 5418#line 518 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5419struct cmdbuf_t {
 5420   struct cmdbuf_t *next ;
 5421   struct cmdbuf_t *prev ;
 5422   int len ;
 5423   int offset ;
 5424   struct tasklet_struct *wake_tasklet ;
 5425   unsigned char buf[0U] ;
 5426};
 5427#line 525 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5428struct bas_bc_state {
 5429   int running ;
 5430   atomic_t corrbytes ;
 5431   spinlock_t isooutlock ;
 5432   struct isow_urbctx_t isoouturbs[3U] ;
 5433   struct isow_urbctx_t *isooutdone ;
 5434   struct isow_urbctx_t *isooutfree ;
 5435   struct isow_urbctx_t *isooutovfl ;
 5436   struct isowbuf_t *isooutbuf ;
 5437   unsigned int numsub ;
 5438   struct tasklet_struct sent_tasklet ;
 5439   spinlock_t isoinlock ;
 5440   struct urb *isoinurbs[3U] ;
 5441   unsigned char isoinbuf[384U] ;
 5442   struct urb *isoindone ;
 5443   int isoinstatus ;
 5444   int loststatus ;
 5445   unsigned int isoinlost ;
 5446   unsigned int seqlen ;
 5447   unsigned int inbyte ;
 5448   unsigned int inbits ;
 5449   unsigned int goodbytes ;
 5450   unsigned int alignerrs ;
 5451   unsigned int fcserrs ;
 5452   unsigned int frameerrs ;
 5453   unsigned int giants ;
 5454   unsigned int runts ;
 5455   unsigned int aborts ;
 5456   unsigned int shared0s ;
 5457   unsigned int stolen0s ;
 5458   struct tasklet_struct rcvd_tasklet ;
 5459};
 5460#line 564 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5461struct gigaset_ops {
 5462   int (*write_cmd)(struct cardstate * , struct cmdbuf_t * ) ;
 5463   int (*write_room)(struct cardstate * ) ;
 5464   int (*chars_in_buffer)(struct cardstate * ) ;
 5465   int (*brkchars)(struct cardstate * , unsigned char const   * ) ;
 5466   int (*init_bchannel)(struct bc_state * ) ;
 5467   int (*close_bchannel)(struct bc_state * ) ;
 5468   int (*initbcshw)(struct bc_state * ) ;
 5469   int (*freebcshw)(struct bc_state * ) ;
 5470   void (*reinitbcshw)(struct bc_state * ) ;
 5471   int (*initcshw)(struct cardstate * ) ;
 5472   void (*freecshw)(struct cardstate * ) ;
 5473   int (*set_modem_ctrl)(struct cardstate * , unsigned int  , unsigned int  ) ;
 5474   int (*baud_rate)(struct cardstate * , unsigned int  ) ;
 5475   int (*set_line_ctrl)(struct cardstate * , unsigned int  ) ;
 5476   int (*send_skb)(struct bc_state * , struct sk_buff * ) ;
 5477   void (*handle_input)(struct inbuf_t * ) ;
 5478};
 5479#line 290 "include/linux/timer.h"
 5480enum hrtimer_restart;
 5481#line 290
 5482enum hrtimer_restart;
 5483#line 290
 5484enum hrtimer_restart;
 5485#line 290
 5486enum hrtimer_restart;
 5487#line 290
 5488enum hrtimer_restart;
 5489#line 290
 5490enum hrtimer_restart;
 5491#line 335 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
 5492struct resp_type_t {
 5493   unsigned char *response ;
 5494   int resp_code ;
 5495   int type ;
 5496};
 5497#line 378 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
 5498struct zsau_resp_t {
 5499   unsigned char *str ;
 5500   int code ;
 5501};
 5502#line 290 "include/linux/timer.h"
 5503enum hrtimer_restart;
 5504#line 290
 5505enum hrtimer_restart;
 5506#line 91 "include/linux/types.h"
 5507typedef unsigned char u_char;
 5508#line 290 "include/linux/timer.h"
 5509enum hrtimer_restart;
 5510#line 290
 5511enum hrtimer_restart;
 5512#line 241 "include/linux/proc_fs.h"
 5513struct proc_ns_operations {
 5514   char const   *name ;
 5515   int type ;
 5516   void *(*get)(struct task_struct * ) ;
 5517   void (*put)(void * ) ;
 5518   int (*install)(struct nsproxy * , void * ) ;
 5519};
 5520#line 254 "include/linux/proc_fs.h"
 5521union proc_op {
 5522   int (*proc_get_link)(struct inode * , struct path * ) ;
 5523   int (*proc_read)(struct task_struct * , char * ) ;
 5524   int (*proc_show)(struct seq_file * , struct pid_namespace * , struct pid * , struct task_struct * ) ;
 5525};
 5526#line 260 "include/linux/proc_fs.h"
 5527struct proc_inode {
 5528   struct pid *pid ;
 5529   int fd ;
 5530   union proc_op op ;
 5531   struct proc_dir_entry *pde ;
 5532   struct ctl_table_header *sysctl ;
 5533   struct ctl_table *sysctl_entry ;
 5534   void *ns ;
 5535   struct proc_ns_operations  const  *ns_ops ;
 5536   struct inode vfs_inode ;
 5537};
 5538#line 829 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 5539struct capi_register_params {
 5540   __u32 level3cnt ;
 5541   __u32 datablkcnt ;
 5542   __u32 datablklen ;
 5543};
 5544#line 29 "include/linux/capi.h"
 5545typedef struct capi_register_params capi_register_params;
 5546#line 30 "include/linux/capi.h"
 5547struct capi_version {
 5548   __u32 majorversion ;
 5549   __u32 minorversion ;
 5550   __u32 majormanuversion ;
 5551   __u32 minormanuversion ;
 5552};
 5553#line 50 "include/linux/capi.h"
 5554typedef struct capi_version capi_version;
 5555#line 51 "include/linux/capi.h"
 5556struct capi_profile {
 5557   __u16 ncontroller ;
 5558   __u16 nbchannel ;
 5559   __u32 goptions ;
 5560   __u32 support1 ;
 5561   __u32 support2 ;
 5562   __u32 support3 ;
 5563   __u32 reserved[6U] ;
 5564   __u32 manu[5U] ;
 5565};
 5566#line 74 "include/linux/capi.h"
 5567typedef struct capi_profile capi_profile;
 5568#line 152 "include/linux/kernelcapi.h"
 5569struct capiloaddatapart {
 5570   int user ;
 5571   int len ;
 5572   unsigned char *data ;
 5573};
 5574#line 24 "include/linux/isdn/capilli.h"
 5575typedef struct capiloaddatapart capiloaddatapart;
 5576#line 25 "include/linux/isdn/capilli.h"
 5577struct capiloaddata {
 5578   capiloaddatapart firmware ;
 5579   capiloaddatapart configuration ;
 5580};
 5581#line 29 "include/linux/isdn/capilli.h"
 5582typedef struct capiloaddata capiloaddata;
 5583#line 30 "include/linux/isdn/capilli.h"
 5584struct capicardparams {
 5585   unsigned int port ;
 5586   unsigned int irq ;
 5587   int cardtype ;
 5588   int cardnr ;
 5589   unsigned int membase ;
 5590};
 5591#line 37 "include/linux/isdn/capilli.h"
 5592typedef struct capicardparams capicardparams;
 5593#line 38 "include/linux/isdn/capilli.h"
 5594struct capi_ctr {
 5595   struct module *owner ;
 5596   void *driverdata ;
 5597   char name[32U] ;
 5598   char *driver_name ;
 5599   int (*load_firmware)(struct capi_ctr * , capiloaddata * ) ;
 5600   void (*reset_ctr)(struct capi_ctr * ) ;
 5601   void (*register_appl)(struct capi_ctr * , u16  , capi_register_params * ) ;
 5602   void (*release_appl)(struct capi_ctr * , u16  ) ;
 5603   u16 (*send_message)(struct capi_ctr * , struct sk_buff * ) ;
 5604   char *(*procinfo)(struct capi_ctr * ) ;
 5605   struct file_operations  const  *proc_fops ;
 5606   u8 manu[64U] ;
 5607   capi_version version ;
 5608   capi_profile profile ;
 5609   u8 serial[8U] ;
 5610   unsigned long nrecvctlpkt ;
 5611   unsigned long nrecvdatapkt ;
 5612   unsigned long nsentctlpkt ;
 5613   unsigned long nsentdatapkt ;
 5614   int cnr ;
 5615   unsigned short state ;
 5616   int blocked ;
 5617   int traceflag ;
 5618   wait_queue_head_t state_wait_queue ;
 5619   struct proc_dir_entry *procent ;
 5620   char procfn[128U] ;
 5621};
 5622#line 86 "include/linux/isdn/capilli.h"
 5623struct capi_driver {
 5624   char name[32U] ;
 5625   char revision[32U] ;
 5626   int (*add_card)(struct capi_driver * , capicardparams * ) ;
 5627   struct list_head list ;
 5628};
 5629#line 62 "include/linux/isdn/capiutil.h"
 5630typedef __u8 *_cstruct;
 5631#line 63
 5632enum ldv_25572 {
 5633    CAPI_COMPOSE = 0,
 5634    CAPI_DEFAULT = 1
 5635} ;
 5636#line 67 "include/linux/isdn/capiutil.h"
 5637typedef enum ldv_25572 _cmstruct;
 5638#line 144 "include/linux/isdn/capiutil.h"
 5639union __anonunion_adr_196 {
 5640   __u32 adrController ;
 5641   __u32 adrPLCI ;
 5642   __u32 adrNCCI ;
 5643};
 5644#line 144 "include/linux/isdn/capiutil.h"
 5645struct __anonstruct__cmsg_195 {
 5646   __u16 ApplId ;
 5647   __u8 Command ;
 5648   __u8 Subcommand ;
 5649   __u16 Messagenumber ;
 5650   union __anonunion_adr_196 adr ;
 5651   _cmstruct AdditionalInfo ;
 5652   _cstruct B1configuration ;
 5653   __u16 B1protocol ;
 5654   _cstruct B2configuration ;
 5655   __u16 B2protocol ;
 5656   _cstruct B3configuration ;
 5657   __u16 B3protocol ;
 5658   _cstruct BC ;
 5659   _cstruct BChannelinformation ;
 5660   _cmstruct BProtocol ;
 5661   _cstruct CalledPartyNumber ;
 5662   _cstruct CalledPartySubaddress ;
 5663   _cstruct CallingPartyNumber ;
 5664   _cstruct CallingPartySubaddress ;
 5665   __u32 CIPmask ;
 5666   __u32 CIPmask2 ;
 5667   __u16 CIPValue ;
 5668   __u32 Class ;
 5669   _cstruct ConnectedNumber ;
 5670   _cstruct ConnectedSubaddress ;
 5671   __u32 Data ;
 5672   __u16 DataHandle ;
 5673   __u16 DataLength ;
 5674   _cstruct FacilityConfirmationParameter ;
 5675   _cstruct Facilitydataarray ;
 5676   _cstruct FacilityIndicationParameter ;
 5677   _cstruct FacilityRequestParameter ;
 5678   __u16 FacilitySelector ;
 5679   __u16 Flags ;
 5680   __u32 Function ;
 5681   _cstruct HLC ;
 5682   __u16 Info ;
 5683   _cstruct InfoElement ;
 5684   __u32 InfoMask ;
 5685   __u16 InfoNumber ;
 5686   _cstruct Keypadfacility ;
 5687   _cstruct LLC ;
 5688   _cstruct ManuData ;
 5689   __u32 ManuID ;
 5690   _cstruct NCPI ;
 5691   __u16 Reason ;
 5692   __u16 Reason_B3 ;
 5693   __u16 Reject ;
 5694   _cstruct Useruserdata ;
 5695   unsigned int l ;
 5696   unsigned int p ;
 5697   unsigned char *par ;
 5698   __u8 *m ;
 5699   __u8 buf[180U] ;
 5700};
 5701#line 144 "include/linux/isdn/capiutil.h"
 5702typedef struct __anonstruct__cmsg_195 _cmsg;
 5703#line 185 "include/linux/isdn/capiutil.h"
 5704struct __anonstruct__cdebbuf_197 {
 5705   u_char *buf ;
 5706   u_char *p ;
 5707   size_t size ;
 5708   size_t pos ;
 5709};
 5710#line 185 "include/linux/isdn/capiutil.h"
 5711typedef struct __anonstruct__cdebbuf_197 _cdebbuf;
 5712#line 520 "include/linux/isdn/capiutil.h"
 5713struct gigaset_capi_appl {
 5714   struct list_head ctrlist ;
 5715   struct gigaset_capi_appl *bcnext ;
 5716   u16 id ;
 5717   struct capi_register_params rp ;
 5718   u16 nextMessageNumber ;
 5719   u32 listenInfoMask ;
 5720   u32 listenCIPmask ;
 5721};
 5722#line 97 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
 5723struct gigaset_capi_ctr {
 5724   struct capi_ctr ctr ;
 5725   struct list_head appls ;
 5726   struct sk_buff_head sendqueue ;
 5727   atomic_t sendqlen ;
 5728   _cmsg hcmsg ;
 5729   _cmsg acmsg ;
 5730   u8 bc_buf[12U] ;
 5731   u8 hlc_buf[4U] ;
 5732   u8 cgpty_buf[23U] ;
 5733   u8 cdpty_buf[22U] ;
 5734};
 5735#line 117 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
 5736struct __anonstruct_cip2bchlc_198 {
 5737   u8 *bc ;
 5738   u8 *hlc ;
 5739};
 5740#line 2112 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
 5741typedef void (*capi_send_handler_t)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * ,
 5742                                    struct sk_buff * );
 5743#line 2119 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
 5744struct __anonstruct_capi_send_handler_table_202 {
 5745   u16 cmd ;
 5746   void (*handler)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * , struct sk_buff * ) ;
 5747};
 5748#line 1 "<compiler builtins>"
 5749void *__builtin_memcpy(void * , void const   * , unsigned long  ) ;
 5750#line 1
 5751unsigned long __builtin_object_size(void * , int  ) ;
 5752#line 1
 5753long __builtin_expect(long  , long  ) ;
 5754#line 24 "include/linux/list.h"
 5755__inline static void INIT_LIST_HEAD(struct list_head *list ) 
 5756{ 
 5757
 5758  {
 5759#line 26
 5760  list->next = list;
 5761#line 27
 5762  list->prev = list;
 5763#line 28
 5764  return;
 5765}
 5766}
 5767#line 47
 5768extern void __list_add(struct list_head * , struct list_head * , struct list_head * ) ;
 5769#line 60 "include/linux/list.h"
 5770__inline static void list_add(struct list_head *new , struct list_head *head ) 
 5771{ struct list_head *__cil_tmp3 ;
 5772
 5773  {
 5774  {
 5775#line 62
 5776  __cil_tmp3 = head->next;
 5777#line 62
 5778  __list_add(new, head, __cil_tmp3);
 5779  }
 5780#line 63
 5781  return;
 5782}
 5783}
 5784#line 112
 5785extern void list_del(struct list_head * ) ;
 5786#line 195 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/bitops.h"
 5787__inline static int test_and_set_bit(int nr , unsigned long volatile   *addr ) 
 5788{ int oldbit ;
 5789  long volatile   *__cil_tmp4 ;
 5790
 5791  {
 5792#line 199
 5793  __cil_tmp4 = (long volatile   *)addr;
 5794#line 199
 5795  __asm__  volatile   (".section .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.previous\n671:\n\tlock; bts %2,%1\n\tsbb %0,%0": "=r" (oldbit),
 5796                       "+m" (*__cil_tmp4): "Ir" (nr): "memory");
 5797#line 202
 5798  return (oldbit);
 5799}
 5800}
 5801#line 101 "include/linux/printk.h"
 5802extern int printk(char const   *  , ...) ;
 5803#line 88 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/percpu.h"
 5804extern void __bad_percpu_size(void) ;
 5805#line 10 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/current.h"
 5806extern struct task_struct *current_task ;
 5807#line 12 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/current.h"
 5808__inline static struct task_struct *get_current(void) 
 5809{ struct task_struct *pfo_ret__ ;
 5810
 5811  {
 5812#line 14
 5813  if (1) {
 5814#line 14
 5815    goto case_8;
 5816  } else {
 5817#line 14
 5818    goto switch_default;
 5819#line 14
 5820    if (0) {
 5821#line 14
 5822      __asm__  ("movb %%gs:%P1,%0": "=q" (pfo_ret__): "p" (& current_task));
 5823#line 14
 5824      goto ldv_2386;
 5825#line 14
 5826      __asm__  ("movw %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task));
 5827#line 14
 5828      goto ldv_2386;
 5829#line 14
 5830      __asm__  ("movl %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task));
 5831#line 14
 5832      goto ldv_2386;
 5833      case_8: 
 5834#line 14
 5835      __asm__  ("movq %%gs:%P1,%0": "=r" (pfo_ret__): "p" (& current_task));
 5836#line 14
 5837      goto ldv_2386;
 5838      switch_default: 
 5839      {
 5840#line 14
 5841      __bad_percpu_size();
 5842      }
 5843    } else {
 5844
 5845    }
 5846  }
 5847  ldv_2386: ;
 5848#line 14
 5849  return (pfo_ret__);
 5850}
 5851}
 5852#line 11 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/cmpxchg_64.h"
 5853extern void __xchg_wrong_size(void) ;
 5854#line 93 "include/linux/spinlock.h"
 5855extern void __raw_spin_lock_init(raw_spinlock_t * , char const   * , struct lock_class_key * ) ;
 5856#line 22 "include/linux/spinlock_api_smp.h"
 5857extern void _raw_spin_lock(raw_spinlock_t * ) ;
 5858#line 32
 5859extern unsigned long _raw_spin_lock_irqsave(raw_spinlock_t * ) ;
 5860#line 39
 5861extern void _raw_spin_unlock(raw_spinlock_t * ) ;
 5862#line 43
 5863extern void _raw_spin_unlock_irqrestore(raw_spinlock_t * , unsigned long  ) ;
 5864#line 272 "include/linux/spinlock.h"
 5865__inline static raw_spinlock_t *spinlock_check(spinlock_t *lock ) 
 5866{ 
 5867
 5868  {
 5869#line 274
 5870  return (& lock->ldv_6060.rlock);
 5871}
 5872}
 5873#line 283 "include/linux/spinlock.h"
 5874__inline static void spin_lock(spinlock_t *lock ) 
 5875{ struct raw_spinlock *__cil_tmp2 ;
 5876
 5877  {
 5878  {
 5879#line 285
 5880  __cil_tmp2 = & lock->ldv_6060.rlock;
 5881#line 285
 5882  _raw_spin_lock(__cil_tmp2);
 5883  }
 5884#line 286
 5885  return;
 5886}
 5887}
 5888#line 323 "include/linux/spinlock.h"
 5889__inline static void spin_unlock(spinlock_t *lock ) 
 5890{ struct raw_spinlock *__cil_tmp2 ;
 5891
 5892  {
 5893  {
 5894#line 325
 5895  __cil_tmp2 = & lock->ldv_6060.rlock;
 5896#line 325
 5897  _raw_spin_unlock(__cil_tmp2);
 5898  }
 5899#line 326
 5900  return;
 5901}
 5902}
 5903#line 338 "include/linux/spinlock.h"
 5904__inline static void spin_unlock_irqrestore(spinlock_t *lock , unsigned long flags ) 
 5905{ struct raw_spinlock *__cil_tmp3 ;
 5906
 5907  {
 5908  {
 5909#line 340
 5910  __cil_tmp3 = & lock->ldv_6060.rlock;
 5911#line 340
 5912  _raw_spin_unlock_irqrestore(__cil_tmp3, flags);
 5913  }
 5914#line 341
 5915  return;
 5916}
 5917}
 5918#line 80 "include/linux/wait.h"
 5919extern void __init_waitqueue_head(wait_queue_head_t * , struct lock_class_key * ) ;
 5920#line 156
 5921extern void __wake_up(wait_queue_head_t * , unsigned int  , int  , void * ) ;
 5922#line 584
 5923extern void prepare_to_wait(wait_queue_head_t * , wait_queue_t * , int  ) ;
 5924#line 586
 5925extern void finish_wait(wait_queue_head_t * , wait_queue_t * ) ;
 5926#line 589
 5927extern int autoremove_wake_function(wait_queue_t * , unsigned int  , int  , void * ) ;
 5928#line 115 "include/linux/mutex.h"
 5929extern void __mutex_init(struct mutex * , char const   * , struct lock_class_key * ) ;
 5930#line 134
 5931extern void mutex_lock_nested(struct mutex * , unsigned int  ) ;
 5932#line 136
 5933extern int mutex_lock_interruptible_nested(struct mutex * , unsigned int  ) ;
 5934#line 169
 5935extern void mutex_unlock(struct mutex * ) ;
 5936#line 82 "include/linux/jiffies.h"
 5937extern unsigned long volatile   jiffies ;
 5938#line 298
 5939extern unsigned long msecs_to_jiffies(unsigned int  ) ;
 5940#line 91 "include/linux/timer.h"
 5941extern void init_timer_key(struct timer_list * , char const   * , struct lock_class_key * ) ;
 5942#line 166 "include/linux/timer.h"
 5943__inline static void setup_timer_key(struct timer_list *timer , char const   *name ,
 5944                                     struct lock_class_key *key , void (*function)(unsigned long  ) ,
 5945                                     unsigned long data ) 
 5946{ 
 5947
 5948  {
 5949  {
 5950#line 172
 5951  timer->function = function;
 5952#line 173
 5953  timer->data = data;
 5954#line 174
 5955  init_timer_key(timer, name, key);
 5956  }
 5957#line 175
 5958  return;
 5959}
 5960}
 5961#line 211
 5962extern int mod_timer(struct timer_list * , unsigned long  ) ;
 5963#line 275
 5964extern void add_timer(struct timer_list * ) ;
 5965#line 280
 5966extern int del_timer_sync(struct timer_list * ) ;
 5967#line 830 "include/linux/rcupdate.h"
 5968extern void kfree(void const   * ) ;
 5969#line 537 "include/linux/module.h"
 5970__inline static int ldv_try_module_get_1(struct module *module ) ;
 5971#line 547
 5972void ldv_module_put_3(struct module *ldv_func_arg1 ) ;
 5973#line 551
 5974void ldv_module_put_4(struct module *ldv_func_arg1 ) ;
 5975#line 3 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 5976int ldv_try_module_get(struct module *module ) ;
 5977#line 4
 5978void ldv_module_get(struct module *module ) ;
 5979#line 5
 5980void ldv_module_put(struct module *module ) ;
 5981#line 6
 5982unsigned int ldv_module_refcount(void) ;
 5983#line 7
 5984void ldv_module_put_and_exit(void) ;
 5985#line 357 "include/linux/sched.h"
 5986extern long schedule_timeout(long  ) ;
 5987#line 361
 5988extern void schedule(void) ;
 5989#line 221 "include/linux/slub_def.h"
 5990extern void *__kmalloc(size_t  , gfp_t  ) ;
 5991#line 255 "include/linux/slub_def.h"
 5992__inline static void *kmalloc(size_t size , gfp_t flags ) 
 5993{ void *tmp___2 ;
 5994
 5995  {
 5996  {
 5997#line 270
 5998  tmp___2 = __kmalloc(size, flags);
 5999  }
 6000#line 270
 6001  return (tmp___2);
 6002}
 6003}
 6004#line 797 "include/linux/device.h"
 6005extern int dev_err(struct device  const  * , char const   *  , ...) ;
 6006#line 491 "include/linux/skbuff.h"
 6007extern void consume_skb(struct sk_buff * ) ;
 6008#line 858 "include/linux/skbuff.h"
 6009__inline static void __skb_queue_head_init(struct sk_buff_head *list ) 
 6010{ struct sk_buff *tmp ;
 6011
 6012  {
 6013#line 860
 6014  tmp = (struct sk_buff *)list;
 6015#line 860
 6016  list->next = tmp;
 6017#line 860
 6018  list->prev = tmp;
 6019#line 861
 6020  list->qlen = 0U;
 6021#line 862
 6022  return;
 6023}
 6024}
 6025#line 872 "include/linux/skbuff.h"
 6026__inline static void skb_queue_head_init(struct sk_buff_head *list ) 
 6027{ struct lock_class_key __key ;
 6028  spinlock_t *__cil_tmp3 ;
 6029  struct raw_spinlock *__cil_tmp4 ;
 6030
 6031  {
 6032  {
 6033#line 874
 6034  __cil_tmp3 = & list->lock;
 6035#line 874
 6036  spinlock_check(__cil_tmp3);
 6037#line 874
 6038  __cil_tmp4 = & list->lock.ldv_6060.rlock;
 6039#line 874
 6040  __raw_spin_lock_init(__cil_tmp4, "&(&list->lock)->rlock", & __key);
 6041#line 875
 6042  __skb_queue_head_init(list);
 6043  }
 6044#line 876
 6045  return;
 6046}
 6047}
 6048#line 1066
 6049extern struct sk_buff *skb_dequeue(struct sk_buff_head * ) ;
 6050#line 540 "include/linux/interrupt.h"
 6051extern void __tasklet_schedule(struct tasklet_struct * ) ;
 6052#line 542 "include/linux/interrupt.h"
 6053__inline static void tasklet_schedule(struct tasklet_struct *t ) 
 6054{ int tmp ;
 6055  unsigned long *__cil_tmp3 ;
 6056  unsigned long volatile   *__cil_tmp4 ;
 6057
 6058  {
 6059  {
 6060#line 544
 6061  __cil_tmp3 = & t->state;
 6062#line 544
 6063  __cil_tmp4 = (unsigned long volatile   *)__cil_tmp3;
 6064#line 544
 6065  tmp = test_and_set_bit(0, __cil_tmp4);
 6066  }
 6067#line 544
 6068  if (tmp == 0) {
 6069    {
 6070#line 545
 6071    __tasklet_schedule(t);
 6072    }
 6073  } else {
 6074
 6075  }
 6076#line 546
 6077  return;
 6078}
 6079}
 6080#line 596
 6081extern void tasklet_kill(struct tasklet_struct * ) ;
 6082#line 598
 6083extern void tasklet_init(struct tasklet_struct * , void (*)(unsigned long  ) , unsigned long  ) ;
 6084#line 63 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 6085int gigaset_debuglevel  ;
 6086#line 109
 6087void gigaset_dbg_buffer(enum debuglevel level , unsigned char const   *msg , size_t len ,
 6088                        unsigned char const   *buf ) ;
 6089#line 274
 6090struct reply_t gigaset_tab_cid[64U] ;
 6091#line 275
 6092struct reply_t gigaset_tab_nocid[64U] ;
 6093#line 668
 6094void gigaset_isdn_regdrv(void) ;
 6095#line 669
 6096void gigaset_isdn_unregdrv(void) ;
 6097#line 670
 6098int gigaset_isdn_regdev(struct cardstate *cs , char const   *isdnid ) ;
 6099#line 671
 6100void gigaset_isdn_unregdev(struct cardstate *cs ) ;
 6101#line 692
 6102void gigaset_handle_event(unsigned long data ) ;
 6103#line 703
 6104void gigaset_init_dev_sysfs(struct cardstate *cs ) ;
 6105#line 704
 6106void gigaset_free_dev_sysfs(struct cardstate *cs ) ;
 6107#line 710
 6108void gigaset_bcs_reinit(struct bc_state *bcs ) ;
 6109#line 711
 6110void gigaset_at_init(struct at_state_t *at_state , struct bc_state *bcs , struct cardstate *cs ,
 6111                     int cid ) ;
 6112#line 713
 6113int gigaset_get_channel(struct bc_state *bcs ) ;
 6114#line 714
 6115struct bc_state *gigaset_get_free_channel(struct cardstate *cs ) ;
 6116#line 715
 6117void gigaset_free_channel(struct bc_state *bcs ) ;
 6118#line 716
 6119int gigaset_get_channels(struct cardstate *cs ) ;
 6120#line 717
 6121void gigaset_free_channels(struct cardstate *cs ) ;
 6122#line 718
 6123void gigaset_block_channels(struct cardstate *cs ) ;
 6124#line 721
 6125struct gigaset_driver *gigaset_initdriver(unsigned int minor , unsigned int minors ,
 6126                                          char const   *procname , char const   *devname ,
 6127                                          struct gigaset_ops  const  *ops , struct module *owner ) ;
 6128#line 728
 6129void gigaset_freedriver(struct gigaset_driver *drv ) ;
 6130#line 730
 6131struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty ) ;
 6132#line 731
 6133struct cardstate *gigaset_get_cs_by_id(int id ) ;
 6134#line 732
 6135void gigaset_blockdriver(struct gigaset_driver *drv ) ;
 6136#line 736
 6137struct cardstate *gigaset_initcs(struct gigaset_driver *drv , int channels , int onechannel ,
 6138                                 int ignoreframes , int cidmode , char const   *modulename ) ;
 6139#line 741
 6140void gigaset_freecs(struct cardstate *cs ) ;
 6141#line 744
 6142int gigaset_start(struct cardstate *cs ) ;
 6143#line 747
 6144void gigaset_stop(struct cardstate *cs ) ;
 6145#line 750
 6146int gigaset_shutdown(struct cardstate *cs ) ;
 6147#line 759
 6148struct event_t *gigaset_add_event(struct cardstate *cs , struct at_state_t *at_state ,
 6149                                  int type , void *ptr , int parameter , void *arg ) ;
 6150#line 764
 6151int gigaset_enterconfigmode(struct cardstate *cs ) ;
 6152#line 767 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
 6153__inline static void gigaset_schedule_event(struct cardstate *cs ) 
 6154{ unsigned long flags ;
 6155  raw_spinlock_t *tmp ;
 6156  spinlock_t *__cil_tmp4 ;
 6157  unsigned int __cil_tmp5 ;
 6158  struct tasklet_struct *__cil_tmp6 ;
 6159  spinlock_t *__cil_tmp7 ;
 6160
 6161  {
 6162  {
 6163#line 770
 6164  __cil_tmp4 = & cs->lock;
 6165#line 770
 6166  tmp = spinlock_check(__cil_tmp4);
 6167#line 770
 6168  flags = _raw_spin_lock_irqsave(tmp);
 6169  }
 6170  {
 6171#line 771
 6172  __cil_tmp5 = cs->running;
 6173#line 771
 6174  if (__cil_tmp5 != 0U) {
 6175    {
 6176#line 772
 6177    __cil_tmp6 = & cs->event_tasklet;
 6178#line 772
 6179    tasklet_schedule(__cil_tmp6);
 6180    }
 6181  } else {
 6182
 6183  }
 6184  }
 6185  {
 6186#line 773
 6187  __cil_tmp7 = & cs->lock;
 6188#line 773
 6189  spin_unlock_irqrestore(__cil_tmp7, flags);
 6190  }
 6191#line 774
 6192  return;
 6193}
 6194}
 6195#line 811
 6196int gigaset_fill_inbuf(struct inbuf_t *inbuf , unsigned char const   *src , unsigned int numbytes ) ;
 6197#line 819
 6198void gigaset_if_initdriver(struct gigaset_driver *drv , char const   *procname , char const   *devname ) ;
 6199#line 822
 6200void gigaset_if_freedriver(struct gigaset_driver *drv ) ;
 6201#line 824
 6202void gigaset_if_init(struct cardstate *cs ) ;
 6203#line 826
 6204void gigaset_if_free(struct cardstate *cs ) ;
 6205#line 59 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 6206void gigaset_dbg_buffer(enum debuglevel level , unsigned char const   *msg , size_t len ,
 6207                        unsigned char const   *buf ) 
 6208{ unsigned char outbuf[80U] ;
 6209  unsigned char c ;
 6210  size_t space ;
 6211  unsigned char *out ;
 6212  size_t numin ;
 6213  unsigned char const   *tmp ;
 6214  size_t tmp___0 ;
 6215  unsigned char *tmp___1 ;
 6216  size_t tmp___2 ;
 6217  unsigned char *tmp___3 ;
 6218  size_t tmp___4 ;
 6219  unsigned char *tmp___5 ;
 6220  size_t tmp___6 ;
 6221  unsigned char *tmp___7 ;
 6222  size_t tmp___8 ;
 6223  long tmp___9 ;
 6224  unsigned char __cil_tmp21 ;
 6225  unsigned int __cil_tmp22 ;
 6226  unsigned int __cil_tmp23 ;
 6227  unsigned int __cil_tmp24 ;
 6228  signed char __cil_tmp25 ;
 6229  int __cil_tmp26 ;
 6230  unsigned int __cil_tmp27 ;
 6231  unsigned int __cil_tmp28 ;
 6232  unsigned int __cil_tmp29 ;
 6233  unsigned int __cil_tmp30 ;
 6234  unsigned int __cil_tmp31 ;
 6235  unsigned int __cil_tmp32 ;
 6236  unsigned int __cil_tmp33 ;
 6237  unsigned int __cil_tmp34 ;
 6238  unsigned int __cil_tmp35 ;
 6239  int __cil_tmp36 ;
 6240  long __cil_tmp37 ;
 6241  unsigned int __cil_tmp38 ;
 6242  unsigned char *__cil_tmp39 ;
 6243
 6244  {
 6245#line 64
 6246  space = 79UL;
 6247#line 65
 6248  out = (unsigned char *)(& outbuf);
 6249#line 66
 6250  numin = len;
 6251#line 68
 6252  goto ldv_34658;
 6253  ldv_34657: 
 6254#line 69
 6255  tmp = buf;
 6256#line 69
 6257  buf = buf + 1;
 6258#line 69
 6259  __cil_tmp21 = *tmp;
 6260#line 69
 6261  c = (unsigned char )__cil_tmp21;
 6262  {
 6263#line 70
 6264  __cil_tmp22 = (unsigned int )c;
 6265#line 70
 6266  if (__cil_tmp22 == 126U) {
 6267#line 70
 6268    goto _L;
 6269  } else {
 6270    {
 6271#line 70
 6272    __cil_tmp23 = (unsigned int )c;
 6273#line 70
 6274    if (__cil_tmp23 == 94U) {
 6275#line 70
 6276      goto _L;
 6277    } else {
 6278      {
 6279#line 70
 6280      __cil_tmp24 = (unsigned int )c;
 6281#line 70
 6282      if (__cil_tmp24 == 92U) {
 6283        _L: 
 6284#line 71
 6285        tmp___0 = space;
 6286#line 71
 6287        space = space - 1UL;
 6288#line 71
 6289        if (tmp___0 == 0UL) {
 6290#line 72
 6291          goto ldv_34656;
 6292        } else {
 6293
 6294        }
 6295#line 73
 6296        tmp___1 = out;
 6297#line 73
 6298        out = out + 1;
 6299#line 73
 6300        *tmp___1 = (unsigned char)92;
 6301      } else {
 6302
 6303      }
 6304      }
 6305    }
 6306    }
 6307  }
 6308  }
 6309  {
 6310#line 75
 6311  __cil_tmp25 = (signed char )c;
 6312#line 75
 6313  __cil_tmp26 = (int )__cil_tmp25;
 6314#line 75
 6315  if (__cil_tmp26 < 0) {
 6316#line 76
 6317    tmp___2 = space;
 6318#line 76
 6319    space = space - 1UL;
 6320#line 76
 6321    if (tmp___2 == 0UL) {
 6322#line 77
 6323      goto ldv_34656;
 6324    } else {
 6325
 6326    }
 6327#line 78
 6328    tmp___3 = out;
 6329#line 78
 6330    out = out + 1;
 6331#line 78
 6332    *tmp___3 = (unsigned char)126;
 6333#line 79
 6334    __cil_tmp27 = (unsigned int )c;
 6335#line 79
 6336    __cil_tmp28 = __cil_tmp27 ^ 128U;
 6337#line 79
 6338    c = (unsigned char )__cil_tmp28;
 6339  } else {
 6340
 6341  }
 6342  }
 6343  {
 6344#line 81
 6345  __cil_tmp29 = (unsigned int )c;
 6346#line 81
 6347  if (__cil_tmp29 <= 31U) {
 6348#line 81
 6349    goto _L___0;
 6350  } else {
 6351    {
 6352#line 81
 6353    __cil_tmp30 = (unsigned int )c;
 6354#line 81
 6355    if (__cil_tmp30 == 127U) {
 6356      _L___0: 
 6357#line 82
 6358      tmp___4 = space;
 6359#line 82
 6360      space = space - 1UL;
 6361#line 82
 6362      if (tmp___4 == 0UL) {
 6363#line 83
 6364        goto ldv_34656;
 6365      } else {
 6366
 6367      }
 6368#line 84
 6369      tmp___5 = out;
 6370#line 84
 6371      out = out + 1;
 6372#line 84
 6373      *tmp___5 = (unsigned char)94;
 6374#line 85
 6375      __cil_tmp31 = (unsigned int )c;
 6376#line 85
 6377      __cil_tmp32 = __cil_tmp31 ^ 64U;
 6378#line 85
 6379      c = (unsigned char )__cil_tmp32;
 6380    } else {
 6381
 6382    }
 6383    }
 6384  }
 6385  }
 6386#line 87
 6387  tmp___6 = space;
 6388#line 87
 6389  space = space - 1UL;
 6390#line 87
 6391  if (tmp___6 == 0UL) {
 6392#line 88
 6393    goto ldv_34656;
 6394  } else {
 6395
 6396  }
 6397#line 89
 6398  tmp___7 = out;
 6399#line 89
 6400  out = out + 1;
 6401#line 89
 6402  *tmp___7 = c;
 6403  ldv_34658: 
 6404#line 68
 6405  tmp___8 = numin;
 6406#line 68
 6407  numin = numin - 1UL;
 6408#line 68
 6409  if (tmp___8 != 0UL) {
 6410#line 69
 6411    goto ldv_34657;
 6412  } else {
 6413#line 71
 6414    goto ldv_34656;
 6415  }
 6416  ldv_34656: 
 6417  {
 6418#line 91
 6419  *out = (unsigned char)0;
 6420#line 93
 6421  __cil_tmp33 = (unsigned int )level;
 6422#line 93
 6423  __cil_tmp34 = (unsigned int )gigaset_debuglevel;
 6424#line 93
 6425  __cil_tmp35 = __cil_tmp34 & __cil_tmp33;
 6426#line 93
 6427  __cil_tmp36 = __cil_tmp35 != 0U;
 6428#line 93
 6429  __cil_tmp37 = (long )__cil_tmp36;
 6430#line 93
 6431  tmp___9 = __builtin_expect(__cil_tmp37, 0L);
 6432  }
 6433#line 93
 6434  if (tmp___9 != 0L) {
 6435    {
 6436#line 93
 6437    __cil_tmp38 = (unsigned int )len;
 6438#line 93
 6439    __cil_tmp39 = (unsigned char *)(& outbuf);
 6440#line 93
 6441    printk("<7>gigaset: %s (%u bytes): %s\n", msg, __cil_tmp38, __cil_tmp39);
 6442    }
 6443  } else {
 6444
 6445  }
 6446#line 94
 6447  return;
 6448}
 6449}
 6450#line 97 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 6451static int setflags(struct cardstate *cs , unsigned int flags , unsigned int delay ) 
 6452{ int r ;
 6453  long volatile   __x ;
 6454  u8 volatile   *__ptr ;
 6455  struct task_struct *tmp ;
 6456  u16 volatile   *__ptr___0 ;
 6457  struct task_struct *tmp___0 ;
 6458  u32 volatile   *__ptr___1 ;
 6459  struct task_struct *tmp___1 ;
 6460  u64 volatile   *__ptr___2 ;
 6461  struct task_struct *tmp___2 ;
 6462  struct gigaset_ops  const  *__cil_tmp14 ;
 6463  int (*__cil_tmp15)(struct cardstate * , unsigned int  , unsigned int  ) ;
 6464  unsigned int __cil_tmp16 ;
 6465  long volatile   *__cil_tmp17 ;
 6466  long volatile   *__cil_tmp18 ;
 6467  long volatile   *__cil_tmp19 ;
 6468  long volatile   *__cil_tmp20 ;
 6469  unsigned int __cil_tmp21 ;
 6470  unsigned int __cil_tmp22 ;
 6471  long __cil_tmp23 ;
 6472
 6473  {
 6474  {
 6475#line 101
 6476  __cil_tmp14 = cs->ops;
 6477#line 101
 6478  __cil_tmp15 = __cil_tmp14->set_modem_ctrl;
 6479#line 101
 6480  __cil_tmp16 = cs->control_state;
 6481#line 101
 6482  r = (*__cil_tmp15)(cs, __cil_tmp16, flags);
 6483#line 102
 6484  cs->control_state = flags;
 6485  }
 6486#line 103
 6487  if (r < 0) {
 6488#line 104
 6489    return (r);
 6490  } else {
 6491
 6492  }
 6493#line 106
 6494  if (delay != 0U) {
 6495#line 107
 6496    __x = (long volatile   )1L;
 6497#line 107
 6498    if (1) {
 6499#line 107
 6500      goto case_8;
 6501    } else {
 6502#line 107
 6503      goto switch_default;
 6504#line 107
 6505      if (0) {
 6506        {
 6507#line 107
 6508        tmp = get_current();
 6509#line 107
 6510        __cil_tmp17 = & tmp->state;
 6511#line 107
 6512        __ptr = (u8 volatile   *)__cil_tmp17;
 6513#line 107
 6514        __asm__  volatile   ("xchgb %0,%1": "=q" (__x), "+m" (*__ptr): "0" (__x): "memory");
 6515        }
 6516#line 107
 6517        goto ldv_34677;
 6518        {
 6519#line 107
 6520        tmp___0 = get_current();
 6521#line 107
 6522        __cil_tmp18 = & tmp___0->state;
 6523#line 107
 6524        __ptr___0 = (u16 volatile   *)__cil_tmp18;
 6525#line 107
 6526        __asm__  volatile   ("xchgw %0,%1": "=r" (__x), "+m" (*__ptr___0): "0" (__x): "memory");
 6527        }
 6528#line 107
 6529        goto ldv_34677;
 6530        {
 6531#line 107
 6532        tmp___1 = get_current();
 6533#line 107
 6534        __cil_tmp19 = & tmp___1->state;
 6535#line 107
 6536        __ptr___1 = (u32 volatile   *)__cil_tmp19;
 6537#line 107
 6538        __asm__  volatile   ("xchgl %0,%1": "=r" (__x), "+m" (*__ptr___1): "0" (__x): "memory");
 6539        }
 6540#line 107
 6541        goto ldv_34677;
 6542        case_8: 
 6543        {
 6544#line 107
 6545        tmp___2 = get_current();
 6546#line 107
 6547        __cil_tmp20 = & tmp___2->state;
 6548#line 107
 6549        __ptr___2 = (u64 volatile   *)__cil_tmp20;
 6550#line 107
 6551        __asm__  volatile   ("xchgq %0,%1": "=r" (__x), "+m" (*__ptr___2): "0" (__x): "memory");
 6552        }
 6553#line 107
 6554        goto ldv_34677;
 6555        switch_default: 
 6556        {
 6557#line 107
 6558        __xchg_wrong_size();
 6559        }
 6560      } else {
 6561
 6562      }
 6563    }
 6564    ldv_34677: 
 6565    {
 6566#line 108
 6567    __cil_tmp21 = delay * 250U;
 6568#line 108
 6569    __cil_tmp22 = __cil_tmp21 / 1000U;
 6570#line 108
 6571    __cil_tmp23 = (long )__cil_tmp22;
 6572#line 108
 6573    schedule_timeout(__cil_tmp23);
 6574    }
 6575  } else {
 6576
 6577  }
 6578#line 111
 6579  return (0);
 6580}
 6581}
 6582#line 114 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 6583int gigaset_enterconfigmode(struct cardstate *cs ) 
 6584{ int i ;
 6585  int r ;
 6586  struct device *__cil_tmp4 ;
 6587  struct device  const  *__cil_tmp5 ;
 6588  int __cil_tmp6 ;
 6589  struct gigaset_ops  const  *__cil_tmp7 ;
 6590  int (*__cil_tmp8)(struct cardstate * , unsigned int  , unsigned int  ) ;
 6591
 6592  {
 6593  {
 6594#line 118
 6595  cs->control_state = 4U;
 6596#line 120
 6597  r = setflags(cs, 2U, 200U);
 6598  }
 6599#line 121
 6600  if (r < 0) {
 6601#line 122
 6602    goto error;
 6603  } else {
 6604
 6605  }
 6606  {
 6607#line 123
 6608  r = setflags(cs, 0U, 200U);
 6609  }
 6610#line 124
 6611  if (r < 0) {
 6612#line 125
 6613    goto error;
 6614  } else {
 6615
 6616  }
 6617#line 126
 6618  i = 0;
 6619#line 126
 6620  goto ldv_34693;
 6621  ldv_34692: 
 6622  {
 6623#line 127
 6624  r = setflags(cs, 4U, 100U);
 6625  }
 6626#line 128
 6627  if (r < 0) {
 6628#line 129
 6629    goto error;
 6630  } else {
 6631
 6632  }
 6633  {
 6634#line 130
 6635  r = setflags(cs, 0U, 100U);
 6636  }
 6637#line 131
 6638  if (r < 0) {
 6639#line 132
 6640    goto error;
 6641  } else {
 6642
 6643  }
 6644#line 126
 6645  i = i + 1;
 6646  ldv_34693: ;
 6647#line 126
 6648  if (i <= 4) {
 6649#line 127
 6650    goto ldv_34692;
 6651  } else {
 6652#line 129
 6653    goto ldv_34694;
 6654  }
 6655  ldv_34694: 
 6656  {
 6657#line 134
 6658  r = setflags(cs, 6U, 800U);
 6659  }
 6660#line 135
 6661  if (r < 0) {
 6662#line 136
 6663    goto error;
 6664  } else {
 6665
 6666  }
 6667#line 138
 6668  return (0);
 6669  error: 
 6670  {
 6671#line 141
 6672  __cil_tmp4 = cs->dev;
 6673#line 141
 6674  __cil_tmp5 = (struct device  const  *)__cil_tmp4;
 6675#line 141
 6676  __cil_tmp6 = - r;
 6677#line 141
 6678  dev_err(__cil_tmp5, "error %d on setuartbits\n", __cil_tmp6);
 6679#line 142
 6680  cs->control_state = 6U;
 6681#line 143
 6682  __cil_tmp7 = cs->ops;
 6683#line 143
 6684  __cil_tmp8 = __cil_tmp7->set_modem_ctrl;
 6685#line 143
 6686  (*__cil_tmp8)(cs, 0U, 6U);
 6687  }
 6688#line 145
 6689  return (-1);
 6690}
 6691}
 6692#line 148 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 6693static int test_timeout(struct at_state_t *at_state ) 
 6694{ long tmp ;
 6695  unsigned long __cil_tmp3 ;
 6696  unsigned long __cil_tmp4 ;
 6697  unsigned long __cil_tmp5 ;
 6698  unsigned int __cil_tmp6 ;
 6699  unsigned int __cil_tmp7 ;
 6700  int __cil_tmp8 ;
 6701  long __cil_tmp9 ;
 6702  unsigned long __cil_tmp10 ;
 6703  struct cardstate *__cil_tmp11 ;
 6704  void *__cil_tmp12 ;
 6705  unsigned int __cil_tmp13 ;
 6706  int __cil_tmp14 ;
 6707  void *__cil_tmp15 ;
 6708
 6709  {
 6710  {
 6711#line 150
 6712  __cil_tmp3 = at_state->timer_expires;
 6713#line 150
 6714  if (__cil_tmp3 == 0UL) {
 6715#line 151
 6716    return (0);
 6717  } else {
 6718
 6719  }
 6720  }
 6721#line 153
 6722  __cil_tmp4 = at_state->timer_expires;
 6723#line 153
 6724  at_state->timer_expires = __cil_tmp4 - 1UL;
 6725  {
 6726#line 153
 6727  __cil_tmp5 = at_state->timer_expires;
 6728#line 153
 6729  if (__cil_tmp5 != 0UL) {
 6730    {
 6731#line 154
 6732    __cil_tmp6 = (unsigned int )gigaset_debuglevel;
 6733#line 154
 6734    __cil_tmp7 = __cil_tmp6 & 16384U;
 6735#line 154
 6736    __cil_tmp8 = __cil_tmp7 != 0U;
 6737#line 154
 6738    __cil_tmp9 = (long )__cil_tmp8;
 6739#line 154
 6740    tmp = __builtin_expect(__cil_tmp9, 0L);
 6741    }
 6742#line 154
 6743    if (tmp != 0L) {
 6744      {
 6745#line 154
 6746      __cil_tmp10 = at_state->timer_expires;
 6747#line 154
 6748      printk("<7>gigaset: decreased timer of %p to %lu\n", at_state, __cil_tmp10);
 6749      }
 6750    } else {
 6751
 6752    }
 6753#line 156
 6754    return (0);
 6755  } else {
 6756
 6757  }
 6758  }
 6759  {
 6760#line 159
 6761  __cil_tmp11 = at_state->cs;
 6762#line 159
 6763  __cil_tmp12 = (void *)0;
 6764#line 159
 6765  __cil_tmp13 = at_state->timer_index;
 6766#line 159
 6767  __cil_tmp14 = (int )__cil_tmp13;
 6768#line 159
 6769  __cil_tmp15 = (void *)0;
 6770#line 159
 6771  gigaset_add_event(__cil_tmp11, at_state, -105, __cil_tmp12, __cil_tmp14, __cil_tmp15);
 6772  }
 6773#line 161
 6774  return (1);
 6775}
 6776}
 6777#line 164 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 6778static void timer_tick(unsigned long data ) 
 6779{ struct cardstate *cs ;
 6780  unsigned long flags ;
 6781  unsigned int channel ;
 6782  struct at_state_t *at_state ;
 6783  int timeout ;
 6784  raw_spinlock_t *tmp ;
 6785  int tmp___0 ;
 6786  int tmp___1 ;
 6787  struct list_head  const  *__mptr ;
 6788  int tmp___2 ;
 6789  struct list_head  const  *__mptr___0 ;
 6790  unsigned long tmp___3 ;
 6791  long tmp___4 ;
 6792  spinlock_t *__cil_tmp15 ;
 6793  unsigned long __cil_tmp16 ;
 6794  struct bc_state *__cil_tmp17 ;
 6795  struct bc_state *__cil_tmp18 ;
 6796  struct at_state_t *__cil_tmp19 ;
 6797  int __cil_tmp20 ;
 6798  unsigned int __cil_tmp21 ;
 6799  struct at_state_t *__cil_tmp22 ;
 6800  struct list_head *__cil_tmp23 ;
 6801  struct list_head *__cil_tmp24 ;
 6802  struct list_head *__cil_tmp25 ;
 6803  unsigned long __cil_tmp26 ;
 6804  struct list_head *__cil_tmp27 ;
 6805  unsigned long __cil_tmp28 ;
 6806  unsigned int __cil_tmp29 ;
 6807  unsigned int __cil_tmp30 ;
 6808  unsigned int __cil_tmp31 ;
 6809  struct timer_list *__cil_tmp32 ;
 6810  unsigned long __cil_tmp33 ;
 6811  unsigned long __cil_tmp34 ;
 6812  unsigned int __cil_tmp35 ;
 6813  unsigned int __cil_tmp36 ;
 6814  int __cil_tmp37 ;
 6815  long __cil_tmp38 ;
 6816  struct tasklet_struct *__cil_tmp39 ;
 6817  spinlock_t *__cil_tmp40 ;
 6818
 6819  {
 6820  {
 6821#line 166
 6822  cs = (struct cardstate *)data;
 6823#line 170
 6824  timeout = 0;
 6825#line 172
 6826  __cil_tmp15 = & cs->lock;
 6827#line 172
 6828  tmp = spinlock_check(__cil_tmp15);
 6829#line 172
 6830  flags = _raw_spin_lock_irqsave(tmp);
 6831#line 174
 6832  channel = 0U;
 6833  }
 6834#line 174
 6835  goto ldv_34710;
 6836  ldv_34709: 
 6837  {
 6838#line 175
 6839  __cil_tmp16 = (unsigned long )channel;
 6840#line 175
 6841  __cil_tmp17 = cs->bcs;
 6842#line 175
 6843  __cil_tmp18 = __cil_tmp17 + __cil_tmp16;
 6844#line 175
 6845  __cil_tmp19 = & __cil_tmp18->at_state;
 6846#line 175
 6847  tmp___0 = test_timeout(__cil_tmp19);
 6848  }
 6849#line 175
 6850  if (tmp___0 != 0) {
 6851#line 176
 6852    timeout = 1;
 6853  } else {
 6854
 6855  }
 6856#line 174
 6857  channel = channel + 1U;
 6858  ldv_34710: ;
 6859  {
 6860#line 174
 6861  __cil_tmp20 = cs->channels;
 6862#line 174
 6863  __cil_tmp21 = (unsigned int )__cil_tmp20;
 6864#line 174
 6865  if (__cil_tmp21 > channel) {
 6866#line 175
 6867    goto ldv_34709;
 6868  } else {
 6869#line 177
 6870    goto ldv_34711;
 6871  }
 6872  }
 6873  ldv_34711: 
 6874  {
 6875#line 178
 6876  __cil_tmp22 = & cs->at_state;
 6877#line 178
 6878  tmp___1 = test_timeout(__cil_tmp22);
 6879  }
 6880#line 178
 6881  if (tmp___1 != 0) {
 6882#line 179
 6883    timeout = 1;
 6884  } else {
 6885
 6886  }
 6887#line 181
 6888  __cil_tmp23 = cs->temp_at_states.next;
 6889#line 181
 6890  __mptr = (struct list_head  const  *)__cil_tmp23;
 6891#line 181
 6892  at_state = (struct at_state_t *)__mptr;
 6893#line 181
 6894  goto ldv_34717;
 6895  ldv_34716: 
 6896  {
 6897#line 182
 6898  tmp___2 = test_timeout(at_state);
 6899  }
 6900#line 182
 6901  if (tmp___2 != 0) {
 6902#line 183
 6903    timeout = 1;
 6904  } else {
 6905
 6906  }
 6907#line 181
 6908  __cil_tmp24 = at_state->list.next;
 6909#line 181
 6910  __mptr___0 = (struct list_head  const  *)__cil_tmp24;
 6911#line 181
 6912  at_state = (struct at_state_t *)__mptr___0;
 6913  ldv_34717: ;
 6914  {
 6915#line 181
 6916  __cil_tmp25 = & cs->temp_at_states;
 6917#line 181
 6918  __cil_tmp26 = (unsigned long )__cil_tmp25;
 6919#line 181
 6920  __cil_tmp27 = & at_state->list;
 6921#line 181
 6922  __cil_tmp28 = (unsigned long )__cil_tmp27;
 6923#line 181
 6924  if (__cil_tmp28 != __cil_tmp26) {
 6925#line 182
 6926    goto ldv_34716;
 6927  } else {
 6928#line 184
 6929    goto ldv_34718;
 6930  }
 6931  }
 6932  ldv_34718: ;
 6933  {
 6934#line 185
 6935  __cil_tmp29 = cs->running;
 6936#line 185
 6937  if (__cil_tmp29 != 0U) {
 6938    {
 6939#line 186
 6940    __cil_tmp30 = (unsigned int const   )100U;
 6941#line 186
 6942    __cil_tmp31 = (unsigned int )__cil_tmp30;
 6943#line 186
 6944    tmp___3 = msecs_to_jiffies(__cil_tmp31);
 6945#line 186
 6946    __cil_tmp32 = & cs->timer;
 6947#line 186
 6948    __cil_tmp33 = (unsigned long )jiffies;
 6949#line 186
 6950    __cil_tmp34 = tmp___3 + __cil_tmp33;
 6951#line 186
 6952    mod_timer(__cil_tmp32, __cil_tmp34);
 6953    }
 6954#line 187
 6955    if (timeout != 0) {
 6956      {
 6957#line 188
 6958      __cil_tmp35 = (unsigned int )gigaset_debuglevel;
 6959#line 188
 6960      __cil_tmp36 = __cil_tmp35 & 512U;
 6961#line 188
 6962      __cil_tmp37 = __cil_tmp36 != 0U;
 6963#line 188
 6964      __cil_tmp38 = (long )__cil_tmp37;
 6965#line 188
 6966      tmp___4 = __builtin_expect(__cil_tmp38, 0L);
 6967      }
 6968#line 188
 6969      if (tmp___4 != 0L) {
 6970        {
 6971#line 188
 6972        printk("<7>gigaset: scheduling timeout\n");
 6973        }
 6974      } else {
 6975
 6976      }
 6977      {
 6978#line 189
 6979      __cil_tmp39 = & cs->event_tasklet;
 6980#line 189
 6981      tasklet_schedule(__cil_tmp39);
 6982      }
 6983    } else {
 6984
 6985    }
 6986  } else {
 6987
 6988  }
 6989  }
 6990  {
 6991#line 193
 6992  __cil_tmp40 = & cs->lock;
 6993#line 193
 6994  spin_unlock_irqrestore(__cil_tmp40, flags);
 6995  }
 6996#line 194
 6997  return;
 6998}
 6999}
 7000#line 196 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7001int gigaset_get_channel(struct bc_state *bcs ) 
 7002{ unsigned long flags ;
 7003  raw_spinlock_t *tmp ;
 7004  long tmp___0 ;
 7005  int tmp___1 ;
 7006  long tmp___2 ;
 7007  struct cardstate *__cil_tmp7 ;
 7008  spinlock_t *__cil_tmp8 ;
 7009  int __cil_tmp9 ;
 7010  struct cardstate *__cil_tmp10 ;
 7011  struct gigaset_driver *__cil_tmp11 ;
 7012  struct module *__cil_tmp12 ;
 7013  unsigned int __cil_tmp13 ;
 7014  unsigned int __cil_tmp14 ;
 7015  int __cil_tmp15 ;
 7016  long __cil_tmp16 ;
 7017  int __cil_tmp17 ;
 7018  struct cardstate *__cil_tmp18 ;
 7019  spinlock_t *__cil_tmp19 ;
 7020  int __cil_tmp20 ;
 7021  unsigned int __cil_tmp21 ;
 7022  unsigned int __cil_tmp22 ;
 7023  int __cil_tmp23 ;
 7024  long __cil_tmp24 ;
 7025  int __cil_tmp25 ;
 7026  struct cardstate *__cil_tmp26 ;
 7027  spinlock_t *__cil_tmp27 ;
 7028
 7029  {
 7030  {
 7031#line 200
 7032  __cil_tmp7 = bcs->cs;
 7033#line 200
 7034  __cil_tmp8 = & __cil_tmp7->lock;
 7035#line 200
 7036  tmp = spinlock_check(__cil_tmp8);
 7037#line 200
 7038  flags = _raw_spin_lock_irqsave(tmp);
 7039  }
 7040  {
 7041#line 201
 7042  __cil_tmp9 = bcs->use_count;
 7043#line 201
 7044  if (__cil_tmp9 != 0) {
 7045#line 201
 7046    goto _L;
 7047  } else {
 7048    {
 7049#line 201
 7050    __cil_tmp10 = bcs->cs;
 7051#line 201
 7052    __cil_tmp11 = __cil_tmp10->driver;
 7053#line 201
 7054    __cil_tmp12 = __cil_tmp11->owner;
 7055#line 201
 7056    tmp___1 = ldv_try_module_get_1(__cil_tmp12);
 7057    }
 7058#line 201
 7059    if (tmp___1 == 0) {
 7060      _L: 
 7061      {
 7062#line 202
 7063      __cil_tmp13 = (unsigned int )gigaset_debuglevel;
 7064#line 202
 7065      __cil_tmp14 = __cil_tmp13 & 4096U;
 7066#line 202
 7067      __cil_tmp15 = __cil_tmp14 != 0U;
 7068#line 202
 7069      __cil_tmp16 = (long )__cil_tmp15;
 7070#line 202
 7071      tmp___0 = __builtin_expect(__cil_tmp16, 0L);
 7072      }
 7073#line 202
 7074      if (tmp___0 != 0L) {
 7075        {
 7076#line 202
 7077        __cil_tmp17 = bcs->channel;
 7078#line 202
 7079        printk("<7>gigaset: could not allocate channel %d\n", __cil_tmp17);
 7080        }
 7081      } else {
 7082
 7083      }
 7084      {
 7085#line 204
 7086      __cil_tmp18 = bcs->cs;
 7087#line 204
 7088      __cil_tmp19 = & __cil_tmp18->lock;
 7089#line 204
 7090      spin_unlock_irqrestore(__cil_tmp19, flags);
 7091      }
 7092#line 205
 7093      return (0);
 7094    } else {
 7095
 7096    }
 7097  }
 7098  }
 7099  {
 7100#line 207
 7101  __cil_tmp20 = bcs->use_count;
 7102#line 207
 7103  bcs->use_count = __cil_tmp20 + 1;
 7104#line 208
 7105  bcs->busy = 1;
 7106#line 209
 7107  __cil_tmp21 = (unsigned int )gigaset_debuglevel;
 7108#line 209
 7109  __cil_tmp22 = __cil_tmp21 & 4096U;
 7110#line 209
 7111  __cil_tmp23 = __cil_tmp22 != 0U;
 7112#line 209
 7113  __cil_tmp24 = (long )__cil_tmp23;
 7114#line 209
 7115  tmp___2 = __builtin_expect(__cil_tmp24, 0L);
 7116  }
 7117#line 209
 7118  if (tmp___2 != 0L) {
 7119    {
 7120#line 209
 7121    __cil_tmp25 = bcs->channel;
 7122#line 209
 7123    printk("<7>gigaset: allocated channel %d\n", __cil_tmp25);
 7124    }
 7125  } else {
 7126
 7127  }
 7128  {
 7129#line 210
 7130  __cil_tmp26 = bcs->cs;
 7131#line 210
 7132  __cil_tmp27 = & __cil_tmp26->lock;
 7133#line 210
 7134  spin_unlock_irqrestore(__cil_tmp27, flags);
 7135  }
 7136#line 211
 7137  return (1);
 7138}
 7139}
 7140#line 214 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7141struct bc_state *gigaset_get_free_channel(struct cardstate *cs ) 
 7142{ unsigned long flags ;
 7143  int i ;
 7144  raw_spinlock_t *tmp ;
 7145  long tmp___0 ;
 7146  int tmp___1 ;
 7147  long tmp___2 ;
 7148  long tmp___3 ;
 7149  spinlock_t *__cil_tmp9 ;
 7150  struct gigaset_driver *__cil_tmp10 ;
 7151  struct module *__cil_tmp11 ;
 7152  unsigned int __cil_tmp12 ;
 7153  unsigned int __cil_tmp13 ;
 7154  int __cil_tmp14 ;
 7155  long __cil_tmp15 ;
 7156  spinlock_t *__cil_tmp16 ;
 7157  unsigned long __cil_tmp17 ;
 7158  struct bc_state *__cil_tmp18 ;
 7159  struct bc_state *__cil_tmp19 ;
 7160  int __cil_tmp20 ;
 7161  unsigned long __cil_tmp21 ;
 7162  struct bc_state *__cil_tmp22 ;
 7163  struct bc_state *__cil_tmp23 ;
 7164  unsigned long __cil_tmp24 ;
 7165  struct bc_state *__cil_tmp25 ;
 7166  struct bc_state *__cil_tmp26 ;
 7167  int __cil_tmp27 ;
 7168  unsigned long __cil_tmp28 ;
 7169  struct bc_state *__cil_tmp29 ;
 7170  struct bc_state *__cil_tmp30 ;
 7171  spinlock_t *__cil_tmp31 ;
 7172  unsigned int __cil_tmp32 ;
 7173  unsigned int __cil_tmp33 ;
 7174  int __cil_tmp34 ;
 7175  long __cil_tmp35 ;
 7176  unsigned long __cil_tmp36 ;
 7177  struct bc_state *__cil_tmp37 ;
 7178  int __cil_tmp38 ;
 7179  struct gigaset_driver *__cil_tmp39 ;
 7180  struct module *__cil_tmp40 ;
 7181  spinlock_t *__cil_tmp41 ;
 7182  unsigned int __cil_tmp42 ;
 7183  unsigned int __cil_tmp43 ;
 7184  int __cil_tmp44 ;
 7185  long __cil_tmp45 ;
 7186
 7187  {
 7188  {
 7189#line 219
 7190  __cil_tmp9 = & cs->lock;
 7191#line 219
 7192  tmp = spinlock_check(__cil_tmp9);
 7193#line 219
 7194  flags = _raw_spin_lock_irqsave(tmp);
 7195#line 220
 7196  __cil_tmp10 = cs->driver;
 7197#line 220
 7198  __cil_tmp11 = __cil_tmp10->owner;
 7199#line 220
 7200  tmp___1 = ldv_try_module_get_1(__cil_tmp11);
 7201  }
 7202#line 220
 7203  if (tmp___1 == 0) {
 7204    {
 7205#line 221
 7206    __cil_tmp12 = (unsigned int )gigaset_debuglevel;
 7207#line 221
 7208    __cil_tmp13 = __cil_tmp12 & 4096U;
 7209#line 221
 7210    __cil_tmp14 = __cil_tmp13 != 0U;
 7211#line 221
 7212    __cil_tmp15 = (long )__cil_tmp14;
 7213#line 221
 7214    tmp___0 = __builtin_expect(__cil_tmp15, 0L);
 7215    }
 7216#line 221
 7217    if (tmp___0 != 0L) {
 7218      {
 7219#line 221
 7220      printk("<7>gigaset: could not get module for allocating channel\n");
 7221      }
 7222    } else {
 7223
 7224    }
 7225    {
 7226#line 223
 7227    __cil_tmp16 = & cs->lock;
 7228#line 223
 7229    spin_unlock_irqrestore(__cil_tmp16, flags);
 7230    }
 7231#line 224
 7232    return ((struct bc_state *)0);
 7233  } else {
 7234
 7235  }
 7236#line 226
 7237  i = 0;
 7238#line 226
 7239  goto ldv_34735;
 7240  ldv_34734: ;
 7241  {
 7242#line 227
 7243  __cil_tmp17 = (unsigned long )i;
 7244#line 227
 7245  __cil_tmp18 = cs->bcs;
 7246#line 227
 7247  __cil_tmp19 = __cil_tmp18 + __cil_tmp17;
 7248#line 227
 7249  __cil_tmp20 = __cil_tmp19->use_count;
 7250#line 227
 7251  if (__cil_tmp20 == 0) {
 7252    {
 7253#line 228
 7254    __cil_tmp21 = (unsigned long )i;
 7255#line 228
 7256    __cil_tmp22 = cs->bcs;
 7257#line 228
 7258    __cil_tmp23 = __cil_tmp22 + __cil_tmp21;
 7259#line 228
 7260    __cil_tmp24 = (unsigned long )i;
 7261#line 228
 7262    __cil_tmp25 = cs->bcs;
 7263#line 228
 7264    __cil_tmp26 = __cil_tmp25 + __cil_tmp24;
 7265#line 228
 7266    __cil_tmp27 = __cil_tmp26->use_count;
 7267#line 228
 7268    __cil_tmp23->use_count = __cil_tmp27 + 1;
 7269#line 229
 7270    __cil_tmp28 = (unsigned long )i;
 7271#line 229
 7272    __cil_tmp29 = cs->bcs;
 7273#line 229
 7274    __cil_tmp30 = __cil_tmp29 + __cil_tmp28;
 7275#line 229
 7276    __cil_tmp30->busy = 1;
 7277#line 230
 7278    __cil_tmp31 = & cs->lock;
 7279#line 230
 7280    spin_unlock_irqrestore(__cil_tmp31, flags);
 7281#line 231
 7282    __cil_tmp32 = (unsigned int )gigaset_debuglevel;
 7283#line 231
 7284    __cil_tmp33 = __cil_tmp32 & 4096U;
 7285#line 231
 7286    __cil_tmp34 = __cil_tmp33 != 0U;
 7287#line 231
 7288    __cil_tmp35 = (long )__cil_tmp34;
 7289#line 231
 7290    tmp___2 = __builtin_expect(__cil_tmp35, 0L);
 7291    }
 7292#line 231
 7293    if (tmp___2 != 0L) {
 7294      {
 7295#line 231
 7296      printk("<7>gigaset: allocated channel %d\n", i);
 7297      }
 7298    } else {
 7299
 7300    }
 7301    {
 7302#line 232
 7303    __cil_tmp36 = (unsigned long )i;
 7304#line 232
 7305    __cil_tmp37 = cs->bcs;
 7306#line 232
 7307    return (__cil_tmp37 + __cil_tmp36);
 7308    }
 7309  } else {
 7310
 7311  }
 7312  }
 7313#line 226
 7314  i = i + 1;
 7315  ldv_34735: ;
 7316  {
 7317#line 226
 7318  __cil_tmp38 = cs->channels;
 7319#line 226
 7320  if (__cil_tmp38 > i) {
 7321#line 227
 7322    goto ldv_34734;
 7323  } else {
 7324#line 229
 7325    goto ldv_34736;
 7326  }
 7327  }
 7328  ldv_34736: 
 7329  {
 7330#line 234
 7331  __cil_tmp39 = cs->driver;
 7332#line 234
 7333  __cil_tmp40 = __cil_tmp39->owner;
 7334#line 234
 7335  ldv_module_put_3(__cil_tmp40);
 7336#line 235
 7337  __cil_tmp41 = & cs->lock;
 7338#line 235
 7339  spin_unlock_irqrestore(__cil_tmp41, flags);
 7340#line 236
 7341  __cil_tmp42 = (unsigned int )gigaset_debuglevel;
 7342#line 236
 7343  __cil_tmp43 = __cil_tmp42 & 4096U;
 7344#line 236
 7345  __cil_tmp44 = __cil_tmp43 != 0U;
 7346#line 236
 7347  __cil_tmp45 = (long )__cil_tmp44;
 7348#line 236
 7349  tmp___3 = __builtin_expect(__cil_tmp45, 0L);
 7350  }
 7351#line 236
 7352  if (tmp___3 != 0L) {
 7353    {
 7354#line 236
 7355    printk("<7>gigaset: no free channel\n");
 7356    }
 7357  } else {
 7358
 7359  }
 7360#line 237
 7361  return ((struct bc_state *)0);
 7362}
 7363}
 7364#line 240 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7365void gigaset_free_channel(struct bc_state *bcs ) 
 7366{ unsigned long flags ;
 7367  raw_spinlock_t *tmp ;
 7368  long tmp___0 ;
 7369  long tmp___1 ;
 7370  struct cardstate *__cil_tmp6 ;
 7371  spinlock_t *__cil_tmp7 ;
 7372  int __cil_tmp8 ;
 7373  unsigned int __cil_tmp9 ;
 7374  unsigned int __cil_tmp10 ;
 7375  int __cil_tmp11 ;
 7376  long __cil_tmp12 ;
 7377  int __cil_tmp13 ;
 7378  struct cardstate *__cil_tmp14 ;
 7379  spinlock_t *__cil_tmp15 ;
 7380  int __cil_tmp16 ;
 7381  struct cardstate *__cil_tmp17 ;
 7382  struct gigaset_driver *__cil_tmp18 ;
 7383  struct module *__cil_tmp19 ;
 7384  unsigned int __cil_tmp20 ;
 7385  unsigned int __cil_tmp21 ;
 7386  int __cil_tmp22 ;
 7387  long __cil_tmp23 ;
 7388  int __cil_tmp24 ;
 7389  struct cardstate *__cil_tmp25 ;
 7390  spinlock_t *__cil_tmp26 ;
 7391
 7392  {
 7393  {
 7394#line 244
 7395  __cil_tmp6 = bcs->cs;
 7396#line 244
 7397  __cil_tmp7 = & __cil_tmp6->lock;
 7398#line 244
 7399  tmp = spinlock_check(__cil_tmp7);
 7400#line 244
 7401  flags = _raw_spin_lock_irqsave(tmp);
 7402  }
 7403  {
 7404#line 245
 7405  __cil_tmp8 = bcs->busy;
 7406#line 245
 7407  if (__cil_tmp8 == 0) {
 7408    {
 7409#line 246
 7410    __cil_tmp9 = (unsigned int )gigaset_debuglevel;
 7411#line 246
 7412    __cil_tmp10 = __cil_tmp9 & 4096U;
 7413#line 246
 7414    __cil_tmp11 = __cil_tmp10 != 0U;
 7415#line 246
 7416    __cil_tmp12 = (long )__cil_tmp11;
 7417#line 246
 7418    tmp___0 = __builtin_expect(__cil_tmp12, 0L);
 7419    }
 7420#line 246
 7421    if (tmp___0 != 0L) {
 7422      {
 7423#line 246
 7424      __cil_tmp13 = bcs->channel;
 7425#line 246
 7426      printk("<7>gigaset: could not free channel %d\n", __cil_tmp13);
 7427      }
 7428    } else {
 7429
 7430    }
 7431    {
 7432#line 248
 7433    __cil_tmp14 = bcs->cs;
 7434#line 248
 7435    __cil_tmp15 = & __cil_tmp14->lock;
 7436#line 248
 7437    spin_unlock_irqrestore(__cil_tmp15, flags);
 7438    }
 7439#line 249
 7440    return;
 7441  } else {
 7442
 7443  }
 7444  }
 7445  {
 7446#line 251
 7447  __cil_tmp16 = bcs->use_count;
 7448#line 251
 7449  bcs->use_count = __cil_tmp16 - 1;
 7450#line 252
 7451  bcs->busy = 0;
 7452#line 253
 7453  __cil_tmp17 = bcs->cs;
 7454#line 253
 7455  __cil_tmp18 = __cil_tmp17->driver;
 7456#line 253
 7457  __cil_tmp19 = __cil_tmp18->owner;
 7458#line 253
 7459  ldv_module_put_4(__cil_tmp19);
 7460#line 254
 7461  __cil_tmp20 = (unsigned int )gigaset_debuglevel;
 7462#line 254
 7463  __cil_tmp21 = __cil_tmp20 & 4096U;
 7464#line 254
 7465  __cil_tmp22 = __cil_tmp21 != 0U;
 7466#line 254
 7467  __cil_tmp23 = (long )__cil_tmp22;
 7468#line 254
 7469  tmp___1 = __builtin_expect(__cil_tmp23, 0L);
 7470  }
 7471#line 254
 7472  if (tmp___1 != 0L) {
 7473    {
 7474#line 254
 7475    __cil_tmp24 = bcs->channel;
 7476#line 254
 7477    printk("<7>gigaset: freed channel %d\n", __cil_tmp24);
 7478    }
 7479  } else {
 7480
 7481  }
 7482  {
 7483#line 255
 7484  __cil_tmp25 = bcs->cs;
 7485#line 255
 7486  __cil_tmp26 = & __cil_tmp25->lock;
 7487#line 255
 7488  spin_unlock_irqrestore(__cil_tmp26, flags);
 7489  }
 7490#line 256
 7491  return;
 7492}
 7493}
 7494#line 258 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7495int gigaset_get_channels(struct cardstate *cs ) 
 7496{ unsigned long flags ;
 7497  int i ;
 7498  raw_spinlock_t *tmp ;
 7499  long tmp___0 ;
 7500  long tmp___1 ;
 7501  spinlock_t *__cil_tmp7 ;
 7502  unsigned long __cil_tmp8 ;
 7503  struct bc_state *__cil_tmp9 ;
 7504  struct bc_state *__cil_tmp10 ;
 7505  int __cil_tmp11 ;
 7506  spinlock_t *__cil_tmp12 ;
 7507  unsigned int __cil_tmp13 ;
 7508  unsigned int __cil_tmp14 ;
 7509  int __cil_tmp15 ;
 7510  long __cil_tmp16 ;
 7511  int __cil_tmp17 ;
 7512  unsigned long __cil_tmp18 ;
 7513  struct bc_state *__cil_tmp19 ;
 7514  struct bc_state *__cil_tmp20 ;
 7515  unsigned long __cil_tmp21 ;
 7516  struct bc_state *__cil_tmp22 ;
 7517  struct bc_state *__cil_tmp23 ;
 7518  int __cil_tmp24 ;
 7519  int __cil_tmp25 ;
 7520  spinlock_t *__cil_tmp26 ;
 7521  unsigned int __cil_tmp27 ;
 7522  unsigned int __cil_tmp28 ;
 7523  int __cil_tmp29 ;
 7524  long __cil_tmp30 ;
 7525
 7526  {
 7527  {
 7528#line 263
 7529  __cil_tmp7 = & cs->lock;
 7530#line 263
 7531  tmp = spinlock_check(__cil_tmp7);
 7532#line 263
 7533  flags = _raw_spin_lock_irqsave(tmp);
 7534#line 264
 7535  i = 0;
 7536  }
 7537#line 264
 7538  goto ldv_34753;
 7539  ldv_34752: ;
 7540  {
 7541#line 265
 7542  __cil_tmp8 = (unsigned long )i;
 7543#line 265
 7544  __cil_tmp9 = cs->bcs;
 7545#line 265
 7546  __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
 7547#line 265
 7548  __cil_tmp11 = __cil_tmp10->use_count;
 7549#line 265
 7550  if (__cil_tmp11 != 0) {
 7551    {
 7552#line 266
 7553    __cil_tmp12 = & cs->lock;
 7554#line 266
 7555    spin_unlock_irqrestore(__cil_tmp12, flags);
 7556#line 267
 7557    __cil_tmp13 = (unsigned int )gigaset_debuglevel;
 7558#line 267
 7559    __cil_tmp14 = __cil_tmp13 & 4096U;
 7560#line 267
 7561    __cil_tmp15 = __cil_tmp14 != 0U;
 7562#line 267
 7563    __cil_tmp16 = (long )__cil_tmp15;
 7564#line 267
 7565    tmp___0 = __builtin_expect(__cil_tmp16, 0L);
 7566    }
 7567#line 267
 7568    if (tmp___0 != 0L) {
 7569      {
 7570#line 267
 7571      printk("<7>gigaset: could not allocate all channels\n");
 7572      }
 7573    } else {
 7574
 7575    }
 7576#line 269
 7577    return (0);
 7578  } else {
 7579
 7580  }
 7581  }
 7582#line 264
 7583  i = i + 1;
 7584  ldv_34753: ;
 7585  {
 7586#line 264
 7587  __cil_tmp17 = cs->channels;
 7588#line 264
 7589  if (__cil_tmp17 > i) {
 7590#line 265
 7591    goto ldv_34752;
 7592  } else {
 7593#line 267
 7594    goto ldv_34754;
 7595  }
 7596  }
 7597  ldv_34754: 
 7598#line 271
 7599  i = 0;
 7600#line 271
 7601  goto ldv_34756;
 7602  ldv_34755: 
 7603#line 272
 7604  __cil_tmp18 = (unsigned long )i;
 7605#line 272
 7606  __cil_tmp19 = cs->bcs;
 7607#line 272
 7608  __cil_tmp20 = __cil_tmp19 + __cil_tmp18;
 7609#line 272
 7610  __cil_tmp21 = (unsigned long )i;
 7611#line 272
 7612  __cil_tmp22 = cs->bcs;
 7613#line 272
 7614  __cil_tmp23 = __cil_tmp22 + __cil_tmp21;
 7615#line 272
 7616  __cil_tmp24 = __cil_tmp23->use_count;
 7617#line 272
 7618  __cil_tmp20->use_count = __cil_tmp24 + 1;
 7619#line 271
 7620  i = i + 1;
 7621  ldv_34756: ;
 7622  {
 7623#line 271
 7624  __cil_tmp25 = cs->channels;
 7625#line 271
 7626  if (__cil_tmp25 > i) {
 7627#line 272
 7628    goto ldv_34755;
 7629  } else {
 7630#line 274
 7631    goto ldv_34757;
 7632  }
 7633  }
 7634  ldv_34757: 
 7635  {
 7636#line 273
 7637  __cil_tmp26 = & cs->lock;
 7638#line 273
 7639  spin_unlock_irqrestore(__cil_tmp26, flags);
 7640#line 275
 7641  __cil_tmp27 = (unsigned int )gigaset_debuglevel;
 7642#line 275
 7643  __cil_tmp28 = __cil_tmp27 & 4096U;
 7644#line 275
 7645  __cil_tmp29 = __cil_tmp28 != 0U;
 7646#line 275
 7647  __cil_tmp30 = (long )__cil_tmp29;
 7648#line 275
 7649  tmp___1 = __builtin_expect(__cil_tmp30, 0L);
 7650  }
 7651#line 275
 7652  if (tmp___1 != 0L) {
 7653    {
 7654#line 275
 7655    printk("<7>gigaset: allocated all channels\n");
 7656    }
 7657  } else {
 7658
 7659  }
 7660#line 277
 7661  return (1);
 7662}
 7663}
 7664#line 280 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7665void gigaset_free_channels(struct cardstate *cs ) 
 7666{ unsigned long flags ;
 7667  int i ;
 7668  long tmp ;
 7669  raw_spinlock_t *tmp___0 ;
 7670  unsigned int __cil_tmp6 ;
 7671  unsigned int __cil_tmp7 ;
 7672  int __cil_tmp8 ;
 7673  long __cil_tmp9 ;
 7674  spinlock_t *__cil_tmp10 ;
 7675  unsigned long __cil_tmp11 ;
 7676  struct bc_state *__cil_tmp12 ;
 7677  struct bc_state *__cil_tmp13 ;
 7678  unsigned long __cil_tmp14 ;
 7679  struct bc_state *__cil_tmp15 ;
 7680  struct bc_state *__cil_tmp16 ;
 7681  int __cil_tmp17 ;
 7682  int __cil_tmp18 ;
 7683  spinlock_t *__cil_tmp19 ;
 7684
 7685  {
 7686  {
 7687#line 285
 7688  __cil_tmp6 = (unsigned int )gigaset_debuglevel;
 7689#line 285
 7690  __cil_tmp7 = __cil_tmp6 & 4096U;
 7691#line 285
 7692  __cil_tmp8 = __cil_tmp7 != 0U;
 7693#line 285
 7694  __cil_tmp9 = (long )__cil_tmp8;
 7695#line 285
 7696  tmp = __builtin_expect(__cil_tmp9, 0L);
 7697  }
 7698#line 285
 7699  if (tmp != 0L) {
 7700    {
 7701#line 285
 7702    printk("<7>gigaset: unblocking all channels\n");
 7703    }
 7704  } else {
 7705
 7706  }
 7707  {
 7708#line 286
 7709  __cil_tmp10 = & cs->lock;
 7710#line 286
 7711  tmp___0 = spinlock_check(__cil_tmp10);
 7712#line 286
 7713  flags = _raw_spin_lock_irqsave(tmp___0);
 7714#line 287
 7715  i = 0;
 7716  }
 7717#line 287
 7718  goto ldv_34767;
 7719  ldv_34766: 
 7720#line 288
 7721  __cil_tmp11 = (unsigned long )i;
 7722#line 288
 7723  __cil_tmp12 = cs->bcs;
 7724#line 288
 7725  __cil_tmp13 = __cil_tmp12 + __cil_tmp11;
 7726#line 288
 7727  __cil_tmp14 = (unsigned long )i;
 7728#line 288
 7729  __cil_tmp15 = cs->bcs;
 7730#line 288
 7731  __cil_tmp16 = __cil_tmp15 + __cil_tmp14;
 7732#line 288
 7733  __cil_tmp17 = __cil_tmp16->use_count;
 7734#line 288
 7735  __cil_tmp13->use_count = __cil_tmp17 - 1;
 7736#line 287
 7737  i = i + 1;
 7738  ldv_34767: ;
 7739  {
 7740#line 287
 7741  __cil_tmp18 = cs->channels;
 7742#line 287
 7743  if (__cil_tmp18 > i) {
 7744#line 288
 7745    goto ldv_34766;
 7746  } else {
 7747#line 290
 7748    goto ldv_34768;
 7749  }
 7750  }
 7751  ldv_34768: 
 7752  {
 7753#line 289
 7754  __cil_tmp19 = & cs->lock;
 7755#line 289
 7756  spin_unlock_irqrestore(__cil_tmp19, flags);
 7757  }
 7758#line 290
 7759  return;
 7760}
 7761}
 7762#line 292 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7763void gigaset_block_channels(struct cardstate *cs ) 
 7764{ unsigned long flags ;
 7765  int i ;
 7766  long tmp ;
 7767  raw_spinlock_t *tmp___0 ;
 7768  unsigned int __cil_tmp6 ;
 7769  unsigned int __cil_tmp7 ;
 7770  int __cil_tmp8 ;
 7771  long __cil_tmp9 ;
 7772  spinlock_t *__cil_tmp10 ;
 7773  unsigned long __cil_tmp11 ;
 7774  struct bc_state *__cil_tmp12 ;
 7775  struct bc_state *__cil_tmp13 ;
 7776  unsigned long __cil_tmp14 ;
 7777  struct bc_state *__cil_tmp15 ;
 7778  struct bc_state *__cil_tmp16 ;
 7779  int __cil_tmp17 ;
 7780  int __cil_tmp18 ;
 7781  spinlock_t *__cil_tmp19 ;
 7782
 7783  {
 7784  {
 7785#line 297
 7786  __cil_tmp6 = (unsigned int )gigaset_debuglevel;
 7787#line 297
 7788  __cil_tmp7 = __cil_tmp6 & 4096U;
 7789#line 297
 7790  __cil_tmp8 = __cil_tmp7 != 0U;
 7791#line 297
 7792  __cil_tmp9 = (long )__cil_tmp8;
 7793#line 297
 7794  tmp = __builtin_expect(__cil_tmp9, 0L);
 7795  }
 7796#line 297
 7797  if (tmp != 0L) {
 7798    {
 7799#line 297
 7800    printk("<7>gigaset: blocking all channels\n");
 7801    }
 7802  } else {
 7803
 7804  }
 7805  {
 7806#line 298
 7807  __cil_tmp10 = & cs->lock;
 7808#line 298
 7809  tmp___0 = spinlock_check(__cil_tmp10);
 7810#line 298
 7811  flags = _raw_spin_lock_irqsave(tmp___0);
 7812#line 299
 7813  i = 0;
 7814  }
 7815#line 299
 7816  goto ldv_34778;
 7817  ldv_34777: 
 7818#line 300
 7819  __cil_tmp11 = (unsigned long )i;
 7820#line 300
 7821  __cil_tmp12 = cs->bcs;
 7822#line 300
 7823  __cil_tmp13 = __cil_tmp12 + __cil_tmp11;
 7824#line 300
 7825  __cil_tmp14 = (unsigned long )i;
 7826#line 300
 7827  __cil_tmp15 = cs->bcs;
 7828#line 300
 7829  __cil_tmp16 = __cil_tmp15 + __cil_tmp14;
 7830#line 300
 7831  __cil_tmp17 = __cil_tmp16->use_count;
 7832#line 300
 7833  __cil_tmp13->use_count = __cil_tmp17 + 1;
 7834#line 299
 7835  i = i + 1;
 7836  ldv_34778: ;
 7837  {
 7838#line 299
 7839  __cil_tmp18 = cs->channels;
 7840#line 299
 7841  if (__cil_tmp18 > i) {
 7842#line 300
 7843    goto ldv_34777;
 7844  } else {
 7845#line 302
 7846    goto ldv_34779;
 7847  }
 7848  }
 7849  ldv_34779: 
 7850  {
 7851#line 301
 7852  __cil_tmp19 = & cs->lock;
 7853#line 301
 7854  spin_unlock_irqrestore(__cil_tmp19, flags);
 7855  }
 7856#line 302
 7857  return;
 7858}
 7859}
 7860#line 304 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7861static void clear_events(struct cardstate *cs ) 
 7862{ struct event_t *ev ;
 7863  unsigned int head ;
 7864  unsigned int tail ;
 7865  unsigned long flags ;
 7866  raw_spinlock_t *tmp ;
 7867  spinlock_t *__cil_tmp7 ;
 7868  unsigned long __cil_tmp8 ;
 7869  struct event_t (*__cil_tmp9)[64U] ;
 7870  struct event_t *__cil_tmp10 ;
 7871  void *__cil_tmp11 ;
 7872  void const   *__cil_tmp12 ;
 7873  unsigned int __cil_tmp13 ;
 7874  spinlock_t *__cil_tmp14 ;
 7875
 7876  {
 7877  {
 7878#line 310
 7879  __cil_tmp7 = & cs->ev_lock;
 7880#line 310
 7881  tmp = spinlock_check(__cil_tmp7);
 7882#line 310
 7883  flags = _raw_spin_lock_irqsave(tmp);
 7884#line 312
 7885  head = cs->ev_head;
 7886#line 313
 7887  tail = cs->ev_tail;
 7888  }
 7889#line 315
 7890  goto ldv_34791;
 7891  ldv_34790: 
 7892  {
 7893#line 316
 7894  __cil_tmp8 = (unsigned long )head;
 7895#line 316
 7896  __cil_tmp9 = & cs->events;
 7897#line 316
 7898  __cil_tmp10 = (struct event_t *)__cil_tmp9;
 7899#line 316
 7900  ev = __cil_tmp10 + __cil_tmp8;
 7901#line 317
 7902  __cil_tmp11 = ev->ptr;
 7903#line 317
 7904  __cil_tmp12 = (void const   *)__cil_tmp11;
 7905#line 317
 7906  kfree(__cil_tmp12);
 7907#line 318
 7908  __cil_tmp13 = head + 1U;
 7909#line 318
 7910  head = __cil_tmp13 & 63U;
 7911  }
 7912  ldv_34791: ;
 7913#line 315
 7914  if (tail != head) {
 7915#line 316
 7916    goto ldv_34790;
 7917  } else {
 7918#line 318
 7919    goto ldv_34792;
 7920  }
 7921  ldv_34792: 
 7922  {
 7923#line 321
 7924  cs->ev_head = tail;
 7925#line 323
 7926  __cil_tmp14 = & cs->ev_lock;
 7927#line 323
 7928  spin_unlock_irqrestore(__cil_tmp14, flags);
 7929  }
 7930#line 324
 7931  return;
 7932}
 7933}
 7934#line 340 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 7935struct event_t *gigaset_add_event(struct cardstate *cs , struct at_state_t *at_state ,
 7936                                  int type , void *ptr , int parameter , void *arg ) 
 7937{ unsigned long flags ;
 7938  unsigned int next ;
 7939  unsigned int tail ;
 7940  struct event_t *event ;
 7941  long tmp ;
 7942  raw_spinlock_t *tmp___0 ;
 7943  long tmp___1 ;
 7944  unsigned int __cil_tmp14 ;
 7945  unsigned int __cil_tmp15 ;
 7946  int __cil_tmp16 ;
 7947  long __cil_tmp17 ;
 7948  spinlock_t *__cil_tmp18 ;
 7949  unsigned int __cil_tmp19 ;
 7950  unsigned int __cil_tmp20 ;
 7951  int __cil_tmp21 ;
 7952  long __cil_tmp22 ;
 7953  struct device *__cil_tmp23 ;
 7954  struct device  const  *__cil_tmp24 ;
 7955  unsigned long __cil_tmp25 ;
 7956  struct event_t (*__cil_tmp26)[64U] ;
 7957  struct event_t *__cil_tmp27 ;
 7958  spinlock_t *__cil_tmp28 ;
 7959
 7960  {
 7961  {
 7962#line 346
 7963  event = (struct event_t *)0;
 7964#line 348
 7965  __cil_tmp14 = (unsigned int )gigaset_debuglevel;
 7966#line 348
 7967  __cil_tmp15 = __cil_tmp14 & 512U;
 7968#line 348
 7969  __cil_tmp16 = __cil_tmp15 != 0U;
 7970#line 348
 7971  __cil_tmp17 = (long )__cil_tmp16;
 7972#line 348
 7973  tmp = __builtin_expect(__cil_tmp17, 0L);
 7974  }
 7975#line 348
 7976  if (tmp != 0L) {
 7977    {
 7978#line 348
 7979    printk("<7>gigaset: queueing event %d\n", type);
 7980    }
 7981  } else {
 7982
 7983  }
 7984  {
 7985#line 350
 7986  __cil_tmp18 = & cs->ev_lock;
 7987#line 350
 7988  tmp___0 = spinlock_check(__cil_tmp18);
 7989#line 350
 7990  flags = _raw_spin_lock_irqsave(tmp___0);
 7991#line 352
 7992  tail = cs->ev_tail;
 7993#line 353
 7994  __cil_tmp19 = tail + 1U;
 7995#line 353
 7996  next = __cil_tmp19 & 63U;
 7997#line 354
 7998  __cil_tmp20 = cs->ev_head;
 7999#line 354
 8000  __cil_tmp21 = __cil_tmp20 == next;
 8001#line 354
 8002  __cil_tmp22 = (long )__cil_tmp21;
 8003#line 354
 8004  tmp___1 = __builtin_expect(__cil_tmp22, 0L);
 8005  }
 8006#line 354
 8007  if (tmp___1 != 0L) {
 8008    {
 8009#line 355
 8010    __cil_tmp23 = cs->dev;
 8011#line 355
 8012    __cil_tmp24 = (struct device  const  *)__cil_tmp23;
 8013#line 355
 8014    dev_err(__cil_tmp24, "event queue full\n");
 8015    }
 8016  } else {
 8017#line 357
 8018    __cil_tmp25 = (unsigned long )tail;
 8019#line 357
 8020    __cil_tmp26 = & cs->events;
 8021#line 357
 8022    __cil_tmp27 = (struct event_t *)__cil_tmp26;
 8023#line 357
 8024    event = __cil_tmp27 + __cil_tmp25;
 8025#line 358
 8026    event->type = type;
 8027#line 359
 8028    event->at_state = at_state;
 8029#line 360
 8030    event->cid = -1;
 8031#line 361
 8032    event->ptr = ptr;
 8033#line 362
 8034    event->arg = arg;
 8035#line 363
 8036    event->parameter = parameter;
 8037#line 364
 8038    cs->ev_tail = next;
 8039  }
 8040  {
 8041#line 367
 8042  __cil_tmp28 = & cs->ev_lock;
 8043#line 367
 8044  spin_unlock_irqrestore(__cil_tmp28, flags);
 8045  }
 8046#line 369
 8047  return (event);
 8048}
 8049}
 8050#line 373 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8051static void free_strings(struct at_state_t *at_state ) 
 8052{ int i ;
 8053  char *__cil_tmp3 ;
 8054  void const   *__cil_tmp4 ;
 8055
 8056  {
 8057#line 377
 8058  i = 0;
 8059#line 377
 8060  goto ldv_34824;
 8061  ldv_34823: 
 8062  {
 8063#line 378
 8064  __cil_tmp3 = at_state->str_var[i];
 8065#line 378
 8066  __cil_tmp4 = (void const   *)__cil_tmp3;
 8067#line 378
 8068  kfree(__cil_tmp4);
 8069#line 379
 8070  at_state->str_var[i] = (char *)0;
 8071#line 377
 8072  i = i + 1;
 8073  }
 8074  ldv_34824: ;
 8075#line 377
 8076  if (i <= 4) {
 8077#line 378
 8078    goto ldv_34823;
 8079  } else {
 8080#line 380
 8081    goto ldv_34825;
 8082  }
 8083  ldv_34825: ;
 8084#line 382
 8085  return;
 8086}
 8087}
 8088#line 383 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8089static void clear_at_state(struct at_state_t *at_state ) 
 8090{ 
 8091
 8092  {
 8093  {
 8094#line 385
 8095  free_strings(at_state);
 8096  }
 8097#line 386
 8098  return;
 8099}
 8100}
 8101#line 388 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8102static void dealloc_at_states(struct cardstate *cs ) 
 8103{ struct at_state_t *cur ;
 8104  struct at_state_t *next ;
 8105  struct list_head  const  *__mptr ;
 8106  struct list_head  const  *__mptr___0 ;
 8107  struct list_head  const  *__mptr___1 ;
 8108  struct list_head *__cil_tmp7 ;
 8109  struct list_head *__cil_tmp8 ;
 8110  struct list_head *__cil_tmp9 ;
 8111  void const   *__cil_tmp10 ;
 8112  struct list_head *__cil_tmp11 ;
 8113  struct list_head *__cil_tmp12 ;
 8114  unsigned long __cil_tmp13 ;
 8115  struct list_head *__cil_tmp14 ;
 8116  unsigned long __cil_tmp15 ;
 8117
 8118  {
 8119#line 392
 8120  __cil_tmp7 = cs->temp_at_states.next;
 8121#line 392
 8122  __mptr = (struct list_head  const  *)__cil_tmp7;
 8123#line 392
 8124  cur = (struct at_state_t *)__mptr;
 8125#line 392
 8126  __cil_tmp8 = cur->list.next;
 8127#line 392
 8128  __mptr___0 = (struct list_head  const  *)__cil_tmp8;
 8129#line 392
 8130  next = (struct at_state_t *)__mptr___0;
 8131#line 392
 8132  goto ldv_34841;
 8133  ldv_34840: 
 8134  {
 8135#line 393
 8136  __cil_tmp9 = & cur->list;
 8137#line 393
 8138  list_del(__cil_tmp9);
 8139#line 394
 8140  free_strings(cur);
 8141#line 395
 8142  __cil_tmp10 = (void const   *)cur;
 8143#line 395
 8144  kfree(__cil_tmp10);
 8145#line 392
 8146  cur = next;
 8147#line 392
 8148  __cil_tmp11 = next->list.next;
 8149#line 392
 8150  __mptr___1 = (struct list_head  const  *)__cil_tmp11;
 8151#line 392
 8152  next = (struct at_state_t *)__mptr___1;
 8153  }
 8154  ldv_34841: ;
 8155  {
 8156#line 392
 8157  __cil_tmp12 = & cs->temp_at_states;
 8158#line 392
 8159  __cil_tmp13 = (unsigned long )__cil_tmp12;
 8160#line 392
 8161  __cil_tmp14 = & cur->list;
 8162#line 392
 8163  __cil_tmp15 = (unsigned long )__cil_tmp14;
 8164#line 392
 8165  if (__cil_tmp15 != __cil_tmp13) {
 8166#line 393
 8167    goto ldv_34840;
 8168  } else {
 8169#line 395
 8170    goto ldv_34842;
 8171  }
 8172  }
 8173  ldv_34842: ;
 8174#line 397
 8175  return;
 8176}
 8177}
 8178#line 399 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8179static void gigaset_freebcs(struct bc_state *bcs ) 
 8180{ int i ;
 8181  long tmp ;
 8182  long tmp___0 ;
 8183  int tmp___1 ;
 8184  long tmp___2 ;
 8185  long tmp___3 ;
 8186  unsigned int __cil_tmp8 ;
 8187  unsigned int __cil_tmp9 ;
 8188  int __cil_tmp10 ;
 8189  long __cil_tmp11 ;
 8190  int __cil_tmp12 ;
 8191  struct cardstate *__cil_tmp13 ;
 8192  struct gigaset_ops  const  *__cil_tmp14 ;
 8193  int (*__cil_tmp15)(struct bc_state * ) ;
 8194  unsigned int __cil_tmp16 ;
 8195  unsigned int __cil_tmp17 ;
 8196  int __cil_tmp18 ;
 8197  long __cil_tmp19 ;
 8198  unsigned int __cil_tmp20 ;
 8199  unsigned int __cil_tmp21 ;
 8200  int __cil_tmp22 ;
 8201  long __cil_tmp23 ;
 8202  int __cil_tmp24 ;
 8203  struct at_state_t *__cil_tmp25 ;
 8204  unsigned int __cil_tmp26 ;
 8205  unsigned int __cil_tmp27 ;
 8206  int __cil_tmp28 ;
 8207  long __cil_tmp29 ;
 8208  int __cil_tmp30 ;
 8209  struct sk_buff *__cil_tmp31 ;
 8210  char *__cil_tmp32 ;
 8211  void const   *__cil_tmp33 ;
 8212
 8213  {
 8214  {
 8215#line 403
 8216  __cil_tmp8 = (unsigned int )gigaset_debuglevel;
 8217#line 403
 8218  __cil_tmp9 = __cil_tmp8 & 32768U;
 8219#line 403
 8220  __cil_tmp10 = __cil_tmp9 != 0U;
 8221#line 403
 8222  __cil_tmp11 = (long )__cil_tmp10;
 8223#line 403
 8224  tmp = __builtin_expect(__cil_tmp11, 0L);
 8225  }
 8226#line 403
 8227  if (tmp != 0L) {
 8228    {
 8229#line 403
 8230    __cil_tmp12 = bcs->channel;
 8231#line 403
 8232    printk("<7>gigaset: freeing bcs[%d]->hw\n", __cil_tmp12);
 8233    }
 8234  } else {
 8235
 8236  }
 8237  {
 8238#line 404
 8239  __cil_tmp13 = bcs->cs;
 8240#line 404
 8241  __cil_tmp14 = __cil_tmp13->ops;
 8242#line 404
 8243  __cil_tmp15 = __cil_tmp14->freebcshw;
 8244#line 404
 8245  tmp___1 = (*__cil_tmp15)(bcs);
 8246  }
 8247#line 404
 8248  if (tmp___1 == 0) {
 8249    {
 8250#line 405
 8251    __cil_tmp16 = (unsigned int )gigaset_debuglevel;
 8252#line 405
 8253    __cil_tmp17 = __cil_tmp16 & 32768U;
 8254#line 405
 8255    __cil_tmp18 = __cil_tmp17 != 0U;
 8256#line 405
 8257    __cil_tmp19 = (long )__cil_tmp18;
 8258#line 405
 8259    tmp___0 = __builtin_expect(__cil_tmp19, 0L);
 8260    }
 8261#line 405
 8262    if (tmp___0 != 0L) {
 8263      {
 8264#line 405
 8265      printk("<7>gigaset: failed\n");
 8266      }
 8267    } else {
 8268
 8269    }
 8270  } else {
 8271
 8272  }
 8273  {
 8274#line 407
 8275  __cil_tmp20 = (unsigned int )gigaset_debuglevel;
 8276#line 407
 8277  __cil_tmp21 = __cil_tmp20 & 32768U;
 8278#line 407
 8279  __cil_tmp22 = __cil_tmp21 != 0U;
 8280#line 407
 8281  __cil_tmp23 = (long )__cil_tmp22;
 8282#line 407
 8283  tmp___2 = __builtin_expect(__cil_tmp23, 0L);
 8284  }
 8285#line 407
 8286  if (tmp___2 != 0L) {
 8287    {
 8288#line 407
 8289    __cil_tmp24 = bcs->channel;
 8290#line 407
 8291    printk("<7>gigaset: clearing bcs[%d]->at_state\n", __cil_tmp24);
 8292    }
 8293  } else {
 8294
 8295  }
 8296  {
 8297#line 408
 8298  __cil_tmp25 = & bcs->at_state;
 8299#line 408
 8300  clear_at_state(__cil_tmp25);
 8301#line 409
 8302  __cil_tmp26 = (unsigned int )gigaset_debuglevel;
 8303#line 409
 8304  __cil_tmp27 = __cil_tmp26 & 32768U;
 8305#line 409
 8306  __cil_tmp28 = __cil_tmp27 != 0U;
 8307#line 409
 8308  __cil_tmp29 = (long )__cil_tmp28;
 8309#line 409
 8310  tmp___3 = __builtin_expect(__cil_tmp29, 0L);
 8311  }
 8312#line 409
 8313  if (tmp___3 != 0L) {
 8314    {
 8315#line 409
 8316    __cil_tmp30 = bcs->channel;
 8317#line 409
 8318    printk("<7>gigaset: freeing bcs[%d]->skb\n", __cil_tmp30);
 8319    }
 8320  } else {
 8321
 8322  }
 8323  {
 8324#line 410
 8325  __cil_tmp31 = bcs->rx_skb;
 8326#line 410
 8327  consume_skb(__cil_tmp31);
 8328#line 411
 8329  bcs->rx_skb = (struct sk_buff *)0;
 8330#line 413
 8331  i = 0;
 8332  }
 8333#line 413
 8334  goto ldv_34848;
 8335  ldv_34847: 
 8336  {
 8337#line 414
 8338  __cil_tmp32 = bcs->commands[i];
 8339#line 414
 8340  __cil_tmp33 = (void const   *)__cil_tmp32;
 8341#line 414
 8342  kfree(__cil_tmp33);
 8343#line 415
 8344  bcs->commands[i] = (char *)0;
 8345#line 413
 8346  i = i + 1;
 8347  }
 8348  ldv_34848: ;
 8349#line 413
 8350  if (i <= 6) {
 8351#line 414
 8352    goto ldv_34847;
 8353  } else {
 8354#line 416
 8355    goto ldv_34849;
 8356  }
 8357  ldv_34849: ;
 8358#line 418
 8359  return;
 8360}
 8361}
 8362#line 419 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8363static struct cardstate *alloc_cs(struct gigaset_driver *drv ) 
 8364{ unsigned long flags ;
 8365  unsigned int i ;
 8366  struct cardstate *cs ;
 8367  struct cardstate *ret ;
 8368  raw_spinlock_t *tmp ;
 8369  spinlock_t *__cil_tmp7 ;
 8370  int __cil_tmp8 ;
 8371  unsigned long __cil_tmp9 ;
 8372  struct cardstate *__cil_tmp10 ;
 8373  unsigned int __cil_tmp11 ;
 8374  unsigned int __cil_tmp12 ;
 8375  unsigned int __cil_tmp13 ;
 8376  spinlock_t *__cil_tmp14 ;
 8377
 8378  {
 8379  {
 8380#line 424
 8381  ret = (struct cardstate *)0;
 8382#line 426
 8383  __cil_tmp7 = & drv->lock;
 8384#line 426
 8385  tmp = spinlock_check(__cil_tmp7);
 8386#line 426
 8387  flags = _raw_spin_lock_irqsave(tmp);
 8388  }
 8389  {
 8390#line 427
 8391  __cil_tmp8 = drv->blocked;
 8392#line 427
 8393  if (__cil_tmp8 != 0) {
 8394#line 428
 8395    goto exit;
 8396  } else {
 8397
 8398  }
 8399  }
 8400#line 429
 8401  i = 0U;
 8402#line 429
 8403  goto ldv_34863;
 8404  ldv_34862: 
 8405#line 430
 8406  __cil_tmp9 = (unsigned long )i;
 8407#line 430
 8408  __cil_tmp10 = drv->cs;
 8409#line 430
 8410  cs = __cil_tmp10 + __cil_tmp9;
 8411  {
 8412#line 431
 8413  __cil_tmp11 = cs->flags;
 8414#line 431
 8415  __cil_tmp12 = __cil_tmp11 & 1U;
 8416#line 431
 8417  if (__cil_tmp12 == 0U) {
 8418#line 432
 8419    cs->flags = 1U;
 8420#line 433
 8421    ret = cs;
 8422#line 434
 8423    goto ldv_34861;
 8424  } else {
 8425
 8426  }
 8427  }
 8428#line 429
 8429  i = i + 1U;
 8430  ldv_34863: ;
 8431  {
 8432#line 429
 8433  __cil_tmp13 = drv->minors;
 8434#line 429
 8435  if (__cil_tmp13 > i) {
 8436#line 430
 8437    goto ldv_34862;
 8438  } else {
 8439#line 432
 8440    goto ldv_34861;
 8441  }
 8442  }
 8443  ldv_34861: ;
 8444  exit: 
 8445  {
 8446#line 438
 8447  __cil_tmp14 = & drv->lock;
 8448#line 438
 8449  spin_unlock_irqrestore(__cil_tmp14, flags);
 8450  }
 8451#line 439
 8452  return (ret);
 8453}
 8454}
 8455#line 442 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8456static void free_cs(struct cardstate *cs ) 
 8457{ 
 8458
 8459  {
 8460#line 444
 8461  cs->flags = 0U;
 8462#line 445
 8463  return;
 8464}
 8465}
 8466#line 447 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8467static void make_valid(struct cardstate *cs , unsigned int mask ) 
 8468{ unsigned long flags ;
 8469  struct gigaset_driver *drv ;
 8470  raw_spinlock_t *tmp ;
 8471  spinlock_t *__cil_tmp6 ;
 8472  unsigned int __cil_tmp7 ;
 8473  spinlock_t *__cil_tmp8 ;
 8474
 8475  {
 8476  {
 8477#line 450
 8478  drv = cs->driver;
 8479#line 451
 8480  __cil_tmp6 = & drv->lock;
 8481#line 451
 8482  tmp = spinlock_check(__cil_tmp6);
 8483#line 451
 8484  flags = _raw_spin_lock_irqsave(tmp);
 8485#line 452
 8486  __cil_tmp7 = cs->flags;
 8487#line 452
 8488  cs->flags = __cil_tmp7 | mask;
 8489#line 453
 8490  __cil_tmp8 = & drv->lock;
 8491#line 453
 8492  spin_unlock_irqrestore(__cil_tmp8, flags);
 8493  }
 8494#line 454
 8495  return;
 8496}
 8497}
 8498#line 456 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8499static void make_invalid(struct cardstate *cs , unsigned int mask ) 
 8500{ unsigned long flags ;
 8501  struct gigaset_driver *drv ;
 8502  raw_spinlock_t *tmp ;
 8503  spinlock_t *__cil_tmp6 ;
 8504  unsigned int __cil_tmp7 ;
 8505  unsigned int __cil_tmp8 ;
 8506  spinlock_t *__cil_tmp9 ;
 8507
 8508  {
 8509  {
 8510#line 459
 8511  drv = cs->driver;
 8512#line 460
 8513  __cil_tmp6 = & drv->lock;
 8514#line 460
 8515  tmp = spinlock_check(__cil_tmp6);
 8516#line 460
 8517  flags = _raw_spin_lock_irqsave(tmp);
 8518#line 461
 8519  __cil_tmp7 = ~ mask;
 8520#line 461
 8521  __cil_tmp8 = cs->flags;
 8522#line 461
 8523  cs->flags = __cil_tmp8 & __cil_tmp7;
 8524#line 462
 8525  __cil_tmp9 = & drv->lock;
 8526#line 462
 8527  spin_unlock_irqrestore(__cil_tmp9, flags);
 8528  }
 8529#line 463
 8530  return;
 8531}
 8532}
 8533#line 474 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8534void gigaset_freecs(struct cardstate *cs ) 
 8535{ int i ;
 8536  unsigned long flags ;
 8537  raw_spinlock_t *tmp ;
 8538  long tmp___0 ;
 8539  long tmp___1 ;
 8540  long tmp___2 ;
 8541  long tmp___3 ;
 8542  long tmp___4 ;
 8543  long tmp___5 ;
 8544  struct cardstate *__cil_tmp11 ;
 8545  unsigned long __cil_tmp12 ;
 8546  unsigned long __cil_tmp13 ;
 8547  struct mutex *__cil_tmp14 ;
 8548  struct bc_state *__cil_tmp15 ;
 8549  unsigned long __cil_tmp16 ;
 8550  struct bc_state *__cil_tmp17 ;
 8551  unsigned long __cil_tmp18 ;
 8552  struct inbuf_t *__cil_tmp19 ;
 8553  unsigned long __cil_tmp20 ;
 8554  struct inbuf_t *__cil_tmp21 ;
 8555  unsigned long __cil_tmp22 ;
 8556  spinlock_t *__cil_tmp23 ;
 8557  spinlock_t *__cil_tmp24 ;
 8558  struct tasklet_struct *__cil_tmp25 ;
 8559  struct timer_list *__cil_tmp26 ;
 8560  int __cil_tmp27 ;
 8561  int __cil_tmp28 ;
 8562  int __cil_tmp29 ;
 8563  unsigned int __cil_tmp30 ;
 8564  unsigned int __cil_tmp31 ;
 8565  int __cil_tmp32 ;
 8566  long __cil_tmp33 ;
 8567  unsigned long __cil_tmp34 ;
 8568  struct bc_state *__cil_tmp35 ;
 8569  struct bc_state *__cil_tmp36 ;
 8570  int __cil_tmp37 ;
 8571  unsigned int __cil_tmp38 ;
 8572  unsigned int __cil_tmp39 ;
 8573  int __cil_tmp40 ;
 8574  long __cil_tmp41 ;
 8575  struct gigaset_ops  const  *__cil_tmp42 ;
 8576  void (*__cil_tmp43)(struct cardstate * ) ;
 8577  unsigned int __cil_tmp44 ;
 8578  unsigned int __cil_tmp45 ;
 8579  int __cil_tmp46 ;
 8580  long __cil_tmp47 ;
 8581  struct at_state_t *__cil_tmp48 ;
 8582  unsigned int __cil_tmp49 ;
 8583  unsigned int __cil_tmp50 ;
 8584  int __cil_tmp51 ;
 8585  long __cil_tmp52 ;
 8586  struct inbuf_t *__cil_tmp53 ;
 8587  void const   *__cil_tmp54 ;
 8588  unsigned int __cil_tmp55 ;
 8589  unsigned int __cil_tmp56 ;
 8590  int __cil_tmp57 ;
 8591  long __cil_tmp58 ;
 8592  struct bc_state *__cil_tmp59 ;
 8593  void const   *__cil_tmp60 ;
 8594  unsigned int __cil_tmp61 ;
 8595  unsigned int __cil_tmp62 ;
 8596  int __cil_tmp63 ;
 8597  long __cil_tmp64 ;
 8598  struct mutex *__cil_tmp65 ;
 8599
 8600  {
 8601  {
 8602#line 479
 8603  __cil_tmp11 = (struct cardstate *)0;
 8604#line 479
 8605  __cil_tmp12 = (unsigned long )__cil_tmp11;
 8606#line 479
 8607  __cil_tmp13 = (unsigned long )cs;
 8608#line 479
 8609  if (__cil_tmp13 == __cil_tmp12) {
 8610#line 480
 8611    return;
 8612  } else {
 8613
 8614  }
 8615  }
 8616  {
 8617#line 482
 8618  __cil_tmp14 = & cs->mutex;
 8619#line 482
 8620  mutex_lock_nested(__cil_tmp14, 0U);
 8621  }
 8622  {
 8623#line 484
 8624  __cil_tmp15 = (struct bc_state *)0;
 8625#line 484
 8626  __cil_tmp16 = (unsigned long )__cil_tmp15;
 8627#line 484
 8628  __cil_tmp17 = cs->bcs;
 8629#line 484
 8630  __cil_tmp18 = (unsigned long )__cil_tmp17;
 8631#line 484
 8632  if (__cil_tmp18 == __cil_tmp16) {
 8633#line 485
 8634    goto f_cs;
 8635  } else {
 8636
 8637  }
 8638  }
 8639  {
 8640#line 486
 8641  __cil_tmp19 = (struct inbuf_t *)0;
 8642#line 486
 8643  __cil_tmp20 = (unsigned long )__cil_tmp19;
 8644#line 486
 8645  __cil_tmp21 = cs->inbuf;
 8646#line 486
 8647  __cil_tmp22 = (unsigned long )__cil_tmp21;
 8648#line 486
 8649  if (__cil_tmp22 == __cil_tmp20) {
 8650#line 487
 8651    goto f_bcs;
 8652  } else {
 8653
 8654  }
 8655  }
 8656  {
 8657#line 489
 8658  __cil_tmp23 = & cs->lock;
 8659#line 489
 8660  tmp = spinlock_check(__cil_tmp23);
 8661#line 489
 8662  flags = _raw_spin_lock_irqsave(tmp);
 8663#line 490
 8664  cs->running = 0U;
 8665#line 491
 8666  __cil_tmp24 = & cs->lock;
 8667#line 491
 8668  spin_unlock_irqrestore(__cil_tmp24, flags);
 8669#line 494
 8670  __cil_tmp25 = & cs->event_tasklet;
 8671#line 494
 8672  tasklet_kill(__cil_tmp25);
 8673#line 495
 8674  __cil_tmp26 = & cs->timer;
 8675#line 495
 8676  del_timer_sync(__cil_tmp26);
 8677  }
 8678  {
 8679#line 514
 8680  __cil_tmp27 = cs->cs_init;
 8681#line 514
 8682  if (__cil_tmp27 == 2) {
 8683#line 514
 8684    goto case_2;
 8685  } else {
 8686    {
 8687#line 520
 8688    __cil_tmp28 = cs->cs_init;
 8689#line 520
 8690    if (__cil_tmp28 == 1) {
 8691#line 520
 8692      goto case_1;
 8693    } else {
 8694      {
 8695#line 526
 8696      __cil_tmp29 = cs->cs_init;
 8697#line 526
 8698      if (__cil_tmp29 == 0) {
 8699#line 526
 8700        goto case_0;
 8701      } else {
 8702#line 498
 8703        goto switch_default;
 8704#line 497
 8705        if (0) {
 8706          switch_default: 
 8707#line 500
 8708          i = 0;
 8709#line 500
 8710          goto ldv_34897;
 8711          ldv_34896: 
 8712          {
 8713#line 501
 8714          __cil_tmp30 = (unsigned int )gigaset_debuglevel;
 8715#line 501
 8716          __cil_tmp31 = __cil_tmp30 & 32768U;
 8717#line 501
 8718          __cil_tmp32 = __cil_tmp31 != 0U;
 8719#line 501
 8720          __cil_tmp33 = (long )__cil_tmp32;
 8721#line 501
 8722          tmp___0 = __builtin_expect(__cil_tmp33, 0L);
 8723          }
 8724#line 501
 8725          if (tmp___0 != 0L) {
 8726            {
 8727#line 501
 8728            printk("<7>gigaset: clearing bcs[%d]\n", i);
 8729            }
 8730          } else {
 8731
 8732          }
 8733          {
 8734#line 502
 8735          __cil_tmp34 = (unsigned long )i;
 8736#line 502
 8737          __cil_tmp35 = cs->bcs;
 8738#line 502
 8739          __cil_tmp36 = __cil_tmp35 + __cil_tmp34;
 8740#line 502
 8741          gigaset_freebcs(__cil_tmp36);
 8742#line 500
 8743          i = i + 1;
 8744          }
 8745          ldv_34897: ;
 8746          {
 8747#line 500
 8748          __cil_tmp37 = cs->channels;
 8749#line 500
 8750          if (__cil_tmp37 > i) {
 8751#line 501
 8752            goto ldv_34896;
 8753          } else {
 8754#line 503
 8755            goto ldv_34898;
 8756          }
 8757          }
 8758          ldv_34898: 
 8759          {
 8760#line 506
 8761          gigaset_free_dev_sysfs(cs);
 8762#line 508
 8763          gigaset_if_free(cs);
 8764#line 510
 8765          __cil_tmp38 = (unsigned int )gigaset_debuglevel;
 8766#line 510
 8767          __cil_tmp39 = __cil_tmp38 & 32768U;
 8768#line 510
 8769          __cil_tmp40 = __cil_tmp39 != 0U;
 8770#line 510
 8771          __cil_tmp41 = (long )__cil_tmp40;
 8772#line 510
 8773          tmp___1 = __builtin_expect(__cil_tmp41, 0L);
 8774          }
 8775#line 510
 8776          if (tmp___1 != 0L) {
 8777            {
 8778#line 510
 8779            printk("<7>gigaset: clearing hw\n");
 8780            }
 8781          } else {
 8782
 8783          }
 8784          {
 8785#line 511
 8786          __cil_tmp42 = cs->ops;
 8787#line 511
 8788          __cil_tmp43 = __cil_tmp42->freecshw;
 8789#line 511
 8790          (*__cil_tmp43)(cs);
 8791          }
 8792          case_2: 
 8793          {
 8794#line 516
 8795          make_invalid(cs, 2U);
 8796#line 517
 8797          gigaset_isdn_unregdev(cs);
 8798          }
 8799          case_1: 
 8800          {
 8801#line 521
 8802          __cil_tmp44 = (unsigned int )gigaset_debuglevel;
 8803#line 521
 8804          __cil_tmp45 = __cil_tmp44 & 32768U;
 8805#line 521
 8806          __cil_tmp46 = __cil_tmp45 != 0U;
 8807#line 521
 8808          __cil_tmp47 = (long )__cil_tmp46;
 8809#line 521
 8810          tmp___2 = __builtin_expect(__cil_tmp47, 0L);
 8811          }
 8812#line 521
 8813          if (tmp___2 != 0L) {
 8814            {
 8815#line 521
 8816            printk("<7>gigaset: clearing at_state\n");
 8817            }
 8818          } else {
 8819
 8820          }
 8821          {
 8822#line 522
 8823          __cil_tmp48 = & cs->at_state;
 8824#line 522
 8825          clear_at_state(__cil_tmp48);
 8826#line 523
 8827          dealloc_at_states(cs);
 8828          }
 8829          case_0: 
 8830          {
 8831#line 527
 8832          clear_events(cs);
 8833#line 528
 8834          __cil_tmp49 = (unsigned int )gigaset_debuglevel;
 8835#line 528
 8836          __cil_tmp50 = __cil_tmp49 & 32768U;
 8837#line 528
 8838          __cil_tmp51 = __cil_tmp50 != 0U;
 8839#line 528
 8840          __cil_tmp52 = (long )__cil_tmp51;
 8841#line 528
 8842          tmp___3 = __builtin_expect(__cil_tmp52, 0L);
 8843          }
 8844#line 528
 8845          if (tmp___3 != 0L) {
 8846            {
 8847#line 528
 8848            printk("<7>gigaset: freeing inbuf\n");
 8849            }
 8850          } else {
 8851
 8852          }
 8853          {
 8854#line 529
 8855          __cil_tmp53 = cs->inbuf;
 8856#line 529
 8857          __cil_tmp54 = (void const   *)__cil_tmp53;
 8858#line 529
 8859          kfree(__cil_tmp54);
 8860          }
 8861        } else {
 8862
 8863        }
 8864      }
 8865      }
 8866    }
 8867    }
 8868  }
 8869  }
 8870  f_bcs: 
 8871  {
 8872#line 531
 8873  __cil_tmp55 = (unsigned int )gigaset_debuglevel;
 8874#line 531
 8875  __cil_tmp56 = __cil_tmp55 & 32768U;
 8876#line 531
 8877  __cil_tmp57 = __cil_tmp56 != 0U;
 8878#line 531
 8879  __cil_tmp58 = (long )__cil_tmp57;
 8880#line 531
 8881  tmp___4 = __builtin_expect(__cil_tmp58, 0L);
 8882  }
 8883#line 531
 8884  if (tmp___4 != 0L) {
 8885    {
 8886#line 531
 8887    printk("<7>gigaset: freeing bcs[]\n");
 8888    }
 8889  } else {
 8890
 8891  }
 8892  {
 8893#line 532
 8894  __cil_tmp59 = cs->bcs;
 8895#line 532
 8896  __cil_tmp60 = (void const   *)__cil_tmp59;
 8897#line 532
 8898  kfree(__cil_tmp60);
 8899  }
 8900  f_cs: 
 8901  {
 8902#line 533
 8903  __cil_tmp61 = (unsigned int )gigaset_debuglevel;
 8904#line 533
 8905  __cil_tmp62 = __cil_tmp61 & 32768U;
 8906#line 533
 8907  __cil_tmp63 = __cil_tmp62 != 0U;
 8908#line 533
 8909  __cil_tmp64 = (long )__cil_tmp63;
 8910#line 533
 8911  tmp___5 = __builtin_expect(__cil_tmp64, 0L);
 8912  }
 8913#line 533
 8914  if (tmp___5 != 0L) {
 8915    {
 8916#line 533
 8917    printk("<7>gigaset: freeing cs\n");
 8918    }
 8919  } else {
 8920
 8921  }
 8922  {
 8923#line 534
 8924  __cil_tmp65 = & cs->mutex;
 8925#line 534
 8926  mutex_unlock(__cil_tmp65);
 8927#line 535
 8928  free_cs(cs);
 8929  }
 8930#line 536
 8931  return;
 8932}
 8933}
 8934#line 539 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 8935void gigaset_at_init(struct at_state_t *at_state , struct bc_state *bcs , struct cardstate *cs ,
 8936                     int cid ) 
 8937{ int i ;
 8938  struct list_head *__cil_tmp6 ;
 8939
 8940  {
 8941  {
 8942#line 544
 8943  __cil_tmp6 = & at_state->list;
 8944#line 544
 8945  INIT_LIST_HEAD(__cil_tmp6);
 8946#line 545
 8947  at_state->waiting = 0;
 8948#line 546
 8949  at_state->getstring = 0;
 8950#line 547
 8951  at_state->pending_commands = 0U;
 8952#line 548
 8953  at_state->timer_expires = 0UL;
 8954#line 549
 8955  at_state->timer_active = 0;
 8956#line 550
 8957  at_state->timer_index = 0U;
 8958#line 551
 8959  at_state->seq_index = 0U;
 8960#line 552
 8961  at_state->ConState = 0U;
 8962#line 553
 8963  i = 0;
 8964  }
 8965#line 553
 8966  goto ldv_34916;
 8967  ldv_34915: 
 8968#line 554
 8969  at_state->str_var[i] = (char *)0;
 8970#line 553
 8971  i = i + 1;
 8972  ldv_34916: ;
 8973#line 553
 8974  if (i <= 4) {
 8975#line 554
 8976    goto ldv_34915;
 8977  } else {
 8978#line 556
 8979    goto ldv_34917;
 8980  }
 8981  ldv_34917: 
 8982#line 555
 8983  at_state->int_var[1] = 0;
 8984#line 556
 8985  at_state->int_var[2] = -1;
 8986#line 557
 8987  at_state->int_var[0] = 5;
 8988#line 558
 8989  at_state->cs = cs;
 8990#line 559
 8991  at_state->bcs = bcs;
 8992#line 560
 8993  at_state->cid = cid;
 8994#line 561
 8995  if (cid == 0) {
 8996#line 562
 8997    at_state->replystruct = cs->tabnocid;
 8998  } else {
 8999#line 564
 9000    at_state->replystruct = cs->tabcid;
 9001  }
 9002#line 565
 9003  return;
 9004}
 9005}
 9006#line 568 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 9007static void gigaset_inbuf_init(struct inbuf_t *inbuf , struct cardstate *cs ) 
 9008{ 
 9009
 9010  {
 9011#line 571
 9012  inbuf->head = 0;
 9013#line 572
 9014  inbuf->tail = 0;
 9015#line 573
 9016  inbuf->cs = cs;
 9017#line 574
 9018  inbuf->inputstate = 1;
 9019#line 575
 9020  return;
 9021}
 9022}
 9023#line 583 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 9024int gigaset_fill_inbuf(struct inbuf_t *inbuf , unsigned char const   *src , unsigned int numbytes ) 
 9025{ unsigned int n ;
 9026  unsigned int head ;
 9027  unsigned int tail ;
 9028  unsigned int bytesleft ;
 9029  long tmp ;
 9030  long tmp___0 ;
 9031  size_t __len ;
 9032  void *__ret ;
 9033  long tmp___1 ;
 9034  unsigned int __cil_tmp13 ;
 9035  unsigned int __cil_tmp14 ;
 9036  int __cil_tmp15 ;
 9037  long __cil_tmp16 ;
 9038  int __cil_tmp17 ;
 9039  int __cil_tmp18 ;
 9040  unsigned int __cil_tmp19 ;
 9041  unsigned int __cil_tmp20 ;
 9042  int __cil_tmp21 ;
 9043  long __cil_tmp22 ;
 9044  unsigned int __cil_tmp23 ;
 9045  struct cardstate *__cil_tmp24 ;
 9046  struct device *__cil_tmp25 ;
 9047  struct device  const  *__cil_tmp26 ;
 9048  unsigned long __cil_tmp27 ;
 9049  unsigned char (*__cil_tmp28)[8192U] ;
 9050  void *__cil_tmp29 ;
 9051  void *__cil_tmp30 ;
 9052  void const   *__cil_tmp31 ;
 9053  unsigned int __cil_tmp32 ;
 9054  unsigned long __cil_tmp33 ;
 9055  unsigned int __cil_tmp34 ;
 9056  unsigned int __cil_tmp35 ;
 9057  int __cil_tmp36 ;
 9058  long __cil_tmp37 ;
 9059
 9060  {
 9061  {
 9062#line 588
 9063  __cil_tmp13 = (unsigned int )gigaset_debuglevel;
 9064#line 588
 9065  __cil_tmp14 = __cil_tmp13 & 8U;
 9066#line 588
 9067  __cil_tmp15 = __cil_tmp14 != 0U;
 9068#line 588
 9069  __cil_tmp16 = (long )__cil_tmp15;
 9070#line 588
 9071  tmp = __builtin_expect(__cil_tmp16, 0L);
 9072  }
 9073#line 588
 9074  if (tmp != 0L) {
 9075    {
 9076#line 588
 9077    printk("<7>gigaset: received %u bytes\n", numbytes);
 9078    }
 9079  } else {
 9080
 9081  }
 9082#line 590
 9083  if (numbytes == 0U) {
 9084#line 591
 9085    return (0);
 9086  } else {
 9087
 9088  }
 9089  {
 9090#line 593
 9091  bytesleft = numbytes;
 9092#line 594
 9093  __cil_tmp17 = inbuf->tail;
 9094#line 594
 9095  tail = (unsigned int )__cil_tmp17;
 9096#line 595
 9097  __cil_tmp18 = inbuf->head;
 9098#line 595
 9099  head = (unsigned int )__cil_tmp18;
 9100#line 596
 9101  __cil_tmp19 = (unsigned int )gigaset_debuglevel;
 9102#line 596
 9103  __cil_tmp20 = __cil_tmp19 & 8U;
 9104#line 596
 9105  __cil_tmp21 = __cil_tmp20 != 0U;
 9106#line 596
 9107  __cil_tmp22 = (long )__cil_tmp21;
 9108#line 596
 9109  tmp___0 = __builtin_expect(__cil_tmp22, 0L);
 9110  }
 9111#line 596
 9112  if (tmp___0 != 0L) {
 9113    {
 9114#line 596
 9115    printk("<7>gigaset: buffer state: %u -> %u\n", head, tail);
 9116    }
 9117  } else {
 9118
 9119  }
 9120#line 598
 9121  goto ldv_34936;
 9122  ldv_34935: ;
 9123#line 599
 9124  if (head > tail) {
 9125#line 600
 9126    __cil_tmp23 = head - tail;
 9127#line 600
 9128    n = __cil_tmp23 - 1U;
 9129  } else
 9130#line 601
 9131  if (head == 0U) {
 9132#line 602
 9133    n = 8191U - tail;
 9134  } else {
 9135#line 604
 9136    n = 8192U - tail;
 9137  }
 9138#line 605
 9139  if (n == 0U) {
 9140    {
 9141#line 606
 9142    __cil_tmp24 = inbuf->cs;
 9143#line 606
 9144    __cil_tmp25 = __cil_tmp24->dev;
 9145#line 606
 9146    __cil_tmp26 = (struct device  const  *)__cil_tmp25;
 9147#line 606
 9148    dev_err(__cil_tmp26, "buffer overflow (%u bytes lost)\n", bytesleft);
 9149    }
 9150#line 609
 9151    goto ldv_34931;
 9152  } else {
 9153
 9154  }
 9155#line 611
 9156  if (n > bytesleft) {
 9157#line 612
 9158    n = bytesleft;
 9159  } else {
 9160
 9161  }
 9162  {
 9163#line 613
 9164  __len = (size_t )n;
 9165#line 613
 9166  __cil_tmp27 = (unsigned long )tail;
 9167#line 613
 9168  __cil_tmp28 = & inbuf->data;
 9169#line 613
 9170  __cil_tmp29 = (void *)__cil_tmp28;
 9171#line 613
 9172  __cil_tmp30 = __cil_tmp29 + __cil_tmp27;
 9173#line 613
 9174  __cil_tmp31 = (void const   *)src;
 9175#line 613
 9176  __ret = __builtin_memcpy(__cil_tmp30, __cil_tmp31, __len);
 9177#line 614
 9178  bytesleft = bytesleft - n;
 9179#line 615
 9180  __cil_tmp32 = tail + n;
 9181#line 615
 9182  tail = __cil_tmp32 & 8191U;
 9183#line 616
 9184  __cil_tmp33 = (unsigned long )n;
 9185#line 616
 9186  src = src + __cil_tmp33;
 9187  }
 9188  ldv_34936: ;
 9189#line 598
 9190  if (bytesleft != 0U) {
 9191#line 599
 9192    goto ldv_34935;
 9193  } else {
 9194#line 601
 9195    goto ldv_34931;
 9196  }
 9197  ldv_34931: 
 9198  {
 9199#line 618
 9200  __cil_tmp34 = (unsigned int )gigaset_debuglevel;
 9201#line 618
 9202  __cil_tmp35 = __cil_tmp34 & 8U;
 9203#line 618
 9204  __cil_tmp36 = __cil_tmp35 != 0U;
 9205#line 618
 9206  __cil_tmp37 = (long )__cil_tmp36;
 9207#line 618
 9208  tmp___1 = __builtin_expect(__cil_tmp37, 0L);
 9209  }
 9210#line 618
 9211  if (tmp___1 != 0L) {
 9212    {
 9213#line 618
 9214    printk("<7>gigaset: setting tail to %u\n", tail);
 9215    }
 9216  } else {
 9217
 9218  }
 9219#line 619
 9220  inbuf->tail = (int )tail;
 9221#line 620
 9222  return (numbytes != bytesleft);
 9223}
 9224}
 9225#line 625 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 9226static struct bc_state *gigaset_initbcs(struct bc_state *bcs , struct cardstate *cs ,
 9227                                        int channel ) 
 9228{ int i ;
 9229  long tmp ;
 9230  struct lock_class_key __key ;
 9231  long tmp___0 ;
 9232  int tmp___1 ;
 9233  long tmp___2 ;
 9234  struct sk_buff_head *__cil_tmp10 ;
 9235  unsigned int __cil_tmp11 ;
 9236  unsigned int __cil_tmp12 ;
 9237  int __cil_tmp13 ;
 9238  long __cil_tmp14 ;
 9239  struct at_state_t *__cil_tmp15 ;
 9240  spinlock_t *__cil_tmp16 ;
 9241  struct raw_spinlock *__cil_tmp17 ;
 9242  unsigned int __cil_tmp18 ;
 9243  unsigned int __cil_tmp19 ;
 9244  int __cil_tmp20 ;
 9245  long __cil_tmp21 ;
 9246  struct gigaset_ops  const  *__cil_tmp22 ;
 9247  int (*__cil_tmp23)(struct bc_state * ) ;
 9248  unsigned int __cil_tmp24 ;
 9249  unsigned int __cil_tmp25 ;
 9250  int __cil_tmp26 ;
 9251  long __cil_tmp27 ;
 9252
 9253  {
 9254  {
 9255#line 630
 9256  bcs->tx_skb = (struct sk_buff *)0;
 9257#line 632
 9258  __cil_tmp10 = & bcs->squeue;
 9259#line 632
 9260  skb_queue_head_init(__cil_tmp10);
 9261#line 634
 9262  bcs->corrupted = 0;
 9263#line 635
 9264  bcs->trans_down = 0;
 9265#line 636
 9266  bcs->trans_up = 0;
 9267#line 638
 9268  __cil_tmp11 = (unsigned int )gigaset_debuglevel;
 9269#line 638
 9270  __cil_tmp12 = __cil_tmp11 & 32768U;
 9271#line 638
 9272  __cil_tmp13 = __cil_tmp12 != 0U;
 9273#line 638
 9274  __cil_tmp14 = (long )__cil_tmp13;
 9275#line 638
 9276  tmp = __builtin_expect(__cil_tmp14, 0L);
 9277  }
 9278#line 638
 9279  if (tmp != 0L) {
 9280    {
 9281#line 638
 9282    printk("<7>gigaset: setting up bcs[%d]->at_state\n", channel);
 9283    }
 9284  } else {
 9285
 9286  }
 9287  {
 9288#line 639
 9289  __cil_tmp15 = & bcs->at_state;
 9290#line 639
 9291  gigaset_at_init(__cil_tmp15, bcs, cs, -1);
 9292#line 642
 9293  bcs->emptycount = 0;
 9294#line 645
 9295  bcs->rx_bufsize = 0U;
 9296#line 646
 9297  bcs->rx_skb = (struct sk_buff *)0;
 9298#line 647
 9299  bcs->rx_fcs = (__u16 )65535U;
 9300#line 648
 9301  bcs->inputstate = 0;
 9302#line 649
 9303  bcs->channel = channel;
 9304#line 650
 9305  bcs->cs = cs;
 9306#line 652
 9307  bcs->chstate = 0U;
 9308#line 653
 9309  bcs->use_count = 1;
 9310#line 654
 9311  bcs->busy = 0;
 9312#line 655
 9313  bcs->ignore = cs->ignoreframes;
 9314#line 657
 9315  i = 0;
 9316  }
 9317#line 657
 9318  goto ldv_34952;
 9319  ldv_34951: 
 9320#line 658
 9321  bcs->commands[i] = (char *)0;
 9322#line 657
 9323  i = i + 1;
 9324  ldv_34952: ;
 9325#line 657
 9326  if (i <= 6) {
 9327#line 658
 9328    goto ldv_34951;
 9329  } else {
 9330#line 660
 9331    goto ldv_34953;
 9332  }
 9333  ldv_34953: 
 9334  {
 9335#line 660
 9336  __cil_tmp16 = & bcs->aplock;
 9337#line 660
 9338  spinlock_check(__cil_tmp16);
 9339#line 660
 9340  __cil_tmp17 = & bcs->aplock.ldv_6060.rlock;
 9341#line 660
 9342  __raw_spin_lock_init(__cil_tmp17, "&(&bcs->aplock)->rlock", & __key);
 9343#line 661
 9344  bcs->ap = (void *)0;
 9345#line 662
 9346  bcs->apconnstate = 0;
 9347#line 664
 9348  __cil_tmp18 = (unsigned int )gigaset_debuglevel;
 9349#line 664
 9350  __cil_tmp19 = __cil_tmp18 & 32768U;
 9351#line 664
 9352  __cil_tmp20 = __cil_tmp19 != 0U;
 9353#line 664
 9354  __cil_tmp21 = (long )__cil_tmp20;
 9355#line 664
 9356  tmp___0 = __builtin_expect(__cil_tmp21, 0L);
 9357  }
 9358#line 664
 9359  if (tmp___0 != 0L) {
 9360    {
 9361#line 664
 9362    printk("<7>gigaset:   setting up bcs[%d]->hw\n", channel);
 9363    }
 9364  } else {
 9365
 9366  }
 9367  {
 9368#line 665
 9369  __cil_tmp22 = cs->ops;
 9370#line 665
 9371  __cil_tmp23 = __cil_tmp22->initbcshw;
 9372#line 665
 9373  tmp___1 = (*__cil_tmp23)(bcs);
 9374  }
 9375#line 665
 9376  if (tmp___1 != 0) {
 9377#line 666
 9378    return (bcs);
 9379  } else {
 9380
 9381  }
 9382  {
 9383#line 668
 9384  __cil_tmp24 = (unsigned int )gigaset_debuglevel;
 9385#line 668
 9386  __cil_tmp25 = __cil_tmp24 & 32768U;
 9387#line 668
 9388  __cil_tmp26 = __cil_tmp25 != 0U;
 9389#line 668
 9390  __cil_tmp27 = (long )__cil_tmp26;
 9391#line 668
 9392  tmp___2 = __builtin_expect(__cil_tmp27, 0L);
 9393  }
 9394#line 668
 9395  if (tmp___2 != 0L) {
 9396    {
 9397#line 668
 9398    printk("<7>gigaset:   failed\n");
 9399    }
 9400  } else {
 9401
 9402  }
 9403#line 669
 9404  return ((struct bc_state *)0);
 9405}
 9406}
 9407#line 690 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
 9408struct cardstate *gigaset_initcs(struct gigaset_driver *drv , int channels , int onechannel ,
 9409                                 int ignoreframes , int cidmode , char const   *modulename ) 
 9410{ struct cardstate *cs ;
 9411  unsigned long flags ;
 9412  int i ;
 9413  long tmp ;
 9414  long tmp___0 ;
 9415  void *tmp___1 ;
 9416  long tmp___2 ;
 9417  void *tmp___3 ;
 9418  struct lock_class_key __key ;
 9419  struct lock_class_key __key___0 ;
 9420  struct lock_class_key __key___1 ;
 9421  long tmp___4 ;
 9422  struct lock_class_key __key___2 ;
 9423  long tmp___5 ;
 9424  long tmp___6 ;
 9425  struct cmdbuf_t *tmp___7 ;
 9426  struct lock_class_key __key___3 ;
 9427  long tmp___8 ;
 9428  int tmp___9 ;
 9429  long tmp___10 ;
 9430  int tmp___11 ;
 9431  long tmp___12 ;
 9432  struct bc_state *tmp___13 ;
 9433  raw_spinlock_t *tmp___14 ;
 9434  struct lock_class_key __key___4 ;
 9435  unsigned long tmp___15 ;
 9436  long tmp___16 ;
 9437  long tmp___17 ;
 9438  unsigned int __cil_tmp35 ;
 9439  unsigned int __cil_tmp36 ;
 9440  int __cil_tmp37 ;
 9441  long __cil_tmp38 ;
 9442  struct cardstate *__cil_tmp39 ;
 9443  unsigned long __cil_tmp40 ;
 9444  unsigned long __cil_tmp41 ;
 9445  unsigned int __cil_tmp42 ;
 9446  unsigned int __cil_tmp43 ;
 9447  int __cil_tmp44 ;
 9448  long __cil_tmp45 ;
 9449  int __cil_tmp46 ;
 9450  unsigned long __cil_tmp47 ;
 9451  unsigned long __cil_tmp48 ;
 9452  struct bc_state *__cil_tmp49 ;
 9453  unsigned long __cil_tmp50 ;
 9454  struct bc_state *__cil_tmp51 ;
 9455  unsigned long __cil_tmp52 ;
 9456  unsigned int __cil_tmp53 ;
 9457  unsigned int __cil_tmp54 ;
 9458  int __cil_tmp55 ;
 9459  long __cil_tmp56 ;
 9460  struct inbuf_t *__cil_tmp57 ;
 9461  unsigned long __cil_tmp58 ;
 9462  struct inbuf_t *__cil_tmp59 ;
 9463  unsigned long __cil_tmp60 ;
 9464  struct list_head *__cil_tmp61 ;
 9465  struct timer_list *__cil_tmp62 ;
 9466  spinlock_t *__cil_tmp63 ;
 9467  struct raw_spinlock *__cil_tmp64 ;
 9468  struct tasklet_struct *__cil_tmp65 ;
 9469  unsigned long __cil_tmp66 ;
 9470  int __cil_tmp67 ;
 9471  wait_queue_head_t *__cil_tmp68 ;
 9472  int __cil_tmp69 ;
 9473  unsigned int __cil_tmp70 ;
 9474  unsigned int __cil_tmp71 ;
 9475  int __cil_tmp72 ;
 9476  long __cil_tmp73 ;
 9477  spinlock_t *__cil_tmp74 ;
 9478  struct raw_spinlock *__cil_tmp75 ;
 9479  struct at_state_t *__cil_tmp76 ;
 9480  struct bc_state *__cil_tmp77 ;
 9481  unsigned int __cil_tmp78 ;
 9482  unsigned int __cil_tmp79 ;
 9483  int __cil_tmp80 ;
 9484  long __cil_tmp81 ;
 9485  struct inbuf_t *__cil_tmp82 ;
 9486  unsigned int __cil_tmp83 ;
 9487  unsigned int __cil_tmp84 ;
 9488  int __cil_tmp85 ;
 9489  long __cil_tmp86 ;
 9490  spinlock_t *__cil_tmp87 ;
 9491  struct raw_spinlock *__cil_tmp88 ;
 9492  unsigned int __cil_tmp89 ;
 9493  unsigned int __cil_tmp90 ;
 9494  int __cil_tmp91 ;
 9495  long __cil_tmp92 ;
 9496  int __cil_tmp93 ;
 9497  unsigned int __cil_tmp94 ;
 9498  unsigned int __cil_tmp95 ;
 9499  int __cil_tmp96 ;
 9500  long __cil_tmp97 ;
 9501  struct gigaset_ops  const  *__cil_tmp98 ;
 9502  int (*__cil_tmp99)(struct cardstate * ) ;
 9503  int __cil_tmp100 ;
 9504  unsigned int __cil_tmp101 ;
 9505  unsigned int __cil_tmp102 ;
 9506  int __cil_tmp103 ;
 9507  long __cil_tmp104 ;
 9508  unsigned long __cil_tmp105 ;
 9509  struct bc_state *__cil_tmp106 ;
 9510  struct bc_state *__cil_tmp107 ;
 9511  struct bc_state *__cil_tmp108 ;
 9512  unsigned long __cil_tmp109 ;
 9513  unsigned long __cil_tmp110 ;
 9514  spinlock_t *__cil_tmp111 ;
 9515  spinlock_t *__cil_tmp112 ;
 9516  struct timer_list *__cil_tmp113 ;
 9517  unsigned long __cil_tmp114 ;
 9518  unsigned int __cil_tmp115 ;
 9519  unsigned int __cil_tmp116 ;
 9520  unsigned long __cil_tmp117 ;
 9521  struct timer_list *__cil_tmp118 ;
 9522  unsigned int __cil_tmp119 ;
 9523  unsigned int __cil_tmp120 ;
 9524  int __cil_tmp121 ;
 9525  long __cil_tmp122 ;
 9526  unsigned int __cil_tmp123 ;
 9527  unsigned int __cil_tmp124 ;
 9528  int __cil_tmp125 ;
 9529  long __cil_tmp126 ;
 9530
 9531  {
 9532  {
 9533#line 698
 9534  __cil_tmp35 = (unsigned int )gigaset_debuglevel;
 9535#line 698
 9536  __cil_tmp36 = __cil_tmp35 & 32768U;
 9537#line 698
 9538  __cil_tmp37 = __cil_tmp36 != 0U;
 9539#line 698
 9540  __cil_tmp38 = (long )__cil_tmp37;
 9541#line 698
 9542  tmp = __builtin_expect(__cil_tmp38, 0L);
 9543  }
 9544#line 698
 9545  if (tmp != 0L) {
 9546    {
 9547#line 698
 9548    printk("<7>gigaset: allocating cs\n");
 9549    }
 9550  } else {
 9551
 9552  }
 9553  {
 9554#line 699
 9555  cs = alloc_cs(drv);
 9556  }
 9557  {
 9558#line 700
 9559  __cil_tmp39 = (struct cardstate *)0;
 9560#line 700
 9561  __cil_tmp40 = (unsigned long )__cil_tmp39;
 9562#line 700
 9563  __cil_tmp41 = (unsigned long )cs;
 9564#line 700
 9565  if (__cil_tmp41 == __cil_tmp40) {
 9566    {
 9567#line 701
 9568    printk("<3>gigaset: maximum number of devices exceeded\n");
 9569    }
 9570#line 702
 9571    return ((struct cardstate *)0);
 9572  } else {
 9573
 9574  }
 9575  }
 9576  {
 9577#line 705
 9578  __cil_tmp42 = (unsigned int )gigaset_debuglevel;
 9579#line 705
 9580  __cil_tmp43 = __cil_tmp42 & 32768U;
 9581#line 705
 9582  __cil_tmp44 = __cil_tmp43 != 0U;
 9583#line 705
 9584  __cil_tmp45 = (long )__cil_tmp44;
 9585#line 705
 9586  tmp___0 = __builtin_expect(__cil_tmp45, 0L);
 9587  }
 9588#line 705
 9589  if (tmp___0 != 0L) {
 9590    {
 9591#line 705
 9592    __cil_tmp46 = channels + -1;
 9593#line 705
 9594    printk("<7>gigaset: allocating bcs[0..%d]\n", __cil_tmp46);
 9595    }
 9596  } else {
 9597
 9598  }
 9599  {
 9600#line 706
 9601  __cil_tmp47 = (unsigned long )channels;
 9602#line 706
 9603  __cil_tmp48 = __cil_tmp47 * 480UL;
 9604#line 706
 9605  tmp___1 = kmalloc(__cil_tmp48, 208U);
 9606#line 706
 9607  cs->bcs = (struct bc_state *)tmp___1;
 9608  }
 9609  {
 9610#line 707
 9611  __cil_tmp49 = (struct bc_state *)0;
 9612#line 707
 9613  __cil_tmp50 = (unsigned long )__cil_tmp49;
 9614#line 707
 9615  __cil_tmp51 = cs->bcs;
 9616#line 707
 9617  __cil_tmp52 = (unsigned long )__cil_tmp51;
 9618#line 707
 9619  if (__cil_tmp52 == __cil_tmp50) {
 9620    {
 9621#line 708
 9622    printk("<3>gigaset: out of memory\n");
 9623    }
 9624#line 709
 9625    goto error;
 9626  } else {
 9627
 9628  }
 9629  }
 9630  {
 9631#line 711
 9632  __cil_tmp53 = (unsigned int )gigaset_debuglevel;
 9633#line 711
 9634  __cil_tmp54 = __cil_tmp53 & 32768U;
 9635#line 711
 9636  __cil_tmp55 = __cil_tmp54 != 0U;
 9637#line 711
 9638  __cil_tmp56 = (long )__cil_tmp55;
 9639#line 711
 9640  tmp___2 = __builtin_expect(__cil_tmp56, 0L);
 9641  }
 9642#line 711
 9643  if (tmp___2 != 0L) {
 9644    {
 9645#line 711
 9646    printk("<7>gigaset: allocating inbuf\n");
 9647    }
 9648  } else {
 9649
 9650  }
 9651  {
 9652#line 712
 9653  tmp___3 = kmalloc(8216UL, 208U);
 9654#line 712
 9655  cs->inbuf = (struct inbuf_t *)tmp___3;
 9656  }
 9657  {
 9658#line 713
 9659  __cil_tmp57 = (struct inbuf_t *)0;
 9660#line 713
 9661  __cil_tmp58 = (unsigned long )__cil_tmp57;
 9662#line 713
 9663  __cil_tmp59 = cs->inbuf;
 9664#line 713
 9665  __cil_tmp60 = (unsigned long )__cil_tmp59;
 9666#line 713
 9667  if (__cil_tmp60 == __cil_tmp58) {
 9668    {
 9669#line 714
 9670    printk("<3>gigaset: out of memory\n");
 9671    }
 9672#line 715
 9673    goto error;
 9674  } else {
 9675
 9676  }
 9677  }
 9678  {
 9679#line 718
 9680  cs->cs_init = 0;
 9681#line 719
 9682  cs->channels = channels;
 9683#line 720
 9684  cs->onechannel = onechannel;
 9685#line 721
 9686  cs->ignoreframes = ignoreframes;
 9687#line 722
 9688  __cil_tmp61 = & cs->temp_at_states;
 9689#line 722
 9690  INIT_LIST_HEAD(__cil_tmp61);
 9691#line 723
 9692  cs->running = 0U;
 9693#line 724
 9694  __cil_tmp62 = & cs->timer;
 9695#line 724
 9696  init_timer_key(__cil_tmp62, "&cs->timer", & __key);
 9697#line 725
 9698  __cil_tmp63 = & cs->ev_lock;
 9699#line 725
 9700  spinlock_check(__cil_tmp63);
 9701#line 725
 9702  __cil_tmp64 = & cs->ev_lock.ldv_6060.rlock;
 9703#line 725
 9704  __raw_spin_lock_init(__cil_tmp64, "&(&cs->ev_lock)->rlock", & __key___0);
 9705#line 726
 9706  cs->ev_tail = 0U;
 9707#line 727
 9708  cs->ev_head = 0U;
 9709#line 729
 9710  __cil_tmp65 = & cs->event_tasklet;
 9711#line 729
 9712  __cil_tmp66 = (unsigned long )cs;
 9713#line 729
 9714  tasklet_init(__cil_tmp65, & gigaset_handle_event, __cil_tmp66);
 9715#line 731
 9716  cs->commands_pending = 0;
 9717#line 732
 9718  cs->cur_at_seq = 0;
 9719#line 733
 9720  cs->gotfwver = -1;
 9721#line 734
 9722  cs->open_count = 0U;
 9723#line 735
 9724  cs->dev = (struct device *)0;
 9725#line 736
 9726  cs->tty = (struct tty_struct *)0;
 9727#line 737
 9728  cs->tty_dev = (struct device *)0;
 9729#line 738
 9730  __cil_tmp67 = cidmode != 0;
 9731#line 738
 9732  cs->cidmode = (unsigned int )__cil_tmp67;
 9733#line 739
 9734  cs->tabnocid = (struct reply_t *)(& gigaset_tab_nocid);
 9735#line 740
 9736  cs->tabcid = (struct reply_t *)(& gigaset_tab_cid);
 9737#line 742
 9738  __cil_tmp68 = & cs->waitqueue;
 9739#line 742
 9740  __init_waitqueue_head(__cil_tmp68, & __key___1);
 9741#line 743
 9742  cs->waiting = 0;
 9743#line 745
 9744  cs->mode = 0;
 9745#line 746
 9746  cs->mstate = 0;
 9747#line 748
 9748  __cil_tmp69 = cs->cs_init;
 9749#line 748
 9750  cs->cs_init = __cil_tmp69 + 1;
 9751#line 750
 9752  __cil_tmp70 = (unsigned int )gigaset_debuglevel;
 9753#line 750
 9754  __cil_tmp71 = __cil_tmp70 & 32768U;
 9755#line 750
 9756  __cil_tmp72 = __cil_tmp71 != 0U;
 9757#line 750
 9758  __cil_tmp73 = (long )__cil_tmp72;
 9759#line 750
 9760  tmp___4 = __builtin_expect(__cil_tmp73, 0L);
 9761  }
 9762#line 750
 9763  if (tmp___4 != 0L) {
 9764    {
 9765#line 750
 9766    printk("<7>gigaset: setting up at_state\n");
 9767    }
 9768  } else {
 9769
 9770  }
 9771  {
 9772#line 751
 9773  __cil_tmp74 = & cs->lock;
 9774#line 751
 9775  spinlock_check(__cil_tmp74);
 9776#line 751
 9777  __cil_tmp75 = & cs->lock.ldv_6060.rlock;
 9778#line 751
 9779  __raw_spin_lock_init(__cil_tmp75, "&(&cs->lock)->rlock", & __key___2);
 9780#line 752
 9781  __cil_tmp76 = & cs->at_state;
 9782#line 752
 9783  __cil_tmp77 = (struct bc_state *)0;
 9784#line 752
 9785  gigaset_at_init(__cil_tmp76, __cil_tmp77, cs, 0);
 9786#line 753
 9787  cs->dle = 0;
 9788#line 754
 9789  cs->cbytes = 0U;
 9790#line 756
 9791  __cil_tmp78 = (unsigned int )gigaset_debuglevel;
 9792#line 756
 9793  __cil_tmp79 = __cil_tmp78 & 32768U;
 9794#line 756
 9795  __cil_tmp80 = __cil_tmp79 != 0U;
 9796#line 756
 9797  __cil_tmp81 = (long )__cil_tmp80;
 9798#line 756
 9799  tmp___5 = __builtin_expect(__cil_tmp81, 0L);
 9800  }
 9801#line 756
 9802  if (tmp___5 != 0L) {
 9803    {
 9804#line 756
 9805    printk("<7>gigaset: setting up inbuf\n");
 9806    }
 9807  } else {
 9808
 9809  }
 9810  {
 9811#line 757
 9812  __cil_tmp82 = cs->inbuf;
 9813#line 757
 9814  gigaset_inbuf_init(__cil_tmp82, cs);
 9815#line 759
 9816  cs->connected = 0U;
 9817#line 760
 9818  cs->isdn_up = 0U;
 9819#line 762
 9820  __cil_tmp83 = (unsigned int )gigaset_debuglevel;
 9821#line 762
 9822  __cil_tmp84 = __cil_tmp83 & 32768U;
 9823#line 762
 9824  __cil_tmp85 = __cil_tmp84 != 0U;
 9825#line 762
 9826  __cil_tmp86 = (long )__cil_tmp85;
 9827#line 762
 9828  tmp___6 = __builtin_expect(__cil_tmp86, 0L);
 9829  }
 9830#line 762
 9831  if (tmp___6 != 0L) {
 9832    {
 9833#line 762
 9834    printk("<7>gigaset: setting up cmdbuf\n");
 9835    }
 9836  } else {
 9837
 9838  }
 9839  {
 9840#line 763
 9841  tmp___7 = (struct cmdbuf_t *)0;
 9842#line 763
 9843  cs->lastcmdbuf = tmp___7;
 9844#line 763
 9845  cs->cmdbuf = tmp___7;
 9846#line 764
 9847  __cil_tmp87 = & cs->cmdlock;
 9848#line 764
 9849  spinlock_check(__cil_tmp87);
 9850#line 764
 9851  __cil_tmp88 = & cs->cmdlock.ldv_6060.rlock;
 9852#line 764
 9853  __raw_spin_lock_init(__cil_tmp88, "&(&cs->cmdlock)->rlock", & __key___3);
 9854#line 765
 9855  cs->curlen = 0U;
 9856#line 766
 9857  cs->cmdbytes = 0U;
 9858#line 768
 9859  __cil_tmp89 = (unsigned int )gigaset_debuglevel;
 9860#line 768
 9861  __cil_tmp90 = __cil_tmp89 & 32768U;
 9862#line 768
 9863  __cil_tmp91 = __cil_tmp90 != 0U;
 9864#line 768
 9865  __cil_tmp92 = (long )__cil_tmp91;
 9866#line 768
 9867  tmp___8 = __builtin_expect(__cil_tmp92, 0L);
 9868  }
 9869#line 768
 9870  if (tmp___8 != 0L) {
 9871    {
 9872#line 768
 9873    printk("<7>gigaset: setting up iif\n");
 9874    }
 9875  } else {
 9876
 9877  }
 9878  {
 9879#line 769
 9880  tmp___9 = gigaset_isdn_regdev(cs, modulename);
 9881  }
 9882#line 769
 9883  if (tmp___9 == 0) {
 9884    {
 9885#line 770
 9886    printk("<3>gigaset: error registering ISDN device\n");
 9887    }
 9888#line 771
 9889    goto error;
 9890  } else {
 9891
 9892  }
 9893  {
 9894#line 774
 9895  make_valid(cs, 2U);
 9896#line 775
 9897  __cil_tmp93 = cs->cs_init;
 9898#line 775
 9899  cs->cs_init = __cil_tmp93 + 1;
 9900#line 776
 9901  __cil_tmp94 = (unsigned int )gigaset_debuglevel;
 9902#line 776
 9903  __cil_tmp95 = __cil_tmp94 & 32768U;
 9904#line 776
 9905  __cil_tmp96 = __cil_tmp95 != 0U;
 9906#line 776
 9907  __cil_tmp97 = (long )__cil_tmp96;
 9908#line 776
 9909  tmp___10 = __builtin_expect(__cil_tmp97, 0L);
 9910  }
 9911#line 776
 9912  if (tmp___10 != 0L) {
 9913    {
 9914#line 776
 9915    printk("<7>gigaset: setting up hw\n");
 9916    }
 9917  } else {
 9918
 9919  }
 9920  {
 9921#line 777
 9922  __cil_tmp98 = cs->ops;
 9923#line 777
 9924  __cil_tmp99 = __cil_tmp98->initcshw;
 9925#line 777
 9926  tmp___11 = (*__cil_tmp99)(cs);
 9927  }
 9928#line 777
 9929  if (tmp___11 == 0) {
 9930#line 778
 9931    goto error;
 9932  } else {
 9933
 9934  }
 9935  {
 9936#line 780
 9937  __cil_tmp100 = cs->cs_init;
 9938#line 780
 9939  cs->cs_init = __cil_tmp100 + 1;
 9940#line 783
 9941  gigaset_if_init(cs);
 9942#line 786
 9943  gigaset_init_dev_sysfs(cs);
 9944#line 789
 9945  i = 0;
 9946  }
 9947#line 789
 9948  goto ldv_34973;
 9949  ldv_34972: 
 9950  {
 9951#line 790
 9952  __cil_tmp101 = (unsigned int )gigaset_debuglevel;
 9953#line 790
 9954  __cil_tmp102 = __cil_tmp101 & 32768U;
 9955#line 790
 9956  __cil_tmp103 = __cil_tmp102 != 0U;
 9957#line 790
 9958  __cil_tmp104 = (long )__cil_tmp103;
 9959#line 790
 9960  tmp___12 = __builtin_expect(__cil_tmp104, 0L);
 9961  }
 9962#line 790
 9963  if (tmp___12 != 0L) {
 9964    {
 9965#line 790
 9966    printk("<7>gigaset: setting up bcs[%d]\n", i);
 9967    }
 9968  } else {
 9969
 9970  }
 9971  {
 9972#line 791
 9973  __cil_tmp105 = (unsigned long )i;
 9974#line 791
 9975  __cil_tmp106 = cs->bcs;
 9976#line 791
 9977  __cil_tmp107 = __cil_tmp106 + __cil_tmp105;
 9978#line 791
 9979  tmp___13 = gigaset_initbcs(__cil_tmp107, cs, i);
 9980  }
 9981  {
 9982#line 791
 9983  __cil_tmp108 = (struct bc_state *)0;
 9984#line 791
 9985  __cil_tmp109 = (unsigned long )__cil_tmp108;
 9986#line 791
 9987  __cil_tmp110 = (unsigned long )tmp___13;
 9988#line 791
 9989  if (__cil_tmp110 == __cil_tmp109) {
 9990    {
 9991#line 792
 9992    printk("<3>gigaset: could not allocate channel %d data\n", i);
 9993    }
 9994#line 793
 9995    goto error;
 9996  } else {
 9997
 9998  }
 9999  }
10000#line 789
10001  i = i + 1;
10002  ldv_34973: ;
10003#line 789
10004  if (i < channels) {
10005#line 790
10006    goto ldv_34972;
10007  } else {
10008#line 792
10009    goto ldv_34974;
10010  }
10011  ldv_34974: 
10012  {
10013#line 797
10014  __cil_tmp111 = & cs->lock;
10015#line 797
10016  tmp___14 = spinlock_check(__cil_tmp111);
10017#line 797
10018  flags = _raw_spin_lock_irqsave(tmp___14);
10019#line 798
10020  cs->running = 1U;
10021#line 799
10022  __cil_tmp112 = & cs->lock;
10023#line 799
10024  spin_unlock_irqrestore(__cil_tmp112, flags);
10025#line 800
10026  __cil_tmp113 = & cs->timer;
10027#line 800
10028  __cil_tmp114 = (unsigned long )cs;
10029#line 800
10030  setup_timer_key(__cil_tmp113, "&cs->timer", & __key___4, & timer_tick, __cil_tmp114);
10031#line 801
10032  __cil_tmp115 = (unsigned int const   )100U;
10033#line 801
10034  __cil_tmp116 = (unsigned int )__cil_tmp115;
10035#line 801
10036  tmp___15 = msecs_to_jiffies(__cil_tmp116);
10037#line 801
10038  __cil_tmp117 = (unsigned long )jiffies;
10039#line 801
10040  cs->timer.expires = tmp___15 + __cil_tmp117;
10041#line 802
10042  __cil_tmp118 = & cs->timer;
10043#line 802
10044  add_timer(__cil_tmp118);
10045#line 804
10046  __cil_tmp119 = (unsigned int )gigaset_debuglevel;
10047#line 804
10048  __cil_tmp120 = __cil_tmp119 & 32768U;
10049#line 804
10050  __cil_tmp121 = __cil_tmp120 != 0U;
10051#line 804
10052  __cil_tmp122 = (long )__cil_tmp121;
10053#line 804
10054  tmp___16 = __builtin_expect(__cil_tmp122, 0L);
10055  }
10056#line 804
10057  if (tmp___16 != 0L) {
10058    {
10059#line 804
10060    printk("<7>gigaset: cs initialized\n");
10061    }
10062  } else {
10063
10064  }
10065#line 805
10066  return (cs);
10067  error: 
10068  {
10069#line 808
10070  __cil_tmp123 = (unsigned int )gigaset_debuglevel;
10071#line 808
10072  __cil_tmp124 = __cil_tmp123 & 32768U;
10073#line 808
10074  __cil_tmp125 = __cil_tmp124 != 0U;
10075#line 808
10076  __cil_tmp126 = (long )__cil_tmp125;
10077#line 808
10078  tmp___17 = __builtin_expect(__cil_tmp126, 0L);
10079  }
10080#line 808
10081  if (tmp___17 != 0L) {
10082    {
10083#line 808
10084    printk("<7>gigaset: failed\n");
10085    }
10086  } else {
10087
10088  }
10089  {
10090#line 809
10091  gigaset_freecs(cs);
10092  }
10093#line 810
10094  return ((struct cardstate *)0);
10095}
10096}
10097#line 815 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10098void gigaset_bcs_reinit(struct bc_state *bcs ) 
10099{ struct sk_buff *skb ;
10100  struct cardstate *cs ;
10101  unsigned long flags ;
10102  raw_spinlock_t *tmp ;
10103  struct sk_buff_head *__cil_tmp6 ;
10104  struct sk_buff *__cil_tmp7 ;
10105  unsigned long __cil_tmp8 ;
10106  unsigned long __cil_tmp9 ;
10107  spinlock_t *__cil_tmp10 ;
10108  struct at_state_t *__cil_tmp11 ;
10109  spinlock_t *__cil_tmp12 ;
10110  struct sk_buff *__cil_tmp13 ;
10111  struct gigaset_ops  const  *__cil_tmp14 ;
10112  void (*__cil_tmp15)(struct bc_state * ) ;
10113
10114  {
10115#line 818
10116  cs = bcs->cs;
10117#line 821
10118  goto ldv_34997;
10119  ldv_34996: 
10120  {
10121#line 822
10122  consume_skb(skb);
10123  }
10124  ldv_34997: 
10125  {
10126#line 821
10127  __cil_tmp6 = & bcs->squeue;
10128#line 821
10129  skb = skb_dequeue(__cil_tmp6);
10130  }
10131  {
10132#line 821
10133  __cil_tmp7 = (struct sk_buff *)0;
10134#line 821
10135  __cil_tmp8 = (unsigned long )__cil_tmp7;
10136#line 821
10137  __cil_tmp9 = (unsigned long )skb;
10138#line 821
10139  if (__cil_tmp9 != __cil_tmp8) {
10140#line 822
10141    goto ldv_34996;
10142  } else {
10143#line 824
10144    goto ldv_34998;
10145  }
10146  }
10147  ldv_34998: 
10148  {
10149#line 824
10150  __cil_tmp10 = & cs->lock;
10151#line 824
10152  tmp = spinlock_check(__cil_tmp10);
10153#line 824
10154  flags = _raw_spin_lock_irqsave(tmp);
10155#line 825
10156  __cil_tmp11 = & bcs->at_state;
10157#line 825
10158  clear_at_state(__cil_tmp11);
10159#line 826
10160  bcs->at_state.ConState = 0U;
10161#line 827
10162  bcs->at_state.timer_active = 0;
10163#line 828
10164  bcs->at_state.timer_expires = 0UL;
10165#line 829
10166  bcs->at_state.cid = -1;
10167#line 830
10168  __cil_tmp12 = & cs->lock;
10169#line 830
10170  spin_unlock_irqrestore(__cil_tmp12, flags);
10171#line 832
10172  bcs->inputstate = 0;
10173#line 835
10174  bcs->emptycount = 0;
10175#line 838
10176  bcs->rx_fcs = (__u16 )65535U;
10177#line 839
10178  bcs->chstate = 0U;
10179#line 841
10180  bcs->ignore = cs->ignoreframes;
10181#line 842
10182  __cil_tmp13 = bcs->rx_skb;
10183#line 842
10184  consume_skb(__cil_tmp13);
10185#line 843
10186  bcs->rx_skb = (struct sk_buff *)0;
10187#line 845
10188  __cil_tmp14 = cs->ops;
10189#line 845
10190  __cil_tmp15 = __cil_tmp14->reinitbcshw;
10191#line 845
10192  (*__cil_tmp15)(bcs);
10193  }
10194#line 846
10195  return;
10196}
10197}
10198#line 848 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10199static void cleanup_cs(struct cardstate *cs ) 
10200{ struct cmdbuf_t *cb ;
10201  struct cmdbuf_t *tcb ;
10202  int i ;
10203  unsigned long flags ;
10204  raw_spinlock_t *tmp ;
10205  struct cmdbuf_t *tmp___0 ;
10206  struct bc_state *tmp___1 ;
10207  spinlock_t *__cil_tmp9 ;
10208  struct at_state_t *__cil_tmp10 ;
10209  struct at_state_t *__cil_tmp11 ;
10210  struct at_state_t *__cil_tmp12 ;
10211  struct bc_state *__cil_tmp13 ;
10212  struct inbuf_t *__cil_tmp14 ;
10213  struct inbuf_t *__cil_tmp15 ;
10214  struct inbuf_t *__cil_tmp16 ;
10215  void const   *__cil_tmp17 ;
10216  struct cmdbuf_t *__cil_tmp18 ;
10217  unsigned long __cil_tmp19 ;
10218  unsigned long __cil_tmp20 ;
10219  spinlock_t *__cil_tmp21 ;
10220  unsigned long __cil_tmp22 ;
10221  struct bc_state *__cil_tmp23 ;
10222  struct bc_state *__cil_tmp24 ;
10223  unsigned long __cil_tmp25 ;
10224  struct bc_state *__cil_tmp26 ;
10225  struct bc_state *__cil_tmp27 ;
10226  struct bc_state *__cil_tmp28 ;
10227  unsigned long __cil_tmp29 ;
10228  unsigned long __cil_tmp30 ;
10229  int __cil_tmp31 ;
10230  int __cil_tmp32 ;
10231  wait_queue_head_t *__cil_tmp33 ;
10232  void *__cil_tmp34 ;
10233
10234  {
10235  {
10236#line 854
10237  __cil_tmp9 = & cs->lock;
10238#line 854
10239  tmp = spinlock_check(__cil_tmp9);
10240#line 854
10241  flags = _raw_spin_lock_irqsave(tmp);
10242#line 856
10243  cs->mode = 0;
10244#line 857
10245  cs->mstate = 0;
10246#line 859
10247  __cil_tmp10 = & cs->at_state;
10248#line 859
10249  clear_at_state(__cil_tmp10);
10250#line 860
10251  dealloc_at_states(cs);
10252#line 861
10253  __cil_tmp11 = & cs->at_state;
10254#line 861
10255  free_strings(__cil_tmp11);
10256#line 862
10257  __cil_tmp12 = & cs->at_state;
10258#line 862
10259  __cil_tmp13 = (struct bc_state *)0;
10260#line 862
10261  gigaset_at_init(__cil_tmp12, __cil_tmp13, cs, 0);
10262#line 864
10263  __cil_tmp14 = cs->inbuf;
10264#line 864
10265  __cil_tmp14->inputstate = 1;
10266#line 865
10267  __cil_tmp15 = cs->inbuf;
10268#line 865
10269  __cil_tmp15->head = 0;
10270#line 866
10271  __cil_tmp16 = cs->inbuf;
10272#line 866
10273  __cil_tmp16->tail = 0;
10274#line 868
10275  cb = cs->cmdbuf;
10276  }
10277#line 869
10278  goto ldv_35013;
10279  ldv_35012: 
10280  {
10281#line 870
10282  tcb = cb;
10283#line 871
10284  cb = cb->next;
10285#line 872
10286  __cil_tmp17 = (void const   *)tcb;
10287#line 872
10288  kfree(__cil_tmp17);
10289  }
10290  ldv_35013: ;
10291  {
10292#line 869
10293  __cil_tmp18 = (struct cmdbuf_t *)0;
10294#line 869
10295  __cil_tmp19 = (unsigned long )__cil_tmp18;
10296#line 869
10297  __cil_tmp20 = (unsigned long )cb;
10298#line 869
10299  if (__cil_tmp20 != __cil_tmp19) {
10300#line 870
10301    goto ldv_35012;
10302  } else {
10303#line 872
10304    goto ldv_35014;
10305  }
10306  }
10307  ldv_35014: 
10308  {
10309#line 874
10310  tmp___0 = (struct cmdbuf_t *)0;
10311#line 874
10312  cs->lastcmdbuf = tmp___0;
10313#line 874
10314  cs->cmdbuf = tmp___0;
10315#line 875
10316  cs->curlen = 0U;
10317#line 876
10318  cs->cmdbytes = 0U;
10319#line 877
10320  cs->gotfwver = -1;
10321#line 878
10322  cs->dle = 0;
10323#line 879
10324  cs->cur_at_seq = 0;
10325#line 880
10326  cs->commands_pending = 0;
10327#line 881
10328  cs->cbytes = 0U;
10329#line 883
10330  __cil_tmp21 = & cs->lock;
10331#line 883
10332  spin_unlock_irqrestore(__cil_tmp21, flags);
10333#line 885
10334  i = 0;
10335  }
10336#line 885
10337  goto ldv_35016;
10338  ldv_35015: 
10339  {
10340#line 886
10341  __cil_tmp22 = (unsigned long )i;
10342#line 886
10343  __cil_tmp23 = cs->bcs;
10344#line 886
10345  __cil_tmp24 = __cil_tmp23 + __cil_tmp22;
10346#line 886
10347  gigaset_freebcs(__cil_tmp24);
10348#line 887
10349  __cil_tmp25 = (unsigned long )i;
10350#line 887
10351  __cil_tmp26 = cs->bcs;
10352#line 887
10353  __cil_tmp27 = __cil_tmp26 + __cil_tmp25;
10354#line 887
10355  tmp___1 = gigaset_initbcs(__cil_tmp27, cs, i);
10356  }
10357  {
10358#line 887
10359  __cil_tmp28 = (struct bc_state *)0;
10360#line 887
10361  __cil_tmp29 = (unsigned long )__cil_tmp28;
10362#line 887
10363  __cil_tmp30 = (unsigned long )tmp___1;
10364#line 887
10365  if (__cil_tmp30 == __cil_tmp29) {
10366    {
10367#line 888
10368    printk("<3>gigaset: could not allocate channel %d data\n", i);
10369    }
10370  } else {
10371
10372  }
10373  }
10374#line 885
10375  i = i + 1;
10376  ldv_35016: ;
10377  {
10378#line 885
10379  __cil_tmp31 = cs->channels;
10380#line 885
10381  if (__cil_tmp31 > i) {
10382#line 886
10383    goto ldv_35015;
10384  } else {
10385#line 888
10386    goto ldv_35017;
10387  }
10388  }
10389  ldv_35017: ;
10390  {
10391#line 891
10392  __cil_tmp32 = cs->waiting;
10393#line 891
10394  if (__cil_tmp32 != 0) {
10395    {
10396#line 892
10397    cs->cmd_result = -19;
10398#line 893
10399    cs->waiting = 0;
10400#line 894
10401    __cil_tmp33 = & cs->waitqueue;
10402#line 894
10403    __cil_tmp34 = (void *)0;
10404#line 894
10405    __wake_up(__cil_tmp33, 1U, 1, __cil_tmp34);
10406    }
10407  } else {
10408
10409  }
10410  }
10411#line 896
10412  return;
10413}
10414}
10415#line 910 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10416int gigaset_start(struct cardstate *cs ) 
10417{ unsigned long flags ;
10418  int tmp ;
10419  raw_spinlock_t *tmp___0 ;
10420  struct event_t *tmp___1 ;
10421  wait_queue_t __wait ;
10422  struct task_struct *tmp___2 ;
10423  struct mutex *__cil_tmp8 ;
10424  spinlock_t *__cil_tmp9 ;
10425  spinlock_t *__cil_tmp10 ;
10426  int __cil_tmp11 ;
10427  struct gigaset_ops  const  *__cil_tmp12 ;
10428  int (*__cil_tmp13)(struct cardstate * , unsigned int  , unsigned int  ) ;
10429  struct gigaset_ops  const  *__cil_tmp14 ;
10430  int (*__cil_tmp15)(struct cardstate * , unsigned int  ) ;
10431  struct gigaset_ops  const  *__cil_tmp16 ;
10432  int (*__cil_tmp17)(struct cardstate * , unsigned int  ) ;
10433  struct at_state_t *__cil_tmp18 ;
10434  void *__cil_tmp19 ;
10435  void *__cil_tmp20 ;
10436  struct event_t *__cil_tmp21 ;
10437  unsigned long __cil_tmp22 ;
10438  unsigned long __cil_tmp23 ;
10439  int __cil_tmp24 ;
10440  wait_queue_head_t *__cil_tmp25 ;
10441  int __cil_tmp26 ;
10442  wait_queue_head_t *__cil_tmp27 ;
10443  struct mutex *__cil_tmp28 ;
10444  struct mutex *__cil_tmp29 ;
10445
10446  {
10447  {
10448#line 914
10449  __cil_tmp8 = & cs->mutex;
10450#line 914
10451  tmp = mutex_lock_interruptible_nested(__cil_tmp8, 0U);
10452  }
10453#line 914
10454  if (tmp != 0) {
10455#line 915
10456    return (0);
10457  } else {
10458
10459  }
10460  {
10461#line 917
10462  __cil_tmp9 = & cs->lock;
10463#line 917
10464  tmp___0 = spinlock_check(__cil_tmp9);
10465#line 917
10466  flags = _raw_spin_lock_irqsave(tmp___0);
10467#line 918
10468  cs->connected = 1U;
10469#line 919
10470  __cil_tmp10 = & cs->lock;
10471#line 919
10472  spin_unlock_irqrestore(__cil_tmp10, flags);
10473  }
10474  {
10475#line 921
10476  __cil_tmp11 = cs->mstate;
10477#line 921
10478  if (__cil_tmp11 != 2) {
10479    {
10480#line 922
10481    __cil_tmp12 = cs->ops;
10482#line 922
10483    __cil_tmp13 = __cil_tmp12->set_modem_ctrl;
10484#line 922
10485    (*__cil_tmp13)(cs, 0U, 6U);
10486#line 923
10487    __cil_tmp14 = cs->ops;
10488#line 923
10489    __cil_tmp15 = __cil_tmp14->baud_rate;
10490#line 923
10491    (*__cil_tmp15)(cs, 4098U);
10492#line 924
10493    __cil_tmp16 = cs->ops;
10494#line 924
10495    __cil_tmp17 = __cil_tmp16->set_line_ctrl;
10496#line 924
10497    (*__cil_tmp17)(cs, 48U);
10498#line 925
10499    cs->control_state = 6U;
10500    }
10501  } else {
10502
10503  }
10504  }
10505  {
10506#line 928
10507  cs->waiting = 1;
10508#line 930
10509  __cil_tmp18 = & cs->at_state;
10510#line 930
10511  __cil_tmp19 = (void *)0;
10512#line 930
10513  __cil_tmp20 = (void *)0;
10514#line 930
10515  tmp___1 = gigaset_add_event(cs, __cil_tmp18, -110, __cil_tmp19, 0, __cil_tmp20);
10516  }
10517  {
10518#line 930
10519  __cil_tmp21 = (struct event_t *)0;
10520#line 930
10521  __cil_tmp22 = (unsigned long )__cil_tmp21;
10522#line 930
10523  __cil_tmp23 = (unsigned long )tmp___1;
10524#line 930
10525  if (__cil_tmp23 == __cil_tmp22) {
10526#line 931
10527    cs->waiting = 0;
10528#line 932
10529    goto error;
10530  } else {
10531
10532  }
10533  }
10534  {
10535#line 934
10536  gigaset_schedule_event(cs);
10537  }
10538  {
10539#line 936
10540  __cil_tmp24 = cs->waiting;
10541#line 936
10542  if (__cil_tmp24 == 0) {
10543#line 936
10544    goto ldv_35026;
10545  } else {
10546
10547  }
10548  }
10549  {
10550#line 936
10551  tmp___2 = get_current();
10552#line 936
10553  __wait.flags = 0U;
10554#line 936
10555  __wait.private = (void *)tmp___2;
10556#line 936
10557  __wait.func = & autoremove_wake_function;
10558#line 936
10559  __wait.task_list.next = & __wait.task_list;
10560#line 936
10561  __wait.task_list.prev = & __wait.task_list;
10562  }
10563  ldv_35029: 
10564  {
10565#line 936
10566  __cil_tmp25 = & cs->waitqueue;
10567#line 936
10568  prepare_to_wait(__cil_tmp25, & __wait, 2);
10569  }
10570  {
10571#line 936
10572  __cil_tmp26 = cs->waiting;
10573#line 936
10574  if (__cil_tmp26 == 0) {
10575#line 936
10576    goto ldv_35028;
10577  } else {
10578
10579  }
10580  }
10581  {
10582#line 936
10583  schedule();
10584  }
10585#line 936
10586  goto ldv_35029;
10587  ldv_35028: 
10588  {
10589#line 936
10590  __cil_tmp27 = & cs->waitqueue;
10591#line 936
10592  finish_wait(__cil_tmp27, & __wait);
10593  }
10594  ldv_35026: 
10595  {
10596#line 938
10597  __cil_tmp28 = & cs->mutex;
10598#line 938
10599  mutex_unlock(__cil_tmp28);
10600  }
10601#line 939
10602  return (1);
10603  error: 
10604  {
10605#line 942
10606  __cil_tmp29 = & cs->mutex;
10607#line 942
10608  mutex_unlock(__cil_tmp29);
10609  }
10610#line 943
10611  return (0);
10612}
10613}
10614#line 957 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10615int gigaset_shutdown(struct cardstate *cs ) 
10616{ struct event_t *tmp ;
10617  wait_queue_t __wait ;
10618  struct task_struct *tmp___0 ;
10619  struct mutex *__cil_tmp5 ;
10620  unsigned int __cil_tmp6 ;
10621  unsigned int __cil_tmp7 ;
10622  struct mutex *__cil_tmp8 ;
10623  struct at_state_t *__cil_tmp9 ;
10624  void *__cil_tmp10 ;
10625  void *__cil_tmp11 ;
10626  struct event_t *__cil_tmp12 ;
10627  unsigned long __cil_tmp13 ;
10628  unsigned long __cil_tmp14 ;
10629  int __cil_tmp15 ;
10630  wait_queue_head_t *__cil_tmp16 ;
10631  int __cil_tmp17 ;
10632  wait_queue_head_t *__cil_tmp18 ;
10633  struct mutex *__cil_tmp19 ;
10634
10635  {
10636  {
10637#line 959
10638  __cil_tmp5 = & cs->mutex;
10639#line 959
10640  mutex_lock_nested(__cil_tmp5, 0U);
10641  }
10642  {
10643#line 961
10644  __cil_tmp6 = cs->flags;
10645#line 961
10646  __cil_tmp7 = __cil_tmp6 & 1U;
10647#line 961
10648  if (__cil_tmp7 == 0U) {
10649    {
10650#line 962
10651    __cil_tmp8 = & cs->mutex;
10652#line 962
10653    mutex_unlock(__cil_tmp8);
10654    }
10655#line 963
10656    return (-1);
10657  } else {
10658
10659  }
10660  }
10661  {
10662#line 966
10663  cs->waiting = 1;
10664#line 968
10665  __cil_tmp9 = & cs->at_state;
10666#line 968
10667  __cil_tmp10 = (void *)0;
10668#line 968
10669  __cil_tmp11 = (void *)0;
10670#line 968
10671  tmp = gigaset_add_event(cs, __cil_tmp9, -108, __cil_tmp10, 0, __cil_tmp11);
10672  }
10673  {
10674#line 968
10675  __cil_tmp12 = (struct event_t *)0;
10676#line 968
10677  __cil_tmp13 = (unsigned long )__cil_tmp12;
10678#line 968
10679  __cil_tmp14 = (unsigned long )tmp;
10680#line 968
10681  if (__cil_tmp14 == __cil_tmp13) {
10682#line 969
10683    goto exit;
10684  } else {
10685
10686  }
10687  }
10688  {
10689#line 970
10690  gigaset_schedule_event(cs);
10691  }
10692  {
10693#line 972
10694  __cil_tmp15 = cs->waiting;
10695#line 972
10696  if (__cil_tmp15 == 0) {
10697#line 972
10698    goto ldv_35040;
10699  } else {
10700
10701  }
10702  }
10703  {
10704#line 972
10705  tmp___0 = get_current();
10706#line 972
10707  __wait.flags = 0U;
10708#line 972
10709  __wait.private = (void *)tmp___0;
10710#line 972
10711  __wait.func = & autoremove_wake_function;
10712#line 972
10713  __wait.task_list.next = & __wait.task_list;
10714#line 972
10715  __wait.task_list.prev = & __wait.task_list;
10716  }
10717  ldv_35043: 
10718  {
10719#line 972
10720  __cil_tmp16 = & cs->waitqueue;
10721#line 972
10722  prepare_to_wait(__cil_tmp16, & __wait, 2);
10723  }
10724  {
10725#line 972
10726  __cil_tmp17 = cs->waiting;
10727#line 972
10728  if (__cil_tmp17 == 0) {
10729#line 972
10730    goto ldv_35042;
10731  } else {
10732
10733  }
10734  }
10735  {
10736#line 972
10737  schedule();
10738  }
10739#line 972
10740  goto ldv_35043;
10741  ldv_35042: 
10742  {
10743#line 972
10744  __cil_tmp18 = & cs->waitqueue;
10745#line 972
10746  finish_wait(__cil_tmp18, & __wait);
10747  }
10748  ldv_35040: 
10749  {
10750#line 974
10751  cleanup_cs(cs);
10752  }
10753  exit: 
10754  {
10755#line 977
10756  __cil_tmp19 = & cs->mutex;
10757#line 977
10758  mutex_unlock(__cil_tmp19);
10759  }
10760#line 978
10761  return (0);
10762}
10763}
10764#line 989 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10765void gigaset_stop(struct cardstate *cs ) 
10766{ struct event_t *tmp ;
10767  wait_queue_t __wait ;
10768  struct task_struct *tmp___0 ;
10769  struct mutex *__cil_tmp5 ;
10770  struct at_state_t *__cil_tmp6 ;
10771  void *__cil_tmp7 ;
10772  void *__cil_tmp8 ;
10773  struct event_t *__cil_tmp9 ;
10774  unsigned long __cil_tmp10 ;
10775  unsigned long __cil_tmp11 ;
10776  int __cil_tmp12 ;
10777  wait_queue_head_t *__cil_tmp13 ;
10778  int __cil_tmp14 ;
10779  wait_queue_head_t *__cil_tmp15 ;
10780  struct mutex *__cil_tmp16 ;
10781
10782  {
10783  {
10784#line 991
10785  __cil_tmp5 = & cs->mutex;
10786#line 991
10787  mutex_lock_nested(__cil_tmp5, 0U);
10788#line 993
10789  cs->waiting = 1;
10790#line 995
10791  __cil_tmp6 = & cs->at_state;
10792#line 995
10793  __cil_tmp7 = (void *)0;
10794#line 995
10795  __cil_tmp8 = (void *)0;
10796#line 995
10797  tmp = gigaset_add_event(cs, __cil_tmp6, -111, __cil_tmp7, 0, __cil_tmp8);
10798  }
10799  {
10800#line 995
10801  __cil_tmp9 = (struct event_t *)0;
10802#line 995
10803  __cil_tmp10 = (unsigned long )__cil_tmp9;
10804#line 995
10805  __cil_tmp11 = (unsigned long )tmp;
10806#line 995
10807  if (__cil_tmp11 == __cil_tmp10) {
10808#line 996
10809    goto exit;
10810  } else {
10811
10812  }
10813  }
10814  {
10815#line 997
10816  gigaset_schedule_event(cs);
10817  }
10818  {
10819#line 999
10820  __cil_tmp12 = cs->waiting;
10821#line 999
10822  if (__cil_tmp12 == 0) {
10823#line 999
10824    goto ldv_35054;
10825  } else {
10826
10827  }
10828  }
10829  {
10830#line 999
10831  tmp___0 = get_current();
10832#line 999
10833  __wait.flags = 0U;
10834#line 999
10835  __wait.private = (void *)tmp___0;
10836#line 999
10837  __wait.func = & autoremove_wake_function;
10838#line 999
10839  __wait.task_list.next = & __wait.task_list;
10840#line 999
10841  __wait.task_list.prev = & __wait.task_list;
10842  }
10843  ldv_35057: 
10844  {
10845#line 999
10846  __cil_tmp13 = & cs->waitqueue;
10847#line 999
10848  prepare_to_wait(__cil_tmp13, & __wait, 2);
10849  }
10850  {
10851#line 999
10852  __cil_tmp14 = cs->waiting;
10853#line 999
10854  if (__cil_tmp14 == 0) {
10855#line 999
10856    goto ldv_35056;
10857  } else {
10858
10859  }
10860  }
10861  {
10862#line 999
10863  schedule();
10864  }
10865#line 999
10866  goto ldv_35057;
10867  ldv_35056: 
10868  {
10869#line 999
10870  __cil_tmp15 = & cs->waitqueue;
10871#line 999
10872  finish_wait(__cil_tmp15, & __wait);
10873  }
10874  ldv_35054: 
10875  {
10876#line 1001
10877  cleanup_cs(cs);
10878  }
10879  exit: 
10880  {
10881#line 1004
10882  __cil_tmp16 = & cs->mutex;
10883#line 1004
10884  mutex_unlock(__cil_tmp16);
10885  }
10886#line 1005
10887  return;
10888}
10889}
10890#line 1008 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10891static struct list_head drivers  =    {& drivers, & drivers};
10892#line 1009 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10893static spinlock_t driver_lock  =    {{{{0U}, 3735899821U, 4294967295U, (void *)1152921504606846975UL, {(struct lock_class_key *)0,
10894                                                                      {(struct lock_class *)0,
10895                                                                       (struct lock_class *)0},
10896                                                                      "driver_lock",
10897                                                                      0, 0UL}}}};
10898#line 1011 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
10899struct cardstate *gigaset_get_cs_by_id(int id ) 
10900{ unsigned long flags ;
10901  struct cardstate *ret ;
10902  struct cardstate *cs ;
10903  struct gigaset_driver *drv ;
10904  unsigned int i ;
10905  raw_spinlock_t *tmp ;
10906  struct list_head  const  *__mptr ;
10907  struct list_head  const  *__mptr___0 ;
10908  spinlock_t *__cil_tmp10 ;
10909  unsigned long __cil_tmp11 ;
10910  struct cardstate *__cil_tmp12 ;
10911  unsigned int __cil_tmp13 ;
10912  unsigned int __cil_tmp14 ;
10913  int __cil_tmp15 ;
10914  unsigned int __cil_tmp16 ;
10915  spinlock_t *__cil_tmp17 ;
10916  struct cardstate *__cil_tmp18 ;
10917  unsigned long __cil_tmp19 ;
10918  unsigned long __cil_tmp20 ;
10919  struct list_head *__cil_tmp21 ;
10920  unsigned long __cil_tmp22 ;
10921  struct list_head *__cil_tmp23 ;
10922  unsigned long __cil_tmp24 ;
10923
10924  {
10925  {
10926#line 1014
10927  ret = (struct cardstate *)0;
10928#line 1019
10929  tmp = spinlock_check(& driver_lock);
10930#line 1019
10931  flags = _raw_spin_lock_irqsave(tmp);
10932#line 1020
10933  __mptr = (struct list_head  const  *)drivers.next;
10934#line 1020
10935  drv = (struct gigaset_driver *)__mptr;
10936  }
10937#line 1020
10938  goto ldv_35087;
10939  ldv_35086: 
10940  {
10941#line 1021
10942  __cil_tmp10 = & drv->lock;
10943#line 1021
10944  spin_lock(__cil_tmp10);
10945#line 1022
10946  i = 0U;
10947  }
10948#line 1022
10949  goto ldv_35084;
10950  ldv_35083: 
10951#line 1023
10952  __cil_tmp11 = (unsigned long )i;
10953#line 1023
10954  __cil_tmp12 = drv->cs;
10955#line 1023
10956  cs = __cil_tmp12 + __cil_tmp11;
10957  {
10958#line 1024
10959  __cil_tmp13 = cs->flags;
10960#line 1024
10961  __cil_tmp14 = __cil_tmp13 & 2U;
10962#line 1024
10963  if (__cil_tmp14 != 0U) {
10964    {
10965#line 1024
10966    __cil_tmp15 = cs->myid;
10967#line 1024
10968    if (__cil_tmp15 == id) {
10969#line 1025
10970      ret = cs;
10971#line 1026
10972      goto ldv_35082;
10973    } else {
10974
10975    }
10976    }
10977  } else {
10978
10979  }
10980  }
10981#line 1022
10982  i = i + 1U;
10983  ldv_35084: ;
10984  {
10985#line 1022
10986  __cil_tmp16 = drv->minors;
10987#line 1022
10988  if (__cil_tmp16 > i) {
10989#line 1023
10990    goto ldv_35083;
10991  } else {
10992#line 1025
10993    goto ldv_35082;
10994  }
10995  }
10996  ldv_35082: 
10997  {
10998#line 1029
10999  __cil_tmp17 = & drv->lock;
11000#line 1029
11001  spin_unlock(__cil_tmp17);
11002  }
11003  {
11004#line 1030
11005  __cil_tmp18 = (struct cardstate *)0;
11006#line 1030
11007  __cil_tmp19 = (unsigned long )__cil_tmp18;
11008#line 1030
11009  __cil_tmp20 = (unsigned long )ret;
11010#line 1030
11011  if (__cil_tmp20 != __cil_tmp19) {
11012#line 1031
11013    goto ldv_35085;
11014  } else {
11015
11016  }
11017  }
11018#line 1020
11019  __cil_tmp21 = drv->list.next;
11020#line 1020
11021  __mptr___0 = (struct list_head  const  *)__cil_tmp21;
11022#line 1020
11023  drv = (struct gigaset_driver *)__mptr___0;
11024  ldv_35087: ;
11025  {
11026#line 1020
11027  __cil_tmp22 = (unsigned long )(& drivers);
11028#line 1020
11029  __cil_tmp23 = & drv->list;
11030#line 1020
11031  __cil_tmp24 = (unsigned long )__cil_tmp23;
11032#line 1020
11033  if (__cil_tmp24 != __cil_tmp22) {
11034#line 1021
11035    goto ldv_35086;
11036  } else {
11037#line 1023
11038    goto ldv_35085;
11039  }
11040  }
11041  ldv_35085: 
11042  {
11043#line 1033
11044  spin_unlock_irqrestore(& driver_lock, flags);
11045  }
11046#line 1034
11047  return (ret);
11048}
11049}
11050#line 1037 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11051static struct cardstate *gigaset_get_cs_by_minor(unsigned int minor ) 
11052{ unsigned long flags ;
11053  struct cardstate *ret ;
11054  struct gigaset_driver *drv ;
11055  unsigned int index ;
11056  raw_spinlock_t *tmp ;
11057  struct list_head  const  *__mptr ;
11058  struct list_head  const  *__mptr___0 ;
11059  unsigned int __cil_tmp9 ;
11060  unsigned int __cil_tmp10 ;
11061  unsigned int __cil_tmp11 ;
11062  unsigned int __cil_tmp12 ;
11063  unsigned int __cil_tmp13 ;
11064  spinlock_t *__cil_tmp14 ;
11065  unsigned long __cil_tmp15 ;
11066  struct cardstate *__cil_tmp16 ;
11067  struct cardstate *__cil_tmp17 ;
11068  unsigned int __cil_tmp18 ;
11069  int __cil_tmp19 ;
11070  unsigned long __cil_tmp20 ;
11071  struct cardstate *__cil_tmp21 ;
11072  spinlock_t *__cil_tmp22 ;
11073  struct cardstate *__cil_tmp23 ;
11074  unsigned long __cil_tmp24 ;
11075  unsigned long __cil_tmp25 ;
11076  struct list_head *__cil_tmp26 ;
11077  unsigned long __cil_tmp27 ;
11078  struct list_head *__cil_tmp28 ;
11079  unsigned long __cil_tmp29 ;
11080
11081  {
11082  {
11083#line 1040
11084  ret = (struct cardstate *)0;
11085#line 1044
11086  tmp = spinlock_check(& driver_lock);
11087#line 1044
11088  flags = _raw_spin_lock_irqsave(tmp);
11089#line 1045
11090  __mptr = (struct list_head  const  *)drivers.next;
11091#line 1045
11092  drv = (struct gigaset_driver *)__mptr;
11093  }
11094#line 1045
11095  goto ldv_35105;
11096  ldv_35104: ;
11097  {
11098#line 1046
11099  __cil_tmp9 = drv->minor;
11100#line 1046
11101  if (__cil_tmp9 > minor) {
11102#line 1047
11103    goto ldv_35102;
11104  } else {
11105    {
11106#line 1046
11107    __cil_tmp10 = drv->minors;
11108#line 1046
11109    __cil_tmp11 = drv->minor;
11110#line 1046
11111    __cil_tmp12 = __cil_tmp11 + __cil_tmp10;
11112#line 1046
11113    if (__cil_tmp12 <= minor) {
11114#line 1047
11115      goto ldv_35102;
11116    } else {
11117
11118    }
11119    }
11120  }
11121  }
11122  {
11123#line 1048
11124  __cil_tmp13 = drv->minor;
11125#line 1048
11126  index = minor - __cil_tmp13;
11127#line 1049
11128  __cil_tmp14 = & drv->lock;
11129#line 1049
11130  spin_lock(__cil_tmp14);
11131  }
11132  {
11133#line 1050
11134  __cil_tmp15 = (unsigned long )index;
11135#line 1050
11136  __cil_tmp16 = drv->cs;
11137#line 1050
11138  __cil_tmp17 = __cil_tmp16 + __cil_tmp15;
11139#line 1050
11140  __cil_tmp18 = __cil_tmp17->flags;
11141#line 1050
11142  __cil_tmp19 = (int )__cil_tmp18;
11143#line 1050
11144  if (__cil_tmp19 & 1) {
11145#line 1051
11146    __cil_tmp20 = (unsigned long )index;
11147#line 1051
11148    __cil_tmp21 = drv->cs;
11149#line 1051
11150    ret = __cil_tmp21 + __cil_tmp20;
11151  } else {
11152
11153  }
11154  }
11155  {
11156#line 1052
11157  __cil_tmp22 = & drv->lock;
11158#line 1052
11159  spin_unlock(__cil_tmp22);
11160  }
11161  {
11162#line 1053
11163  __cil_tmp23 = (struct cardstate *)0;
11164#line 1053
11165  __cil_tmp24 = (unsigned long )__cil_tmp23;
11166#line 1053
11167  __cil_tmp25 = (unsigned long )ret;
11168#line 1053
11169  if (__cil_tmp25 != __cil_tmp24) {
11170#line 1054
11171    goto ldv_35103;
11172  } else {
11173
11174  }
11175  }
11176  ldv_35102: 
11177#line 1045
11178  __cil_tmp26 = drv->list.next;
11179#line 1045
11180  __mptr___0 = (struct list_head  const  *)__cil_tmp26;
11181#line 1045
11182  drv = (struct gigaset_driver *)__mptr___0;
11183  ldv_35105: ;
11184  {
11185#line 1045
11186  __cil_tmp27 = (unsigned long )(& drivers);
11187#line 1045
11188  __cil_tmp28 = & drv->list;
11189#line 1045
11190  __cil_tmp29 = (unsigned long )__cil_tmp28;
11191#line 1045
11192  if (__cil_tmp29 != __cil_tmp27) {
11193#line 1046
11194    goto ldv_35104;
11195  } else {
11196#line 1048
11197    goto ldv_35103;
11198  }
11199  }
11200  ldv_35103: 
11201  {
11202#line 1056
11203  spin_unlock_irqrestore(& driver_lock, flags);
11204  }
11205#line 1057
11206  return (ret);
11207}
11208}
11209#line 1060 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11210struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty ) 
11211{ struct cardstate *tmp ;
11212  int __cil_tmp3 ;
11213  struct tty_driver *__cil_tmp4 ;
11214  int __cil_tmp5 ;
11215  int __cil_tmp6 ;
11216  struct tty_driver *__cil_tmp7 ;
11217  int __cil_tmp8 ;
11218  int __cil_tmp9 ;
11219  int __cil_tmp10 ;
11220  unsigned int __cil_tmp11 ;
11221
11222  {
11223  {
11224#line 1062
11225  __cil_tmp3 = tty->index;
11226#line 1062
11227  if (__cil_tmp3 < 0) {
11228#line 1063
11229    return ((struct cardstate *)0);
11230  } else {
11231    {
11232#line 1062
11233    __cil_tmp4 = tty->driver;
11234#line 1062
11235    __cil_tmp5 = __cil_tmp4->num;
11236#line 1062
11237    __cil_tmp6 = tty->index;
11238#line 1062
11239    if (__cil_tmp6 >= __cil_tmp5) {
11240#line 1063
11241      return ((struct cardstate *)0);
11242    } else {
11243
11244    }
11245    }
11246  }
11247  }
11248  {
11249#line 1064
11250  __cil_tmp7 = tty->driver;
11251#line 1064
11252  __cil_tmp8 = __cil_tmp7->minor_start;
11253#line 1064
11254  __cil_tmp9 = tty->index;
11255#line 1064
11256  __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
11257#line 1064
11258  __cil_tmp11 = (unsigned int )__cil_tmp10;
11259#line 1064
11260  tmp = gigaset_get_cs_by_minor(__cil_tmp11);
11261  }
11262#line 1064
11263  return (tmp);
11264}
11265}
11266#line 1075 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11267void gigaset_freedriver(struct gigaset_driver *drv ) 
11268{ unsigned long flags ;
11269  raw_spinlock_t *tmp ;
11270  struct list_head *__cil_tmp4 ;
11271  struct cardstate *__cil_tmp5 ;
11272  void const   *__cil_tmp6 ;
11273  void const   *__cil_tmp7 ;
11274
11275  {
11276  {
11277#line 1079
11278  tmp = spinlock_check(& driver_lock);
11279#line 1079
11280  flags = _raw_spin_lock_irqsave(tmp);
11281#line 1080
11282  __cil_tmp4 = & drv->list;
11283#line 1080
11284  list_del(__cil_tmp4);
11285#line 1081
11286  spin_unlock_irqrestore(& driver_lock, flags);
11287#line 1083
11288  gigaset_if_freedriver(drv);
11289#line 1085
11290  __cil_tmp5 = drv->cs;
11291#line 1085
11292  __cil_tmp6 = (void const   *)__cil_tmp5;
11293#line 1085
11294  kfree(__cil_tmp6);
11295#line 1086
11296  __cil_tmp7 = (void const   *)drv;
11297#line 1086
11298  kfree(__cil_tmp7);
11299  }
11300#line 1087
11301  return;
11302}
11303}
11304#line 1102 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11305struct gigaset_driver *gigaset_initdriver(unsigned int minor , unsigned int minors ,
11306                                          char const   *procname , char const   *devname ,
11307                                          struct gigaset_ops  const  *ops , struct module *owner ) 
11308{ struct gigaset_driver *drv ;
11309  unsigned long flags ;
11310  unsigned int i ;
11311  void *tmp ;
11312  struct lock_class_key __key ;
11313  void *tmp___0 ;
11314  struct lock_class_key __key___0 ;
11315  raw_spinlock_t *tmp___1 ;
11316  struct gigaset_driver *__cil_tmp15 ;
11317  unsigned long __cil_tmp16 ;
11318  unsigned long __cil_tmp17 ;
11319  spinlock_t *__cil_tmp18 ;
11320  struct raw_spinlock *__cil_tmp19 ;
11321  struct list_head *__cil_tmp20 ;
11322  unsigned long __cil_tmp21 ;
11323  unsigned long __cil_tmp22 ;
11324  struct cardstate *__cil_tmp23 ;
11325  unsigned long __cil_tmp24 ;
11326  struct cardstate *__cil_tmp25 ;
11327  unsigned long __cil_tmp26 ;
11328  unsigned long __cil_tmp27 ;
11329  struct cardstate *__cil_tmp28 ;
11330  struct cardstate *__cil_tmp29 ;
11331  unsigned long __cil_tmp30 ;
11332  struct cardstate *__cil_tmp31 ;
11333  struct cardstate *__cil_tmp32 ;
11334  unsigned long __cil_tmp33 ;
11335  struct cardstate *__cil_tmp34 ;
11336  struct cardstate *__cil_tmp35 ;
11337  unsigned long __cil_tmp36 ;
11338  struct cardstate *__cil_tmp37 ;
11339  struct cardstate *__cil_tmp38 ;
11340  unsigned long __cil_tmp39 ;
11341  struct cardstate *__cil_tmp40 ;
11342  struct cardstate *__cil_tmp41 ;
11343  struct mutex *__cil_tmp42 ;
11344  struct list_head *__cil_tmp43 ;
11345  struct cardstate *__cil_tmp44 ;
11346  void const   *__cil_tmp45 ;
11347  void const   *__cil_tmp46 ;
11348
11349  {
11350  {
11351#line 1112
11352  tmp = kmalloc(144UL, 208U);
11353#line 1112
11354  drv = (struct gigaset_driver *)tmp;
11355  }
11356  {
11357#line 1113
11358  __cil_tmp15 = (struct gigaset_driver *)0;
11359#line 1113
11360  __cil_tmp16 = (unsigned long )__cil_tmp15;
11361#line 1113
11362  __cil_tmp17 = (unsigned long )drv;
11363#line 1113
11364  if (__cil_tmp17 == __cil_tmp16) {
11365#line 1114
11366    return ((struct gigaset_driver *)0);
11367  } else {
11368
11369  }
11370  }
11371  {
11372#line 1116
11373  drv->have_tty = 0U;
11374#line 1117
11375  drv->minor = minor;
11376#line 1118
11377  drv->minors = minors;
11378#line 1119
11379  __cil_tmp18 = & drv->lock;
11380#line 1119
11381  spinlock_check(__cil_tmp18);
11382#line 1119
11383  __cil_tmp19 = & drv->lock.ldv_6060.rlock;
11384#line 1119
11385  __raw_spin_lock_init(__cil_tmp19, "&(&drv->lock)->rlock", & __key);
11386#line 1120
11387  drv->blocked = 0;
11388#line 1121
11389  drv->ops = ops;
11390#line 1122
11391  drv->owner = owner;
11392#line 1123
11393  __cil_tmp20 = & drv->list;
11394#line 1123
11395  INIT_LIST_HEAD(__cil_tmp20);
11396#line 1125
11397  __cil_tmp21 = (unsigned long )minors;
11398#line 1125
11399  __cil_tmp22 = __cil_tmp21 * 4216UL;
11400#line 1125
11401  tmp___0 = kmalloc(__cil_tmp22, 208U);
11402#line 1125
11403  drv->cs = (struct cardstate *)tmp___0;
11404  }
11405  {
11406#line 1126
11407  __cil_tmp23 = (struct cardstate *)0;
11408#line 1126
11409  __cil_tmp24 = (unsigned long )__cil_tmp23;
11410#line 1126
11411  __cil_tmp25 = drv->cs;
11412#line 1126
11413  __cil_tmp26 = (unsigned long )__cil_tmp25;
11414#line 1126
11415  if (__cil_tmp26 == __cil_tmp24) {
11416#line 1127
11417    goto error;
11418  } else {
11419
11420  }
11421  }
11422#line 1129
11423  i = 0U;
11424#line 1129
11425  goto ldv_35137;
11426  ldv_35136: 
11427  {
11428#line 1130
11429  __cil_tmp27 = (unsigned long )i;
11430#line 1130
11431  __cil_tmp28 = drv->cs;
11432#line 1130
11433  __cil_tmp29 = __cil_tmp28 + __cil_tmp27;
11434#line 1130
11435  __cil_tmp29->flags = 0U;
11436#line 1131
11437  __cil_tmp30 = (unsigned long )i;
11438#line 1131
11439  __cil_tmp31 = drv->cs;
11440#line 1131
11441  __cil_tmp32 = __cil_tmp31 + __cil_tmp30;
11442#line 1131
11443  __cil_tmp32->driver = drv;
11444#line 1132
11445  __cil_tmp33 = (unsigned long )i;
11446#line 1132
11447  __cil_tmp34 = drv->cs;
11448#line 1132
11449  __cil_tmp35 = __cil_tmp34 + __cil_tmp33;
11450#line 1132
11451  __cil_tmp35->ops = drv->ops;
11452#line 1133
11453  __cil_tmp36 = (unsigned long )i;
11454#line 1133
11455  __cil_tmp37 = drv->cs;
11456#line 1133
11457  __cil_tmp38 = __cil_tmp37 + __cil_tmp36;
11458#line 1133
11459  __cil_tmp38->minor_index = i;
11460#line 1134
11461  __cil_tmp39 = (unsigned long )i;
11462#line 1134
11463  __cil_tmp40 = drv->cs;
11464#line 1134
11465  __cil_tmp41 = __cil_tmp40 + __cil_tmp39;
11466#line 1134
11467  __cil_tmp42 = & __cil_tmp41->mutex;
11468#line 1134
11469  __mutex_init(__cil_tmp42, "&drv->cs[i].mutex", & __key___0);
11470#line 1129
11471  i = i + 1U;
11472  }
11473  ldv_35137: ;
11474#line 1129
11475  if (i < minors) {
11476#line 1130
11477    goto ldv_35136;
11478  } else {
11479#line 1132
11480    goto ldv_35138;
11481  }
11482  ldv_35138: 
11483  {
11484#line 1137
11485  gigaset_if_initdriver(drv, procname, devname);
11486#line 1139
11487  tmp___1 = spinlock_check(& driver_lock);
11488#line 1139
11489  flags = _raw_spin_lock_irqsave(tmp___1);
11490#line 1140
11491  __cil_tmp43 = & drv->list;
11492#line 1140
11493  list_add(__cil_tmp43, & drivers);
11494#line 1141
11495  spin_unlock_irqrestore(& driver_lock, flags);
11496  }
11497#line 1143
11498  return (drv);
11499  error: 
11500  {
11501#line 1146
11502  __cil_tmp44 = drv->cs;
11503#line 1146
11504  __cil_tmp45 = (void const   *)__cil_tmp44;
11505#line 1146
11506  kfree(__cil_tmp45);
11507#line 1147
11508  __cil_tmp46 = (void const   *)drv;
11509#line 1147
11510  kfree(__cil_tmp46);
11511  }
11512#line 1148
11513  return ((struct gigaset_driver *)0);
11514}
11515}
11516#line 1159 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11517void gigaset_blockdriver(struct gigaset_driver *drv ) 
11518{ 
11519
11520  {
11521#line 1161
11522  drv->blocked = 1;
11523#line 1162
11524  return;
11525}
11526}
11527#line 1208
11528void ldv_check_final_state(void) ;
11529#line 1214
11530extern void ldv_initialize(void) ;
11531#line 1217
11532extern int nondet_int(void) ;
11533#line 1220 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11534int LDV_IN_INTERRUPT  ;
11535#line 5 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/kernel-rules/files/engine-blast-assert.h"
11536void ldv_blast_assert(void) 
11537{ 
11538
11539  {
11540  ERROR: ;
11541#line 6
11542  goto ERROR;
11543}
11544}
11545#line 6 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/kernel-rules/files/engine-blast.h"
11546extern int ldv_undefined_int(void) ;
11547#line 1321 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11548int ldv_module_refcounter  =    1;
11549#line 1324 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11550void ldv_module_get(struct module *module ) 
11551{ struct module *__cil_tmp2 ;
11552  unsigned long __cil_tmp3 ;
11553  unsigned long __cil_tmp4 ;
11554
11555  {
11556  {
11557#line 1327
11558  __cil_tmp2 = (struct module *)0;
11559#line 1327
11560  __cil_tmp3 = (unsigned long )__cil_tmp2;
11561#line 1327
11562  __cil_tmp4 = (unsigned long )module;
11563#line 1327
11564  if (__cil_tmp4 != __cil_tmp3) {
11565#line 1329
11566    ldv_module_refcounter = ldv_module_refcounter + 1;
11567  } else {
11568
11569  }
11570  }
11571#line 1330
11572  return;
11573}
11574}
11575#line 1334 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11576int ldv_try_module_get(struct module *module ) 
11577{ int module_get_succeeded ;
11578  struct module *__cil_tmp3 ;
11579  unsigned long __cil_tmp4 ;
11580  unsigned long __cil_tmp5 ;
11581
11582  {
11583  {
11584#line 1339
11585  __cil_tmp3 = (struct module *)0;
11586#line 1339
11587  __cil_tmp4 = (unsigned long )__cil_tmp3;
11588#line 1339
11589  __cil_tmp5 = (unsigned long )module;
11590#line 1339
11591  if (__cil_tmp5 != __cil_tmp4) {
11592    {
11593#line 1342
11594    module_get_succeeded = ldv_undefined_int();
11595    }
11596#line 1344
11597    if (module_get_succeeded == 1) {
11598#line 1346
11599      ldv_module_refcounter = ldv_module_refcounter + 1;
11600#line 1348
11601      return (1);
11602    } else {
11603#line 1353
11604      return (0);
11605    }
11606  } else {
11607
11608  }
11609  }
11610#line 1355
11611  return (0);
11612}
11613}
11614#line 1359 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11615void ldv_module_put(struct module *module ) 
11616{ struct module *__cil_tmp2 ;
11617  unsigned long __cil_tmp3 ;
11618  unsigned long __cil_tmp4 ;
11619
11620  {
11621  {
11622#line 1362
11623  __cil_tmp2 = (struct module *)0;
11624#line 1362
11625  __cil_tmp3 = (unsigned long )__cil_tmp2;
11626#line 1362
11627  __cil_tmp4 = (unsigned long )module;
11628#line 1362
11629  if (__cil_tmp4 != __cil_tmp3) {
11630#line 1364
11631    if (ldv_module_refcounter <= 1) {
11632      {
11633#line 1364
11634      ldv_blast_assert();
11635      }
11636    } else {
11637
11638    }
11639#line 1366
11640    ldv_module_refcounter = ldv_module_refcounter - 1;
11641  } else {
11642
11643  }
11644  }
11645#line 1368
11646  return;
11647}
11648}
11649#line 1371 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11650void ldv_module_put_and_exit(void) 
11651{ struct module *__cil_tmp1 ;
11652
11653  {
11654  {
11655#line 1373
11656  __cil_tmp1 = (struct module *)1;
11657#line 1373
11658  ldv_module_put(__cil_tmp1);
11659  }
11660  LDV_STOP: ;
11661#line 1375
11662  goto LDV_STOP;
11663}
11664}
11665#line 1379 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11666unsigned int ldv_module_refcount(void) 
11667{ int __cil_tmp1 ;
11668
11669  {
11670  {
11671#line 1382
11672  __cil_tmp1 = ldv_module_refcounter + -1;
11673#line 1382
11674  return ((unsigned int )__cil_tmp1);
11675  }
11676}
11677}
11678#line 1386 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11679void ldv_check_final_state(void) 
11680{ 
11681
11682  {
11683#line 1389
11684  if (ldv_module_refcounter != 1) {
11685    {
11686#line 1389
11687    ldv_blast_assert();
11688    }
11689  } else {
11690
11691  }
11692#line 1392
11693  return;
11694}
11695}
11696#line 1392 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11697__inline static int ldv_try_module_get_1(struct module *module ) 
11698{ int tmp ;
11699
11700  {
11701  {
11702#line 1397
11703  tmp = ldv_try_module_get(module);
11704  }
11705#line 1397
11706  return (tmp);
11707}
11708}
11709#line 1408 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11710void ldv_module_put_3(struct module *ldv_func_arg1 ) 
11711{ 
11712
11713  {
11714  {
11715#line 1413
11716  ldv_module_put(ldv_func_arg1);
11717  }
11718#line 1414
11719  return;
11720}
11721}
11722#line 1416 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/common.c.p"
11723void ldv_module_put_4(struct module *ldv_func_arg1 ) 
11724{ 
11725
11726  {
11727  {
11728#line 1421
11729  ldv_module_put(ldv_func_arg1);
11730  }
11731#line 1422
11732  return;
11733}
11734}
11735#line 309 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/bitops.h"
11736__inline static int constant_test_bit(unsigned int nr , unsigned long const volatile   *addr ) 
11737{ int __cil_tmp3 ;
11738  int __cil_tmp4 ;
11739  unsigned int __cil_tmp5 ;
11740  unsigned long __cil_tmp6 ;
11741  unsigned long const volatile   *__cil_tmp7 ;
11742  unsigned long volatile   __cil_tmp8 ;
11743  unsigned long __cil_tmp9 ;
11744  unsigned long __cil_tmp10 ;
11745  int __cil_tmp11 ;
11746
11747  {
11748  {
11749#line 311
11750  __cil_tmp3 = (int )nr;
11751#line 311
11752  __cil_tmp4 = __cil_tmp3 & 63;
11753#line 311
11754  __cil_tmp5 = nr / 64U;
11755#line 311
11756  __cil_tmp6 = (unsigned long )__cil_tmp5;
11757#line 311
11758  __cil_tmp7 = addr + __cil_tmp6;
11759#line 311
11760  __cil_tmp8 = *__cil_tmp7;
11761#line 311
11762  __cil_tmp9 = (unsigned long )__cil_tmp8;
11763#line 311
11764  __cil_tmp10 = __cil_tmp9 >> __cil_tmp4;
11765#line 311
11766  __cil_tmp11 = (int )__cil_tmp10;
11767#line 311
11768  return (__cil_tmp11 & 1);
11769  }
11770}
11771}
11772#line 64 "include/asm-generic/bug.h"
11773extern void warn_slowpath_fmt(char const   * , int  , char const   *  , ...) ;
11774#line 170 "include/linux/kernel.h"
11775extern void might_fault(void) ;
11776#line 34 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/string_64.h"
11777extern void *__memcpy(void * , void const   * , size_t  ) ;
11778#line 32 "include/linux/err.h"
11779__inline static long IS_ERR(void const   *ptr ) 
11780{ long tmp ;
11781  unsigned long __cil_tmp3 ;
11782  int __cil_tmp4 ;
11783  long __cil_tmp5 ;
11784
11785  {
11786  {
11787#line 34
11788  __cil_tmp3 = (unsigned long )ptr;
11789#line 34
11790  __cil_tmp4 = __cil_tmp3 > 1152921504606842880UL;
11791#line 34
11792  __cil_tmp5 = (long )__cil_tmp4;
11793#line 34
11794  tmp = __builtin_expect(__cil_tmp5, 0L);
11795  }
11796#line 34
11797  return (tmp);
11798}
11799}
11800#line 93 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/atomic.h"
11801__inline static void atomic_inc(atomic_t *v ) 
11802{ 
11803
11804  {
11805#line 95
11806  __asm__  volatile   (".section .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.previous\n671:\n\tlock; incl %0": "+m" (v->counter));
11807#line 97
11808  return;
11809}
11810}
11811#line 99 "include/linux/module.h"
11812extern struct module __this_module ;
11813#line 543
11814void ldv_module_put_2(struct module *ldv_func_arg1 ) ;
11815#line 40 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/uaccess_64.h"
11816extern unsigned long _copy_to_user(void * , void const   * , unsigned int  ) ;
11817#line 42
11818extern unsigned long _copy_from_user(void * , void const   * , unsigned int  ) ;
11819#line 46 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/uaccess_64.h"
11820__inline static unsigned long copy_from_user(void *to , void const   *from , unsigned long n ) 
11821{ int sz ;
11822  unsigned long tmp ;
11823  int __ret_warn_on ;
11824  long tmp___0 ;
11825  long tmp___1 ;
11826  long tmp___2 ;
11827  void const   *__cil_tmp10 ;
11828  void *__cil_tmp11 ;
11829  int __cil_tmp12 ;
11830  long __cil_tmp13 ;
11831  unsigned int __cil_tmp14 ;
11832  unsigned long __cil_tmp15 ;
11833  int __cil_tmp16 ;
11834  long __cil_tmp17 ;
11835  unsigned int __cil_tmp18 ;
11836  int __cil_tmp19 ;
11837  long __cil_tmp20 ;
11838  int __cil_tmp21 ;
11839  int __cil_tmp22 ;
11840  int __cil_tmp23 ;
11841  long __cil_tmp24 ;
11842
11843  {
11844  {
11845#line 50
11846  __cil_tmp10 = (void const   *)to;
11847#line 50
11848  __cil_tmp11 = (void *)__cil_tmp10;
11849#line 50
11850  tmp = __builtin_object_size(__cil_tmp11, 0);
11851#line 50
11852  sz = (int )tmp;
11853#line 52
11854  might_fault();
11855#line 53
11856  __cil_tmp12 = sz == -1;
11857#line 53
11858  __cil_tmp13 = (long )__cil_tmp12;
11859#line 53
11860  tmp___1 = __builtin_expect(__cil_tmp13, 1L);
11861  }
11862#line 53
11863  if (tmp___1 != 0L) {
11864    {
11865#line 54
11866    __cil_tmp14 = (unsigned int )n;
11867#line 54
11868    n = _copy_from_user(to, from, __cil_tmp14);
11869    }
11870  } else {
11871    {
11872#line 53
11873    __cil_tmp15 = (unsigned long )sz;
11874#line 53
11875    __cil_tmp16 = __cil_tmp15 >= n;
11876#line 53
11877    __cil_tmp17 = (long )__cil_tmp16;
11878#line 53
11879    tmp___2 = __builtin_expect(__cil_tmp17, 1L);
11880    }
11881#line 53
11882    if (tmp___2 != 0L) {
11883      {
11884#line 54
11885      __cil_tmp18 = (unsigned int )n;
11886#line 54
11887      n = _copy_from_user(to, from, __cil_tmp18);
11888      }
11889    } else {
11890      {
11891#line 57
11892      __ret_warn_on = 1;
11893#line 57
11894      __cil_tmp19 = __ret_warn_on != 0;
11895#line 57
11896      __cil_tmp20 = (long )__cil_tmp19;
11897#line 57
11898      tmp___0 = __builtin_expect(__cil_tmp20, 0L);
11899      }
11900#line 57
11901      if (tmp___0 != 0L) {
11902        {
11903#line 57
11904        __cil_tmp21 = (int const   )57;
11905#line 57
11906        __cil_tmp22 = (int )__cil_tmp21;
11907#line 57
11908        warn_slowpath_fmt("/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/uaccess_64.h",
11909                          __cil_tmp22, "Buffer overflow detected!\n");
11910        }
11911      } else {
11912
11913      }
11914      {
11915#line 57
11916      __cil_tmp23 = __ret_warn_on != 0;
11917#line 57
11918      __cil_tmp24 = (long )__cil_tmp23;
11919#line 57
11920      __builtin_expect(__cil_tmp24, 0L);
11921      }
11922    }
11923  }
11924#line 59
11925  return (n);
11926}
11927}
11928#line 63 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/uaccess_64.h"
11929__inline static int copy_to_user(void *dst , void const   *src , unsigned int size ) 
11930{ unsigned long tmp ;
11931
11932  {
11933  {
11934#line 65
11935  might_fault();
11936#line 67
11937  tmp = _copy_to_user(dst, src, size);
11938  }
11939#line 67
11940  return ((int )tmp);
11941}
11942}
11943#line 706 "include/linux/device.h"
11944extern int dev_set_drvdata(struct device * , void * ) ;
11945#line 799
11946extern int dev_warn(struct device  const  * , char const   *  , ...) ;
11947#line 530 "include/linux/interrupt.h"
11948__inline static void tasklet_unlock_wait(struct tasklet_struct *t ) 
11949{ int tmp ;
11950  unsigned long *__cil_tmp3 ;
11951  unsigned long const volatile   *__cil_tmp4 ;
11952
11953  {
11954#line 532
11955  goto ldv_32308;
11956  ldv_32307: 
11957#line 532
11958  __asm__  volatile   ("": : : "memory");
11959  ldv_32308: 
11960  {
11961#line 532
11962  __cil_tmp3 = & t->state;
11963#line 532
11964  __cil_tmp4 = (unsigned long const volatile   *)__cil_tmp3;
11965#line 532
11966  tmp = constant_test_bit(1U, __cil_tmp4);
11967  }
11968#line 532
11969  if (tmp != 0) {
11970#line 533
11971    goto ldv_32307;
11972  } else {
11973#line 535
11974    goto ldv_32309;
11975  }
11976  ldv_32309: ;
11977#line 537
11978  return;
11979}
11980}
11981#line 571 "include/linux/interrupt.h"
11982__inline static void tasklet_disable_nosync(struct tasklet_struct *t ) 
11983{ atomic_t *__cil_tmp2 ;
11984
11985  {
11986  {
11987#line 573
11988  __cil_tmp2 = & t->count;
11989#line 573
11990  atomic_inc(__cil_tmp2);
11991#line 574
11992  __asm__  volatile   ("": : : "memory");
11993  }
11994#line 575
11995  return;
11996}
11997}
11998#line 577 "include/linux/interrupt.h"
11999__inline static void tasklet_disable(struct tasklet_struct *t ) 
12000{ 
12001
12002  {
12003  {
12004#line 579
12005  tasklet_disable_nosync(t);
12006#line 580
12007  tasklet_unlock_wait(t);
12008#line 581
12009  __asm__  volatile   ("mfence": : : "memory");
12010  }
12011#line 582
12012  return;
12013}
12014}
12015#line 325 "include/linux/tty_driver.h"
12016extern struct tty_driver *alloc_tty_driver(int  ) ;
12017#line 326
12018extern void put_tty_driver(struct tty_driver * ) ;
12019#line 327
12020extern void tty_set_operations(struct tty_driver * , struct tty_operations  const  * ) ;
12021#line 377 "include/linux/tty.h"
12022extern struct ktermios tty_std_termios ;
12023#line 408
12024extern int tty_register_driver(struct tty_driver * ) ;
12025#line 409
12026extern int tty_unregister_driver(struct tty_driver * ) ;
12027#line 410
12028extern struct device *tty_register_device(struct tty_driver * , unsigned int  , struct device * ) ;
12029#line 412
12030extern void tty_unregister_device(struct tty_driver * , unsigned int  ) ;
12031#line 439
12032extern void tty_flip_buffer_push(struct tty_struct * ) ;
12033#line 461
12034extern void tty_wakeup(struct tty_struct * ) ;
12035#line 828 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
12036void gigaset_if_receive(struct cardstate *cs , unsigned char *buffer , size_t len ) ;
12037#line 6 "include/linux/tty_flip.h"
12038extern int tty_insert_flip_string_fixed_flag(struct tty_struct * , unsigned char const   * ,
12039                                             char  , size_t  ) ;
12040#line 23 "include/linux/tty_flip.h"
12041__inline static int tty_insert_flip_string(struct tty_struct *tty , unsigned char const   *chars ,
12042                                           size_t size ) 
12043{ int tmp ;
12044
12045  {
12046  {
12047#line 25
12048  tmp = tty_insert_flip_string_fixed_flag(tty, chars, (char)0, size);
12049  }
12050#line 25
12051  return (tmp);
12052}
12053}
12054#line 28 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
12055static int if_lock(struct cardstate *cs , int *arg ) 
12056{ int cmd ;
12057  long tmp ;
12058  struct event_t *tmp___0 ;
12059  wait_queue_t __wait ;
12060  struct task_struct *tmp___1 ;
12061  unsigned int __cil_tmp8 ;
12062  unsigned int __cil_tmp9 ;
12063  int __cil_tmp10 ;
12064  long __cil_tmp11 ;
12065  unsigned int __cil_tmp12 ;
12066  int __cil_tmp13 ;
12067  int __cil_tmp14 ;
12068  unsigned int __cil_tmp15 ;
12069  struct gigaset_ops  const  *__cil_tmp16 ;
12070  int (*__cil_tmp17)(struct cardstate * , unsigned int  , unsigned int  ) ;
12071  struct gigaset_ops  const  *__cil_tmp18 ;
12072  int (*__cil_tmp19)(struct cardstate * , unsigned int  ) ;
12073  struct gigaset_ops  const  *__cil_tmp20 ;
12074  int (*__cil_tmp21)(struct cardstate * , unsigned int  ) ;
12075  struct at_state_t *__cil_tmp22 ;
12076  void *__cil_tmp23 ;
12077  void *__cil_tmp24 ;
12078  struct event_t *__cil_tmp25 ;
12079  unsigned long __cil_tmp26 ;
12080  unsigned long __cil_tmp27 ;
12081  int __cil_tmp28 ;
12082  wait_queue_head_t *__cil_tmp29 ;
12083  int __cil_tmp30 ;
12084  wait_queue_head_t *__cil_tmp31 ;
12085  int __cil_tmp32 ;
12086
12087  {
12088  {
12089#line 30
12090  cmd = *arg;
12091#line 32
12092  __cil_tmp8 = (unsigned int )gigaset_debuglevel;
12093#line 32
12094  __cil_tmp9 = __cil_tmp8 & 524288U;
12095#line 32
12096  __cil_tmp10 = __cil_tmp9 != 0U;
12097#line 32
12098  __cil_tmp11 = (long )__cil_tmp10;
12099#line 32
12100  tmp = __builtin_expect(__cil_tmp11, 0L);
12101  }
12102#line 32
12103  if (tmp != 0L) {
12104    {
12105#line 32
12106    __cil_tmp12 = cs->minor_index;
12107#line 32
12108    printk("<7>gigaset: %u: if_lock (%d)\n", __cil_tmp12, cmd);
12109    }
12110  } else {
12111
12112  }
12113#line 34
12114  if (cmd > 1) {
12115#line 35
12116    return (-22);
12117  } else {
12118
12119  }
12120#line 37
12121  if (cmd < 0) {
12122#line 38
12123    __cil_tmp13 = cs->mstate;
12124#line 38
12125    *arg = __cil_tmp13 == 2;
12126#line 39
12127    return (0);
12128  } else {
12129
12130  }
12131#line 42
12132  if (cmd == 0) {
12133    {
12134#line 42
12135    __cil_tmp14 = cs->mstate;
12136#line 42
12137    if (__cil_tmp14 == 2) {
12138      {
12139#line 42
12140      __cil_tmp15 = cs->connected;
12141#line 42
12142      if (__cil_tmp15 != 0U) {
12143        {
12144#line 43
12145        __cil_tmp16 = cs->ops;
12146#line 43
12147        __cil_tmp17 = __cil_tmp16->set_modem_ctrl;
12148#line 43
12149        (*__cil_tmp17)(cs, 0U, 6U);
12150#line 44
12151        __cil_tmp18 = cs->ops;
12152#line 44
12153        __cil_tmp19 = __cil_tmp18->baud_rate;
12154#line 44
12155        (*__cil_tmp19)(cs, 4098U);
12156#line 45
12157        __cil_tmp20 = cs->ops;
12158#line 45
12159        __cil_tmp21 = __cil_tmp20->set_line_ctrl;
12160#line 45
12161        (*__cil_tmp21)(cs, 48U);
12162#line 46
12163        cs->control_state = 6U;
12164        }
12165      } else {
12166
12167      }
12168      }
12169    } else {
12170
12171    }
12172    }
12173  } else {
12174
12175  }
12176  {
12177#line 49
12178  cs->waiting = 1;
12179#line 50
12180  __cil_tmp22 = & cs->at_state;
12181#line 50
12182  __cil_tmp23 = (void *)0;
12183#line 50
12184  __cil_tmp24 = (void *)0;
12185#line 50
12186  tmp___0 = gigaset_add_event(cs, __cil_tmp22, -112, __cil_tmp23, cmd, __cil_tmp24);
12187  }
12188  {
12189#line 50
12190  __cil_tmp25 = (struct event_t *)0;
12191#line 50
12192  __cil_tmp26 = (unsigned long )__cil_tmp25;
12193#line 50
12194  __cil_tmp27 = (unsigned long )tmp___0;
12195#line 50
12196  if (__cil_tmp27 == __cil_tmp26) {
12197#line 52
12198    cs->waiting = 0;
12199#line 53
12200    return (-12);
12201  } else {
12202
12203  }
12204  }
12205  {
12206#line 55
12207  gigaset_schedule_event(cs);
12208  }
12209  {
12210#line 57
12211  __cil_tmp28 = cs->waiting;
12212#line 57
12213  if (__cil_tmp28 == 0) {
12214#line 57
12215    goto ldv_34662;
12216  } else {
12217
12218  }
12219  }
12220  {
12221#line 57
12222  tmp___1 = get_current();
12223#line 57
12224  __wait.flags = 0U;
12225#line 57
12226  __wait.private = (void *)tmp___1;
12227#line 57
12228  __wait.func = & autoremove_wake_function;
12229#line 57
12230  __wait.task_list.next = & __wait.task_list;
12231#line 57
12232  __wait.task_list.prev = & __wait.task_list;
12233  }
12234  ldv_34665: 
12235  {
12236#line 57
12237  __cil_tmp29 = & cs->waitqueue;
12238#line 57
12239  prepare_to_wait(__cil_tmp29, & __wait, 2);
12240  }
12241  {
12242#line 57
12243  __cil_tmp30 = cs->waiting;
12244#line 57
12245  if (__cil_tmp30 == 0) {
12246#line 57
12247    goto ldv_34664;
12248  } else {
12249
12250  }
12251  }
12252  {
12253#line 57
12254  schedule();
12255  }
12256#line 57
12257  goto ldv_34665;
12258  ldv_34664: 
12259  {
12260#line 57
12261  __cil_tmp31 = & cs->waitqueue;
12262#line 57
12263  finish_wait(__cil_tmp31, & __wait);
12264  }
12265  ldv_34662: ;
12266  {
12267#line 59
12268  __cil_tmp32 = cs->cmd_result;
12269#line 59
12270  if (__cil_tmp32 >= 0) {
12271#line 60
12272    *arg = cs->cmd_result;
12273#line 61
12274    return (0);
12275  } else {
12276
12277  }
12278  }
12279#line 64
12280  return (cs->cmd_result);
12281}
12282}
12283#line 67 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
12284static int if_version(struct cardstate *cs , unsigned int *arg ) 
12285{ unsigned int version[4U] ;
12286  unsigned int compat[4U] ;
12287  unsigned int cmd ;
12288  long tmp ;
12289  size_t __len ;
12290  void *__ret ;
12291  size_t __len___0 ;
12292  void *__ret___0 ;
12293  struct event_t *tmp___0 ;
12294  wait_queue_t __wait ;
12295  struct task_struct *tmp___1 ;
12296  unsigned int __cil_tmp14 ;
12297  unsigned int __cil_tmp15 ;
12298  int __cil_tmp16 ;
12299  long __cil_tmp17 ;
12300  unsigned int __cil_tmp18 ;
12301  int __cil_tmp19 ;
12302  int __cil_tmp20 ;
12303  int __cil_tmp21 ;
12304  void *__cil_tmp22 ;
12305  void const   *__cil_tmp23 ;
12306  void *__cil_tmp24 ;
12307  void const   *__cil_tmp25 ;
12308  void *__cil_tmp26 ;
12309  void const   *__cil_tmp27 ;
12310  void *__cil_tmp28 ;
12311  void const   *__cil_tmp29 ;
12312  struct at_state_t *__cil_tmp30 ;
12313  void *__cil_tmp31 ;
12314  void *__cil_tmp32 ;
12315  struct event_t *__cil_tmp33 ;
12316  unsigned long __cil_tmp34 ;
12317  unsigned long __cil_tmp35 ;
12318  int __cil_tmp36 ;
12319  wait_queue_head_t *__cil_tmp37 ;
12320  int __cil_tmp38 ;
12321  wait_queue_head_t *__cil_tmp39 ;
12322  int __cil_tmp40 ;
12323
12324  {
12325  {
12326#line 69
12327  version[0] = 0U;
12328#line 69
12329  version[1] = 5U;
12330#line 69
12331  version[2] = 0U;
12332#line 69
12333  version[3] = 0U;
12334#line 70
12335  compat[0] = 0U;
12336#line 70
12337  compat[1] = 4U;
12338#line 70
12339  compat[2] = 0U;
12340#line 70
12341  compat[3] = 0U;
12342#line 71
12343  cmd = *arg;
12344#line 73
12345  __cil_tmp14 = (unsigned int )gigaset_debuglevel;
12346#line 73
12347  __cil_tmp15 = __cil_tmp14 & 524288U;
12348#line 73
12349  __cil_tmp16 = __cil_tmp15 != 0U;
12350#line 73
12351  __cil_tmp17 = (long )__cil_tmp16;
12352#line 73
12353  tmp = __builtin_expect(__cil_tmp17, 0L);
12354  }
12355#line 73
12356  if (tmp != 0L) {
12357    {
12358#line 73
12359    __cil_tmp18 = cs->minor_index;
12360#line 73
12361    printk("<7>gigaset: %u: if_version (%d)\n", __cil_tmp18, cmd);
12362    }
12363  } else {
12364
12365  }
12366  {
12367#line 76
12368  __cil_tmp19 = (int )cmd;
12369#line 76
12370  if (__cil_tmp19 == 0) {
12371#line 76
12372    goto case_0;
12373  } else {
12374    {
12375#line 79
12376    __cil_tmp20 = (int )cmd;
12377#line 79
12378    if (__cil_tmp20 == 1) {
12379#line 79
12380      goto case_1;
12381    } else {
12382      {
12383#line 82
12384      __cil_tmp21 = (int )cmd;
12385#line 82
12386      if (__cil_tmp21 == 2) {
12387#line 82
12388        goto case_2;
12389      } else {
12390#line 97
12391        goto switch_default;
12392#line 75
12393        if (0) {
12394          case_0: 
12395#line 77
12396          __len = 16UL;
12397#line 77
12398          if (__len > 63UL) {
12399            {
12400#line 77
12401            __cil_tmp22 = (void *)arg;
12402#line 77
12403            __cil_tmp23 = (void const   *)(& version);
12404#line 77
12405            __ret = __memcpy(__cil_tmp22, __cil_tmp23, __len);
12406            }
12407          } else {
12408            {
12409#line 77
12410            __cil_tmp24 = (void *)arg;
12411#line 77
12412            __cil_tmp25 = (void const   *)(& version);
12413#line 77
12414            __ret = __builtin_memcpy(__cil_tmp24, __cil_tmp25, __len);
12415            }
12416          }
12417#line 78
12418          return (0);
12419          case_1: 
12420#line 80
12421          __len___0 = 16UL;
12422#line 80
12423          if (__len___0 > 63UL) {
12424            {
12425#line 80
12426            __cil_tmp26 = (void *)arg;
12427#line 80
12428            __cil_tmp27 = (void const   *)(& compat);
12429#line 80
12430            __ret___0 = __memcpy(__cil_tmp26, __cil_tmp27, __len___0);
12431            }
12432          } else {
12433            {
12434#line 80
12435            __cil_tmp28 = (void *)arg;
12436#line 80
12437            __cil_tmp29 = (void const   *)(& compat);
12438#line 80
12439            __ret___0 = __builtin_memcpy(__cil_tmp28, __cil_tmp29, __len___0);
12440            }
12441          }
12442#line 81
12443          return (0);
12444          case_2: 
12445          {
12446#line 83
12447          cs->waiting = 1;
12448#line 84
12449          __cil_tmp30 = & cs->at_state;
12450#line 84
12451          __cil_tmp31 = (void *)0;
12452#line 84
12453          __cil_tmp32 = (void *)arg;
12454#line 84
12455          tmp___0 = gigaset_add_event(cs, __cil_tmp30, -106, __cil_tmp31, 0, __cil_tmp32);
12456          }
12457          {
12458#line 84
12459          __cil_tmp33 = (struct event_t *)0;
12460#line 84
12461          __cil_tmp34 = (unsigned long )__cil_tmp33;
12462#line 84
12463          __cil_tmp35 = (unsigned long )tmp___0;
12464#line 84
12465          if (__cil_tmp35 == __cil_tmp34) {
12466#line 86
12467            cs->waiting = 0;
12468#line 87
12469            return (-12);
12470          } else {
12471
12472          }
12473          }
12474          {
12475#line 89
12476          gigaset_schedule_event(cs);
12477          }
12478          {
12479#line 91
12480          __cil_tmp36 = cs->waiting;
12481#line 91
12482          if (__cil_tmp36 == 0) {
12483#line 91
12484            goto ldv_34682;
12485          } else {
12486
12487          }
12488          }
12489          {
12490#line 91
12491          tmp___1 = get_current();
12492#line 91
12493          __wait.flags = 0U;
12494#line 91
12495          __wait.private = (void *)tmp___1;
12496#line 91
12497          __wait.func = & autoremove_wake_function;
12498#line 91
12499          __wait.task_list.next = & __wait.task_list;
12500#line 91
12501          __wait.task_list.prev = & __wait.task_list;
12502          }
12503          ldv_34685: 
12504          {
12505#line 91
12506          __cil_tmp37 = & cs->waitqueue;
12507#line 91
12508          prepare_to_wait(__cil_tmp37, & __wait, 2);
12509          }
12510          {
12511#line 91
12512          __cil_tmp38 = cs->waiting;
12513#line 91
12514          if (__cil_tmp38 == 0) {
12515#line 91
12516            goto ldv_34684;
12517          } else {
12518
12519          }
12520          }
12521          {
12522#line 91
12523          schedule();
12524          }
12525#line 91
12526          goto ldv_34685;
12527          ldv_34684: 
12528          {
12529#line 91
12530          __cil_tmp39 = & cs->waitqueue;
12531#line 91
12532          finish_wait(__cil_tmp39, & __wait);
12533          }
12534          ldv_34682: ;
12535          {
12536#line 93
12537          __cil_tmp40 = cs->cmd_result;
12538#line 93
12539          if (__cil_tmp40 >= 0) {
12540#line 94
12541            return (0);
12542          } else {
12543
12544          }
12545          }
12546#line 96
12547          return (cs->cmd_result);
12548          switch_default: ;
12549#line 98
12550          return (-22);
12551        } else {
12552
12553        }
12554      }
12555      }
12556    }
12557    }
12558  }
12559  }
12560}
12561}
12562#line 102 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
12563static int if_config(struct cardstate *cs , int *arg ) 
12564{ long tmp ;
12565  int tmp___0 ;
12566  unsigned int __cil_tmp5 ;
12567  unsigned int __cil_tmp6 ;
12568  int __cil_tmp7 ;
12569  long __cil_tmp8 ;
12570  unsigned int __cil_tmp9 ;
12571  int __cil_tmp10 ;
12572  int __cil_tmp11 ;
12573  int __cil_tmp12 ;
12574  unsigned int __cil_tmp13 ;
12575
12576  {
12577  {
12578#line 104
12579  __cil_tmp5 = (unsigned int )gigaset_debuglevel;
12580#line 104
12581  __cil_tmp6 = __cil_tmp5 & 524288U;
12582#line 104
12583  __cil_tmp7 = __cil_tmp6 != 0U;
12584#line 104
12585  __cil_tmp8 = (long )__cil_tmp7;
12586#line 104
12587  tmp = __builtin_expect(__cil_tmp8, 0L);
12588  }
12589#line 104
12590  if (tmp != 0L) {
12591    {
12592#line 104
12593    __cil_tmp9 = cs->minor_index;
12594#line 104
12595    __cil_tmp10 = *arg;
12596#line 104
12597    printk("<7>gigaset: %u: if_config (%d)\n", __cil_tmp9, __cil_tmp10);
12598    }
12599  } else {
12600
12601  }
12602  {
12603#line 106
12604  __cil_tmp11 = *arg;
12605#line 106
12606  if (__cil_tmp11 != 1) {
12607#line 107
12608    return (-22);
12609  } else {
12610
12611  }
12612  }
12613  {
12614#line 109
12615  __cil_tmp12 = cs->mstate;
12616#line 109
12617  if (__cil_tmp12 != 2) {
12618#line 110
12619    return (-16);
12620  } else {
12621
12622  }
12623  }
12624  {
12625#line 112
12626  __cil_tmp13 = cs->connected;
12627#line 112
12628  if (__cil_tmp13 == 0U) {
12629    {
12630#line 113
12631    printk("<3>gigaset: %s: not connected\n", "if_config");
12632    }
12633#line 114
12634    return (-19);
12635  } else {
12636
12637  }
12638  }
12639  {
12640#line 117
12641  *arg = 0;
12642#line 118
12643  tmp___0 = gigaset_enterconfigmode(cs);
12644  }
12645#line 118
12646  return (tmp___0);
12647}
12648}
12649#line 124
12650static int if_open(struct tty_struct *tty , struct file *filp ) ;
12651#line 125
12652static void if_close(struct tty_struct *tty , struct file *filp ) ;
12653#line 126
12654static int if_ioctl(struct tty_struct *tty , unsigned int cmd , unsigned long arg ) ;
12655#line 128
12656static int if_write_room(struct tty_struct *tty ) ;
12657#line 129
12658static int if_chars_in_buffer(struct tty_struct *tty ) ;
12659#line 130
12660static void if_throttle(struct tty_struct *tty ) ;
12661#line 131
12662static void if_unthrottle(struct tty_struct *tty ) ;
12663#line 132
12664static void if_set_termios(struct tty_struct *tty , struct ktermios *old ) ;
12665#line 133
12666static int if_tiocmget(struct tty_struct *tty ) ;
12667#line 134
12668static int if_tiocmset(struct tty_struct *tty , unsigned int set , unsigned int clear ) ;
12669#line 136
12670static int if_write(struct tty_struct *tty , unsigned char const   *buf , int count ) ;
12671#line 139 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
12672static struct tty_operations  const  if_ops  = 
12673#line 139
12674     {(struct tty_struct *(*)(struct tty_driver * , struct inode * , int  ))0, (int (*)(struct tty_driver * ,
12675                                                                                      struct tty_struct * ))0,
12676    (void (*)(struct tty_driver * , struct tty_struct * ))0, & if_open, & if_close,
12677    (void (*)(struct tty_struct * ))0, (void (*)(struct tty_struct * ))0, & if_write,
12678    (int (*)(struct tty_struct * , unsigned char  ))0, (void (*)(struct tty_struct * ))0,
12679    & if_write_room, & if_chars_in_buffer, & if_ioctl, (long (*)(struct tty_struct * ,
12680                                                                 unsigned int  , unsigned long  ))0,
12681    & if_set_termios, & if_throttle, & if_unthrottle, (void (*)(struct tty_struct * ))0,
12682    (void (*)(struct tty_struct * ))0, (void (*)(struct tty_struct * ))0, (int (*)(struct tty_struct * ,
12683                                                                                   int  ))0,
12684    (void (*)(struct tty_struct * ))0, (void (*)(struct tty_struct * ))0, (void (*)(struct tty_struct * ,
12685                                                                                    int  ))0,
12686    (void (*)(struct tty_struct * , char  ))0, & if_tiocmget, & if_tiocmset, (int (*)(struct tty_struct * ,
12687                                                                                      struct winsize * ))0,
12688    (int (*)(struct tty_struct * , struct termiox * ))0, (int (*)(struct tty_struct * ,
12689                                                                  struct serial_icounter_struct * ))0,
12690    (int (*)(struct tty_driver * , int  , char * ))0, (int (*)(struct tty_driver * ,
12691                                                               int  ))0, (void (*)(struct tty_driver * ,
12692                                                                                   int  ,
12693                                                                                   char  ))0,
12694    (struct file_operations  const  *)0};
12695#line 153 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
12696static int if_open(struct tty_struct *tty , struct file *filp ) 
12697{ struct cardstate *cs ;
12698  unsigned long flags ;
12699  long tmp ;
12700  int tmp___0 ;
12701  int tmp___1 ;
12702  raw_spinlock_t *tmp___2 ;
12703  unsigned int __cil_tmp9 ;
12704  unsigned int __cil_tmp10 ;
12705  int __cil_tmp11 ;
12706  long __cil_tmp12 ;
12707  struct tty_driver *__cil_tmp13 ;
12708  int __cil_tmp14 ;
12709  int __cil_tmp15 ;
12710  struct cardstate *__cil_tmp16 ;
12711  unsigned long __cil_tmp17 ;
12712  unsigned long __cil_tmp18 ;
12713  struct gigaset_driver *__cil_tmp19 ;
12714  struct module *__cil_tmp20 ;
12715  struct mutex *__cil_tmp21 ;
12716  struct gigaset_driver *__cil_tmp22 ;
12717  struct module *__cil_tmp23 ;
12718  unsigned int __cil_tmp24 ;
12719  unsigned int __cil_tmp25 ;
12720  spinlock_t *__cil_tmp26 ;
12721  spinlock_t *__cil_tmp27 ;
12722  struct mutex *__cil_tmp28 ;
12723
12724  {
12725  {
12726#line 158
12727  __cil_tmp9 = (unsigned int )gigaset_debuglevel;
12728#line 158
12729  __cil_tmp10 = __cil_tmp9 & 524288U;
12730#line 158
12731  __cil_tmp11 = __cil_tmp10 != 0U;
12732#line 158
12733  __cil_tmp12 = (long )__cil_tmp11;
12734#line 158
12735  tmp = __builtin_expect(__cil_tmp12, 0L);
12736  }
12737#line 158
12738  if (tmp != 0L) {
12739    {
12740#line 158
12741    __cil_tmp13 = tty->driver;
12742#line 158
12743    __cil_tmp14 = __cil_tmp13->minor_start;
12744#line 158
12745    __cil_tmp15 = tty->index;
12746#line 158
12747    printk("<7>gigaset: %d+%d: %s()\n", __cil_tmp14, __cil_tmp15, "if_open");
12748    }
12749  } else {
12750
12751  }
12752  {
12753#line 161
12754  tty->driver_data = (void *)0;
12755#line 163
12756  cs = gigaset_get_cs_by_tty(tty);
12757  }
12758  {
12759#line 164
12760  __cil_tmp16 = (struct cardstate *)0;
12761#line 164
12762  __cil_tmp17 = (unsigned long )__cil_tmp16;
12763#line 164
12764  __cil_tmp18 = (unsigned long )cs;
12765#line 164
12766  if (__cil_tmp18 == __cil_tmp17) {
12767#line 165
12768    return (-19);
12769  } else {
12770    {
12771#line 164
12772    __cil_tmp19 = cs->driver;
12773#line 164
12774    __cil_tmp20 = __cil_tmp19->owner;
12775#line 164
12776    tmp___0 = ldv_try_module_get_1(__cil_tmp20);
12777    }
12778#line 164
12779    if (tmp___0 == 0) {
12780#line 165
12781      return (-19);
12782    } else {
12783
12784    }
12785  }
12786  }
12787  {
12788#line 167
12789  __cil_tmp21 = & cs->mutex;
12790#line 167
12791  tmp___1 = mutex_lock_interruptible_nested(__cil_tmp21, 0U);
12792  }
12793#line 167
12794  if (tmp___1 != 0) {
12795    {
12796#line 168
12797    __cil_tmp22 = cs->driver;
12798#line 168
12799    __cil_tmp23 = __cil_tmp22->owner;
12800#line 168
12801    ldv_module_put_2(__cil_tmp23);
12802    }
12803#line 169
12804    return (-512);
12805  } else {
12806
12807  }
12808#line 171
12809  tty->driver_data = (void *)cs;
12810#line 173
12811  __cil_tmp24 = cs->open_count;
12812#line 173
12813  cs->open_count = __cil_tmp24 + 1U;
12814  {
12815#line 175
12816  __cil_tmp25 = cs->open_count;
12817#line 175
12818  if (__cil_tmp25 == 1U) {
12819    {
12820#line 176
12821    __cil_tmp26 = & cs->lock;
12822#line 176
12823    tmp___2 = spinlock_check(__cil_tmp26);
12824#line 176
12825    flags = _raw_spin_lock_irqsave(tmp___2);
12826#line 177
12827    cs->tty = tty;
12828#line 178
12829    __cil_tmp27 = & cs->lock;
12830#line 178
12831    spin_unlock_irqrestore(__cil_tmp27, flags);
12832#line 179
12833    tty->low_latency = (unsigned char)1;
12834    }
12835  } else {
12836
12837  }
12838  }
12839  {
12840#line 182
12841  __cil_tmp28 = & cs->mutex;
12842#line 182
12843  mutex_unlock(__cil_tmp28);
12844  }
12845#line 183
12846  return (0);
12847}
12848}
12849#line 186 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
12850static void if_close(struct tty_struct *tty , struct file *filp ) 
12851{ struct cardstate *cs ;
12852  unsigned long flags ;
12853  long tmp ;
12854  raw_spinlock_t *tmp___0 ;
12855  long tmp___1 ;
12856  void *__cil_tmp8 ;
12857  struct cardstate *__cil_tmp9 ;
12858  unsigned long __cil_tmp10 ;
12859  unsigned long __cil_tmp11 ;
12860  unsigned int __cil_tmp12 ;
12861  unsigned int __cil_tmp13 ;
12862  int __cil_tmp14 ;
12863  long __cil_tmp15 ;
12864  unsigned int __cil_tmp16 ;
12865  struct mutex *__cil_tmp17 ;
12866  unsigned int __cil_tmp18 ;
12867  unsigned int __cil_tmp19 ;
12868  unsigned int __cil_tmp20 ;
12869  int __cil_tmp21 ;
12870  long __cil_tmp22 ;
12871  unsigned int __cil_tmp23 ;
12872  struct device *__cil_tmp24 ;
12873  struct device  const  *__cil_tmp25 ;
12874  unsigned int __cil_tmp26 ;
12875  unsigned int __cil_tmp27 ;
12876  spinlock_t *__cil_tmp28 ;
12877  spinlock_t *__cil_tmp29 ;
12878  struct mutex *__cil_tmp30 ;
12879  struct gigaset_driver *__cil_tmp31 ;
12880  struct module *__cil_tmp32 ;
12881
12882  {
12883#line 191
12884  __cil_tmp8 = tty->driver_data;
12885#line 191
12886  cs = (struct cardstate *)__cil_tmp8;
12887  {
12888#line 192
12889  __cil_tmp9 = (struct cardstate *)0;
12890#line 192
12891  __cil_tmp10 = (unsigned long )__cil_tmp9;
12892#line 192
12893  __cil_tmp11 = (unsigned long )cs;
12894#line 192
12895  if (__cil_tmp11 == __cil_tmp10) {
12896    {
12897#line 193
12898    printk("<3>gigaset: %s: no cardstate\n", "if_close");
12899    }
12900#line 194
12901    return;
12902  } else {
12903
12904  }
12905  }
12906  {
12907#line 197
12908  __cil_tmp12 = (unsigned int )gigaset_debuglevel;
12909#line 197
12910  __cil_tmp13 = __cil_tmp12 & 524288U;
12911#line 197
12912  __cil_tmp14 = __cil_tmp13 != 0U;
12913#line 197
12914  __cil_tmp15 = (long )__cil_tmp14;
12915#line 197
12916  tmp = __builtin_expect(__cil_tmp15, 0L);
12917  }
12918#line 197
12919  if (tmp != 0L) {
12920    {
12921#line 197
12922    __cil_tmp16 = cs->minor_index;
12923#line 197
12924    printk("<7>gigaset: %u: %s()\n", __cil_tmp16, "if_close");
12925    }
12926  } else {
12927
12928  }
12929  {
12930#line 199
12931  __cil_tmp17 = & cs->mutex;
12932#line 199
12933  mutex_lock_nested(__cil_tmp17, 0U);
12934  }
12935  {
12936#line 201
12937  __cil_tmp18 = cs->connected;
12938#line 201
12939  if (__cil_tmp18 == 0U) {
12940    {
12941#line 202
12942    __cil_tmp19 = (unsigned int )gigaset_debuglevel;
12943#line 202
12944    __cil_tmp20 = __cil_tmp19 & 524288U;
12945#line 202
12946    __cil_tmp21 = __cil_tmp20 != 0U;
12947#line 202
12948    __cil_tmp22 = (long )__cil_tmp21;
12949#line 202
12950    tmp___1 = __builtin_expect(__cil_tmp22, 0L);
12951    }
12952#line 202
12953    if (tmp___1 != 0L) {
12954      {
12955#line 202
12956      printk("<7>gigaset: not connected\n");
12957      }
12958    } else {
12959      {
12960#line 203
12961      __cil_tmp23 = cs->open_count;
12962#line 203
12963      if (__cil_tmp23 == 0U) {
12964        {
12965#line 204
12966        __cil_tmp24 = cs->dev;
12967#line 204
12968        __cil_tmp25 = (struct device  const  *)__cil_tmp24;
12969#line 204
12970        dev_warn(__cil_tmp25, "%s: device not opened\n", "if_close");
12971        }
12972      } else {
12973#line 206
12974        __cil_tmp26 = cs->open_count;
12975#line 206
12976        cs->open_count = __cil_tmp26 - 1U;
12977        {
12978#line 206
12979        __cil_tmp27 = cs->open_count;
12980#line 206
12981        if (__cil_tmp27 == 0U) {
12982          {
12983#line 207
12984          __cil_tmp28 = & cs->lock;
12985#line 207
12986          tmp___0 = spinlock_check(__cil_tmp28);
12987#line 207
12988          flags = _raw_spin_lock_irqsave(tmp___0);
12989#line 208
12990          cs->tty = (struct tty_struct *)0;
12991#line 209
12992          __cil_tmp29 = & cs->lock;
12993#line 209
12994          spin_unlock_irqrestore(__cil_tmp29, flags);
12995          }
12996        } else {
12997
12998        }
12999        }
13000      }
13001      }
13002    }
13003  } else {
13004
13005  }
13006  }
13007  {
13008#line 213
13009  __cil_tmp30 = & cs->mutex;
13010#line 213
13011  mutex_unlock(__cil_tmp30);
13012#line 215
13013  __cil_tmp31 = cs->driver;
13014#line 215
13015  __cil_tmp32 = __cil_tmp31->owner;
13016#line 215
13017  ldv_module_put_3(__cil_tmp32);
13018  }
13019#line 216
13020  return;
13021}
13022}
13023#line 218 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
13024static int if_ioctl(struct tty_struct *tty , unsigned int cmd , unsigned long arg ) 
13025{ struct cardstate *cs ;
13026  int retval ;
13027  int int_arg ;
13028  unsigned char buf[6U] ;
13029  unsigned int version[4U] ;
13030  long tmp ;
13031  int tmp___0 ;
13032  long tmp___1 ;
13033  int __ret_gu ;
13034  unsigned long __val_gu ;
13035  int __ret_pu ;
13036  int __pu_val ;
13037  int __ret_gu___0 ;
13038  unsigned long __val_gu___0 ;
13039  int __ret_pu___0 ;
13040  int __pu_val___0 ;
13041  unsigned long tmp___3 ;
13042  unsigned long tmp___5 ;
13043  int tmp___7 ;
13044  long tmp___8 ;
13045  void *__cil_tmp24 ;
13046  struct cardstate *__cil_tmp25 ;
13047  unsigned long __cil_tmp26 ;
13048  unsigned long __cil_tmp27 ;
13049  unsigned int __cil_tmp28 ;
13050  unsigned int __cil_tmp29 ;
13051  int __cil_tmp30 ;
13052  long __cil_tmp31 ;
13053  unsigned int __cil_tmp32 ;
13054  struct mutex *__cil_tmp33 ;
13055  unsigned int __cil_tmp34 ;
13056  unsigned int __cil_tmp35 ;
13057  unsigned int __cil_tmp36 ;
13058  int __cil_tmp37 ;
13059  long __cil_tmp38 ;
13060  unsigned int __cil_tmp39 ;
13061  struct device *__cil_tmp40 ;
13062  struct device  const  *__cil_tmp41 ;
13063  int __cil_tmp42 ;
13064  int __cil_tmp43 ;
13065  int __cil_tmp44 ;
13066  int __cil_tmp45 ;
13067  void *__cil_tmp46 ;
13068  void const   *__cil_tmp47 ;
13069  enum debuglevel __cil_tmp48 ;
13070  unsigned char const   *__cil_tmp49 ;
13071  unsigned char const   *__cil_tmp50 ;
13072  struct gigaset_ops  const  *__cil_tmp51 ;
13073  int (*__cil_tmp52)(struct cardstate * , unsigned char const   * ) ;
13074  unsigned char const   *__cil_tmp53 ;
13075  void *__cil_tmp54 ;
13076  void const   *__cil_tmp55 ;
13077  unsigned int *__cil_tmp56 ;
13078  void *__cil_tmp57 ;
13079  void const   *__cil_tmp58 ;
13080  unsigned int __cil_tmp59 ;
13081  unsigned int __cil_tmp60 ;
13082  int __cil_tmp61 ;
13083  long __cil_tmp62 ;
13084  struct mutex *__cil_tmp63 ;
13085
13086  {
13087#line 222
13088  retval = -19;
13089#line 227
13090  __cil_tmp24 = tty->driver_data;
13091#line 227
13092  cs = (struct cardstate *)__cil_tmp24;
13093  {
13094#line 228
13095  __cil_tmp25 = (struct cardstate *)0;
13096#line 228
13097  __cil_tmp26 = (unsigned long )__cil_tmp25;
13098#line 228
13099  __cil_tmp27 = (unsigned long )cs;
13100#line 228
13101  if (__cil_tmp27 == __cil_tmp26) {
13102    {
13103#line 229
13104    printk("<3>gigaset: %s: no cardstate\n", "if_ioctl");
13105    }
13106#line 230
13107    return (-19);
13108  } else {
13109
13110  }
13111  }
13112  {
13113#line 233
13114  __cil_tmp28 = (unsigned int )gigaset_debuglevel;
13115#line 233
13116  __cil_tmp29 = __cil_tmp28 & 524288U;
13117#line 233
13118  __cil_tmp30 = __cil_tmp29 != 0U;
13119#line 233
13120  __cil_tmp31 = (long )__cil_tmp30;
13121#line 233
13122  tmp = __builtin_expect(__cil_tmp31, 0L);
13123  }
13124#line 233
13125  if (tmp != 0L) {
13126    {
13127#line 233
13128    __cil_tmp32 = cs->minor_index;
13129#line 233
13130    printk("<7>gigaset: %u: %s(0x%x)\n", __cil_tmp32, "if_ioctl", cmd);
13131    }
13132  } else {
13133
13134  }
13135  {
13136#line 235
13137  __cil_tmp33 = & cs->mutex;
13138#line 235
13139  tmp___0 = mutex_lock_interruptible_nested(__cil_tmp33, 0U);
13140  }
13141#line 235
13142  if (tmp___0 != 0) {
13143#line 236
13144    return (-512);
13145  } else {
13146
13147  }
13148  {
13149#line 238
13150  __cil_tmp34 = cs->connected;
13151#line 238
13152  if (__cil_tmp34 == 0U) {
13153    {
13154#line 239
13155    __cil_tmp35 = (unsigned int )gigaset_debuglevel;
13156#line 239
13157    __cil_tmp36 = __cil_tmp35 & 524288U;
13158#line 239
13159    __cil_tmp37 = __cil_tmp36 != 0U;
13160#line 239
13161    __cil_tmp38 = (long )__cil_tmp37;
13162#line 239
13163    tmp___1 = __builtin_expect(__cil_tmp38, 0L);
13164    }
13165#line 239
13166    if (tmp___1 != 0L) {
13167      {
13168#line 239
13169      printk("<7>gigaset: not connected\n");
13170      }
13171    } else {
13172
13173    }
13174#line 240
13175    retval = -19;
13176  } else {
13177    {
13178#line 241
13179    __cil_tmp39 = cs->open_count;
13180#line 241
13181    if (__cil_tmp39 == 0U) {
13182      {
13183#line 242
13184      __cil_tmp40 = cs->dev;
13185#line 242
13186      __cil_tmp41 = (struct device  const  *)__cil_tmp40;
13187#line 242
13188      dev_warn(__cil_tmp41, "%s: device not opened\n", "if_ioctl");
13189      }
13190    } else {
13191#line 244
13192      retval = 0;
13193      {
13194#line 246
13195      __cil_tmp42 = (int )cmd;
13196#line 246
13197      if (__cil_tmp42 == -1073461504) {
13198#line 246
13199        goto case_neg_1073461504;
13200      } else {
13201        {
13202#line 253
13203        __cil_tmp43 = (int )cmd;
13204#line 253
13205        if (__cil_tmp43 == -1073461503) {
13206#line 253
13207          goto case_neg_1073461503;
13208        } else {
13209          {
13210#line 260
13211          __cil_tmp44 = (int )cmd;
13212#line 260
13213          if (__cil_tmp44 == 1074153218) {
13214#line 260
13215            goto case_1074153218;
13216          } else {
13217            {
13218#line 270
13219            __cil_tmp45 = (int )cmd;
13220#line 270
13221            if (__cil_tmp45 == -1072675069) {
13222#line 270
13223              goto case_neg_1072675069;
13224            } else {
13225#line 281
13226              goto switch_default___3;
13227#line 245
13228              if (0) {
13229                case_neg_1073461504: 
13230                {
13231#line 247
13232                might_fault();
13233                }
13234#line 247
13235                if (1) {
13236#line 247
13237                  goto case_4;
13238                } else {
13239#line 247
13240                  goto switch_default;
13241#line 247
13242                  if (0) {
13243#line 247
13244                    __asm__  volatile   ("call __get_user_1": "=a" (__ret_gu), "=d" (__val_gu): "0" ((int *)arg));
13245#line 247
13246                    goto ldv_34759;
13247#line 247
13248                    __asm__  volatile   ("call __get_user_2": "=a" (__ret_gu), "=d" (__val_gu): "0" ((int *)arg));
13249#line 247
13250                    goto ldv_34759;
13251                    case_4: 
13252#line 247
13253                    __asm__  volatile   ("call __get_user_4": "=a" (__ret_gu), "=d" (__val_gu): "0" ((int *)arg));
13254#line 247
13255                    goto ldv_34759;
13256#line 247
13257                    __asm__  volatile   ("call __get_user_8": "=a" (__ret_gu), "=d" (__val_gu): "0" ((int *)arg));
13258#line 247
13259                    goto ldv_34759;
13260                    switch_default: 
13261#line 247
13262                    __asm__  volatile   ("call __get_user_X": "=a" (__ret_gu), "=d" (__val_gu): "0" ((int *)arg));
13263#line 247
13264                    goto ldv_34759;
13265                  } else {
13266
13267                  }
13268                }
13269                ldv_34759: 
13270#line 247
13271                int_arg = (int )__val_gu;
13272#line 247
13273                retval = __ret_gu;
13274#line 248
13275                if (retval >= 0) {
13276                  {
13277#line 249
13278                  retval = if_lock(cs, & int_arg);
13279                  }
13280                } else {
13281
13282                }
13283#line 250
13284                if (retval >= 0) {
13285                  {
13286#line 251
13287                  might_fault();
13288#line 251
13289                  __pu_val = int_arg;
13290                  }
13291#line 251
13292                  if (1) {
13293#line 251
13294                    goto case_4___0;
13295                  } else {
13296#line 251
13297                    goto switch_default___0;
13298#line 251
13299                    if (0) {
13300#line 251
13301                      __asm__  volatile   ("call __put_user_1": "=a" (__ret_pu): "0" (__pu_val),
13302                                           "c" ((int *)arg): "ebx");
13303#line 251
13304                      goto ldv_34768;
13305#line 251
13306                      __asm__  volatile   ("call __put_user_2": "=a" (__ret_pu): "0" (__pu_val),
13307                                           "c" ((int *)arg): "ebx");
13308#line 251
13309                      goto ldv_34768;
13310                      case_4___0: 
13311#line 251
13312                      __asm__  volatile   ("call __put_user_4": "=a" (__ret_pu): "0" (__pu_val),
13313                                           "c" ((int *)arg): "ebx");
13314#line 251
13315                      goto ldv_34768;
13316#line 251
13317                      __asm__  volatile   ("call __put_user_8": "=a" (__ret_pu): "0" (__pu_val),
13318                                           "c" ((int *)arg): "ebx");
13319#line 251
13320                      goto ldv_34768;
13321                      switch_default___0: 
13322#line 251
13323                      __asm__  volatile   ("call __put_user_X": "=a" (__ret_pu): "0" (__pu_val),
13324                                           "c" ((int *)arg): "ebx");
13325#line 251
13326                      goto ldv_34768;
13327                    } else {
13328
13329                    }
13330                  }
13331                  ldv_34768: 
13332#line 251
13333                  retval = __ret_pu;
13334                } else {
13335
13336                }
13337#line 252
13338                goto ldv_34774;
13339                case_neg_1073461503: 
13340                {
13341#line 254
13342                might_fault();
13343                }
13344#line 254
13345                if (1) {
13346#line 254
13347                  goto case_4___1;
13348                } else {
13349#line 254
13350                  goto switch_default___1;
13351#line 254
13352                  if (0) {
13353#line 254
13354                    __asm__  volatile   ("call __get_user_1": "=a" (__ret_gu___0),
13355                                         "=d" (__val_gu___0): "0" ((int *)arg));
13356#line 254
13357                    goto ldv_34779;
13358#line 254
13359                    __asm__  volatile   ("call __get_user_2": "=a" (__ret_gu___0),
13360                                         "=d" (__val_gu___0): "0" ((int *)arg));
13361#line 254
13362                    goto ldv_34779;
13363                    case_4___1: 
13364#line 254
13365                    __asm__  volatile   ("call __get_user_4": "=a" (__ret_gu___0),
13366                                         "=d" (__val_gu___0): "0" ((int *)arg));
13367#line 254
13368                    goto ldv_34779;
13369#line 254
13370                    __asm__  volatile   ("call __get_user_8": "=a" (__ret_gu___0),
13371                                         "=d" (__val_gu___0): "0" ((int *)arg));
13372#line 254
13373                    goto ldv_34779;
13374                    switch_default___1: 
13375#line 254
13376                    __asm__  volatile   ("call __get_user_X": "=a" (__ret_gu___0),
13377                                         "=d" (__val_gu___0): "0" ((int *)arg));
13378#line 254
13379                    goto ldv_34779;
13380                  } else {
13381
13382                  }
13383                }
13384                ldv_34779: 
13385#line 254
13386                int_arg = (int )__val_gu___0;
13387#line 254
13388                retval = __ret_gu___0;
13389#line 255
13390                if (retval >= 0) {
13391                  {
13392#line 256
13393                  retval = if_config(cs, & int_arg);
13394                  }
13395                } else {
13396
13397                }
13398#line 257
13399                if (retval >= 0) {
13400                  {
13401#line 258
13402                  might_fault();
13403#line 258
13404                  __pu_val___0 = int_arg;
13405                  }
13406#line 258
13407                  if (1) {
13408#line 258
13409                    goto case_4___2;
13410                  } else {
13411#line 258
13412                    goto switch_default___2;
13413#line 258
13414                    if (0) {
13415#line 258
13416                      __asm__  volatile   ("call __put_user_1": "=a" (__ret_pu___0): "0" (__pu_val___0),
13417                                           "c" ((int *)arg): "ebx");
13418#line 258
13419                      goto ldv_34788;
13420#line 258
13421                      __asm__  volatile   ("call __put_user_2": "=a" (__ret_pu___0): "0" (__pu_val___0),
13422                                           "c" ((int *)arg): "ebx");
13423#line 258
13424                      goto ldv_34788;
13425                      case_4___2: 
13426#line 258
13427                      __asm__  volatile   ("call __put_user_4": "=a" (__ret_pu___0): "0" (__pu_val___0),
13428                                           "c" ((int *)arg): "ebx");
13429#line 258
13430                      goto ldv_34788;
13431#line 258
13432                      __asm__  volatile   ("call __put_user_8": "=a" (__ret_pu___0): "0" (__pu_val___0),
13433                                           "c" ((int *)arg): "ebx");
13434#line 258
13435                      goto ldv_34788;
13436                      switch_default___2: 
13437#line 258
13438                      __asm__  volatile   ("call __put_user_X": "=a" (__ret_pu___0): "0" (__pu_val___0),
13439                                           "c" ((int *)arg): "ebx");
13440#line 258
13441                      goto ldv_34788;
13442                    } else {
13443
13444                    }
13445                  }
13446                  ldv_34788: 
13447#line 258
13448                  retval = __ret_pu___0;
13449                } else {
13450
13451                }
13452#line 259
13453                goto ldv_34774;
13454                case_1074153218: 
13455                {
13456#line 261
13457                __cil_tmp46 = (void *)(& buf);
13458#line 261
13459                __cil_tmp47 = (void const   *)arg;
13460#line 261
13461                tmp___3 = copy_from_user(__cil_tmp46, __cil_tmp47, 6UL);
13462                }
13463#line 261
13464                if (tmp___3 != 0UL) {
13465#line 261
13466                  retval = -14;
13467                } else {
13468#line 261
13469                  retval = 0;
13470                }
13471#line 264
13472                if (retval >= 0) {
13473                  {
13474#line 265
13475                  __cil_tmp48 = (enum debuglevel )524288;
13476#line 265
13477                  __cil_tmp49 = (unsigned char const   *)"GIGASET_BRKCHARS";
13478#line 265
13479                  __cil_tmp50 = (unsigned char const   *)arg;
13480#line 265
13481                  gigaset_dbg_buffer(__cil_tmp48, __cil_tmp49, 6UL, __cil_tmp50);
13482#line 267
13483                  __cil_tmp51 = cs->ops;
13484#line 267
13485                  __cil_tmp52 = __cil_tmp51->brkchars;
13486#line 267
13487                  __cil_tmp53 = (unsigned char const   *)(& buf);
13488#line 267
13489                  retval = (*__cil_tmp52)(cs, __cil_tmp53);
13490                  }
13491                } else {
13492
13493                }
13494#line 269
13495                goto ldv_34774;
13496                case_neg_1072675069: 
13497                {
13498#line 271
13499                __cil_tmp54 = (void *)(& version);
13500#line 271
13501                __cil_tmp55 = (void const   *)arg;
13502#line 271
13503                tmp___5 = copy_from_user(__cil_tmp54, __cil_tmp55, 16UL);
13504                }
13505#line 271
13506                if (tmp___5 != 0UL) {
13507#line 271
13508                  retval = -14;
13509                } else {
13510#line 271
13511                  retval = 0;
13512                }
13513#line 274
13514                if (retval >= 0) {
13515                  {
13516#line 275
13517                  __cil_tmp56 = (unsigned int *)(& version);
13518#line 275
13519                  retval = if_version(cs, __cil_tmp56);
13520                  }
13521                } else {
13522
13523                }
13524#line 276
13525                if (retval >= 0) {
13526                  {
13527#line 277
13528                  __cil_tmp57 = (void *)arg;
13529#line 277
13530                  __cil_tmp58 = (void const   *)(& version);
13531#line 277
13532                  tmp___7 = copy_to_user(__cil_tmp57, __cil_tmp58, 16U);
13533                  }
13534#line 277
13535                  if (tmp___7 != 0) {
13536#line 277
13537                    retval = -14;
13538                  } else {
13539#line 277
13540                    retval = 0;
13541                  }
13542                } else {
13543
13544                }
13545#line 280
13546                goto ldv_34774;
13547                switch_default___3: 
13548                {
13549#line 282
13550                __cil_tmp59 = (unsigned int )gigaset_debuglevel;
13551#line 282
13552                __cil_tmp60 = __cil_tmp59 & 524288U;
13553#line 282
13554                __cil_tmp61 = __cil_tmp60 != 0U;
13555#line 282
13556                __cil_tmp62 = (long )__cil_tmp61;
13557#line 282
13558                tmp___8 = __builtin_expect(__cil_tmp62, 0L);
13559                }
13560#line 282
13561                if (tmp___8 != 0L) {
13562                  {
13563#line 282
13564                  printk("<7>gigaset: %s: arg not supported - 0x%04x\n", "if_ioctl",
13565                         cmd);
13566                  }
13567                } else {
13568
13569                }
13570#line 284
13571                retval = -515;
13572              } else {
13573
13574              }
13575            }
13576            }
13577          }
13578          }
13579        }
13580        }
13581      }
13582      }
13583      ldv_34774: ;
13584    }
13585    }
13586  }
13587  }
13588  {
13589#line 288
13590  __cil_tmp63 = & cs->mutex;
13591#line 288
13592  mutex_unlock(__cil_tmp63);
13593  }
13594#line 290
13595  return (retval);
13596}
13597}
13598#line 293 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
13599static int if_tiocmget(struct tty_struct *tty ) 
13600{ struct cardstate *cs ;
13601  int retval ;
13602  long tmp ;
13603  int tmp___0 ;
13604  void *__cil_tmp6 ;
13605  struct cardstate *__cil_tmp7 ;
13606  unsigned long __cil_tmp8 ;
13607  unsigned long __cil_tmp9 ;
13608  unsigned int __cil_tmp10 ;
13609  unsigned int __cil_tmp11 ;
13610  int __cil_tmp12 ;
13611  long __cil_tmp13 ;
13612  unsigned int __cil_tmp14 ;
13613  struct mutex *__cil_tmp15 ;
13614  unsigned int __cil_tmp16 ;
13615  int __cil_tmp17 ;
13616  struct mutex *__cil_tmp18 ;
13617
13618  {
13619#line 298
13620  __cil_tmp6 = tty->driver_data;
13621#line 298
13622  cs = (struct cardstate *)__cil_tmp6;
13623  {
13624#line 299
13625  __cil_tmp7 = (struct cardstate *)0;
13626#line 299
13627  __cil_tmp8 = (unsigned long )__cil_tmp7;
13628#line 299
13629  __cil_tmp9 = (unsigned long )cs;
13630#line 299
13631  if (__cil_tmp9 == __cil_tmp8) {
13632    {
13633#line 300
13634    printk("<3>gigaset: %s: no cardstate\n", "if_tiocmget");
13635    }
13636#line 301
13637    return (-19);
13638  } else {
13639
13640  }
13641  }
13642  {
13643#line 304
13644  __cil_tmp10 = (unsigned int )gigaset_debuglevel;
13645#line 304
13646  __cil_tmp11 = __cil_tmp10 & 524288U;
13647#line 304
13648  __cil_tmp12 = __cil_tmp11 != 0U;
13649#line 304
13650  __cil_tmp13 = (long )__cil_tmp12;
13651#line 304
13652  tmp = __builtin_expect(__cil_tmp13, 0L);
13653  }
13654#line 304
13655  if (tmp != 0L) {
13656    {
13657#line 304
13658    __cil_tmp14 = cs->minor_index;
13659#line 304
13660    printk("<7>gigaset: %u: %s()\n", __cil_tmp14, "if_tiocmget");
13661    }
13662  } else {
13663
13664  }
13665  {
13666#line 306
13667  __cil_tmp15 = & cs->mutex;
13668#line 306
13669  tmp___0 = mutex_lock_interruptible_nested(__cil_tmp15, 0U);
13670  }
13671#line 306
13672  if (tmp___0 != 0) {
13673#line 307
13674    return (-512);
13675  } else {
13676
13677  }
13678  {
13679#line 309
13680  __cil_tmp16 = cs->control_state;
13681#line 309
13682  __cil_tmp17 = (int )__cil_tmp16;
13683#line 309
13684  retval = __cil_tmp17 & 6;
13685#line 311
13686  __cil_tmp18 = & cs->mutex;
13687#line 311
13688  mutex_unlock(__cil_tmp18);
13689  }
13690#line 313
13691  return (retval);
13692}
13693}
13694#line 316 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
13695static int if_tiocmset(struct tty_struct *tty , unsigned int set , unsigned int clear ) 
13696{ struct cardstate *cs ;
13697  int retval ;
13698  unsigned int mc ;
13699  long tmp ;
13700  int tmp___0 ;
13701  long tmp___1 ;
13702  void *__cil_tmp10 ;
13703  struct cardstate *__cil_tmp11 ;
13704  unsigned long __cil_tmp12 ;
13705  unsigned long __cil_tmp13 ;
13706  unsigned int __cil_tmp14 ;
13707  unsigned int __cil_tmp15 ;
13708  int __cil_tmp16 ;
13709  long __cil_tmp17 ;
13710  unsigned int __cil_tmp18 ;
13711  struct mutex *__cil_tmp19 ;
13712  unsigned int __cil_tmp20 ;
13713  unsigned int __cil_tmp21 ;
13714  unsigned int __cil_tmp22 ;
13715  int __cil_tmp23 ;
13716  long __cil_tmp24 ;
13717  unsigned int __cil_tmp25 ;
13718  unsigned int __cil_tmp26 ;
13719  unsigned int __cil_tmp27 ;
13720  unsigned int __cil_tmp28 ;
13721  struct gigaset_ops  const  *__cil_tmp29 ;
13722  int (*__cil_tmp30)(struct cardstate * , unsigned int  , unsigned int  ) ;
13723  unsigned int __cil_tmp31 ;
13724  struct mutex *__cil_tmp32 ;
13725
13726  {
13727#line 323
13728  __cil_tmp10 = tty->driver_data;
13729#line 323
13730  cs = (struct cardstate *)__cil_tmp10;
13731  {
13732#line 324
13733  __cil_tmp11 = (struct cardstate *)0;
13734#line 324
13735  __cil_tmp12 = (unsigned long )__cil_tmp11;
13736#line 324
13737  __cil_tmp13 = (unsigned long )cs;
13738#line 324
13739  if (__cil_tmp13 == __cil_tmp12) {
13740    {
13741#line 325
13742    printk("<3>gigaset: %s: no cardstate\n", "if_tiocmset");
13743    }
13744#line 326
13745    return (-19);
13746  } else {
13747
13748  }
13749  }
13750  {
13751#line 329
13752  __cil_tmp14 = (unsigned int )gigaset_debuglevel;
13753#line 329
13754  __cil_tmp15 = __cil_tmp14 & 524288U;
13755#line 329
13756  __cil_tmp16 = __cil_tmp15 != 0U;
13757#line 329
13758  __cil_tmp17 = (long )__cil_tmp16;
13759#line 329
13760  tmp = __builtin_expect(__cil_tmp17, 0L);
13761  }
13762#line 329
13763  if (tmp != 0L) {
13764    {
13765#line 329
13766    __cil_tmp18 = cs->minor_index;
13767#line 329
13768    printk("<7>gigaset: %u: %s(0x%x, 0x%x)\n", __cil_tmp18, "if_tiocmset", set, clear);
13769    }
13770  } else {
13771
13772  }
13773  {
13774#line 332
13775  __cil_tmp19 = & cs->mutex;
13776#line 332
13777  tmp___0 = mutex_lock_interruptible_nested(__cil_tmp19, 0U);
13778  }
13779#line 332
13780  if (tmp___0 != 0) {
13781#line 333
13782    return (-512);
13783  } else {
13784
13785  }
13786  {
13787#line 335
13788  __cil_tmp20 = cs->connected;
13789#line 335
13790  if (__cil_tmp20 == 0U) {
13791    {
13792#line 336
13793    __cil_tmp21 = (unsigned int )gigaset_debuglevel;
13794#line 336
13795    __cil_tmp22 = __cil_tmp21 & 524288U;
13796#line 336
13797    __cil_tmp23 = __cil_tmp22 != 0U;
13798#line 336
13799    __cil_tmp24 = (long )__cil_tmp23;
13800#line 336
13801    tmp___1 = __builtin_expect(__cil_tmp24, 0L);
13802    }
13803#line 336
13804    if (tmp___1 != 0L) {
13805      {
13806#line 336
13807      printk("<7>gigaset: not connected\n");
13808      }
13809    } else {
13810
13811    }
13812#line 337
13813    retval = -19;
13814  } else {
13815    {
13816#line 339
13817    __cil_tmp25 = ~ clear;
13818#line 339
13819    __cil_tmp26 = cs->control_state;
13820#line 339
13821    __cil_tmp27 = __cil_tmp26 | set;
13822#line 339
13823    __cil_tmp28 = __cil_tmp27 & __cil_tmp25;
13824#line 339
13825    mc = __cil_tmp28 & 6U;
13826#line 340
13827    __cil_tmp29 = cs->ops;
13828#line 340
13829    __cil_tmp30 = __cil_tmp29->set_modem_ctrl;
13830#line 340
13831    __cil_tmp31 = cs->control_state;
13832#line 340
13833    retval = (*__cil_tmp30)(cs, __cil_tmp31, mc);
13834#line 341
13835    cs->control_state = mc;
13836    }
13837  }
13838  }
13839  {
13840#line 344
13841  __cil_tmp32 = & cs->mutex;
13842#line 344
13843  mutex_unlock(__cil_tmp32);
13844  }
13845#line 346
13846  return (retval);
13847}
13848}
13849#line 349 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
13850static int if_write(struct tty_struct *tty , unsigned char const   *buf , int count ) 
13851{ struct cardstate *cs ;
13852  struct cmdbuf_t *cb ;
13853  int retval ;
13854  long tmp ;
13855  int tmp___0 ;
13856  long tmp___1 ;
13857  void *tmp___2 ;
13858  size_t __len ;
13859  void *__ret ;
13860  void *__cil_tmp13 ;
13861  struct cardstate *__cil_tmp14 ;
13862  unsigned long __cil_tmp15 ;
13863  unsigned long __cil_tmp16 ;
13864  unsigned int __cil_tmp17 ;
13865  unsigned int __cil_tmp18 ;
13866  int __cil_tmp19 ;
13867  long __cil_tmp20 ;
13868  unsigned int __cil_tmp21 ;
13869  struct mutex *__cil_tmp22 ;
13870  unsigned int __cil_tmp23 ;
13871  unsigned int __cil_tmp24 ;
13872  unsigned int __cil_tmp25 ;
13873  int __cil_tmp26 ;
13874  long __cil_tmp27 ;
13875  unsigned int __cil_tmp28 ;
13876  struct device *__cil_tmp29 ;
13877  struct device  const  *__cil_tmp30 ;
13878  int __cil_tmp31 ;
13879  struct device *__cil_tmp32 ;
13880  struct device  const  *__cil_tmp33 ;
13881  unsigned long __cil_tmp34 ;
13882  unsigned long __cil_tmp35 ;
13883  struct cmdbuf_t *__cil_tmp36 ;
13884  unsigned long __cil_tmp37 ;
13885  unsigned long __cil_tmp38 ;
13886  struct device *__cil_tmp39 ;
13887  struct device  const  *__cil_tmp40 ;
13888  unsigned char (*__cil_tmp41)[0U] ;
13889  void *__cil_tmp42 ;
13890  void const   *__cil_tmp43 ;
13891  struct gigaset_ops  const  *__cil_tmp44 ;
13892  int (*__cil_tmp45)(struct cardstate * , struct cmdbuf_t * ) ;
13893  struct mutex *__cil_tmp46 ;
13894
13895  {
13896#line 355
13897  __cil_tmp13 = tty->driver_data;
13898#line 355
13899  cs = (struct cardstate *)__cil_tmp13;
13900  {
13901#line 356
13902  __cil_tmp14 = (struct cardstate *)0;
13903#line 356
13904  __cil_tmp15 = (unsigned long )__cil_tmp14;
13905#line 356
13906  __cil_tmp16 = (unsigned long )cs;
13907#line 356
13908  if (__cil_tmp16 == __cil_tmp15) {
13909    {
13910#line 357
13911    printk("<3>gigaset: %s: no cardstate\n", "if_write");
13912    }
13913#line 358
13914    return (-19);
13915  } else {
13916
13917  }
13918  }
13919  {
13920#line 361
13921  __cil_tmp17 = (unsigned int )gigaset_debuglevel;
13922#line 361
13923  __cil_tmp18 = __cil_tmp17 & 524288U;
13924#line 361
13925  __cil_tmp19 = __cil_tmp18 != 0U;
13926#line 361
13927  __cil_tmp20 = (long )__cil_tmp19;
13928#line 361
13929  tmp = __builtin_expect(__cil_tmp20, 0L);
13930  }
13931#line 361
13932  if (tmp != 0L) {
13933    {
13934#line 361
13935    __cil_tmp21 = cs->minor_index;
13936#line 361
13937    printk("<7>gigaset: %u: %s()\n", __cil_tmp21, "if_write");
13938    }
13939  } else {
13940
13941  }
13942  {
13943#line 363
13944  __cil_tmp22 = & cs->mutex;
13945#line 363
13946  tmp___0 = mutex_lock_interruptible_nested(__cil_tmp22, 0U);
13947  }
13948#line 363
13949  if (tmp___0 != 0) {
13950#line 364
13951    return (-512);
13952  } else {
13953
13954  }
13955  {
13956#line 366
13957  __cil_tmp23 = cs->connected;
13958#line 366
13959  if (__cil_tmp23 == 0U) {
13960    {
13961#line 367
13962    __cil_tmp24 = (unsigned int )gigaset_debuglevel;
13963#line 367
13964    __cil_tmp25 = __cil_tmp24 & 524288U;
13965#line 367
13966    __cil_tmp26 = __cil_tmp25 != 0U;
13967#line 367
13968    __cil_tmp27 = (long )__cil_tmp26;
13969#line 367
13970    tmp___1 = __builtin_expect(__cil_tmp27, 0L);
13971    }
13972#line 367
13973    if (tmp___1 != 0L) {
13974      {
13975#line 367
13976      printk("<7>gigaset: not connected\n");
13977      }
13978    } else {
13979
13980    }
13981#line 368
13982    retval = -19;
13983#line 369
13984    goto done;
13985  } else {
13986
13987  }
13988  }
13989  {
13990#line 371
13991  __cil_tmp28 = cs->open_count;
13992#line 371
13993  if (__cil_tmp28 == 0U) {
13994    {
13995#line 372
13996    __cil_tmp29 = cs->dev;
13997#line 372
13998    __cil_tmp30 = (struct device  const  *)__cil_tmp29;
13999#line 372
14000    dev_warn(__cil_tmp30, "%s: device not opened\n", "if_write");
14001#line 373
14002    retval = -19;
14003    }
14004#line 374
14005    goto done;
14006  } else {
14007
14008  }
14009  }
14010  {
14011#line 376
14012  __cil_tmp31 = cs->mstate;
14013#line 376
14014  if (__cil_tmp31 != 2) {
14015    {
14016#line 377
14017    __cil_tmp32 = cs->dev;
14018#line 377
14019    __cil_tmp33 = (struct device  const  *)__cil_tmp32;
14020#line 377
14021    dev_warn(__cil_tmp33, "can\'t write to unlocked device\n");
14022#line 378
14023    retval = -16;
14024    }
14025#line 379
14026    goto done;
14027  } else {
14028
14029  }
14030  }
14031#line 381
14032  if (count <= 0) {
14033#line 383
14034    retval = 0;
14035#line 384
14036    goto done;
14037  } else {
14038
14039  }
14040  {
14041#line 387
14042  __cil_tmp34 = (unsigned long )count;
14043#line 387
14044  __cil_tmp35 = __cil_tmp34 + 32UL;
14045#line 387
14046  tmp___2 = kmalloc(__cil_tmp35, 208U);
14047#line 387
14048  cb = (struct cmdbuf_t *)tmp___2;
14049  }
14050  {
14051#line 388
14052  __cil_tmp36 = (struct cmdbuf_t *)0;
14053#line 388
14054  __cil_tmp37 = (unsigned long )__cil_tmp36;
14055#line 388
14056  __cil_tmp38 = (unsigned long )cb;
14057#line 388
14058  if (__cil_tmp38 == __cil_tmp37) {
14059    {
14060#line 389
14061    __cil_tmp39 = cs->dev;
14062#line 389
14063    __cil_tmp40 = (struct device  const  *)__cil_tmp39;
14064#line 389
14065    dev_err(__cil_tmp40, "%s: out of memory\n", "if_write");
14066#line 390
14067    retval = -12;
14068    }
14069#line 391
14070    goto done;
14071  } else {
14072
14073  }
14074  }
14075  {
14076#line 394
14077  __len = (size_t )count;
14078#line 394
14079  __cil_tmp41 = & cb->buf;
14080#line 394
14081  __cil_tmp42 = (void *)__cil_tmp41;
14082#line 394
14083  __cil_tmp43 = (void const   *)buf;
14084#line 394
14085  __ret = __builtin_memcpy(__cil_tmp42, __cil_tmp43, __len);
14086#line 395
14087  cb->len = count;
14088#line 396
14089  cb->offset = 0;
14090#line 397
14091  cb->next = (struct cmdbuf_t *)0;
14092#line 398
14093  cb->wake_tasklet = & cs->if_wake_tasklet;
14094#line 399
14095  __cil_tmp44 = cs->ops;
14096#line 399
14097  __cil_tmp45 = __cil_tmp44->write_cmd;
14098#line 399
14099  retval = (*__cil_tmp45)(cs, cb);
14100  }
14101  done: 
14102  {
14103#line 401
14104  __cil_tmp46 = & cs->mutex;
14105#line 401
14106  mutex_unlock(__cil_tmp46);
14107  }
14108#line 402
14109  return (retval);
14110}
14111}
14112#line 405 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
14113static int if_write_room(struct tty_struct *tty ) 
14114{ struct cardstate *cs ;
14115  int retval ;
14116  long tmp ;
14117  int tmp___0 ;
14118  long tmp___1 ;
14119  void *__cil_tmp7 ;
14120  struct cardstate *__cil_tmp8 ;
14121  unsigned long __cil_tmp9 ;
14122  unsigned long __cil_tmp10 ;
14123  unsigned int __cil_tmp11 ;
14124  unsigned int __cil_tmp12 ;
14125  int __cil_tmp13 ;
14126  long __cil_tmp14 ;
14127  unsigned int __cil_tmp15 ;
14128  struct mutex *__cil_tmp16 ;
14129  unsigned int __cil_tmp17 ;
14130  unsigned int __cil_tmp18 ;
14131  unsigned int __cil_tmp19 ;
14132  int __cil_tmp20 ;
14133  long __cil_tmp21 ;
14134  unsigned int __cil_tmp22 ;
14135  struct device *__cil_tmp23 ;
14136  struct device  const  *__cil_tmp24 ;
14137  int __cil_tmp25 ;
14138  struct device *__cil_tmp26 ;
14139  struct device  const  *__cil_tmp27 ;
14140  struct gigaset_ops  const  *__cil_tmp28 ;
14141  int (*__cil_tmp29)(struct cardstate * ) ;
14142  struct mutex *__cil_tmp30 ;
14143
14144  {
14145#line 408
14146  retval = -19;
14147#line 410
14148  __cil_tmp7 = tty->driver_data;
14149#line 410
14150  cs = (struct cardstate *)__cil_tmp7;
14151  {
14152#line 411
14153  __cil_tmp8 = (struct cardstate *)0;
14154#line 411
14155  __cil_tmp9 = (unsigned long )__cil_tmp8;
14156#line 411
14157  __cil_tmp10 = (unsigned long )cs;
14158#line 411
14159  if (__cil_tmp10 == __cil_tmp9) {
14160    {
14161#line 412
14162    printk("<3>gigaset: %s: no cardstate\n", "if_write_room");
14163    }
14164#line 413
14165    return (-19);
14166  } else {
14167
14168  }
14169  }
14170  {
14171#line 416
14172  __cil_tmp11 = (unsigned int )gigaset_debuglevel;
14173#line 416
14174  __cil_tmp12 = __cil_tmp11 & 524288U;
14175#line 416
14176  __cil_tmp13 = __cil_tmp12 != 0U;
14177#line 416
14178  __cil_tmp14 = (long )__cil_tmp13;
14179#line 416
14180  tmp = __builtin_expect(__cil_tmp14, 0L);
14181  }
14182#line 416
14183  if (tmp != 0L) {
14184    {
14185#line 416
14186    __cil_tmp15 = cs->minor_index;
14187#line 416
14188    printk("<7>gigaset: %u: %s()\n", __cil_tmp15, "if_write_room");
14189    }
14190  } else {
14191
14192  }
14193  {
14194#line 418
14195  __cil_tmp16 = & cs->mutex;
14196#line 418
14197  tmp___0 = mutex_lock_interruptible_nested(__cil_tmp16, 0U);
14198  }
14199#line 418
14200  if (tmp___0 != 0) {
14201#line 419
14202    return (-512);
14203  } else {
14204
14205  }
14206  {
14207#line 421
14208  __cil_tmp17 = cs->connected;
14209#line 421
14210  if (__cil_tmp17 == 0U) {
14211    {
14212#line 422
14213    __cil_tmp18 = (unsigned int )gigaset_debuglevel;
14214#line 422
14215    __cil_tmp19 = __cil_tmp18 & 524288U;
14216#line 422
14217    __cil_tmp20 = __cil_tmp19 != 0U;
14218#line 422
14219    __cil_tmp21 = (long )__cil_tmp20;
14220#line 422
14221    tmp___1 = __builtin_expect(__cil_tmp21, 0L);
14222    }
14223#line 422
14224    if (tmp___1 != 0L) {
14225      {
14226#line 422
14227      printk("<7>gigaset: not connected\n");
14228      }
14229    } else {
14230
14231    }
14232#line 423
14233    retval = -19;
14234  } else {
14235    {
14236#line 424
14237    __cil_tmp22 = cs->open_count;
14238#line 424
14239    if (__cil_tmp22 == 0U) {
14240      {
14241#line 425
14242      __cil_tmp23 = cs->dev;
14243#line 425
14244      __cil_tmp24 = (struct device  const  *)__cil_tmp23;
14245#line 425
14246      dev_warn(__cil_tmp24, "%s: device not opened\n", "if_write_room");
14247      }
14248    } else {
14249      {
14250#line 426
14251      __cil_tmp25 = cs->mstate;
14252#line 426
14253      if (__cil_tmp25 != 2) {
14254        {
14255#line 427
14256        __cil_tmp26 = cs->dev;
14257#line 427
14258        __cil_tmp27 = (struct device  const  *)__cil_tmp26;
14259#line 427
14260        dev_warn(__cil_tmp27, "can\'t write to unlocked device\n");
14261#line 428
14262        retval = -16;
14263        }
14264      } else {
14265        {
14266#line 430
14267        __cil_tmp28 = cs->ops;
14268#line 430
14269        __cil_tmp29 = __cil_tmp28->write_room;
14270#line 430
14271        retval = (*__cil_tmp29)(cs);
14272        }
14273      }
14274      }
14275    }
14276    }
14277  }
14278  }
14279  {
14280#line 432
14281  __cil_tmp30 = & cs->mutex;
14282#line 432
14283  mutex_unlock(__cil_tmp30);
14284  }
14285#line 434
14286  return (retval);
14287}
14288}
14289#line 437 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
14290static int if_chars_in_buffer(struct tty_struct *tty ) 
14291{ struct cardstate *cs ;
14292  int retval ;
14293  long tmp ;
14294  long tmp___0 ;
14295  void *__cil_tmp6 ;
14296  struct cardstate *__cil_tmp7 ;
14297  unsigned long __cil_tmp8 ;
14298  unsigned long __cil_tmp9 ;
14299  unsigned int __cil_tmp10 ;
14300  unsigned int __cil_tmp11 ;
14301  int __cil_tmp12 ;
14302  long __cil_tmp13 ;
14303  unsigned int __cil_tmp14 ;
14304  struct mutex *__cil_tmp15 ;
14305  unsigned int __cil_tmp16 ;
14306  unsigned int __cil_tmp17 ;
14307  unsigned int __cil_tmp18 ;
14308  int __cil_tmp19 ;
14309  long __cil_tmp20 ;
14310  unsigned int __cil_tmp21 ;
14311  struct device *__cil_tmp22 ;
14312  struct device  const  *__cil_tmp23 ;
14313  int __cil_tmp24 ;
14314  struct device *__cil_tmp25 ;
14315  struct device  const  *__cil_tmp26 ;
14316  struct gigaset_ops  const  *__cil_tmp27 ;
14317  int (*__cil_tmp28)(struct cardstate * ) ;
14318  struct mutex *__cil_tmp29 ;
14319
14320  {
14321#line 440
14322  retval = 0;
14323#line 442
14324  __cil_tmp6 = tty->driver_data;
14325#line 442
14326  cs = (struct cardstate *)__cil_tmp6;
14327  {
14328#line 443
14329  __cil_tmp7 = (struct cardstate *)0;
14330#line 443
14331  __cil_tmp8 = (unsigned long )__cil_tmp7;
14332#line 443
14333  __cil_tmp9 = (unsigned long )cs;
14334#line 443
14335  if (__cil_tmp9 == __cil_tmp8) {
14336    {
14337#line 444
14338    printk("<3>gigaset: %s: no cardstate\n", "if_chars_in_buffer");
14339    }
14340#line 445
14341    return (0);
14342  } else {
14343
14344  }
14345  }
14346  {
14347#line 448
14348  __cil_tmp10 = (unsigned int )gigaset_debuglevel;
14349#line 448
14350  __cil_tmp11 = __cil_tmp10 & 524288U;
14351#line 448
14352  __cil_tmp12 = __cil_tmp11 != 0U;
14353#line 448
14354  __cil_tmp13 = (long )__cil_tmp12;
14355#line 448
14356  tmp = __builtin_expect(__cil_tmp13, 0L);
14357  }
14358#line 448
14359  if (tmp != 0L) {
14360    {
14361#line 448
14362    __cil_tmp14 = cs->minor_index;
14363#line 448
14364    printk("<7>gigaset: %u: %s()\n", __cil_tmp14, "if_chars_in_buffer");
14365    }
14366  } else {
14367
14368  }
14369  {
14370#line 450
14371  __cil_tmp15 = & cs->mutex;
14372#line 450
14373  mutex_lock_nested(__cil_tmp15, 0U);
14374  }
14375  {
14376#line 452
14377  __cil_tmp16 = cs->connected;
14378#line 452
14379  if (__cil_tmp16 == 0U) {
14380    {
14381#line 453
14382    __cil_tmp17 = (unsigned int )gigaset_debuglevel;
14383#line 453
14384    __cil_tmp18 = __cil_tmp17 & 524288U;
14385#line 453
14386    __cil_tmp19 = __cil_tmp18 != 0U;
14387#line 453
14388    __cil_tmp20 = (long )__cil_tmp19;
14389#line 453
14390    tmp___0 = __builtin_expect(__cil_tmp20, 0L);
14391    }
14392#line 453
14393    if (tmp___0 != 0L) {
14394      {
14395#line 453
14396      printk("<7>gigaset: not connected\n");
14397      }
14398    } else {
14399      {
14400#line 454
14401      __cil_tmp21 = cs->open_count;
14402#line 454
14403      if (__cil_tmp21 == 0U) {
14404        {
14405#line 455
14406        __cil_tmp22 = cs->dev;
14407#line 455
14408        __cil_tmp23 = (struct device  const  *)__cil_tmp22;
14409#line 455
14410        dev_warn(__cil_tmp23, "%s: device not opened\n", "if_chars_in_buffer");
14411        }
14412      } else {
14413        {
14414#line 456
14415        __cil_tmp24 = cs->mstate;
14416#line 456
14417        if (__cil_tmp24 != 2) {
14418          {
14419#line 457
14420          __cil_tmp25 = cs->dev;
14421#line 457
14422          __cil_tmp26 = (struct device  const  *)__cil_tmp25;
14423#line 457
14424          dev_warn(__cil_tmp26, "can\'t write to unlocked device\n");
14425          }
14426        } else {
14427          {
14428#line 459
14429          __cil_tmp27 = cs->ops;
14430#line 459
14431          __cil_tmp28 = __cil_tmp27->chars_in_buffer;
14432#line 459
14433          retval = (*__cil_tmp28)(cs);
14434          }
14435        }
14436        }
14437      }
14438      }
14439    }
14440  } else {
14441
14442  }
14443  }
14444  {
14445#line 461
14446  __cil_tmp29 = & cs->mutex;
14447#line 461
14448  mutex_unlock(__cil_tmp29);
14449  }
14450#line 463
14451  return (retval);
14452}
14453}
14454#line 466 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
14455static void if_throttle(struct tty_struct *tty ) 
14456{ struct cardstate *cs ;
14457  long tmp ;
14458  long tmp___0 ;
14459  long tmp___1 ;
14460  void *__cil_tmp6 ;
14461  struct cardstate *__cil_tmp7 ;
14462  unsigned long __cil_tmp8 ;
14463  unsigned long __cil_tmp9 ;
14464  unsigned int __cil_tmp10 ;
14465  unsigned int __cil_tmp11 ;
14466  int __cil_tmp12 ;
14467  long __cil_tmp13 ;
14468  unsigned int __cil_tmp14 ;
14469  struct mutex *__cil_tmp15 ;
14470  unsigned int __cil_tmp16 ;
14471  unsigned int __cil_tmp17 ;
14472  unsigned int __cil_tmp18 ;
14473  int __cil_tmp19 ;
14474  long __cil_tmp20 ;
14475  unsigned int __cil_tmp21 ;
14476  struct device *__cil_tmp22 ;
14477  struct device  const  *__cil_tmp23 ;
14478  unsigned int __cil_tmp24 ;
14479  unsigned int __cil_tmp25 ;
14480  int __cil_tmp26 ;
14481  long __cil_tmp27 ;
14482  struct mutex *__cil_tmp28 ;
14483
14484  {
14485#line 470
14486  __cil_tmp6 = tty->driver_data;
14487#line 470
14488  cs = (struct cardstate *)__cil_tmp6;
14489  {
14490#line 471
14491  __cil_tmp7 = (struct cardstate *)0;
14492#line 471
14493  __cil_tmp8 = (unsigned long )__cil_tmp7;
14494#line 471
14495  __cil_tmp9 = (unsigned long )cs;
14496#line 471
14497  if (__cil_tmp9 == __cil_tmp8) {
14498    {
14499#line 472
14500    printk("<3>gigaset: %s: no cardstate\n", "if_throttle");
14501    }
14502#line 473
14503    return;
14504  } else {
14505
14506  }
14507  }
14508  {
14509#line 476
14510  __cil_tmp10 = (unsigned int )gigaset_debuglevel;
14511#line 476
14512  __cil_tmp11 = __cil_tmp10 & 524288U;
14513#line 476
14514  __cil_tmp12 = __cil_tmp11 != 0U;
14515#line 476
14516  __cil_tmp13 = (long )__cil_tmp12;
14517#line 476
14518  tmp = __builtin_expect(__cil_tmp13, 0L);
14519  }
14520#line 476
14521  if (tmp != 0L) {
14522    {
14523#line 476
14524    __cil_tmp14 = cs->minor_index;
14525#line 476
14526    printk("<7>gigaset: %u: %s()\n", __cil_tmp14, "if_throttle");
14527    }
14528  } else {
14529
14530  }
14531  {
14532#line 478
14533  __cil_tmp15 = & cs->mutex;
14534#line 478
14535  mutex_lock_nested(__cil_tmp15, 0U);
14536  }
14537  {
14538#line 480
14539  __cil_tmp16 = cs->connected;
14540#line 480
14541  if (__cil_tmp16 == 0U) {
14542    {
14543#line 481
14544    __cil_tmp17 = (unsigned int )gigaset_debuglevel;
14545#line 481
14546    __cil_tmp18 = __cil_tmp17 & 524288U;
14547#line 481
14548    __cil_tmp19 = __cil_tmp18 != 0U;
14549#line 481
14550    __cil_tmp20 = (long )__cil_tmp19;
14551#line 481
14552    tmp___1 = __builtin_expect(__cil_tmp20, 0L);
14553    }
14554#line 481
14555    if (tmp___1 != 0L) {
14556      {
14557#line 481
14558      printk("<7>gigaset: not connected\n");
14559      }
14560    } else {
14561      {
14562#line 482
14563      __cil_tmp21 = cs->open_count;
14564#line 482
14565      if (__cil_tmp21 == 0U) {
14566        {
14567#line 483
14568        __cil_tmp22 = cs->dev;
14569#line 483
14570        __cil_tmp23 = (struct device  const  *)__cil_tmp22;
14571#line 483
14572        dev_warn(__cil_tmp23, "%s: device not opened\n", "if_throttle");
14573        }
14574      } else {
14575        {
14576#line 485
14577        __cil_tmp24 = (unsigned int )gigaset_debuglevel;
14578#line 485
14579        __cil_tmp25 = __cil_tmp24 & 524288U;
14580#line 485
14581        __cil_tmp26 = __cil_tmp25 != 0U;
14582#line 485
14583        __cil_tmp27 = (long )__cil_tmp26;
14584#line 485
14585        tmp___0 = __builtin_expect(__cil_tmp27, 0L);
14586        }
14587#line 485
14588        if (tmp___0 != 0L) {
14589          {
14590#line 485
14591          printk("<7>gigaset: %s: not implemented\n\n", "if_throttle");
14592          }
14593        } else {
14594
14595        }
14596      }
14597      }
14598    }
14599  } else {
14600
14601  }
14602  }
14603  {
14604#line 487
14605  __cil_tmp28 = & cs->mutex;
14606#line 487
14607  mutex_unlock(__cil_tmp28);
14608  }
14609#line 488
14610  return;
14611}
14612}
14613#line 490 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
14614static void if_unthrottle(struct tty_struct *tty ) 
14615{ struct cardstate *cs ;
14616  long tmp ;
14617  long tmp___0 ;
14618  long tmp___1 ;
14619  void *__cil_tmp6 ;
14620  struct cardstate *__cil_tmp7 ;
14621  unsigned long __cil_tmp8 ;
14622  unsigned long __cil_tmp9 ;
14623  unsigned int __cil_tmp10 ;
14624  unsigned int __cil_tmp11 ;
14625  int __cil_tmp12 ;
14626  long __cil_tmp13 ;
14627  unsigned int __cil_tmp14 ;
14628  struct mutex *__cil_tmp15 ;
14629  unsigned int __cil_tmp16 ;
14630  unsigned int __cil_tmp17 ;
14631  unsigned int __cil_tmp18 ;
14632  int __cil_tmp19 ;
14633  long __cil_tmp20 ;
14634  unsigned int __cil_tmp21 ;
14635  struct device *__cil_tmp22 ;
14636  struct device  const  *__cil_tmp23 ;
14637  unsigned int __cil_tmp24 ;
14638  unsigned int __cil_tmp25 ;
14639  int __cil_tmp26 ;
14640  long __cil_tmp27 ;
14641  struct mutex *__cil_tmp28 ;
14642
14643  {
14644#line 494
14645  __cil_tmp6 = tty->driver_data;
14646#line 494
14647  cs = (struct cardstate *)__cil_tmp6;
14648  {
14649#line 495
14650  __cil_tmp7 = (struct cardstate *)0;
14651#line 495
14652  __cil_tmp8 = (unsigned long )__cil_tmp7;
14653#line 495
14654  __cil_tmp9 = (unsigned long )cs;
14655#line 495
14656  if (__cil_tmp9 == __cil_tmp8) {
14657    {
14658#line 496
14659    printk("<3>gigaset: %s: no cardstate\n", "if_unthrottle");
14660    }
14661#line 497
14662    return;
14663  } else {
14664
14665  }
14666  }
14667  {
14668#line 500
14669  __cil_tmp10 = (unsigned int )gigaset_debuglevel;
14670#line 500
14671  __cil_tmp11 = __cil_tmp10 & 524288U;
14672#line 500
14673  __cil_tmp12 = __cil_tmp11 != 0U;
14674#line 500
14675  __cil_tmp13 = (long )__cil_tmp12;
14676#line 500
14677  tmp = __builtin_expect(__cil_tmp13, 0L);
14678  }
14679#line 500
14680  if (tmp != 0L) {
14681    {
14682#line 500
14683    __cil_tmp14 = cs->minor_index;
14684#line 500
14685    printk("<7>gigaset: %u: %s()\n", __cil_tmp14, "if_unthrottle");
14686    }
14687  } else {
14688
14689  }
14690  {
14691#line 502
14692  __cil_tmp15 = & cs->mutex;
14693#line 502
14694  mutex_lock_nested(__cil_tmp15, 0U);
14695  }
14696  {
14697#line 504
14698  __cil_tmp16 = cs->connected;
14699#line 504
14700  if (__cil_tmp16 == 0U) {
14701    {
14702#line 505
14703    __cil_tmp17 = (unsigned int )gigaset_debuglevel;
14704#line 505
14705    __cil_tmp18 = __cil_tmp17 & 524288U;
14706#line 505
14707    __cil_tmp19 = __cil_tmp18 != 0U;
14708#line 505
14709    __cil_tmp20 = (long )__cil_tmp19;
14710#line 505
14711    tmp___1 = __builtin_expect(__cil_tmp20, 0L);
14712    }
14713#line 505
14714    if (tmp___1 != 0L) {
14715      {
14716#line 505
14717      printk("<7>gigaset: not connected\n");
14718      }
14719    } else {
14720      {
14721#line 506
14722      __cil_tmp21 = cs->open_count;
14723#line 506
14724      if (__cil_tmp21 == 0U) {
14725        {
14726#line 507
14727        __cil_tmp22 = cs->dev;
14728#line 507
14729        __cil_tmp23 = (struct device  const  *)__cil_tmp22;
14730#line 507
14731        dev_warn(__cil_tmp23, "%s: device not opened\n", "if_unthrottle");
14732        }
14733      } else {
14734        {
14735#line 509
14736        __cil_tmp24 = (unsigned int )gigaset_debuglevel;
14737#line 509
14738        __cil_tmp25 = __cil_tmp24 & 524288U;
14739#line 509
14740        __cil_tmp26 = __cil_tmp25 != 0U;
14741#line 509
14742        __cil_tmp27 = (long )__cil_tmp26;
14743#line 509
14744        tmp___0 = __builtin_expect(__cil_tmp27, 0L);
14745        }
14746#line 509
14747        if (tmp___0 != 0L) {
14748          {
14749#line 509
14750          printk("<7>gigaset: %s: not implemented\n\n", "if_unthrottle");
14751          }
14752        } else {
14753
14754        }
14755      }
14756      }
14757    }
14758  } else {
14759
14760  }
14761  }
14762  {
14763#line 511
14764  __cil_tmp28 = & cs->mutex;
14765#line 511
14766  mutex_unlock(__cil_tmp28);
14767  }
14768#line 512
14769  return;
14770}
14771}
14772#line 514 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
14773static void if_set_termios(struct tty_struct *tty , struct ktermios *old ) 
14774{ struct cardstate *cs ;
14775  unsigned int iflag ;
14776  unsigned int cflag ;
14777  unsigned int old_cflag ;
14778  unsigned int control_state ;
14779  unsigned int new_state ;
14780  long tmp ;
14781  long tmp___0 ;
14782  long tmp___1 ;
14783  char *tmp___2 ;
14784  long tmp___3 ;
14785  long tmp___4 ;
14786  void *__cil_tmp15 ;
14787  struct cardstate *__cil_tmp16 ;
14788  unsigned long __cil_tmp17 ;
14789  unsigned long __cil_tmp18 ;
14790  unsigned int __cil_tmp19 ;
14791  unsigned int __cil_tmp20 ;
14792  int __cil_tmp21 ;
14793  long __cil_tmp22 ;
14794  unsigned int __cil_tmp23 ;
14795  struct mutex *__cil_tmp24 ;
14796  unsigned int __cil_tmp25 ;
14797  unsigned int __cil_tmp26 ;
14798  unsigned int __cil_tmp27 ;
14799  int __cil_tmp28 ;
14800  long __cil_tmp29 ;
14801  unsigned int __cil_tmp30 ;
14802  struct device *__cil_tmp31 ;
14803  struct device  const  *__cil_tmp32 ;
14804  struct ktermios *__cil_tmp33 ;
14805  struct ktermios *__cil_tmp34 ;
14806  struct ktermios *__cil_tmp35 ;
14807  unsigned long __cil_tmp36 ;
14808  unsigned long __cil_tmp37 ;
14809  unsigned int __cil_tmp38 ;
14810  unsigned int __cil_tmp39 ;
14811  int __cil_tmp40 ;
14812  long __cil_tmp41 ;
14813  unsigned int __cil_tmp42 ;
14814  unsigned int __cil_tmp43 ;
14815  int __cil_tmp44 ;
14816  unsigned int __cil_tmp45 ;
14817  unsigned int __cil_tmp46 ;
14818  int __cil_tmp47 ;
14819  long __cil_tmp48 ;
14820  unsigned int __cil_tmp49 ;
14821  unsigned int __cil_tmp50 ;
14822  struct gigaset_ops  const  *__cil_tmp51 ;
14823  int (*__cil_tmp52)(struct cardstate * , unsigned int  , unsigned int  ) ;
14824  struct gigaset_ops  const  *__cil_tmp53 ;
14825  int (*__cil_tmp54)(struct cardstate * , unsigned int  ) ;
14826  unsigned int __cil_tmp55 ;
14827  unsigned int __cil_tmp56 ;
14828  unsigned int __cil_tmp57 ;
14829  unsigned int __cil_tmp58 ;
14830  int __cil_tmp59 ;
14831  long __cil_tmp60 ;
14832  unsigned int __cil_tmp61 ;
14833  struct gigaset_ops  const  *__cil_tmp62 ;
14834  int (*__cil_tmp63)(struct cardstate * , unsigned int  , unsigned int  ) ;
14835  struct gigaset_ops  const  *__cil_tmp64 ;
14836  int (*__cil_tmp65)(struct cardstate * , unsigned int  ) ;
14837  struct mutex *__cil_tmp66 ;
14838
14839  {
14840#line 522
14841  __cil_tmp15 = tty->driver_data;
14842#line 522
14843  cs = (struct cardstate *)__cil_tmp15;
14844  {
14845#line 523
14846  __cil_tmp16 = (struct cardstate *)0;
14847#line 523
14848  __cil_tmp17 = (unsigned long )__cil_tmp16;
14849#line 523
14850  __cil_tmp18 = (unsigned long )cs;
14851#line 523
14852  if (__cil_tmp18 == __cil_tmp17) {
14853    {
14854#line 524
14855    printk("<3>gigaset: %s: no cardstate\n", "if_set_termios");
14856    }
14857#line 525
14858    return;
14859  } else {
14860
14861  }
14862  }
14863  {
14864#line 528
14865  __cil_tmp19 = (unsigned int )gigaset_debuglevel;
14866#line 528
14867  __cil_tmp20 = __cil_tmp19 & 524288U;
14868#line 528
14869  __cil_tmp21 = __cil_tmp20 != 0U;
14870#line 528
14871  __cil_tmp22 = (long )__cil_tmp21;
14872#line 528
14873  tmp = __builtin_expect(__cil_tmp22, 0L);
14874  }
14875#line 528
14876  if (tmp != 0L) {
14877    {
14878#line 528
14879    __cil_tmp23 = cs->minor_index;
14880#line 528
14881    printk("<7>gigaset: %u: %s()\n", __cil_tmp23, "if_set_termios");
14882    }
14883  } else {
14884
14885  }
14886  {
14887#line 530
14888  __cil_tmp24 = & cs->mutex;
14889#line 530
14890  mutex_lock_nested(__cil_tmp24, 0U);
14891  }
14892  {
14893#line 532
14894  __cil_tmp25 = cs->connected;
14895#line 532
14896  if (__cil_tmp25 == 0U) {
14897    {
14898#line 533
14899    __cil_tmp26 = (unsigned int )gigaset_debuglevel;
14900#line 533
14901    __cil_tmp27 = __cil_tmp26 & 524288U;
14902#line 533
14903    __cil_tmp28 = __cil_tmp27 != 0U;
14904#line 533
14905    __cil_tmp29 = (long )__cil_tmp28;
14906#line 533
14907    tmp___0 = __builtin_expect(__cil_tmp29, 0L);
14908    }
14909#line 533
14910    if (tmp___0 != 0L) {
14911      {
14912#line 533
14913      printk("<7>gigaset: not connected\n");
14914      }
14915    } else {
14916
14917    }
14918#line 534
14919    goto out;
14920  } else {
14921
14922  }
14923  }
14924  {
14925#line 537
14926  __cil_tmp30 = cs->open_count;
14927#line 537
14928  if (__cil_tmp30 == 0U) {
14929    {
14930#line 538
14931    __cil_tmp31 = cs->dev;
14932#line 538
14933    __cil_tmp32 = (struct device  const  *)__cil_tmp31;
14934#line 538
14935    dev_warn(__cil_tmp32, "%s: device not opened\n", "if_set_termios");
14936    }
14937#line 539
14938    goto out;
14939  } else {
14940
14941  }
14942  }
14943#line 542
14944  __cil_tmp33 = tty->termios;
14945#line 542
14946  iflag = __cil_tmp33->c_iflag;
14947#line 543
14948  __cil_tmp34 = tty->termios;
14949#line 543
14950  cflag = __cil_tmp34->c_cflag;
14951  {
14952#line 544
14953  __cil_tmp35 = (struct ktermios *)0;
14954#line 544
14955  __cil_tmp36 = (unsigned long )__cil_tmp35;
14956#line 544
14957  __cil_tmp37 = (unsigned long )old;
14958#line 544
14959  if (__cil_tmp37 != __cil_tmp36) {
14960#line 544
14961    old_cflag = old->c_cflag;
14962  } else {
14963#line 544
14964    old_cflag = cflag;
14965  }
14966  }
14967  {
14968#line 545
14969  __cil_tmp38 = (unsigned int )gigaset_debuglevel;
14970#line 545
14971  __cil_tmp39 = __cil_tmp38 & 524288U;
14972#line 545
14973  __cil_tmp40 = __cil_tmp39 != 0U;
14974#line 545
14975  __cil_tmp41 = (long )__cil_tmp40;
14976#line 545
14977  tmp___1 = __builtin_expect(__cil_tmp41, 0L);
14978  }
14979#line 545
14980  if (tmp___1 != 0L) {
14981    {
14982#line 545
14983    __cil_tmp42 = cs->minor_index;
14984#line 545
14985    printk("<7>gigaset: %u: iflag %x cflag %x old %x\n", __cil_tmp42, iflag, cflag,
14986           old_cflag);
14987    }
14988  } else {
14989
14990  }
14991#line 549
14992  control_state = cs->control_state;
14993  {
14994#line 559
14995  __cil_tmp43 = old_cflag & 4111U;
14996#line 559
14997  if (__cil_tmp43 == 0U) {
14998#line 560
14999    new_state = control_state | 2U;
15000    {
15001#line 562
15002    __cil_tmp44 = (int )old_cflag;
15003#line 562
15004    if (__cil_tmp44 >= 0) {
15005#line 563
15006      new_state = new_state | 4U;
15007    } else {
15008
15009    }
15010    }
15011    {
15012#line 564
15013    __cil_tmp45 = (unsigned int )gigaset_debuglevel;
15014#line 564
15015    __cil_tmp46 = __cil_tmp45 & 524288U;
15016#line 564
15017    __cil_tmp47 = __cil_tmp46 != 0U;
15018#line 564
15019    __cil_tmp48 = (long )__cil_tmp47;
15020#line 564
15021    tmp___3 = __builtin_expect(__cil_tmp48, 0L);
15022    }
15023#line 564
15024    if (tmp___3 != 0L) {
15025      {
15026#line 564
15027      __cil_tmp49 = new_state & 4U;
15028#line 564
15029      if (__cil_tmp49 != 0U) {
15030#line 564
15031        tmp___2 = (char *)" only";
15032      } else {
15033#line 564
15034        tmp___2 = (char *)"/RTS";
15035      }
15036      }
15037      {
15038#line 564
15039      __cil_tmp50 = cs->minor_index;
15040#line 564
15041      printk("<7>gigaset: %u: from B0 - set DTR%s\n", __cil_tmp50, tmp___2);
15042      }
15043    } else {
15044
15045    }
15046    {
15047#line 567
15048    __cil_tmp51 = cs->ops;
15049#line 567
15050    __cil_tmp52 = __cil_tmp51->set_modem_ctrl;
15051#line 567
15052    (*__cil_tmp52)(cs, control_state, new_state);
15053#line 568
15054    control_state = new_state;
15055    }
15056  } else {
15057
15058  }
15059  }
15060  {
15061#line 571
15062  __cil_tmp53 = cs->ops;
15063#line 571
15064  __cil_tmp54 = __cil_tmp53->baud_rate;
15065#line 571
15066  __cil_tmp55 = cflag & 4111U;
15067#line 571
15068  (*__cil_tmp54)(cs, __cil_tmp55);
15069  }
15070  {
15071#line 573
15072  __cil_tmp56 = cflag & 4111U;
15073#line 573
15074  if (__cil_tmp56 == 0U) {
15075    {
15076#line 575
15077    __cil_tmp57 = (unsigned int )gigaset_debuglevel;
15078#line 575
15079    __cil_tmp58 = __cil_tmp57 & 524288U;
15080#line 575
15081    __cil_tmp59 = __cil_tmp58 != 0U;
15082#line 575
15083    __cil_tmp60 = (long )__cil_tmp59;
15084#line 575
15085    tmp___4 = __builtin_expect(__cil_tmp60, 0L);
15086    }
15087#line 575
15088    if (tmp___4 != 0L) {
15089      {
15090#line 575
15091      __cil_tmp61 = cs->minor_index;
15092#line 575
15093      printk("<7>gigaset: %u: to B0 - drop DTR/RTS\n", __cil_tmp61);
15094      }
15095    } else {
15096
15097    }
15098    {
15099#line 576
15100    new_state = control_state & 4294967289U;
15101#line 577
15102    __cil_tmp62 = cs->ops;
15103#line 577
15104    __cil_tmp63 = __cil_tmp62->set_modem_ctrl;
15105#line 577
15106    (*__cil_tmp63)(cs, control_state, new_state);
15107#line 578
15108    control_state = new_state;
15109    }
15110  } else {
15111
15112  }
15113  }
15114  {
15115#line 585
15116  __cil_tmp64 = cs->ops;
15117#line 585
15118  __cil_tmp65 = __cil_tmp64->set_line_ctrl;
15119#line 585
15120  (*__cil_tmp65)(cs, cflag);
15121#line 588
15122  cs->control_state = control_state;
15123  }
15124  out: 
15125  {
15126#line 591
15127  __cil_tmp66 = & cs->mutex;
15128#line 591
15129  mutex_unlock(__cil_tmp66);
15130  }
15131#line 592
15132  return;
15133}
15134}
15135#line 596 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15136static void if_wake(unsigned long data ) 
15137{ struct cardstate *cs ;
15138  struct tty_struct *__cil_tmp3 ;
15139  unsigned long __cil_tmp4 ;
15140  struct tty_struct *__cil_tmp5 ;
15141  unsigned long __cil_tmp6 ;
15142  struct tty_struct *__cil_tmp7 ;
15143
15144  {
15145#line 598
15146  cs = (struct cardstate *)data;
15147  {
15148#line 600
15149  __cil_tmp3 = (struct tty_struct *)0;
15150#line 600
15151  __cil_tmp4 = (unsigned long )__cil_tmp3;
15152#line 600
15153  __cil_tmp5 = cs->tty;
15154#line 600
15155  __cil_tmp6 = (unsigned long )__cil_tmp5;
15156#line 600
15157  if (__cil_tmp6 != __cil_tmp4) {
15158    {
15159#line 601
15160    __cil_tmp7 = cs->tty;
15161#line 601
15162    tty_wakeup(__cil_tmp7);
15163    }
15164  } else {
15165
15166  }
15167  }
15168#line 602
15169  return;
15170}
15171}
15172#line 606 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15173void gigaset_if_init(struct cardstate *cs ) 
15174{ struct gigaset_driver *drv ;
15175  long tmp ;
15176  unsigned int __cil_tmp4 ;
15177  struct tasklet_struct *__cil_tmp5 ;
15178  unsigned long __cil_tmp6 ;
15179  struct mutex *__cil_tmp7 ;
15180  struct tty_driver *__cil_tmp8 ;
15181  unsigned int __cil_tmp9 ;
15182  struct device *__cil_tmp10 ;
15183  struct device *__cil_tmp11 ;
15184  void const   *__cil_tmp12 ;
15185  struct device *__cil_tmp13 ;
15186  void *__cil_tmp14 ;
15187  struct mutex *__cil_tmp15 ;
15188
15189  {
15190#line 610
15191  drv = cs->driver;
15192  {
15193#line 611
15194  __cil_tmp4 = drv->have_tty;
15195#line 611
15196  if (__cil_tmp4 == 0U) {
15197#line 612
15198    return;
15199  } else {
15200
15201  }
15202  }
15203  {
15204#line 614
15205  __cil_tmp5 = & cs->if_wake_tasklet;
15206#line 614
15207  __cil_tmp6 = (unsigned long )cs;
15208#line 614
15209  tasklet_init(__cil_tmp5, & if_wake, __cil_tmp6);
15210#line 616
15211  __cil_tmp7 = & cs->mutex;
15212#line 616
15213  mutex_lock_nested(__cil_tmp7, 0U);
15214#line 617
15215  __cil_tmp8 = drv->tty;
15216#line 617
15217  __cil_tmp9 = cs->minor_index;
15218#line 617
15219  __cil_tmp10 = (struct device *)0;
15220#line 617
15221  cs->tty_dev = tty_register_device(__cil_tmp8, __cil_tmp9, __cil_tmp10);
15222#line 619
15223  __cil_tmp11 = cs->tty_dev;
15224#line 619
15225  __cil_tmp12 = (void const   *)__cil_tmp11;
15226#line 619
15227  tmp = IS_ERR(__cil_tmp12);
15228  }
15229#line 619
15230  if (tmp == 0L) {
15231    {
15232#line 620
15233    __cil_tmp13 = cs->tty_dev;
15234#line 620
15235    __cil_tmp14 = (void *)cs;
15236#line 620
15237    dev_set_drvdata(__cil_tmp13, __cil_tmp14);
15238    }
15239  } else {
15240    {
15241#line 622
15242    printk("<4>gigaset: could not register device to the tty subsystem\n");
15243#line 623
15244    cs->tty_dev = (struct device *)0;
15245    }
15246  }
15247  {
15248#line 625
15249  __cil_tmp15 = & cs->mutex;
15250#line 625
15251  mutex_unlock(__cil_tmp15);
15252  }
15253#line 626
15254  return;
15255}
15256}
15257#line 628 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15258void gigaset_if_free(struct cardstate *cs ) 
15259{ struct gigaset_driver *drv ;
15260  unsigned int __cil_tmp3 ;
15261  struct tasklet_struct *__cil_tmp4 ;
15262  struct tasklet_struct *__cil_tmp5 ;
15263  struct tty_driver *__cil_tmp6 ;
15264  unsigned int __cil_tmp7 ;
15265
15266  {
15267#line 632
15268  drv = cs->driver;
15269  {
15270#line 633
15271  __cil_tmp3 = drv->have_tty;
15272#line 633
15273  if (__cil_tmp3 == 0U) {
15274#line 634
15275    return;
15276  } else {
15277
15278  }
15279  }
15280  {
15281#line 636
15282  __cil_tmp4 = & cs->if_wake_tasklet;
15283#line 636
15284  tasklet_disable(__cil_tmp4);
15285#line 637
15286  __cil_tmp5 = & cs->if_wake_tasklet;
15287#line 637
15288  tasklet_kill(__cil_tmp5);
15289#line 638
15290  cs->tty_dev = (struct device *)0;
15291#line 639
15292  __cil_tmp6 = drv->tty;
15293#line 639
15294  __cil_tmp7 = cs->minor_index;
15295#line 639
15296  tty_unregister_device(__cil_tmp6, __cil_tmp7);
15297  }
15298#line 640
15299  return;
15300}
15301}
15302#line 651 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15303void gigaset_if_receive(struct cardstate *cs , unsigned char *buffer , size_t len ) 
15304{ unsigned long flags ;
15305  struct tty_struct *tty ;
15306  raw_spinlock_t *tmp ;
15307  long tmp___0 ;
15308  spinlock_t *__cil_tmp8 ;
15309  struct tty_struct *__cil_tmp9 ;
15310  unsigned long __cil_tmp10 ;
15311  unsigned long __cil_tmp11 ;
15312  unsigned int __cil_tmp12 ;
15313  unsigned int __cil_tmp13 ;
15314  int __cil_tmp14 ;
15315  long __cil_tmp15 ;
15316  unsigned char const   *__cil_tmp16 ;
15317  spinlock_t *__cil_tmp17 ;
15318
15319  {
15320  {
15321#line 657
15322  __cil_tmp8 = & cs->lock;
15323#line 657
15324  tmp = spinlock_check(__cil_tmp8);
15325#line 657
15326  flags = _raw_spin_lock_irqsave(tmp);
15327#line 658
15328  tty = cs->tty;
15329  }
15330  {
15331#line 659
15332  __cil_tmp9 = (struct tty_struct *)0;
15333#line 659
15334  __cil_tmp10 = (unsigned long )__cil_tmp9;
15335#line 659
15336  __cil_tmp11 = (unsigned long )tty;
15337#line 659
15338  if (__cil_tmp11 == __cil_tmp10) {
15339    {
15340#line 660
15341    __cil_tmp12 = (unsigned int )gigaset_debuglevel;
15342#line 660
15343    __cil_tmp13 = __cil_tmp12 & 524288U;
15344#line 660
15345    __cil_tmp14 = __cil_tmp13 != 0U;
15346#line 660
15347    __cil_tmp15 = (long )__cil_tmp14;
15348#line 660
15349    tmp___0 = __builtin_expect(__cil_tmp15, 0L);
15350    }
15351#line 660
15352    if (tmp___0 != 0L) {
15353      {
15354#line 660
15355      printk("<7>gigaset: receive on closed device\n");
15356      }
15357    } else {
15358      {
15359#line 662
15360      __cil_tmp16 = (unsigned char const   *)buffer;
15361#line 662
15362      tty_insert_flip_string(tty, __cil_tmp16, len);
15363#line 663
15364      tty_flip_buffer_push(tty);
15365      }
15366    }
15367  } else {
15368
15369  }
15370  }
15371  {
15372#line 665
15373  __cil_tmp17 = & cs->lock;
15374#line 665
15375  spin_unlock_irqrestore(__cil_tmp17, flags);
15376  }
15377#line 666
15378  return;
15379}
15380}
15381#line 676 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15382void gigaset_if_initdriver(struct gigaset_driver *drv , char const   *procname , char const   *devname ) 
15383{ unsigned int minors ;
15384  int ret ;
15385  struct tty_driver *tty ;
15386  long tmp ;
15387  int __cil_tmp8 ;
15388  struct tty_driver *__cil_tmp9 ;
15389  unsigned long __cil_tmp10 ;
15390  unsigned long __cil_tmp11 ;
15391  unsigned int __cil_tmp12 ;
15392  unsigned int __cil_tmp13 ;
15393  unsigned int __cil_tmp14 ;
15394  unsigned int __cil_tmp15 ;
15395  int __cil_tmp16 ;
15396  long __cil_tmp17 ;
15397  struct tty_driver *__cil_tmp18 ;
15398  unsigned long __cil_tmp19 ;
15399  struct tty_driver *__cil_tmp20 ;
15400  unsigned long __cil_tmp21 ;
15401  struct tty_driver *__cil_tmp22 ;
15402
15403  {
15404  {
15405#line 679
15406  minors = drv->minors;
15407#line 683
15408  drv->have_tty = 0U;
15409#line 685
15410  __cil_tmp8 = (int )minors;
15411#line 685
15412  tty = alloc_tty_driver(__cil_tmp8);
15413#line 685
15414  drv->tty = tty;
15415  }
15416  {
15417#line 686
15418  __cil_tmp9 = (struct tty_driver *)0;
15419#line 686
15420  __cil_tmp10 = (unsigned long )__cil_tmp9;
15421#line 686
15422  __cil_tmp11 = (unsigned long )tty;
15423#line 686
15424  if (__cil_tmp11 == __cil_tmp10) {
15425#line 687
15426    goto enomem;
15427  } else {
15428
15429  }
15430  }
15431  {
15432#line 689
15433  tty->magic = 21506;
15434#line 689
15435  tty->type = (short)3;
15436#line 689
15437  tty->subtype = (short)1;
15438#line 689
15439  tty->flags = 12;
15440#line 694
15441  tty->driver_name = procname;
15442#line 695
15443  tty->name = devname;
15444#line 696
15445  __cil_tmp12 = drv->minor;
15446#line 696
15447  tty->minor_start = (int )__cil_tmp12;
15448#line 697
15449  __cil_tmp13 = drv->minors;
15450#line 697
15451  tty->num = (int )__cil_tmp13;
15452#line 699
15453  tty->owner = & __this_module;
15454#line 701
15455  tty->init_termios = tty_std_termios;
15456#line 702
15457  tty->init_termios.c_cflag = 3261U;
15458#line 703
15459  tty_set_operations(tty, & if_ops);
15460#line 705
15461  ret = tty_register_driver(tty);
15462  }
15463#line 706
15464  if (ret < 0) {
15465    {
15466#line 707
15467    printk("<3>gigaset: error %d registering tty driver\n", ret);
15468    }
15469#line 708
15470    goto error;
15471  } else {
15472
15473  }
15474  {
15475#line 710
15476  __cil_tmp14 = (unsigned int )gigaset_debuglevel;
15477#line 710
15478  __cil_tmp15 = __cil_tmp14 & 524288U;
15479#line 710
15480  __cil_tmp16 = __cil_tmp15 != 0U;
15481#line 710
15482  __cil_tmp17 = (long )__cil_tmp16;
15483#line 710
15484  tmp = __builtin_expect(__cil_tmp17, 0L);
15485  }
15486#line 710
15487  if (tmp != 0L) {
15488    {
15489#line 710
15490    printk("<7>gigaset: tty driver initialized\n");
15491    }
15492  } else {
15493
15494  }
15495#line 711
15496  drv->have_tty = 1U;
15497#line 712
15498  return;
15499  enomem: 
15500  {
15501#line 715
15502  printk("<3>gigaset: out of memory\n");
15503  }
15504  error: ;
15505  {
15506#line 717
15507  __cil_tmp18 = (struct tty_driver *)0;
15508#line 717
15509  __cil_tmp19 = (unsigned long )__cil_tmp18;
15510#line 717
15511  __cil_tmp20 = drv->tty;
15512#line 717
15513  __cil_tmp21 = (unsigned long )__cil_tmp20;
15514#line 717
15515  if (__cil_tmp21 != __cil_tmp19) {
15516    {
15517#line 718
15518    __cil_tmp22 = drv->tty;
15519#line 718
15520    put_tty_driver(__cil_tmp22);
15521    }
15522  } else {
15523
15524  }
15525  }
15526#line 719
15527  return;
15528}
15529}
15530#line 721 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15531void gigaset_if_freedriver(struct gigaset_driver *drv ) 
15532{ unsigned int __cil_tmp2 ;
15533  struct tty_driver *__cil_tmp3 ;
15534  struct tty_driver *__cil_tmp4 ;
15535
15536  {
15537  {
15538#line 723
15539  __cil_tmp2 = drv->have_tty;
15540#line 723
15541  if (__cil_tmp2 == 0U) {
15542#line 724
15543    return;
15544  } else {
15545
15546  }
15547  }
15548  {
15549#line 726
15550  drv->have_tty = 0U;
15551#line 727
15552  __cil_tmp3 = drv->tty;
15553#line 727
15554  tty_unregister_driver(__cil_tmp3);
15555#line 728
15556  __cil_tmp4 = drv->tty;
15557#line 728
15558  put_tty_driver(__cil_tmp4);
15559  }
15560#line 729
15561  return;
15562}
15563}
15564#line 750
15565extern void ldv_check_return_value(int  ) ;
15566#line 762 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15567void main(void) 
15568{ struct tty_struct *var_group1 ;
15569  struct file *var_group2 ;
15570  int res_if_open_2 ;
15571  unsigned int var_if_ioctl_4_p1 ;
15572  unsigned long var_if_ioctl_4_p2 ;
15573  unsigned char const   *var_if_write_7_p1 ;
15574  int var_if_write_7_p2 ;
15575  struct ktermios *var_group3 ;
15576  unsigned int var_if_tiocmset_6_p1 ;
15577  unsigned int var_if_tiocmset_6_p2 ;
15578  int ldv_s_if_ops_tty_operations ;
15579  int tmp ;
15580  int tmp___0 ;
15581
15582  {
15583  {
15584#line 828
15585  ldv_s_if_ops_tty_operations = 0;
15586#line 818
15587  LDV_IN_INTERRUPT = 1;
15588#line 827
15589  ldv_initialize();
15590  }
15591#line 832
15592  goto ldv_34940;
15593  ldv_34939: 
15594  {
15595#line 836
15596  tmp = nondet_int();
15597  }
15598#line 838
15599  if (tmp == 0) {
15600#line 838
15601    goto case_0;
15602  } else
15603#line 857
15604  if (tmp == 1) {
15605#line 857
15606    goto case_1;
15607  } else
15608#line 873
15609  if (tmp == 2) {
15610#line 873
15611    goto case_2;
15612  } else
15613#line 889
15614  if (tmp == 3) {
15615#line 889
15616    goto case_3;
15617  } else
15618#line 905
15619  if (tmp == 4) {
15620#line 905
15621    goto case_4;
15622  } else
15623#line 921
15624  if (tmp == 5) {
15625#line 921
15626    goto case_5;
15627  } else
15628#line 937
15629  if (tmp == 6) {
15630#line 937
15631    goto case_6;
15632  } else
15633#line 953
15634  if (tmp == 7) {
15635#line 953
15636    goto case_7;
15637  } else
15638#line 969
15639  if (tmp == 8) {
15640#line 969
15641    goto case_8;
15642  } else
15643#line 985
15644  if (tmp == 9) {
15645#line 985
15646    goto case_9;
15647  } else
15648#line 1001
15649  if (tmp == 10) {
15650#line 1001
15651    goto case_10;
15652  } else {
15653#line 1017
15654    goto switch_default;
15655#line 836
15656    if (0) {
15657      case_0: ;
15658#line 841
15659      if (ldv_s_if_ops_tty_operations == 0) {
15660        {
15661#line 846
15662        res_if_open_2 = if_open(var_group1, var_group2);
15663#line 847
15664        ldv_check_return_value(res_if_open_2);
15665        }
15666#line 848
15667        if (res_if_open_2 != 0) {
15668#line 849
15669          goto ldv_module_exit;
15670        } else {
15671
15672        }
15673#line 850
15674        ldv_s_if_ops_tty_operations = ldv_s_if_ops_tty_operations + 1;
15675      } else {
15676
15677      }
15678#line 856
15679      goto ldv_34927;
15680      case_1: ;
15681#line 860
15682      if (ldv_s_if_ops_tty_operations == 1) {
15683        {
15684#line 865
15685        if_close(var_group1, var_group2);
15686#line 866
15687        ldv_s_if_ops_tty_operations = 0;
15688        }
15689      } else {
15690
15691      }
15692#line 872
15693      goto ldv_34927;
15694      case_2: 
15695      {
15696#line 881
15697      if_ioctl(var_group1, var_if_ioctl_4_p1, var_if_ioctl_4_p2);
15698      }
15699#line 888
15700      goto ldv_34927;
15701      case_3: 
15702      {
15703#line 897
15704      if_write(var_group1, var_if_write_7_p1, var_if_write_7_p2);
15705      }
15706#line 904
15707      goto ldv_34927;
15708      case_4: 
15709      {
15710#line 913
15711      if_write_room(var_group1);
15712      }
15713#line 920
15714      goto ldv_34927;
15715      case_5: 
15716      {
15717#line 929
15718      if_chars_in_buffer(var_group1);
15719      }
15720#line 936
15721      goto ldv_34927;
15722      case_6: 
15723      {
15724#line 945
15725      if_set_termios(var_group1, var_group3);
15726      }
15727#line 952
15728      goto ldv_34927;
15729      case_7: 
15730      {
15731#line 961
15732      if_throttle(var_group1);
15733      }
15734#line 968
15735      goto ldv_34927;
15736      case_8: 
15737      {
15738#line 977
15739      if_unthrottle(var_group1);
15740      }
15741#line 984
15742      goto ldv_34927;
15743      case_9: 
15744      {
15745#line 993
15746      if_tiocmget(var_group1);
15747      }
15748#line 1000
15749      goto ldv_34927;
15750      case_10: 
15751      {
15752#line 1009
15753      if_tiocmset(var_group1, var_if_tiocmset_6_p1, var_if_tiocmset_6_p2);
15754      }
15755#line 1016
15756      goto ldv_34927;
15757      switch_default: ;
15758#line 1017
15759      goto ldv_34927;
15760    } else {
15761
15762    }
15763  }
15764  ldv_34927: ;
15765  ldv_34940: 
15766  {
15767#line 832
15768  tmp___0 = nondet_int();
15769  }
15770#line 832
15771  if (tmp___0 != 0) {
15772#line 834
15773    goto ldv_34939;
15774  } else
15775#line 832
15776  if (ldv_s_if_ops_tty_operations != 0) {
15777#line 834
15778    goto ldv_34939;
15779  } else {
15780#line 836
15781    goto ldv_34941;
15782  }
15783  ldv_34941: ;
15784  ldv_module_exit: 
15785  {
15786#line 1026
15787  ldv_check_final_state();
15788  }
15789#line 1029
15790  return;
15791}
15792}
15793#line 1041 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/interface.c.p"
15794void ldv_module_put_2(struct module *ldv_func_arg1 ) 
15795{ 
15796
15797  {
15798  {
15799#line 1046
15800  ldv_module_put(ldv_func_arg1);
15801  }
15802#line 1047
15803  return;
15804}
15805}
15806#line 283 "include/linux/kernel.h"
15807extern long simple_strtol(char const   * , char ** , unsigned int  ) ;
15808#line 291
15809extern int sprintf(char * , char const   *  , ...) ;
15810#line 18 "include/linux/ctype.h"
15811extern unsigned char const   _ctype[] ;
15812#line 435 "include/linux/device.h"
15813extern int device_create_file(struct device * , struct device_attribute  const  * ) ;
15814#line 437
15815extern void device_remove_file(struct device * , struct device_attribute  const  * ) ;
15816#line 705
15817extern void *dev_get_drvdata(struct device  const  * ) ;
15818#line 25 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/proc.c.p"
15819static ssize_t show_cidmode(struct device *dev , struct device_attribute *attr , char *buf ) 
15820{ struct cardstate *cs ;
15821  void *tmp ;
15822  int tmp___0 ;
15823  struct device  const  *__cil_tmp7 ;
15824  unsigned int __cil_tmp8 ;
15825
15826  {
15827  {
15828#line 28
15829  __cil_tmp7 = (struct device  const  *)dev;
15830#line 28
15831  tmp = dev_get_drvdata(__cil_tmp7);
15832#line 28
15833  cs = (struct cardstate *)tmp;
15834#line 30
15835  __cil_tmp8 = cs->cidmode;
15836#line 30
15837  tmp___0 = sprintf(buf, "%u\n", __cil_tmp8);
15838  }
15839#line 30
15840  return ((ssize_t )tmp___0);
15841}
15842}
15843#line 33 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/proc.c.p"
15844static ssize_t set_cidmode(struct device *dev , struct device_attribute *attr , char const   *buf ,
15845                           size_t count ) 
15846{ struct cardstate *cs ;
15847  void *tmp ;
15848  long value ;
15849  char *end ;
15850  char *tmp___0 ;
15851  int tmp___1 ;
15852  struct event_t *tmp___2 ;
15853  wait_queue_t __wait ;
15854  struct task_struct *tmp___3 ;
15855  struct device  const  *__cil_tmp14 ;
15856  int __cil_tmp15 ;
15857  int __cil_tmp16 ;
15858  char __cil_tmp17 ;
15859  signed char __cil_tmp18 ;
15860  int __cil_tmp19 ;
15861  struct mutex *__cil_tmp20 ;
15862  struct at_state_t *__cil_tmp21 ;
15863  void *__cil_tmp22 ;
15864  int __cil_tmp23 ;
15865  void *__cil_tmp24 ;
15866  struct event_t *__cil_tmp25 ;
15867  unsigned long __cil_tmp26 ;
15868  unsigned long __cil_tmp27 ;
15869  struct mutex *__cil_tmp28 ;
15870  int __cil_tmp29 ;
15871  wait_queue_head_t *__cil_tmp30 ;
15872  int __cil_tmp31 ;
15873  wait_queue_head_t *__cil_tmp32 ;
15874  struct mutex *__cil_tmp33 ;
15875
15876  {
15877  {
15878#line 36
15879  __cil_tmp14 = (struct device  const  *)dev;
15880#line 36
15881  tmp = dev_get_drvdata(__cil_tmp14);
15882#line 36
15883  cs = (struct cardstate *)tmp;
15884#line 40
15885  value = simple_strtol(buf, & end, 0U);
15886  }
15887#line 41
15888  goto ldv_34625;
15889  ldv_34624: 
15890#line 42
15891  tmp___0 = end;
15892#line 42
15893  end = end + 1;
15894  {
15895#line 42
15896  __cil_tmp15 = (int )_ctype[(int )((unsigned char )*tmp___0)];
15897#line 42
15898  __cil_tmp16 = __cil_tmp15 & 32;
15899#line 42
15900  if (__cil_tmp16 == 0) {
15901#line 43
15902    return (-22L);
15903  } else {
15904
15905  }
15906  }
15907  ldv_34625: ;
15908  {
15909#line 41
15910  __cil_tmp17 = *end;
15911#line 41
15912  __cil_tmp18 = (signed char )__cil_tmp17;
15913#line 41
15914  __cil_tmp19 = (int )__cil_tmp18;
15915#line 41
15916  if (__cil_tmp19 != 0) {
15917#line 42
15918    goto ldv_34624;
15919  } else {
15920#line 44
15921    goto ldv_34626;
15922  }
15923  }
15924  ldv_34626: ;
15925#line 44
15926  if (value < 0L) {
15927#line 45
15928    return (-22L);
15929  } else
15930#line 44
15931  if (value > 1L) {
15932#line 45
15933    return (-22L);
15934  } else {
15935
15936  }
15937  {
15938#line 47
15939  __cil_tmp20 = & cs->mutex;
15940#line 47
15941  tmp___1 = mutex_lock_interruptible_nested(__cil_tmp20, 0U);
15942  }
15943#line 47
15944  if (tmp___1 != 0) {
15945#line 48
15946    return (-512L);
15947  } else {
15948
15949  }
15950  {
15951#line 50
15952  cs->waiting = 1;
15953#line 51
15954  __cil_tmp21 = & cs->at_state;
15955#line 51
15956  __cil_tmp22 = (void *)0;
15957#line 51
15958  __cil_tmp23 = (int )value;
15959#line 51
15960  __cil_tmp24 = (void *)0;
15961#line 51
15962  tmp___2 = gigaset_add_event(cs, __cil_tmp21, -107, __cil_tmp22, __cil_tmp23, __cil_tmp24);
15963  }
15964  {
15965#line 51
15966  __cil_tmp25 = (struct event_t *)0;
15967#line 51
15968  __cil_tmp26 = (unsigned long )__cil_tmp25;
15969#line 51
15970  __cil_tmp27 = (unsigned long )tmp___2;
15971#line 51
15972  if (__cil_tmp27 == __cil_tmp26) {
15973    {
15974#line 53
15975    cs->waiting = 0;
15976#line 54
15977    __cil_tmp28 = & cs->mutex;
15978#line 54
15979    mutex_unlock(__cil_tmp28);
15980    }
15981#line 55
15982    return (-12L);
15983  } else {
15984
15985  }
15986  }
15987  {
15988#line 57
15989  gigaset_schedule_event(cs);
15990  }
15991  {
15992#line 59
15993  __cil_tmp29 = cs->waiting;
15994#line 59
15995  if (__cil_tmp29 == 0) {
15996#line 59
15997    goto ldv_34627;
15998  } else {
15999
16000  }
16001  }
16002  {
16003#line 59
16004  tmp___3 = get_current();
16005#line 59
16006  __wait.flags = 0U;
16007#line 59
16008  __wait.private = (void *)tmp___3;
16009#line 59
16010  __wait.func = & autoremove_wake_function;
16011#line 59
16012  __wait.task_list.next = & __wait.task_list;
16013#line 59
16014  __wait.task_list.prev = & __wait.task_list;
16015  }
16016  ldv_34630: 
16017  {
16018#line 59
16019  __cil_tmp30 = & cs->waitqueue;
16020#line 59
16021  prepare_to_wait(__cil_tmp30, & __wait, 2);
16022  }
16023  {
16024#line 59
16025  __cil_tmp31 = cs->waiting;
16026#line 59
16027  if (__cil_tmp31 == 0) {
16028#line 59
16029    goto ldv_34629;
16030  } else {
16031
16032  }
16033  }
16034  {
16035#line 59
16036  schedule();
16037  }
16038#line 59
16039  goto ldv_34630;
16040  ldv_34629: 
16041  {
16042#line 59
16043  __cil_tmp32 = & cs->waitqueue;
16044#line 59
16045  finish_wait(__cil_tmp32, & __wait);
16046  }
16047  ldv_34627: 
16048  {
16049#line 61
16050  __cil_tmp33 = & cs->mutex;
16051#line 61
16052  mutex_unlock(__cil_tmp33);
16053  }
16054#line 63
16055  return ((ssize_t )count);
16056}
16057}
16058#line 66 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/proc.c.p"
16059static struct device_attribute dev_attr_cidmode  =    {{"cidmode", 420U, (struct lock_class_key *)0, {{{(char)0}, {(char)0}, {(char)0},
16060                                                    {(char)0}, {(char)0}, {(char)0},
16061                                                    {(char)0}, {(char)0}}}}, & show_cidmode,
16062    & set_cidmode};
16063#line 69 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/proc.c.p"
16064void gigaset_free_dev_sysfs(struct cardstate *cs ) 
16065{ long tmp ;
16066  struct device *__cil_tmp3 ;
16067  unsigned long __cil_tmp4 ;
16068  struct device *__cil_tmp5 ;
16069  unsigned long __cil_tmp6 ;
16070  unsigned int __cil_tmp7 ;
16071  unsigned int __cil_tmp8 ;
16072  int __cil_tmp9 ;
16073  long __cil_tmp10 ;
16074  struct device *__cil_tmp11 ;
16075  struct device_attribute  const  *__cil_tmp12 ;
16076
16077  {
16078  {
16079#line 71
16080  __cil_tmp3 = (struct device *)0;
16081#line 71
16082  __cil_tmp4 = (unsigned long )__cil_tmp3;
16083#line 71
16084  __cil_tmp5 = cs->tty_dev;
16085#line 71
16086  __cil_tmp6 = (unsigned long )__cil_tmp5;
16087#line 71
16088  if (__cil_tmp6 == __cil_tmp4) {
16089#line 72
16090    return;
16091  } else {
16092
16093  }
16094  }
16095  {
16096#line 74
16097  __cil_tmp7 = (unsigned int )gigaset_debuglevel;
16098#line 74
16099  __cil_tmp8 = __cil_tmp7 & 32768U;
16100#line 74
16101  __cil_tmp9 = __cil_tmp8 != 0U;
16102#line 74
16103  __cil_tmp10 = (long )__cil_tmp9;
16104#line 74
16105  tmp = __builtin_expect(__cil_tmp10, 0L);
16106  }
16107#line 74
16108  if (tmp != 0L) {
16109    {
16110#line 74
16111    printk("<7>gigaset: removing sysfs entries\n");
16112    }
16113  } else {
16114
16115  }
16116  {
16117#line 75
16118  __cil_tmp11 = cs->tty_dev;
16119#line 75
16120  __cil_tmp12 = (struct device_attribute  const  *)(& dev_attr_cidmode);
16121#line 75
16122  device_remove_file(__cil_tmp11, __cil_tmp12);
16123  }
16124#line 76
16125  return;
16126}
16127}
16128#line 79 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/proc.c.p"
16129void gigaset_init_dev_sysfs(struct cardstate *cs ) 
16130{ long tmp ;
16131  int tmp___0 ;
16132  struct device *__cil_tmp4 ;
16133  unsigned long __cil_tmp5 ;
16134  struct device *__cil_tmp6 ;
16135  unsigned long __cil_tmp7 ;
16136  unsigned int __cil_tmp8 ;
16137  unsigned int __cil_tmp9 ;
16138  int __cil_tmp10 ;
16139  long __cil_tmp11 ;
16140  struct device *__cil_tmp12 ;
16141  struct device_attribute  const  *__cil_tmp13 ;
16142
16143  {
16144  {
16145#line 81
16146  __cil_tmp4 = (struct device *)0;
16147#line 81
16148  __cil_tmp5 = (unsigned long )__cil_tmp4;
16149#line 81
16150  __cil_tmp6 = cs->tty_dev;
16151#line 81
16152  __cil_tmp7 = (unsigned long )__cil_tmp6;
16153#line 81
16154  if (__cil_tmp7 == __cil_tmp5) {
16155#line 82
16156    return;
16157  } else {
16158
16159  }
16160  }
16161  {
16162#line 84
16163  __cil_tmp8 = (unsigned int )gigaset_debuglevel;
16164#line 84
16165  __cil_tmp9 = __cil_tmp8 & 32768U;
16166#line 84
16167  __cil_tmp10 = __cil_tmp9 != 0U;
16168#line 84
16169  __cil_tmp11 = (long )__cil_tmp10;
16170#line 84
16171  tmp = __builtin_expect(__cil_tmp11, 0L);
16172  }
16173#line 84
16174  if (tmp != 0L) {
16175    {
16176#line 84
16177    printk("<7>gigaset: setting up sysfs\n");
16178    }
16179  } else {
16180
16181  }
16182  {
16183#line 85
16184  __cil_tmp12 = cs->tty_dev;
16185#line 85
16186  __cil_tmp13 = (struct device_attribute  const  *)(& dev_attr_cidmode);
16187#line 85
16188  tmp___0 = device_create_file(__cil_tmp12, __cil_tmp13);
16189  }
16190#line 85
16191  if (tmp___0 != 0) {
16192    {
16193#line 86
16194    printk("<3>gigaset: could not create sysfs attribute\n");
16195    }
16196  } else {
16197
16198  }
16199#line 87
16200  return;
16201}
16202}
16203#line 186 "include/linux/list.h"
16204__inline static int list_empty(struct list_head  const  *head ) 
16205{ unsigned long __cil_tmp2 ;
16206  struct list_head *__cil_tmp3 ;
16207  struct list_head  const  *__cil_tmp4 ;
16208  unsigned long __cil_tmp5 ;
16209
16210  {
16211  {
16212#line 188
16213  __cil_tmp2 = (unsigned long )head;
16214#line 188
16215  __cil_tmp3 = head->next;
16216#line 188
16217  __cil_tmp4 = (struct list_head  const  *)__cil_tmp3;
16218#line 188
16219  __cil_tmp5 = (unsigned long )__cil_tmp4;
16220#line 188
16221  return (__cil_tmp5 == __cil_tmp2);
16222  }
16223}
16224}
16225#line 224 "include/linux/kernel.h"
16226extern int kstrtoint(char const   * , unsigned int  , int * ) ;
16227#line 248
16228extern int kstrtou8(char const   * , unsigned int  , u8 * ) ;
16229#line 282
16230extern unsigned long simple_strtoul(char const   * , char ** , unsigned int  ) ;
16231#line 295
16232extern int snprintf(char * , size_t  , char const   *  , ...) ;
16233#line 61 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/string_64.h"
16234extern size_t strlen(char const   * ) ;
16235#line 64
16236extern int strcmp(char const   * , char const   * ) ;
16237#line 118 "include/linux/string.h"
16238extern char *kstrdup(char const   * , gfp_t  ) ;
16239#line 801 "include/linux/device.h"
16240extern int dev_notice(struct device  const  * , char const   *  , ...) ;
16241#line 679 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
16242void gigaset_isdn_start(struct cardstate *cs ) ;
16243#line 680
16244void gigaset_isdn_stop(struct cardstate *cs ) ;
16245#line 681
16246int gigaset_isdn_icall(struct at_state_t *at_state ) ;
16247#line 682
16248void gigaset_isdn_connD(struct bc_state *bcs ) ;
16249#line 683
16250void gigaset_isdn_hupD(struct bc_state *bcs ) ;
16251#line 684
16252void gigaset_isdn_connB(struct bc_state *bcs ) ;
16253#line 685
16254void gigaset_isdn_hupB(struct bc_state *bcs ) ;
16255#line 696
16256void gigaset_handle_modem_response(struct cardstate *cs ) ;
16257#line 156 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16258struct reply_t gigaset_tab_nocid[64U]  = 
16259#line 156 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16260  {      {-27, -1, -1, 100, 100, 1, {29, 0, 0}, (char *)0}, 
16261        {-105, 100, 100, -1, 101, 3, {0, 0, 0}, (char *)"Z\r"}, 
16262        {0, 101, 103, -1, 120, 5, {30, 0, 0}, (char *)"+GMR\r"}, 
16263        {-105, 101, 101, -1, 102, 5, {0, 0, 0}, (char *)"Z\r"}, 
16264        {1, 101, 101, -1, 102, 5, {0, 0, 0}, (char *)"Z\r"}, 
16265        {-105, 102, 102, -1, 108, 5, {1, 0, 0}, (char *)"^SDLE=0\r"}, 
16266        {0, 108, 108, -1, 104, -1, {0, 0, 0}, (char *)0}, 
16267        {101, 104, 104, 0, 103, 5, {0, 0, 0}, (char *)"Z\r"}, 
16268        {-105, 104, 104, -1, 0, 0, {3, 0, 0}, (char *)0}, 
16269        {1, 108, 108, -1, 0, 0, {3, 0, 0}, (char *)0}, 
16270        {-105, 108, 108, -1, 105, 2, {2, 4, 29}, (char *)0}, 
16271        {-105, 105, 105, -1, 103, 5, {0, 0, 0}, (char *)"Z\r"}, 
16272        {1, 102, 102, -1, 107, 5, {0, 0, 0}, (char *)"^GETPRE\r"}, 
16273        {0, 107, 107, -1, 0, 0, {5, 0, 0}, (char *)0}, 
16274        {1, 107, 107, -1, 0, 0, {3, 0, 0}, (char *)0}, 
16275        {-105, 107, 107, -1, 0, 0, {3, 0, 0}, (char *)0}, 
16276        {1, 103, 103, -1, 0, 0, {3, 0, 0}, (char *)0}, 
16277        {-105, 103, 103, -1, 0, 0, {3, 0, 0}, (char *)0}, 
16278        {-20, 120, 120, -1, 121, -1, {31, 0, 0}, (char *)0}, 
16279        {-105, 120, 121, -1, 0, 0, {32, 6, 0}, (char *)0}, 
16280        {1, 120, 121, -1, 0, 0, {32, 6, 0}, (char *)0}, 
16281        {0, 121, 121, -1, 0, 0, {33, 6, 0}, (char *)0}, 
16282        {-27, 0, 0, 200, 201, 5, {0, 0, 0}, (char *)"^SDLE=0\r"}, 
16283        {0, 201, 201, -1, 202, -1, {0, 0, 0}, (char *)0}, 
16284        {101, 202, 202, 0, 0, 0, {7, 0, 0}, (char *)0}, 
16285        {-9, 200, 249, -1, 0, 0, {47, 0, 0}, (char *)0}, 
16286        {1, 200, 249, -1, 0, 0, {9, 0, 0}, (char *)0}, 
16287        {-105, 200, 249, -1, 0, 0, {9, 0, 0}, (char *)0}, 
16288        {-27, 0, 0, 250, 251, 5, {0, 0, 0}, (char *)"^SDLE=1\r"}, 
16289        {0, 251, 251, -1, 252, -1, {0, 0, 0}, (char *)0}, 
16290        {101, 252, 252, 1, 0, 0, {8, 0, 0}, (char *)0}, 
16291        {1, 250, 299, -1, 0, 0, {10, 0, 0}, (char *)0}, 
16292        {-105, 250, 299, -1, 0, 0, {10, 0, 0}, (char *)0}, 
16293        {4, -1, -1, -1, -1, -1, {11, 0, 0}, (char *)0}, 
16294        {-27, 0, 0, 300, 301, 5, {0, 0, 0}, (char *)"^SGCI?\r"}, 
16295        {0, 301, 301, -1, 302, -1, {0, 0, 0}, (char *)0}, 
16296        {3, 302, 302, -1, 0, 0, {12, 0, 0}, (char *)0}, 
16297        {1, 301, 349, -1, 0, 0, {13, 0, 0}, (char *)0}, 
16298        {-105, 301, 349, -1, 0, 0, {13, 0, 0}, (char *)0}, 
16299        {-27, 0, 0, 10, 150, 5, {0, 0, 0}, (char *)"^SGCI=1\r"}, 
16300        {0, 150, 150, -1, 0, 0, {54, 0, 0}, (char *)0}, 
16301        {1, 150, 150, -1, 0, 0, {55, 0, 0}, (char *)0}, 
16302        {-105, 150, 150, -1, 0, 0, {55, 0, 0}, (char *)0}, 
16303        {-27, 0, 0, 11, 160, 5, {0, 0, 0}, (char *)"Z\r"}, 
16304        {0, 160, 160, -1, 0, 0, {52, 0, 0}, (char *)0}, 
16305        {1, 160, 160, -1, 0, 0, {53, 0, 0}, (char *)0}, 
16306        {-105, 160, 160, -1, 0, 0, {53, 0, 0}, (char *)0}, 
16307        {-27, 0, 0, 350, 0, 0, {36, 0, 0}, (char *)0}, 
16308        {-27, 0, 0, 500, 504, 5, {0, 0, 0}, (char *)"Z\r"}, 
16309        {0, 504, 504, -1, 0, 0, {14, 0, 0}, (char *)0}, 
16310        {1, 501, 599, -1, 0, 0, {15, 0, 0}, (char *)0}, 
16311        {-105, 501, 599, -1, 0, 0, {15, 0, 0}, (char *)0}, 
16312        {-9, 501, 599, -1, 0, 0, {49, 0, 0}, (char *)0}, 
16313        {-107, -1, -1, -1, -1, -1, {51, 0, 0}, (char *)0}, 
16314        {-112, -1, -1, -1, -1, -1, {44, 0, 0}, (char *)0}, 
16315        {-106, -1, -1, -1, -1, -1, {56, 0, 0}, (char *)0}, 
16316        {-110, -1, -1, -1, -1, -1, {45, 0, 0}, (char *)0}, 
16317        {-111, -1, -1, -1, -1, -1, {46, 0, 0}, (char *)0}, 
16318        {-108, -1, -1, -1, -1, -1, {50, 0, 0}, (char *)0}, 
16319        {1, -1, -1, -1, -1, -1, {35, 0, 0}, (char *)0}, 
16320        {6, -1, -1, -1, -1, -1, {37, 0, 0}, (char *)0}, 
16321        {-19, -1, -1, -1, -1, -1, {16, 0, 0}, (char *)0}, 
16322        {-26, -1, -1, -1, -1, -1, {17, 0, 0}, (char *)0}, 
16323        {-28, 0, 0, 0, 0, 0, {0, 0, 0}, (char *)0}};
16324#line 264 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16325struct reply_t gigaset_tab_cid[64U]  = 
16326#line 264
16327  {      {-115, -1, -1, -1, -1, -1, {40, 0, 0}, (char *)0}, 
16328        {-27, 0, 0, 600, 601, 5, {103, 0, 0}, (char *)0}, 
16329        {0, 601, 601, -1, 603, 5, {104, 0, 0}, (char *)0}, 
16330        {0, 603, 603, -1, 604, 5, {105, 0, 0}, (char *)0}, 
16331        {0, 604, 604, -1, 605, 5, {102, 0, 0}, (char *)0}, 
16332        {-21, 605, 605, -1, 606, 5, {106, 0, 0}, (char *)0}, 
16333        {0, 605, 605, -1, 606, 5, {106, 0, 0}, (char *)0}, 
16334        {-21, 606, 606, -1, 607, 5, {100, 0, 0}, (char *)0}, 
16335        {0, 606, 606, -1, 607, 5, {100, 0, 0}, (char *)0}, 
16336        {0, 607, 607, -1, 608, 5, {0, 0, 0}, (char *)"+VLS=17\r"}, 
16337        {0, 608, 608, -1, 609, -1, {0, 0, 0}, (char *)0}, 
16338        {100, 609, 609, 1, 610, 5, {101, 0, 0}, (char *)0}, 
16339        {0, 610, 610, -1, 650, 0, {18, 0, 0}, (char *)0}, 
16340        {1, 601, 610, -1, 0, 0, {19, 0, 0}, (char *)0}, 
16341        {-105, 601, 610, -1, 0, 0, {19, 0, 0}, (char *)0}, 
16342        {-117, 650, 650, -1, 651, -1, {0, 0, 0}, (char *)0}, 
16343        {5, 609, 651, 17, -1, -1, {16, 0, 0}, (char *)0}, 
16344        {102, 610, 651, -1, -1, -1, {16, 0, 0}, (char *)0}, 
16345        {104, 610, 651, -1, -1, -1, {16, 0, 0}, (char *)0}, 
16346        {100, 650, 651, 2, -1, -1, {16, 0, 0}, (char *)0}, 
16347        {100, 650, 650, 3, 800, -1, {21, 0, 0}, (char *)0}, 
16348        {100, 651, 651, 3, 800, -1, {21, 39, 0}, (char *)0}, 
16349        {100, 750, 750, 3, 800, -1, {21, 0, 0}, (char *)0}, 
16350        {100, 751, 751, 3, 800, -1, {21, 39, 0}, (char *)0}, 
16351        {-117, 800, 800, -1, 800, -1, {39, 0, 0}, (char *)0}, 
16352        {100, 650, 651, 4, 0, 0, {22, 0, 0}, (char *)0}, 
16353        {100, 750, 751, 4, 0, 0, {24, 0, 0}, (char *)0}, 
16354        {100, 800, 800, 4, 0, 0, {24, 0, 0}, (char *)0}, 
16355        {-116, -1, -1, -1, -1, -1, {43, 0, 0}, (char *)0}, 
16356        {-27, -1, -1, 400, 401, 5, {0, 0, 0}, (char *)"+VLS=0\r"}, 
16357        {0, 401, 401, -1, 402, 5, {0, 0, 0}, (char *)0}, 
16358        {5, 402, 402, 0, 403, 5, {0, 0, 0}, (char *)0}, 
16359        {100, 403, 403, 6, -1, -1, {16, 0, 0}, (char *)0}, 
16360        {100, 403, 403, 5, 0, 0, {20, 0, 0}, (char *)0}, 
16361        {-9, 401, 403, -1, 0, 0, {48, 0, 0}, (char *)0}, 
16362        {1, 401, 401, -1, 0, 0, {25, 0, 0}, (char *)0}, 
16363        {-105, 401, 403, -1, 0, 0, {25, 0, 0}, (char *)0}, 
16364        {-118, 0, 0, -1, 0, -1, {38, 0, 0}, (char *)0}, 
16365        {106, 700, 700, -1, -1, -1, {0, 0, 0}, (char *)0}, 
16366        {107, 700, 700, -1, -1, -1, {0, 0, 0}, (char *)0}, 
16367        {103, 700, 700, -1, -1, -1, {0, 0, 0}, (char *)0}, 
16368        {104, 700, 700, -1, -1, -1, {0, 0, 0}, (char *)0}, 
16369        {102, 700, 700, -1, -1, -1, {0, 0, 0}, (char *)0}, 
16370        {-105, 700, 700, -1, 720, 720, {26, 0, 0}, (char *)0}, 
16371        {-118, 720, 720, -1, 0, -1, {38, 0, 0}, (char *)0}, 
16372        {-114, -1, -1, -1, -1, -1, {41, 0, 0}, (char *)0}, 
16373        {-27, 720, 720, 720, 721, 5, {104, 0, 0}, (char *)0}, 
16374        {0, 721, 721, -1, 722, 5, {100, 0, 0}, (char *)0}, 
16375        {0, 722, 722, -1, 723, 5, {0, 0, 0}, (char *)"+VLS=17\r"}, 
16376        {0, 723, 723, -1, 724, 5, {0, 0, 0}, (char *)0}, 
16377        {5, 724, 724, 17, 750, 50, {27, 0, 0}, (char *)0}, 
16378        {1, 721, 729, -1, 0, 0, {28, 0, 0}, (char *)0}, 
16379        {-105, 721, 729, -1, 0, 0, {28, 0, 0}, (char *)0}, 
16380        {100, 700, 729, 5, 0, 0, {28, 0, 0}, (char *)0}, 
16381        {100, 700, 729, 3, 0, 0, {28, 0, 0}, (char *)0}, 
16382        {100, 700, 729, 4, 0, 0, {28, 0, 0}, (char *)0}, 
16383        {-117, 750, 750, -1, 751, -1, {0, 0, 0}, (char *)0}, 
16384        {-105, 750, 751, -1, 0, 0, {23, 0, 0}, (char *)0}, 
16385        {-118, -1, -1, -1, -1, -1, {38, 0, 0}, (char *)0}, 
16386        {105, -1, -1, -1, -1, -1, {16, 0, 0}, (char *)0}, 
16387        {6, -1, -1, -1, -1, -1, {37, 0, 0}, (char *)0}, 
16388        {-19, -1, -1, -1, -1, -1, {16, 0, 0}, (char *)0}, 
16389        {-26, -1, -1, -1, -1, -1, {17, 0, 0}, (char *)0}, 
16390        {-28, 0, 0, 0, 0, 0, {0, 0, 0}, (char *)0}};
16391#line 362 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16392static struct resp_type_t  const  resp_type[15U]  = 
16393#line 362
16394  {      {(unsigned char *)"OK", 0, 0}, 
16395        {(unsigned char *)"ERROR", 1, 0}, 
16396        {(unsigned char *)"ZSAU", 100, 1}, 
16397        {(unsigned char *)"ZCAU", 6, 6}, 
16398        {(unsigned char *)"RING", 4, 2}, 
16399        {(unsigned char *)"ZGCI", 3, 3}, 
16400        {(unsigned char *)"ZVLS", 5, 3}, 
16401        {(unsigned char *)"ZCTP", 102, 3}, 
16402        {(unsigned char *)"ZDLE", 101, 3}, 
16403        {(unsigned char *)"ZHLC", 107, 4}, 
16404        {(unsigned char *)"ZBC", 106, 4}, 
16405        {(unsigned char *)"NMBR", 103, 4}, 
16406        {(unsigned char *)"ZCPN", 104, 4}, 
16407        {(unsigned char *)"ZCON", 105, 4}, 
16408        {(unsigned char *)0, 0, 0}};
16409#line 384 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16410static struct zsau_resp_t  const  zsau_resp[7U]  = {      {(unsigned char *)"OUTGOING_CALL_PROCEEDING", 1}, 
16411        {(unsigned char *)"CALL_DELIVERED", 2}, 
16412        {(unsigned char *)"ACTIVE", 3}, 
16413        {(unsigned char *)"DISCONNECT_IND", 4}, 
16414        {(unsigned char *)"NULL", 5}, 
16415        {(unsigned char *)"DISCONNECT_REQ", 6}, 
16416        {(unsigned char *)0, -1}};
16417#line 398 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16418static int cid_of_response(char *s ) 
16419{ int cid ;
16420  int rc ;
16421  char *__cil_tmp4 ;
16422  char __cil_tmp5 ;
16423  signed char __cil_tmp6 ;
16424  int __cil_tmp7 ;
16425  char const   *__cil_tmp8 ;
16426
16427  {
16428  {
16429#line 403
16430  __cil_tmp4 = s + 1152921504606846975UL;
16431#line 403
16432  __cil_tmp5 = *__cil_tmp4;
16433#line 403
16434  __cil_tmp6 = (signed char )__cil_tmp5;
16435#line 403
16436  __cil_tmp7 = (int )__cil_tmp6;
16437#line 403
16438  if (__cil_tmp7 != 59) {
16439#line 404
16440    return (0);
16441  } else {
16442
16443  }
16444  }
16445  {
16446#line 405
16447  __cil_tmp8 = (char const   *)s;
16448#line 405
16449  rc = kstrtoint(__cil_tmp8, 10U, & cid);
16450  }
16451#line 406
16452  if (rc != 0) {
16453#line 407
16454    return (0);
16455  } else {
16456
16457  }
16458#line 408
16459  if (cid <= 0) {
16460#line 409
16461    return (-1);
16462  } else
16463#line 408
16464  if (cid > 65535) {
16465#line 409
16466    return (-1);
16467  } else {
16468
16469  }
16470#line 410
16471  return (cid);
16472}
16473}
16474#line 421 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
16475void gigaset_handle_modem_response(struct cardstate *cs ) 
16476{ unsigned char *argv[11U] ;
16477  int params ;
16478  int i ;
16479  int j ;
16480  struct resp_type_t  const  *rt ;
16481  struct zsau_resp_t  const  *zr ;
16482  int curarg ;
16483  unsigned long flags ;
16484  unsigned int next ;
16485  unsigned int tail ;
16486  unsigned int head ;
16487  struct event_t *event ;
16488  int resp_code ;
16489  int param_type ;
16490  int abort ;
16491  size_t len ;
16492  int cid ;
16493  int rawstring ;
16494  long tmp ;
16495  int tmp___0 ;
16496  int tmp___1 ;
16497  long tmp___2 ;
16498  long tmp___3 ;
16499  long tmp___4 ;
16500  long tmp___5 ;
16501  raw_spinlock_t *tmp___6 ;
16502  long tmp___7 ;
16503  int tmp___8 ;
16504  long tmp___9 ;
16505  int tmp___10 ;
16506  char *tmp___11 ;
16507  char *tmp___12 ;
16508  long tmp___13 ;
16509  u8 type ;
16510  u8 value ;
16511  int tmp___14 ;
16512  int tmp___15 ;
16513  int tmp___16 ;
16514  int tmp___17 ;
16515  long tmp___18 ;
16516  long tmp___19 ;
16517  unsigned int __cil_tmp43 ;
16518  unsigned int __cil_tmp44 ;
16519  unsigned int __cil_tmp45 ;
16520  int __cil_tmp46 ;
16521  long __cil_tmp47 ;
16522  unsigned char __cil_tmp48 ;
16523  int __cil_tmp49 ;
16524  unsigned char (*__cil_tmp50)[512U] ;
16525  int __cil_tmp51 ;
16526  unsigned char __cil_tmp52 ;
16527  int __cil_tmp53 ;
16528  unsigned char __cil_tmp54 ;
16529  int __cil_tmp55 ;
16530  unsigned char __cil_tmp56 ;
16531  int __cil_tmp57 ;
16532  struct device *__cil_tmp58 ;
16533  struct device  const  *__cil_tmp59 ;
16534  unsigned long __cil_tmp60 ;
16535  unsigned long __cil_tmp61 ;
16536  unsigned char (*__cil_tmp62)[512U] ;
16537  unsigned char *__cil_tmp63 ;
16538  size_t __cil_tmp64 ;
16539  char *__cil_tmp65 ;
16540  struct at_state_t *__cil_tmp66 ;
16541  void *__cil_tmp67 ;
16542  void *__cil_tmp68 ;
16543  unsigned char *__cil_tmp69 ;
16544  unsigned int __cil_tmp70 ;
16545  unsigned int __cil_tmp71 ;
16546  int __cil_tmp72 ;
16547  long __cil_tmp73 ;
16548  unsigned int __cil_tmp74 ;
16549  unsigned int __cil_tmp75 ;
16550  int __cil_tmp76 ;
16551  long __cil_tmp77 ;
16552  unsigned int __cil_tmp78 ;
16553  unsigned int __cil_tmp79 ;
16554  int __cil_tmp80 ;
16555  long __cil_tmp81 ;
16556  int __cil_tmp82 ;
16557  unsigned int __cil_tmp83 ;
16558  unsigned int __cil_tmp84 ;
16559  int __cil_tmp85 ;
16560  long __cil_tmp86 ;
16561  spinlock_t *__cil_tmp87 ;
16562  unsigned int __cil_tmp88 ;
16563  int __cil_tmp89 ;
16564  long __cil_tmp90 ;
16565  struct device *__cil_tmp91 ;
16566  struct device  const  *__cil_tmp92 ;
16567  unsigned long __cil_tmp93 ;
16568  struct event_t (*__cil_tmp94)[64U] ;
16569  struct event_t *__cil_tmp95 ;
16570  char const   *__cil_tmp96 ;
16571  unsigned char *__cil_tmp97 ;
16572  char const   *__cil_tmp98 ;
16573  unsigned char *__cil_tmp99 ;
16574  unsigned long __cil_tmp100 ;
16575  unsigned char *__cil_tmp101 ;
16576  unsigned long __cil_tmp102 ;
16577  unsigned char *__cil_tmp103 ;
16578  unsigned long __cil_tmp104 ;
16579  unsigned char *__cil_tmp105 ;
16580  unsigned long __cil_tmp106 ;
16581  unsigned int __cil_tmp107 ;
16582  unsigned int __cil_tmp108 ;
16583  int __cil_tmp109 ;
16584  long __cil_tmp110 ;
16585  int __cil_tmp111 ;
16586  int __cil_tmp112 ;
16587  struct device *__cil_tmp113 ;
16588  struct device  const  *__cil_tmp114 ;
16589  char const   *__cil_tmp115 ;
16590  unsigned char *__cil_tmp116 ;
16591  char const   *__cil_tmp117 ;
16592  unsigned char *__cil_tmp118 ;
16593  unsigned long __cil_tmp119 ;
16594  unsigned char *__cil_tmp120 ;
16595  unsigned long __cil_tmp121 ;
16596  int __cil_tmp122 ;
16597  unsigned char *__cil_tmp123 ;
16598  unsigned long __cil_tmp124 ;
16599  unsigned char *__cil_tmp125 ;
16600  unsigned long __cil_tmp126 ;
16601  struct device *__cil_tmp127 ;
16602  struct device  const  *__cil_tmp128 ;
16603  char const   *__cil_tmp129 ;
16604  void *__cil_tmp130 ;
16605  unsigned long __cil_tmp131 ;
16606  void *__cil_tmp132 ;
16607  unsigned long __cil_tmp133 ;
16608  struct device *__cil_tmp134 ;
16609  struct device  const  *__cil_tmp135 ;
16610  unsigned int __cil_tmp136 ;
16611  unsigned int __cil_tmp137 ;
16612  int __cil_tmp138 ;
16613  long __cil_tmp139 ;
16614  void *__cil_tmp140 ;
16615  unsigned long __cil_tmp141 ;
16616  void *__cil_tmp142 ;
16617  unsigned long __cil_tmp143 ;
16618  void *__cil_tmp144 ;
16619  int __cil_tmp145 ;
16620  char const   *__cil_tmp146 ;
16621  char const   *__cil_tmp147 ;
16622  int __cil_tmp148 ;
16623  int __cil_tmp149 ;
16624  int __cil_tmp150 ;
16625  char const   *__cil_tmp151 ;
16626  int *__cil_tmp152 ;
16627  unsigned int __cil_tmp153 ;
16628  unsigned int __cil_tmp154 ;
16629  int __cil_tmp155 ;
16630  long __cil_tmp156 ;
16631  int __cil_tmp157 ;
16632  spinlock_t *__cil_tmp158 ;
16633  unsigned int __cil_tmp159 ;
16634  unsigned int __cil_tmp160 ;
16635  int __cil_tmp161 ;
16636  long __cil_tmp162 ;
16637
16638  {
16639#line 439
16640  __cil_tmp43 = cs->cbytes;
16641#line 439
16642  len = (size_t )__cil_tmp43;
16643#line 440
16644  if (len == 0UL) {
16645    {
16646#line 442
16647    __cil_tmp44 = (unsigned int )gigaset_debuglevel;
16648#line 442
16649    __cil_tmp45 = __cil_tmp44 & 16384U;
16650#line 442
16651    __cil_tmp46 = __cil_tmp45 != 0U;
16652#line 442
16653    __cil_tmp47 = (long )__cil_tmp46;
16654#line 442
16655    tmp = __builtin_expect(__cil_tmp47, 0L);
16656    }
16657#line 442
16658    if (tmp != 0L) {
16659      {
16660#line 442
16661      __cil_tmp48 = cs->respdata[len];
16662#line 442
16663      __cil_tmp49 = (int )__cil_tmp48;
16664#line 442
16665      printk("<7>gigaset: skipped EOL [%02X]\n", __cil_tmp49);
16666      }
16667    } else {
16668
16669    }
16670#line 443
16671    return;
16672  } else {
16673
16674  }
16675#line 445
16676  cs->respdata[len] = (unsigned char)0;
16677#line 446
16678  __cil_tmp50 = & cs->respdata;
16679#line 446
16680  argv[0] = (unsigned char *)__cil_tmp50;
16681#line 447
16682  params = 1;
16683  {
16684#line 448
16685  __cil_tmp51 = cs->at_state.getstring;
16686#line 448
16687  if (__cil_tmp51 != 0) {
16688#line 450
16689    cs->at_state.getstring = 0;
16690#line 451
16691    rawstring = 1;
16692#line 452
16693    cid = 0;
16694  } else {
16695#line 455
16696    i = 0;
16697#line 455
16698    goto ldv_34650;
16699    ldv_34649: ;
16700    {
16701#line 457
16702    __cil_tmp52 = cs->respdata[i];
16703#line 457
16704    __cil_tmp53 = (int )__cil_tmp52;
16705#line 457
16706    if (__cil_tmp53 == 59) {
16707#line 457
16708      goto case_59;
16709    } else {
16710      {
16711#line 458
16712      __cil_tmp54 = cs->respdata[i];
16713#line 458
16714      __cil_tmp55 = (int )__cil_tmp54;
16715#line 458
16716      if (__cil_tmp55 == 44) {
16717#line 458
16718        goto case_44;
16719      } else {
16720        {
16721#line 459
16722        __cil_tmp56 = cs->respdata[i];
16723#line 459
16724        __cil_tmp57 = (int )__cil_tmp56;
16725#line 459
16726        if (__cil_tmp57 == 61) {
16727#line 459
16728          goto case_61;
16729        } else
16730#line 456
16731        if (0) {
16732          case_59: ;
16733          case_44: ;
16734          case_61: ;
16735#line 460
16736          if (params > 10) {
16737            {
16738#line 461
16739            __cil_tmp58 = cs->dev;
16740#line 461
16741            __cil_tmp59 = (struct device  const  *)__cil_tmp58;
16742#line 461
16743            dev_warn(__cil_tmp59, "too many parameters in response\n");
16744#line 464
16745            params = params - 1;
16746            }
16747          } else {
16748
16749          }
16750#line 466
16751          tmp___0 = params;
16752#line 466
16753          params = params + 1;
16754#line 466
16755          __cil_tmp60 = (unsigned long )i;
16756#line 466
16757          __cil_tmp61 = __cil_tmp60 + 1UL;
16758#line 466
16759          __cil_tmp62 = & cs->respdata;
16760#line 466
16761          __cil_tmp63 = (unsigned char *)__cil_tmp62;
16762#line 466
16763          argv[tmp___0] = __cil_tmp63 + __cil_tmp61;
16764        } else {
16765
16766        }
16767        }
16768      }
16769      }
16770    }
16771    }
16772#line 455
16773    i = i + 1;
16774    ldv_34650: ;
16775    {
16776#line 455
16777    __cil_tmp64 = (size_t )i;
16778#line 455
16779    if (__cil_tmp64 < len) {
16780#line 456
16781      goto ldv_34649;
16782    } else {
16783#line 458
16784      goto ldv_34651;
16785    }
16786    }
16787    ldv_34651: 
16788#line 469
16789    rawstring = 0;
16790#line 470
16791    if (params > 1) {
16792      {
16793#line 470
16794      __cil_tmp65 = (char *)argv[params + -1];
16795#line 470
16796      tmp___1 = cid_of_response(__cil_tmp65);
16797#line 470
16798      cid = tmp___1;
16799      }
16800    } else {
16801#line 470
16802      cid = 0;
16803    }
16804#line 471
16805    if (cid < 0) {
16806      {
16807#line 472
16808      __cil_tmp66 = & cs->at_state;
16809#line 472
16810      __cil_tmp67 = (void *)0;
16811#line 472
16812      __cil_tmp68 = (void *)0;
16813#line 472
16814      gigaset_add_event(cs, __cil_tmp66, -6, __cil_tmp67, 0, __cil_tmp68);
16815      }
16816#line 474
16817      return;
16818    } else {
16819
16820    }
16821#line 477
16822    j = 1;
16823#line 477
16824    goto ldv_34653;
16825    ldv_34652: 
16826#line 478
16827    __cil_tmp69 = argv[j] + 1152921504606846975UL;
16828#line 478
16829    *__cil_tmp69 = (unsigned char)0;
16830#line 477
16831    j = j + 1;
16832    ldv_34653: ;
16833#line 477
16834    if (j < params) {
16835#line 478
16836      goto ldv_34652;
16837    } else {
16838#line 480
16839      goto ldv_34654;
16840    }
16841    ldv_34654: 
16842    {
16843#line 480
16844    __cil_tmp70 = (unsigned int )gigaset_debuglevel;
16845#line 480
16846    __cil_tmp71 = __cil_tmp70 & 512U;
16847#line 480
16848    __cil_tmp72 = __cil_tmp71 != 0U;
16849#line 480
16850    __cil_tmp73 = (long )__cil_tmp72;
16851#line 480
16852    tmp___2 = __builtin_expect(__cil_tmp73, 0L);
16853    }
16854#line 480
16855    if (tmp___2 != 0L) {
16856      {
16857#line 480
16858      printk("<7>gigaset: CMD received: %s\n", argv[0]);
16859      }
16860    } else {
16861
16862    }
16863#line 481
16864    if (cid != 0) {
16865      {
16866#line 482
16867      params = params - 1;
16868#line 483
16869      __cil_tmp74 = (unsigned int )gigaset_debuglevel;
16870#line 483
16871      __cil_tmp75 = __cil_tmp74 & 512U;
16872#line 483
16873      __cil_tmp76 = __cil_tmp75 != 0U;
16874#line 483
16875      __cil_tmp77 = (long )__cil_tmp76;
16876#line 483
16877      tmp___3 = __builtin_expect(__cil_tmp77, 0L);
16878      }
16879#line 483
16880      if (tmp___3 != 0L) {
16881        {
16882#line 483
16883        printk("<7>gigaset: CID: %s\n", argv[params]);
16884        }
16885      } else {
16886
16887      }
16888    } else {
16889
16890    }
16891    {
16892#line 485
16893    __cil_tmp78 = (unsigned int )gigaset_debuglevel;
16894#line 485
16895    __cil_tmp79 = __cil_tmp78 & 512U;
16896#line 485
16897    __cil_tmp80 = __cil_tmp79 != 0U;
16898#line 485
16899    __cil_tmp81 = (long )__cil_tmp80;
16900#line 485
16901    tmp___4 = __builtin_expect(__cil_tmp81, 0L);
16902    }
16903#line 485
16904    if (tmp___4 != 0L) {
16905      {
16906#line 485
16907      __cil_tmp82 = params + -1;
16908#line 485
16909      printk("<7>gigaset: available params: %d\n", __cil_tmp82);
16910      }
16911    } else {
16912
16913    }
16914#line 486
16915    j = 1;
16916#line 486
16917    goto ldv_34656;
16918    ldv_34655: 
16919    {
16920#line 487
16921    __cil_tmp83 = (unsigned int )gigaset_debuglevel;
16922#line 487
16923    __cil_tmp84 = __cil_tmp83 & 512U;
16924#line 487
16925    __cil_tmp85 = __cil_tmp84 != 0U;
16926#line 487
16927    __cil_tmp86 = (long )__cil_tmp85;
16928#line 487
16929    tmp___5 = __builtin_expect(__cil_tmp86, 0L);
16930    }
16931#line 487
16932    if (tmp___5 != 0L) {
16933      {
16934#line 487
16935      printk("<7>gigaset: param %d: %s\n", j, argv[j]);
16936      }
16937    } else {
16938
16939    }
16940#line 486
16941    j = j + 1;
16942    ldv_34656: ;
16943#line 486
16944    if (j < params) {
16945#line 487
16946      goto ldv_34655;
16947    } else {
16948#line 489
16949      goto ldv_34657;
16950    }
16951    ldv_34657: ;
16952  }
16953  }
16954  {
16955#line 490
16956  __cil_tmp87 = & cs->ev_lock;
16957#line 490
16958  tmp___6 = spinlock_check(__cil_tmp87);
16959#line 490
16960  flags = _raw_spin_lock_irqsave(tmp___6);
16961#line 491
16962  head = cs->ev_head;
16963#line 492
16964  tail = cs->ev_tail;
16965#line 494
16966  abort = 1;
16967#line 495
16968  curarg = 0;
16969  }
16970#line 496
16971  goto ldv_34679;
16972  ldv_34678: 
16973  {
16974#line 497
16975  __cil_tmp88 = tail + 1U;
16976#line 497
16977  next = __cil_tmp88 & 63U;
16978#line 498
16979  __cil_tmp89 = next == head;
16980#line 498
16981  __cil_tmp90 = (long )__cil_tmp89;
16982#line 498
16983  tmp___7 = __builtin_expect(__cil_tmp90, 0L);
16984  }
16985#line 498
16986  if (tmp___7 != 0L) {
16987    {
16988#line 499
16989    __cil_tmp91 = cs->dev;
16990#line 499
16991    __cil_tmp92 = (struct device  const  *)__cil_tmp91;
16992#line 499
16993    dev_err(__cil_tmp92, "event queue full\n");
16994    }
16995#line 500
16996    goto ldv_34661;
16997  } else {
16998
16999  }
17000#line 503
17001  __cil_tmp93 = (unsigned long )tail;
17002#line 503
17003  __cil_tmp94 = & cs->events;
17004#line 503
17005  __cil_tmp95 = (struct event_t *)__cil_tmp94;
17006#line 503
17007  event = __cil_tmp95 + __cil_tmp93;
17008#line 504
17009  event->at_state = (struct at_state_t *)0;
17010#line 505
17011  event->cid = cid;
17012#line 506
17013  event->ptr = (void *)0;
17014#line 507
17015  event->arg = (void *)0;
17016#line 508
17017  tail = next;
17018#line 510
17019  if (rawstring != 0) {
17020#line 511
17021    resp_code = -20;
17022#line 512
17023    param_type = 4;
17024  } else {
17025#line 514
17026    rt = (struct resp_type_t  const  *)(& resp_type);
17027#line 514
17028    goto ldv_34664;
17029    ldv_34663: 
17030    {
17031#line 515
17032    __cil_tmp96 = (char const   *)argv[curarg];
17033#line 515
17034    __cil_tmp97 = rt->response;
17035#line 515
17036    __cil_tmp98 = (char const   *)__cil_tmp97;
17037#line 515
17038    tmp___8 = strcmp(__cil_tmp96, __cil_tmp98);
17039    }
17040#line 515
17041    if (tmp___8 == 0) {
17042#line 516
17043      goto ldv_34662;
17044    } else {
17045
17046    }
17047#line 514
17048    rt = rt + 1;
17049    ldv_34664: ;
17050    {
17051#line 514
17052    __cil_tmp99 = (unsigned char * const  )0;
17053#line 514
17054    __cil_tmp100 = (unsigned long )__cil_tmp99;
17055#line 514
17056    __cil_tmp101 = rt->response;
17057#line 514
17058    __cil_tmp102 = (unsigned long )__cil_tmp101;
17059#line 514
17060    if (__cil_tmp102 != __cil_tmp100) {
17061#line 515
17062      goto ldv_34663;
17063    } else {
17064#line 517
17065      goto ldv_34662;
17066    }
17067    }
17068    ldv_34662: ;
17069    {
17070#line 518
17071    __cil_tmp103 = (unsigned char * const  )0;
17072#line 518
17073    __cil_tmp104 = (unsigned long )__cil_tmp103;
17074#line 518
17075    __cil_tmp105 = rt->response;
17076#line 518
17077    __cil_tmp106 = (unsigned long )__cil_tmp105;
17078#line 518
17079    if (__cil_tmp106 == __cil_tmp104) {
17080      {
17081#line 519
17082      event->type = -19;
17083#line 520
17084      __cil_tmp107 = (unsigned int )gigaset_debuglevel;
17085#line 520
17086      __cil_tmp108 = __cil_tmp107 & 512U;
17087#line 520
17088      __cil_tmp109 = __cil_tmp108 != 0U;
17089#line 520
17090      __cil_tmp110 = (long )__cil_tmp109;
17091#line 520
17092      tmp___9 = __builtin_expect(__cil_tmp110, 0L);
17093      }
17094#line 520
17095      if (tmp___9 != 0L) {
17096        {
17097#line 520
17098        printk("<7>gigaset: unknown modem response: \'%s\'\n\n", argv[curarg]);
17099        }
17100      } else {
17101
17102      }
17103#line 523
17104      goto ldv_34661;
17105    } else {
17106
17107    }
17108    }
17109#line 526
17110    __cil_tmp111 = rt->resp_code;
17111#line 526
17112    resp_code = (int )__cil_tmp111;
17113#line 527
17114    __cil_tmp112 = rt->type;
17115#line 527
17116    param_type = (int )__cil_tmp112;
17117#line 528
17118    curarg = curarg + 1;
17119  }
17120#line 531
17121  event->type = resp_code;
17122#line 534
17123  if (param_type == 0) {
17124#line 534
17125    goto case_0;
17126  } else
17127#line 536
17128  if (param_type == 2) {
17129#line 536
17130    goto case_2;
17131  } else
17132#line 548
17133  if (param_type == 1) {
17134#line 548
17135    goto case_1;
17136  } else
17137#line 563
17138  if (param_type == 4) {
17139#line 563
17140    goto case_4;
17141  } else
17142#line 573
17143  if (param_type == 6) {
17144#line 573
17145    goto case_6;
17146  } else
17147#line 585
17148  if (param_type == 3) {
17149#line 585
17150    goto case_3;
17151  } else
17152#line 533
17153  if (0) {
17154    case_0: ;
17155#line 535
17156    goto ldv_34666;
17157    case_2: ;
17158#line 537
17159    if (cid == 0) {
17160      {
17161#line 538
17162      __cil_tmp113 = cs->dev;
17163#line 538
17164      __cil_tmp114 = (struct device  const  *)__cil_tmp113;
17165#line 538
17166      dev_err(__cil_tmp114, "received RING without CID!\n");
17167#line 540
17168      event->type = -6;
17169#line 541
17170      abort = 1;
17171      }
17172    } else {
17173#line 543
17174      event->cid = 0;
17175#line 544
17176      event->parameter = cid;
17177#line 545
17178      abort = 0;
17179    }
17180#line 547
17181    goto ldv_34666;
17182    case_1: ;
17183#line 549
17184    if (curarg >= params) {
17185#line 550
17186      event->parameter = 0;
17187#line 551
17188      goto ldv_34666;
17189    } else {
17190
17191    }
17192#line 553
17193    zr = (struct zsau_resp_t  const  *)(& zsau_resp);
17194#line 553
17195    goto ldv_34671;
17196    ldv_34670: 
17197    {
17198#line 554
17199    __cil_tmp115 = (char const   *)argv[curarg];
17200#line 554
17201    __cil_tmp116 = zr->str;
17202#line 554
17203    __cil_tmp117 = (char const   *)__cil_tmp116;
17204#line 554
17205    tmp___10 = strcmp(__cil_tmp115, __cil_tmp117);
17206    }
17207#line 554
17208    if (tmp___10 == 0) {
17209#line 555
17210      goto ldv_34669;
17211    } else {
17212
17213    }
17214#line 553
17215    zr = zr + 1;
17216    ldv_34671: ;
17217    {
17218#line 553
17219    __cil_tmp118 = (unsigned char * const  )0;
17220#line 553
17221    __cil_tmp119 = (unsigned long )__cil_tmp118;
17222#line 553
17223    __cil_tmp120 = zr->str;
17224#line 553
17225    __cil_tmp121 = (unsigned long )__cil_tmp120;
17226#line 553
17227    if (__cil_tmp121 != __cil_tmp119) {
17228#line 554
17229      goto ldv_34670;
17230    } else {
17231#line 556
17232      goto ldv_34669;
17233    }
17234    }
17235    ldv_34669: 
17236#line 556
17237    __cil_tmp122 = zr->code;
17238#line 556
17239    event->parameter = (int )__cil_tmp122;
17240    {
17241#line 557
17242    __cil_tmp123 = (unsigned char * const  )0;
17243#line 557
17244    __cil_tmp124 = (unsigned long )__cil_tmp123;
17245#line 557
17246    __cil_tmp125 = zr->str;
17247#line 557
17248    __cil_tmp126 = (unsigned long )__cil_tmp125;
17249#line 557
17250    if (__cil_tmp126 == __cil_tmp124) {
17251      {
17252#line 558
17253      __cil_tmp127 = cs->dev;
17254#line 558
17255      __cil_tmp128 = (struct device  const  *)__cil_tmp127;
17256#line 558
17257      dev_warn(__cil_tmp128, "%s: unknown parameter %s after ZSAU\n", "gigaset_handle_modem_response",
17258               argv[curarg]);
17259      }
17260    } else {
17261
17262    }
17263    }
17264#line 561
17265    curarg = curarg + 1;
17266#line 562
17267    goto ldv_34666;
17268    case_4: ;
17269#line 564
17270    if (curarg < params) {
17271      {
17272#line 565
17273      __cil_tmp129 = (char const   *)argv[curarg];
17274#line 565
17275      tmp___11 = kstrdup(__cil_tmp129, 32U);
17276#line 565
17277      event->ptr = (void *)tmp___11;
17278      }
17279      {
17280#line 566
17281      __cil_tmp130 = (void *)0;
17282#line 566
17283      __cil_tmp131 = (unsigned long )__cil_tmp130;
17284#line 566
17285      __cil_tmp132 = event->ptr;
17286#line 566
17287      __cil_tmp133 = (unsigned long )__cil_tmp132;
17288#line 566
17289      if (__cil_tmp133 == __cil_tmp131) {
17290        {
17291#line 567
17292        __cil_tmp134 = cs->dev;
17293#line 567
17294        __cil_tmp135 = (struct device  const  *)__cil_tmp134;
17295#line 567
17296        dev_err(__cil_tmp135, "out of memory\n");
17297        }
17298      } else {
17299
17300      }
17301      }
17302#line 568
17303      curarg = curarg + 1;
17304    } else {
17305
17306    }
17307    {
17308#line 570
17309    __cil_tmp136 = (unsigned int )gigaset_debuglevel;
17310#line 570
17311    __cil_tmp137 = __cil_tmp136 & 512U;
17312#line 570
17313    __cil_tmp138 = __cil_tmp137 != 0U;
17314#line 570
17315    __cil_tmp139 = (long )__cil_tmp138;
17316#line 570
17317    tmp___13 = __builtin_expect(__cil_tmp139, 0L);
17318    }
17319#line 570
17320    if (tmp___13 != 0L) {
17321      {
17322#line 570
17323      __cil_tmp140 = (void *)0;
17324#line 570
17325      __cil_tmp141 = (unsigned long )__cil_tmp140;
17326#line 570
17327      __cil_tmp142 = event->ptr;
17328#line 570
17329      __cil_tmp143 = (unsigned long )__cil_tmp142;
17330#line 570
17331      if (__cil_tmp143 != __cil_tmp141) {
17332#line 570
17333        __cil_tmp144 = event->ptr;
17334#line 570
17335        tmp___12 = (char *)__cil_tmp144;
17336      } else {
17337#line 570
17338        tmp___12 = (char *)"NULL";
17339      }
17340      }
17341      {
17342#line 570
17343      printk("<7>gigaset: string==%s\n", tmp___12);
17344      }
17345    } else {
17346
17347    }
17348#line 572
17349    goto ldv_34666;
17350    case_6: 
17351#line 574
17352    event->parameter = -1;
17353    {
17354#line 575
17355    __cil_tmp145 = curarg + 1;
17356#line 575
17357    if (__cil_tmp145 < params) {
17358      {
17359#line 578
17360      tmp___14 = curarg;
17361#line 578
17362      curarg = curarg + 1;
17363#line 578
17364      __cil_tmp146 = (char const   *)argv[tmp___14];
17365#line 578
17366      i = kstrtou8(__cil_tmp146, 16U, & type);
17367#line 579
17368      tmp___15 = curarg;
17369#line 579
17370      curarg = curarg + 1;
17371#line 579
17372      __cil_tmp147 = (char const   *)argv[tmp___15];
17373#line 579
17374      j = kstrtou8(__cil_tmp147, 16U, & value);
17375      }
17376#line 580
17377      if (i == 0) {
17378#line 580
17379        if (j == 0) {
17380#line 581
17381          __cil_tmp148 = (int )value;
17382#line 581
17383          __cil_tmp149 = (int )type;
17384#line 581
17385          __cil_tmp150 = __cil_tmp149 << 8;
17386#line 581
17387          event->parameter = __cil_tmp150 | __cil_tmp148;
17388        } else {
17389
17390        }
17391      } else {
17392
17393      }
17394    } else {
17395#line 583
17396      curarg = params + -1;
17397    }
17398    }
17399#line 584
17400    goto ldv_34666;
17401    case_3: ;
17402#line 586
17403    if (curarg >= params) {
17404#line 588
17405      event->parameter = -1;
17406    } else {
17407      {
17408#line 586
17409      tmp___16 = curarg;
17410#line 586
17411      curarg = curarg + 1;
17412#line 586
17413      __cil_tmp151 = (char const   *)argv[tmp___16];
17414#line 586
17415      __cil_tmp152 = & event->parameter;
17416#line 586
17417      tmp___17 = kstrtoint(__cil_tmp151, 10U, __cil_tmp152);
17418      }
17419#line 586
17420      if (tmp___17 != 0) {
17421#line 588
17422        event->parameter = -1;
17423      } else {
17424
17425      }
17426    }
17427    {
17428#line 589
17429    __cil_tmp153 = (unsigned int )gigaset_debuglevel;
17430#line 589
17431    __cil_tmp154 = __cil_tmp153 & 512U;
17432#line 589
17433    __cil_tmp155 = __cil_tmp154 != 0U;
17434#line 589
17435    __cil_tmp156 = (long )__cil_tmp155;
17436#line 589
17437    tmp___18 = __builtin_expect(__cil_tmp156, 0L);
17438    }
17439#line 589
17440    if (tmp___18 != 0L) {
17441      {
17442#line 589
17443      __cil_tmp157 = event->parameter;
17444#line 589
17445      printk("<7>gigaset: parameter==%d\n", __cil_tmp157);
17446      }
17447    } else {
17448
17449    }
17450#line 590
17451    goto ldv_34666;
17452  } else {
17453
17454  }
17455  ldv_34666: ;
17456#line 593
17457  if (resp_code == 101) {
17458#line 594
17459    cs->dle = event->parameter;
17460  } else {
17461
17462  }
17463#line 596
17464  if (abort != 0) {
17465#line 597
17466    goto ldv_34661;
17467  } else {
17468
17469  }
17470  ldv_34679: ;
17471#line 496
17472  if (curarg < params) {
17473#line 497
17474    goto ldv_34678;
17475  } else {
17476#line 499
17477    goto ldv_34661;
17478  }
17479  ldv_34661: 
17480  {
17481#line 600
17482  cs->ev_tail = tail;
17483#line 601
17484  __cil_tmp158 = & cs->ev_lock;
17485#line 601
17486  spin_unlock_irqrestore(__cil_tmp158, flags);
17487  }
17488#line 603
17489  if (curarg != params) {
17490    {
17491#line 604
17492    __cil_tmp159 = (unsigned int )gigaset_debuglevel;
17493#line 604
17494    __cil_tmp160 = __cil_tmp159 & 512U;
17495#line 604
17496    __cil_tmp161 = __cil_tmp160 != 0U;
17497#line 604
17498    __cil_tmp162 = (long )__cil_tmp161;
17499#line 604
17500    tmp___19 = __builtin_expect(__cil_tmp162, 0L);
17501    }
17502#line 604
17503    if (tmp___19 != 0L) {
17504      {
17505#line 604
17506      printk("<7>gigaset: invalid number of processed parameters: %d/%d\n", curarg,
17507             params);
17508      }
17509    } else {
17510
17511    }
17512  } else {
17513
17514  }
17515#line 605
17516  return;
17517}
17518}
17519#line 613 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
17520static void disconnect(struct at_state_t **at_state_p ) 
17521{ unsigned long flags ;
17522  struct bc_state *bcs ;
17523  struct cardstate *cs ;
17524  raw_spinlock_t *tmp ;
17525  long tmp___0 ;
17526  raw_spinlock_t *tmp___1 ;
17527  struct at_state_t *__cil_tmp8 ;
17528  struct at_state_t *__cil_tmp9 ;
17529  spinlock_t *__cil_tmp10 ;
17530  struct at_state_t *__cil_tmp11 ;
17531  struct at_state_t *__cil_tmp12 ;
17532  unsigned int __cil_tmp13 ;
17533  unsigned int __cil_tmp14 ;
17534  unsigned int __cil_tmp15 ;
17535  unsigned int __cil_tmp16 ;
17536  unsigned int __cil_tmp17 ;
17537  int __cil_tmp18 ;
17538  long __cil_tmp19 ;
17539  spinlock_t *__cil_tmp20 ;
17540  struct bc_state *__cil_tmp21 ;
17541  unsigned long __cil_tmp22 ;
17542  unsigned long __cil_tmp23 ;
17543  struct gigaset_ops  const  *__cil_tmp24 ;
17544  int (*__cil_tmp25)(struct bc_state * ) ;
17545  unsigned int __cil_tmp26 ;
17546  unsigned int __cil_tmp27 ;
17547  unsigned int __cil_tmp28 ;
17548  spinlock_t *__cil_tmp29 ;
17549  struct at_state_t *__cil_tmp30 ;
17550  struct list_head *__cil_tmp31 ;
17551  struct at_state_t *__cil_tmp32 ;
17552  void const   *__cil_tmp33 ;
17553  spinlock_t *__cil_tmp34 ;
17554
17555  {
17556  {
17557#line 616
17558  __cil_tmp8 = *at_state_p;
17559#line 616
17560  bcs = __cil_tmp8->bcs;
17561#line 617
17562  __cil_tmp9 = *at_state_p;
17563#line 617
17564  cs = __cil_tmp9->cs;
17565#line 619
17566  __cil_tmp10 = & cs->lock;
17567#line 619
17568  tmp = spinlock_check(__cil_tmp10);
17569#line 619
17570  flags = _raw_spin_lock_irqsave(tmp);
17571#line 620
17572  __cil_tmp11 = *at_state_p;
17573#line 620
17574  __cil_tmp12 = *at_state_p;
17575#line 620
17576  __cil_tmp13 = __cil_tmp12->seq_index;
17577#line 620
17578  __cil_tmp11->seq_index = __cil_tmp13 + 1U;
17579  }
17580  {
17581#line 623
17582  __cil_tmp14 = cs->cidmode;
17583#line 623
17584  if (__cil_tmp14 == 0U) {
17585    {
17586#line 624
17587    __cil_tmp15 = cs->at_state.pending_commands;
17588#line 624
17589    cs->at_state.pending_commands = __cil_tmp15 | 1024U;
17590#line 625
17591    __cil_tmp16 = (unsigned int )gigaset_debuglevel;
17592#line 625
17593    __cil_tmp17 = __cil_tmp16 & 512U;
17594#line 625
17595    __cil_tmp18 = __cil_tmp17 != 0U;
17596#line 625
17597    __cil_tmp19 = (long )__cil_tmp18;
17598#line 625
17599    tmp___0 = __builtin_expect(__cil_tmp19, 0L);
17600    }
17601#line 625
17602    if (tmp___0 != 0L) {
17603      {
17604#line 625
17605      printk("<7>gigaset: Scheduling PC_UMMODE\n");
17606      }
17607    } else {
17608
17609    }
17610#line 626
17611    cs->commands_pending = 1;
17612  } else {
17613
17614  }
17615  }
17616  {
17617#line 628
17618  __cil_tmp20 = & cs->lock;
17619#line 628
17620  spin_unlock_irqrestore(__cil_tmp20, flags);
17621  }
17622  {
17623#line 630
17624  __cil_tmp21 = (struct bc_state *)0;
17625#line 630
17626  __cil_tmp22 = (unsigned long )__cil_tmp21;
17627#line 630
17628  __cil_tmp23 = (unsigned long )bcs;
17629#line 630
17630  if (__cil_tmp23 != __cil_tmp22) {
17631    {
17632#line 632
17633    __cil_tmp24 = cs->ops;
17634#line 632
17635    __cil_tmp25 = __cil_tmp24->close_bchannel;
17636#line 632
17637    (*__cil_tmp25)(bcs);
17638    }
17639    {
17640#line 634
17641    __cil_tmp26 = bcs->chstate;
17642#line 634
17643    __cil_tmp27 = __cil_tmp26 & 5U;
17644#line 634
17645    if (__cil_tmp27 != 0U) {
17646      {
17647#line 635
17648      __cil_tmp28 = bcs->chstate;
17649#line 635
17650      bcs->chstate = __cil_tmp28 & 4294967290U;
17651#line 636
17652      gigaset_isdn_hupD(bcs);
17653      }
17654    } else {
17655
17656    }
17657    }
17658  } else {
17659    {
17660#line 640
17661    __cil_tmp29 = & cs->lock;
17662#line 640
17663    tmp___1 = spinlock_check(__cil_tmp29);
17664#line 640
17665    flags = _raw_spin_lock_irqsave(tmp___1);
17666#line 641
17667    __cil_tmp30 = *at_state_p;
17668#line 641
17669    __cil_tmp31 = & __cil_tmp30->list;
17670#line 641
17671    list_del(__cil_tmp31);
17672#line 642
17673    __cil_tmp32 = *at_state_p;
17674#line 642
17675    __cil_tmp33 = (void const   *)__cil_tmp32;
17676#line 642
17677    kfree(__cil_tmp33);
17678#line 643
17679    *at_state_p = (struct at_state_t *)0;
17680#line 644
17681    __cil_tmp34 = & cs->lock;
17682#line 644
17683    spin_unlock_irqrestore(__cil_tmp34, flags);
17684    }
17685  }
17686  }
17687#line 646
17688  return;
17689}
17690}
17691#line 654 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
17692__inline static struct at_state_t *get_free_channel(struct cardstate *cs , int cid ) 
17693{ unsigned long flags ;
17694  int i ;
17695  struct at_state_t *ret ;
17696  int tmp ;
17697  raw_spinlock_t *tmp___0 ;
17698  void *tmp___1 ;
17699  unsigned long __cil_tmp9 ;
17700  struct bc_state *__cil_tmp10 ;
17701  struct bc_state *__cil_tmp11 ;
17702  unsigned long __cil_tmp12 ;
17703  struct bc_state *__cil_tmp13 ;
17704  struct bc_state *__cil_tmp14 ;
17705  int __cil_tmp15 ;
17706  spinlock_t *__cil_tmp16 ;
17707  struct at_state_t *__cil_tmp17 ;
17708  unsigned long __cil_tmp18 ;
17709  unsigned long __cil_tmp19 ;
17710  struct bc_state *__cil_tmp20 ;
17711  struct list_head *__cil_tmp21 ;
17712  struct list_head *__cil_tmp22 ;
17713  spinlock_t *__cil_tmp23 ;
17714
17715  {
17716#line 665
17717  i = 0;
17718#line 665
17719  goto ldv_34706;
17720  ldv_34705: 
17721  {
17722#line 666
17723  __cil_tmp9 = (unsigned long )i;
17724#line 666
17725  __cil_tmp10 = cs->bcs;
17726#line 666
17727  __cil_tmp11 = __cil_tmp10 + __cil_tmp9;
17728#line 666
17729  tmp = gigaset_get_channel(__cil_tmp11);
17730  }
17731#line 666
17732  if (tmp != 0) {
17733#line 667
17734    __cil_tmp12 = (unsigned long )i;
17735#line 667
17736    __cil_tmp13 = cs->bcs;
17737#line 667
17738    __cil_tmp14 = __cil_tmp13 + __cil_tmp12;
17739#line 667
17740    ret = & __cil_tmp14->at_state;
17741#line 668
17742    ret->cid = cid;
17743#line 669
17744    return (ret);
17745  } else {
17746
17747  }
17748#line 665
17749  i = i + 1;
17750  ldv_34706: ;
17751  {
17752#line 665
17753  __cil_tmp15 = cs->channels;
17754#line 665
17755  if (__cil_tmp15 > i) {
17756#line 666
17757    goto ldv_34705;
17758  } else {
17759#line 668
17760    goto ldv_34707;
17761  }
17762  }
17763  ldv_34707: 
17764  {
17765#line 672
17766  __cil_tmp16 = & cs->lock;
17767#line 672
17768  tmp___0 = spinlock_check(__cil_tmp16);
17769#line 672
17770  flags = _raw_spin_lock_irqsave(tmp___0);
17771#line 673
17772  tmp___1 = kmalloc(136UL, 32U);
17773#line 673
17774  ret = (struct at_state_t *)tmp___1;
17775  }
17776  {
17777#line 674
17778  __cil_tmp17 = (struct at_state_t *)0;
17779#line 674
17780  __cil_tmp18 = (unsigned long )__cil_tmp17;
17781#line 674
17782  __cil_tmp19 = (unsigned long )ret;
17783#line 674
17784  if (__cil_tmp19 != __cil_tmp18) {
17785    {
17786#line 675
17787    __cil_tmp20 = (struct bc_state *)0;
17788#line 675
17789    gigaset_at_init(ret, __cil_tmp20, cs, cid);
17790#line 676
17791    __cil_tmp21 = & ret->list;
17792#line 676
17793    __cil_tmp22 = & cs->temp_at_states;
17794#line 676
17795    list_add(__cil_tmp21, __cil_tmp22);
17796    }
17797  } else {
17798
17799  }
17800  }
17801  {
17802#line 678
17803  __cil_tmp23 = & cs->lock;
17804#line 678
17805  spin_unlock_irqrestore(__cil_tmp23, flags);
17806  }
17807#line 679
17808  return (ret);
17809}
17810}
17811#line 682 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
17812static void init_failed(struct cardstate *cs , int mode ) 
17813{ int i ;
17814  struct at_state_t *at_state ;
17815  unsigned int __cil_tmp5 ;
17816  unsigned long __cil_tmp6 ;
17817  struct bc_state *__cil_tmp7 ;
17818  struct bc_state *__cil_tmp8 ;
17819  unsigned int __cil_tmp9 ;
17820  unsigned int __cil_tmp10 ;
17821  unsigned int __cil_tmp11 ;
17822  unsigned int __cil_tmp12 ;
17823  int __cil_tmp13 ;
17824
17825  {
17826  {
17827#line 687
17828  __cil_tmp5 = cs->at_state.pending_commands;
17829#line 687
17830  cs->at_state.pending_commands = __cil_tmp5 & 4294967291U;
17831#line 688
17832  cs->mode = mode;
17833#line 689
17834  cs->mstate = 0;
17835#line 690
17836  gigaset_free_channels(cs);
17837#line 691
17838  i = 0;
17839  }
17840#line 691
17841  goto ldv_34718;
17842  ldv_34717: 
17843#line 692
17844  __cil_tmp6 = (unsigned long )i;
17845#line 692
17846  __cil_tmp7 = cs->bcs;
17847#line 692
17848  __cil_tmp8 = __cil_tmp7 + __cil_tmp6;
17849#line 692
17850  at_state = & __cil_tmp8->at_state;
17851  {
17852#line 693
17853  __cil_tmp9 = at_state->pending_commands;
17854#line 693
17855  __cil_tmp10 = __cil_tmp9 & 128U;
17856#line 693
17857  if (__cil_tmp10 != 0U) {
17858#line 694
17859    __cil_tmp11 = at_state->pending_commands;
17860#line 694
17861    at_state->pending_commands = __cil_tmp11 & 4294967167U;
17862#line 695
17863    __cil_tmp12 = at_state->pending_commands;
17864#line 695
17865    at_state->pending_commands = __cil_tmp12 | 256U;
17866#line 696
17867    cs->commands_pending = 1;
17868  } else {
17869
17870  }
17871  }
17872#line 691
17873  i = i + 1;
17874  ldv_34718: ;
17875  {
17876#line 691
17877  __cil_tmp13 = cs->channels;
17878#line 691
17879  if (__cil_tmp13 > i) {
17880#line 692
17881    goto ldv_34717;
17882  } else {
17883#line 694
17884    goto ldv_34719;
17885  }
17886  }
17887  ldv_34719: ;
17888#line 696
17889  return;
17890}
17891}
17892#line 701 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
17893static void schedule_init(struct cardstate *cs , int state ) 
17894{ long tmp ;
17895  long tmp___0 ;
17896  unsigned int __cil_tmp5 ;
17897  unsigned int __cil_tmp6 ;
17898  unsigned int __cil_tmp7 ;
17899  unsigned int __cil_tmp8 ;
17900  int __cil_tmp9 ;
17901  long __cil_tmp10 ;
17902  unsigned int __cil_tmp11 ;
17903  unsigned int __cil_tmp12 ;
17904  unsigned int __cil_tmp13 ;
17905  int __cil_tmp14 ;
17906  long __cil_tmp15 ;
17907
17908  {
17909  {
17910#line 703
17911  __cil_tmp5 = cs->at_state.pending_commands;
17912#line 703
17913  __cil_tmp6 = __cil_tmp5 & 4U;
17914#line 703
17915  if (__cil_tmp6 != 0U) {
17916    {
17917#line 704
17918    __cil_tmp7 = (unsigned int )gigaset_debuglevel;
17919#line 704
17920    __cil_tmp8 = __cil_tmp7 & 512U;
17921#line 704
17922    __cil_tmp9 = __cil_tmp8 != 0U;
17923#line 704
17924    __cil_tmp10 = (long )__cil_tmp9;
17925#line 704
17926    tmp = __builtin_expect(__cil_tmp10, 0L);
17927    }
17928#line 704
17929    if (tmp != 0L) {
17930      {
17931#line 704
17932      printk("<7>gigaset: not scheduling PC_INIT again\n");
17933      }
17934    } else {
17935
17936    }
17937#line 705
17938    return;
17939  } else {
17940
17941  }
17942  }
17943  {
17944#line 707
17945  cs->mstate = state;
17946#line 708
17947  cs->mode = 0;
17948#line 709
17949  gigaset_block_channels(cs);
17950#line 710
17951  __cil_tmp11 = cs->at_state.pending_commands;
17952#line 710
17953  cs->at_state.pending_commands = __cil_tmp11 | 4U;
17954#line 711
17955  __cil_tmp12 = (unsigned int )gigaset_debuglevel;
17956#line 711
17957  __cil_tmp13 = __cil_tmp12 & 512U;
17958#line 711
17959  __cil_tmp14 = __cil_tmp13 != 0U;
17960#line 711
17961  __cil_tmp15 = (long )__cil_tmp14;
17962#line 711
17963  tmp___0 = __builtin_expect(__cil_tmp15, 0L);
17964  }
17965#line 711
17966  if (tmp___0 != 0L) {
17967    {
17968#line 711
17969    printk("<7>gigaset: Scheduling PC_INIT\n");
17970    }
17971  } else {
17972
17973  }
17974#line 712
17975  cs->commands_pending = 1;
17976#line 713
17977  return;
17978}
17979}
17980#line 717 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
17981static void send_command(struct cardstate *cs , char const   *cmd , int cid , int dle ,
17982                         gfp_t kmallocflags ) 
17983{ struct cmdbuf_t *cb ;
17984  size_t buflen ;
17985  size_t tmp ;
17986  void *tmp___0 ;
17987  char const   *tmp___1 ;
17988  char const   *tmp___2 ;
17989  size_t __cil_tmp12 ;
17990  struct cmdbuf_t *__cil_tmp13 ;
17991  unsigned long __cil_tmp14 ;
17992  unsigned long __cil_tmp15 ;
17993  struct device *__cil_tmp16 ;
17994  struct device  const  *__cil_tmp17 ;
17995  unsigned char (*__cil_tmp18)[0U] ;
17996  char *__cil_tmp19 ;
17997  unsigned char (*__cil_tmp20)[0U] ;
17998  char *__cil_tmp21 ;
17999  struct gigaset_ops  const  *__cil_tmp22 ;
18000  int (*__cil_tmp23)(struct cardstate * , struct cmdbuf_t * ) ;
18001
18002  {
18003  {
18004#line 723
18005  tmp = strlen(cmd);
18006#line 723
18007  buflen = tmp + 12UL;
18008#line 724
18009  __cil_tmp12 = buflen + 32UL;
18010#line 724
18011  tmp___0 = kmalloc(__cil_tmp12, kmallocflags);
18012#line 724
18013  cb = (struct cmdbuf_t *)tmp___0;
18014  }
18015  {
18016#line 725
18017  __cil_tmp13 = (struct cmdbuf_t *)0;
18018#line 725
18019  __cil_tmp14 = (unsigned long )__cil_tmp13;
18020#line 725
18021  __cil_tmp15 = (unsigned long )cb;
18022#line 725
18023  if (__cil_tmp15 == __cil_tmp14) {
18024    {
18025#line 726
18026    __cil_tmp16 = cs->dev;
18027#line 726
18028    __cil_tmp17 = (struct device  const  *)__cil_tmp16;
18029#line 726
18030    dev_err(__cil_tmp17, "%s: out of memory\n", "send_command");
18031    }
18032#line 727
18033    return;
18034  } else {
18035
18036  }
18037  }
18038#line 729
18039  if (cid > 0) {
18040#line 729
18041    if (cid <= 65535) {
18042#line 730
18043      if (dle != 0) {
18044#line 730
18045        tmp___1 = "\020(AT%d%s\020)";
18046      } else {
18047#line 730
18048        tmp___1 = "AT%d%s";
18049      }
18050      {
18051#line 730
18052      __cil_tmp18 = & cb->buf;
18053#line 730
18054      __cil_tmp19 = (char *)__cil_tmp18;
18055#line 730
18056      cb->len = snprintf(__cil_tmp19, buflen, tmp___1, cid, cmd);
18057      }
18058    } else {
18059#line 729
18060      goto _L;
18061    }
18062  } else {
18063    _L: 
18064#line 734
18065    if (dle != 0) {
18066#line 734
18067      tmp___2 = "\020(AT%s\020)";
18068    } else {
18069#line 734
18070      tmp___2 = "AT%s";
18071    }
18072    {
18073#line 734
18074    __cil_tmp20 = & cb->buf;
18075#line 734
18076    __cil_tmp21 = (char *)__cil_tmp20;
18077#line 734
18078    cb->len = snprintf(__cil_tmp21, buflen, tmp___2, cmd);
18079    }
18080  }
18081  {
18082#line 737
18083  cb->offset = 0;
18084#line 738
18085  cb->next = (struct cmdbuf_t *)0;
18086#line 739
18087  cb->wake_tasklet = (struct tasklet_struct *)0;
18088#line 740
18089  __cil_tmp22 = cs->ops;
18090#line 740
18091  __cil_tmp23 = __cil_tmp22->write_cmd;
18092#line 740
18093  (*__cil_tmp23)(cs, cb);
18094  }
18095#line 741
18096  return;
18097}
18098}
18099#line 743 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18100static struct at_state_t *at_state_from_cid(struct cardstate *cs , int cid ) 
18101{ struct at_state_t *at_state ;
18102  int i ;
18103  unsigned long flags ;
18104  raw_spinlock_t *tmp ;
18105  struct list_head  const  *__mptr ;
18106  struct list_head  const  *__mptr___0 ;
18107  unsigned long __cil_tmp9 ;
18108  struct bc_state *__cil_tmp10 ;
18109  struct bc_state *__cil_tmp11 ;
18110  int __cil_tmp12 ;
18111  unsigned long __cil_tmp13 ;
18112  struct bc_state *__cil_tmp14 ;
18113  struct bc_state *__cil_tmp15 ;
18114  int __cil_tmp16 ;
18115  spinlock_t *__cil_tmp17 ;
18116  struct list_head *__cil_tmp18 ;
18117  int __cil_tmp19 ;
18118  spinlock_t *__cil_tmp20 ;
18119  struct list_head *__cil_tmp21 ;
18120  struct list_head *__cil_tmp22 ;
18121  unsigned long __cil_tmp23 ;
18122  struct list_head *__cil_tmp24 ;
18123  unsigned long __cil_tmp25 ;
18124  spinlock_t *__cil_tmp26 ;
18125
18126  {
18127#line 749
18128  if (cid == 0) {
18129#line 750
18130    return (& cs->at_state);
18131  } else {
18132
18133  }
18134#line 752
18135  i = 0;
18136#line 752
18137  goto ldv_34742;
18138  ldv_34741: ;
18139  {
18140#line 753
18141  __cil_tmp9 = (unsigned long )i;
18142#line 753
18143  __cil_tmp10 = cs->bcs;
18144#line 753
18145  __cil_tmp11 = __cil_tmp10 + __cil_tmp9;
18146#line 753
18147  __cil_tmp12 = __cil_tmp11->at_state.cid;
18148#line 753
18149  if (__cil_tmp12 == cid) {
18150    {
18151#line 754
18152    __cil_tmp13 = (unsigned long )i;
18153#line 754
18154    __cil_tmp14 = cs->bcs;
18155#line 754
18156    __cil_tmp15 = __cil_tmp14 + __cil_tmp13;
18157#line 754
18158    return (& __cil_tmp15->at_state);
18159    }
18160  } else {
18161
18162  }
18163  }
18164#line 752
18165  i = i + 1;
18166  ldv_34742: ;
18167  {
18168#line 752
18169  __cil_tmp16 = cs->channels;
18170#line 752
18171  if (__cil_tmp16 > i) {
18172#line 753
18173    goto ldv_34741;
18174  } else {
18175#line 755
18176    goto ldv_34743;
18177  }
18178  }
18179  ldv_34743: 
18180  {
18181#line 756
18182  __cil_tmp17 = & cs->lock;
18183#line 756
18184  tmp = spinlock_check(__cil_tmp17);
18185#line 756
18186  flags = _raw_spin_lock_irqsave(tmp);
18187#line 758
18188  __cil_tmp18 = cs->temp_at_states.next;
18189#line 758
18190  __mptr = (struct list_head  const  *)__cil_tmp18;
18191#line 758
18192  at_state = (struct at_state_t *)__mptr;
18193  }
18194#line 758
18195  goto ldv_34752;
18196  ldv_34751: ;
18197  {
18198#line 759
18199  __cil_tmp19 = at_state->cid;
18200#line 759
18201  if (__cil_tmp19 == cid) {
18202    {
18203#line 760
18204    __cil_tmp20 = & cs->lock;
18205#line 760
18206    spin_unlock_irqrestore(__cil_tmp20, flags);
18207    }
18208#line 761
18209    return (at_state);
18210  } else {
18211
18212  }
18213  }
18214#line 758
18215  __cil_tmp21 = at_state->list.next;
18216#line 758
18217  __mptr___0 = (struct list_head  const  *)__cil_tmp21;
18218#line 758
18219  at_state = (struct at_state_t *)__mptr___0;
18220  ldv_34752: ;
18221  {
18222#line 758
18223  __cil_tmp22 = & cs->temp_at_states;
18224#line 758
18225  __cil_tmp23 = (unsigned long )__cil_tmp22;
18226#line 758
18227  __cil_tmp24 = & at_state->list;
18228#line 758
18229  __cil_tmp25 = (unsigned long )__cil_tmp24;
18230#line 758
18231  if (__cil_tmp25 != __cil_tmp23) {
18232#line 759
18233    goto ldv_34751;
18234  } else {
18235#line 761
18236    goto ldv_34753;
18237  }
18238  }
18239  ldv_34753: 
18240  {
18241#line 764
18242  __cil_tmp26 = & cs->lock;
18243#line 764
18244  spin_unlock_irqrestore(__cil_tmp26, flags);
18245  }
18246#line 766
18247  return ((struct at_state_t *)0);
18248}
18249}
18250#line 769 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18251static void bchannel_down(struct bc_state *bcs ) 
18252{ unsigned int __cil_tmp2 ;
18253  unsigned int __cil_tmp3 ;
18254  unsigned int __cil_tmp4 ;
18255  unsigned int __cil_tmp5 ;
18256  unsigned int __cil_tmp6 ;
18257  unsigned int __cil_tmp7 ;
18258
18259  {
18260  {
18261#line 771
18262  __cil_tmp2 = bcs->chstate;
18263#line 771
18264  __cil_tmp3 = __cil_tmp2 & 2U;
18265#line 771
18266  if (__cil_tmp3 != 0U) {
18267    {
18268#line 772
18269    __cil_tmp4 = bcs->chstate;
18270#line 772
18271    bcs->chstate = __cil_tmp4 & 4294967293U;
18272#line 773
18273    gigaset_isdn_hupB(bcs);
18274    }
18275  } else {
18276
18277  }
18278  }
18279  {
18280#line 776
18281  __cil_tmp5 = bcs->chstate;
18282#line 776
18283  __cil_tmp6 = __cil_tmp5 & 5U;
18284#line 776
18285  if (__cil_tmp6 != 0U) {
18286    {
18287#line 777
18288    __cil_tmp7 = bcs->chstate;
18289#line 777
18290    bcs->chstate = __cil_tmp7 & 4294967290U;
18291#line 778
18292    gigaset_isdn_hupD(bcs);
18293    }
18294  } else {
18295
18296  }
18297  }
18298  {
18299#line 781
18300  gigaset_free_channel(bcs);
18301#line 783
18302  gigaset_bcs_reinit(bcs);
18303  }
18304#line 784
18305  return;
18306}
18307}
18308#line 786 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18309static void bchannel_up(struct bc_state *bcs ) 
18310{ unsigned int __cil_tmp2 ;
18311  unsigned int __cil_tmp3 ;
18312  struct cardstate *__cil_tmp4 ;
18313  struct device *__cil_tmp5 ;
18314  struct device  const  *__cil_tmp6 ;
18315  unsigned int __cil_tmp7 ;
18316
18317  {
18318  {
18319#line 788
18320  __cil_tmp2 = bcs->chstate;
18321#line 788
18322  __cil_tmp3 = __cil_tmp2 & 2U;
18323#line 788
18324  if (__cil_tmp3 != 0U) {
18325    {
18326#line 789
18327    __cil_tmp4 = bcs->cs;
18328#line 789
18329    __cil_tmp5 = __cil_tmp4->dev;
18330#line 789
18331    __cil_tmp6 = (struct device  const  *)__cil_tmp5;
18332#line 789
18333    dev_notice(__cil_tmp6, "%s: B channel already up\n", "bchannel_up");
18334    }
18335#line 791
18336    return;
18337  } else {
18338
18339  }
18340  }
18341  {
18342#line 794
18343  __cil_tmp7 = bcs->chstate;
18344#line 794
18345  bcs->chstate = __cil_tmp7 | 2U;
18346#line 795
18347  gigaset_isdn_connB(bcs);
18348  }
18349#line 796
18350  return;
18351}
18352}
18353#line 798 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18354static void start_dial(struct at_state_t *at_state , void *data , unsigned int seq_index ) 
18355{ struct bc_state *bcs ;
18356  struct cardstate *cs ;
18357  char **commands ;
18358  unsigned long flags ;
18359  int i ;
18360  raw_spinlock_t *tmp ;
18361  long tmp___0 ;
18362  long tmp___1 ;
18363  unsigned int __cil_tmp12 ;
18364  spinlock_t *__cil_tmp13 ;
18365  unsigned int __cil_tmp14 ;
18366  spinlock_t *__cil_tmp15 ;
18367  spinlock_t *__cil_tmp16 ;
18368  char *__cil_tmp17 ;
18369  void const   *__cil_tmp18 ;
18370  unsigned long __cil_tmp19 ;
18371  char **__cil_tmp20 ;
18372  unsigned int __cil_tmp21 ;
18373  unsigned int __cil_tmp22 ;
18374  unsigned int __cil_tmp23 ;
18375  int __cil_tmp24 ;
18376  long __cil_tmp25 ;
18377  unsigned long __cil_tmp26 ;
18378  char **__cil_tmp27 ;
18379  char *__cil_tmp28 ;
18380  void const   *__cil_tmp29 ;
18381  unsigned long __cil_tmp30 ;
18382  char **__cil_tmp31 ;
18383  unsigned int __cil_tmp32 ;
18384  unsigned int __cil_tmp33 ;
18385  unsigned int __cil_tmp34 ;
18386  int __cil_tmp35 ;
18387  long __cil_tmp36 ;
18388
18389  {
18390  {
18391#line 801
18392  bcs = at_state->bcs;
18393#line 802
18394  cs = at_state->cs;
18395#line 803
18396  commands = (char **)data;
18397#line 807
18398  __cil_tmp12 = bcs->chstate;
18399#line 807
18400  bcs->chstate = __cil_tmp12 | 4U;
18401#line 809
18402  __cil_tmp13 = & cs->lock;
18403#line 809
18404  tmp = spinlock_check(__cil_tmp13);
18405#line 809
18406  flags = _raw_spin_lock_irqsave(tmp);
18407  }
18408  {
18409#line 810
18410  __cil_tmp14 = at_state->seq_index;
18411#line 810
18412  if (__cil_tmp14 != seq_index) {
18413    {
18414#line 811
18415    __cil_tmp15 = & cs->lock;
18416#line 811
18417    spin_unlock_irqrestore(__cil_tmp15, flags);
18418    }
18419#line 812
18420    goto error;
18421  } else {
18422
18423  }
18424  }
18425  {
18426#line 814
18427  __cil_tmp16 = & cs->lock;
18428#line 814
18429  spin_unlock_irqrestore(__cil_tmp16, flags);
18430#line 816
18431  i = 0;
18432  }
18433#line 816
18434  goto ldv_34776;
18435  ldv_34775: 
18436  {
18437#line 817
18438  __cil_tmp17 = bcs->commands[i];
18439#line 817
18440  __cil_tmp18 = (void const   *)__cil_tmp17;
18441#line 817
18442  kfree(__cil_tmp18);
18443#line 818
18444  __cil_tmp19 = (unsigned long )i;
18445#line 818
18446  __cil_tmp20 = commands + __cil_tmp19;
18447#line 818
18448  bcs->commands[i] = *__cil_tmp20;
18449#line 816
18450  i = i + 1;
18451  }
18452  ldv_34776: ;
18453#line 816
18454  if (i <= 6) {
18455#line 817
18456    goto ldv_34775;
18457  } else {
18458#line 819
18459    goto ldv_34777;
18460  }
18461  ldv_34777: 
18462  {
18463#line 821
18464  __cil_tmp21 = at_state->pending_commands;
18465#line 821
18466  at_state->pending_commands = __cil_tmp21 | 128U;
18467#line 822
18468  __cil_tmp22 = (unsigned int )gigaset_debuglevel;
18469#line 822
18470  __cil_tmp23 = __cil_tmp22 & 512U;
18471#line 822
18472  __cil_tmp24 = __cil_tmp23 != 0U;
18473#line 822
18474  __cil_tmp25 = (long )__cil_tmp24;
18475#line 822
18476  tmp___0 = __builtin_expect(__cil_tmp25, 0L);
18477  }
18478#line 822
18479  if (tmp___0 != 0L) {
18480    {
18481#line 822
18482    printk("<7>gigaset: Scheduling PC_CID\n");
18483    }
18484  } else {
18485
18486  }
18487#line 823
18488  cs->commands_pending = 1;
18489#line 824
18490  return;
18491  error: 
18492#line 827
18493  i = 0;
18494#line 827
18495  goto ldv_34779;
18496  ldv_34778: 
18497  {
18498#line 828
18499  __cil_tmp26 = (unsigned long )i;
18500#line 828
18501  __cil_tmp27 = commands + __cil_tmp26;
18502#line 828
18503  __cil_tmp28 = *__cil_tmp27;
18504#line 828
18505  __cil_tmp29 = (void const   *)__cil_tmp28;
18506#line 828
18507  kfree(__cil_tmp29);
18508#line 829
18509  __cil_tmp30 = (unsigned long )i;
18510#line 829
18511  __cil_tmp31 = commands + __cil_tmp30;
18512#line 829
18513  *__cil_tmp31 = (char *)0;
18514#line 827
18515  i = i + 1;
18516  }
18517  ldv_34779: ;
18518#line 827
18519  if (i <= 6) {
18520#line 828
18521    goto ldv_34778;
18522  } else {
18523#line 830
18524    goto ldv_34780;
18525  }
18526  ldv_34780: 
18527  {
18528#line 831
18529  __cil_tmp32 = at_state->pending_commands;
18530#line 831
18531  at_state->pending_commands = __cil_tmp32 | 256U;
18532#line 832
18533  __cil_tmp33 = (unsigned int )gigaset_debuglevel;
18534#line 832
18535  __cil_tmp34 = __cil_tmp33 & 512U;
18536#line 832
18537  __cil_tmp35 = __cil_tmp34 != 0U;
18538#line 832
18539  __cil_tmp36 = (long )__cil_tmp35;
18540#line 832
18541  tmp___1 = __builtin_expect(__cil_tmp36, 0L);
18542  }
18543#line 832
18544  if (tmp___1 != 0L) {
18545    {
18546#line 832
18547    printk("<7>gigaset: Scheduling PC_NOCID\n");
18548    }
18549  } else {
18550
18551  }
18552#line 833
18553  cs->commands_pending = 1;
18554#line 834
18555  return;
18556}
18557}
18558#line 837 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18559static void start_accept(struct at_state_t *at_state ) 
18560{ struct cardstate *cs ;
18561  struct bc_state *bcs ;
18562  int i ;
18563  void *tmp ;
18564  void *tmp___0 ;
18565  long tmp___1 ;
18566  long tmp___2 ;
18567  char *__cil_tmp9 ;
18568  void const   *__cil_tmp10 ;
18569  char *__cil_tmp11 ;
18570  unsigned long __cil_tmp12 ;
18571  char *__cil_tmp13 ;
18572  unsigned long __cil_tmp14 ;
18573  char *__cil_tmp15 ;
18574  unsigned long __cil_tmp16 ;
18575  char *__cil_tmp17 ;
18576  unsigned long __cil_tmp18 ;
18577  struct cardstate *__cil_tmp19 ;
18578  struct device *__cil_tmp20 ;
18579  struct device  const  *__cil_tmp21 ;
18580  unsigned int __cil_tmp22 ;
18581  unsigned int __cil_tmp23 ;
18582  unsigned int __cil_tmp24 ;
18583  int __cil_tmp25 ;
18584  long __cil_tmp26 ;
18585  char *__cil_tmp27 ;
18586  unsigned int __cil_tmp28 ;
18587  char *__cil_tmp29 ;
18588  int __cil_tmp30 ;
18589  int __cil_tmp31 ;
18590  unsigned int __cil_tmp32 ;
18591  unsigned int __cil_tmp33 ;
18592  unsigned int __cil_tmp34 ;
18593  int __cil_tmp35 ;
18594  long __cil_tmp36 ;
18595
18596  {
18597#line 839
18598  cs = at_state->cs;
18599#line 840
18600  bcs = at_state->bcs;
18601#line 843
18602  i = 0;
18603#line 843
18604  goto ldv_34788;
18605  ldv_34787: 
18606  {
18607#line 844
18608  __cil_tmp9 = bcs->commands[i];
18609#line 844
18610  __cil_tmp10 = (void const   *)__cil_tmp9;
18611#line 844
18612  kfree(__cil_tmp10);
18613#line 845
18614  bcs->commands[i] = (char *)0;
18615#line 843
18616  i = i + 1;
18617  }
18618  ldv_34788: ;
18619#line 843
18620  if (i <= 6) {
18621#line 844
18622    goto ldv_34787;
18623  } else {
18624#line 846
18625    goto ldv_34789;
18626  }
18627  ldv_34789: 
18628  {
18629#line 848
18630  tmp = kmalloc(9UL, 32U);
18631#line 848
18632  bcs->commands[4] = (char *)tmp;
18633#line 849
18634  tmp___0 = kmalloc(9UL, 32U);
18635#line 849
18636  bcs->commands[0] = (char *)tmp___0;
18637  }
18638  {
18639#line 850
18640  __cil_tmp11 = (char *)0;
18641#line 850
18642  __cil_tmp12 = (unsigned long )__cil_tmp11;
18643#line 850
18644  __cil_tmp13 = bcs->commands[4];
18645#line 850
18646  __cil_tmp14 = (unsigned long )__cil_tmp13;
18647#line 850
18648  if (__cil_tmp14 == __cil_tmp12) {
18649#line 850
18650    goto _L;
18651  } else {
18652    {
18653#line 850
18654    __cil_tmp15 = (char *)0;
18655#line 850
18656    __cil_tmp16 = (unsigned long )__cil_tmp15;
18657#line 850
18658    __cil_tmp17 = bcs->commands[0];
18659#line 850
18660    __cil_tmp18 = (unsigned long )__cil_tmp17;
18661#line 850
18662    if (__cil_tmp18 == __cil_tmp16) {
18663      _L: 
18664      {
18665#line 851
18666      __cil_tmp19 = at_state->cs;
18667#line 851
18668      __cil_tmp20 = __cil_tmp19->dev;
18669#line 851
18670      __cil_tmp21 = (struct device  const  *)__cil_tmp20;
18671#line 851
18672      dev_err(__cil_tmp21, "out of memory\n");
18673#line 853
18674      __cil_tmp22 = at_state->pending_commands;
18675#line 853
18676      at_state->pending_commands = __cil_tmp22 | 2U;
18677#line 854
18678      __cil_tmp23 = (unsigned int )gigaset_debuglevel;
18679#line 854
18680      __cil_tmp24 = __cil_tmp23 & 512U;
18681#line 854
18682      __cil_tmp25 = __cil_tmp24 != 0U;
18683#line 854
18684      __cil_tmp26 = (long )__cil_tmp25;
18685#line 854
18686      tmp___1 = __builtin_expect(__cil_tmp26, 0L);
18687      }
18688#line 854
18689      if (tmp___1 != 0L) {
18690        {
18691#line 854
18692        printk("<7>gigaset: Scheduling PC_HUP\n");
18693        }
18694      } else {
18695
18696      }
18697#line 855
18698      cs->commands_pending = 1;
18699#line 856
18700      return;
18701    } else {
18702
18703    }
18704    }
18705  }
18706  }
18707  {
18708#line 859
18709  __cil_tmp27 = bcs->commands[4];
18710#line 859
18711  __cil_tmp28 = bcs->proto2;
18712#line 859
18713  snprintf(__cil_tmp27, 9UL, "^SBPR=%u\r", __cil_tmp28);
18714#line 860
18715  __cil_tmp29 = bcs->commands[0];
18716#line 860
18717  __cil_tmp30 = bcs->channel;
18718#line 860
18719  __cil_tmp31 = __cil_tmp30 + 1;
18720#line 860
18721  snprintf(__cil_tmp29, 9UL, "^SISO=%u\r", __cil_tmp31);
18722#line 862
18723  __cil_tmp32 = at_state->pending_commands;
18724#line 862
18725  at_state->pending_commands = __cil_tmp32 | 64U;
18726#line 863
18727  __cil_tmp33 = (unsigned int )gigaset_debuglevel;
18728#line 863
18729  __cil_tmp34 = __cil_tmp33 & 512U;
18730#line 863
18731  __cil_tmp35 = __cil_tmp34 != 0U;
18732#line 863
18733  __cil_tmp36 = (long )__cil_tmp35;
18734#line 863
18735  tmp___2 = __builtin_expect(__cil_tmp36, 0L);
18736  }
18737#line 863
18738  if (tmp___2 != 0L) {
18739    {
18740#line 863
18741    printk("<7>gigaset: Scheduling PC_ACCEPT\n");
18742    }
18743  } else {
18744
18745  }
18746#line 864
18747  cs->commands_pending = 1;
18748#line 865
18749  return;
18750}
18751}
18752#line 867 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18753static void do_start(struct cardstate *cs ) 
18754{ int __cil_tmp2 ;
18755  wait_queue_head_t *__cil_tmp3 ;
18756  void *__cil_tmp4 ;
18757
18758  {
18759  {
18760#line 869
18761  gigaset_free_channels(cs);
18762  }
18763  {
18764#line 871
18765  __cil_tmp2 = cs->mstate;
18766#line 871
18767  if (__cil_tmp2 != 2) {
18768    {
18769#line 872
18770    schedule_init(cs, 1);
18771    }
18772  } else {
18773
18774  }
18775  }
18776  {
18777#line 874
18778  cs->isdn_up = 1U;
18779#line 875
18780  gigaset_isdn_start(cs);
18781#line 877
18782  cs->waiting = 0;
18783#line 878
18784  __cil_tmp3 = & cs->waitqueue;
18785#line 878
18786  __cil_tmp4 = (void *)0;
18787#line 878
18788  __wake_up(__cil_tmp3, 3U, 1, __cil_tmp4);
18789  }
18790#line 879
18791  return;
18792}
18793}
18794#line 881 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18795static void finish_shutdown(struct cardstate *cs ) 
18796{ int __cil_tmp2 ;
18797  unsigned int __cil_tmp3 ;
18798  wait_queue_head_t *__cil_tmp4 ;
18799  void *__cil_tmp5 ;
18800
18801  {
18802  {
18803#line 883
18804  __cil_tmp2 = cs->mstate;
18805#line 883
18806  if (__cil_tmp2 != 2) {
18807#line 884
18808    cs->mstate = 0;
18809#line 885
18810    cs->mode = 0;
18811  } else {
18812
18813  }
18814  }
18815  {
18816#line 889
18817  __cil_tmp3 = cs->isdn_up;
18818#line 889
18819  if (__cil_tmp3 != 0U) {
18820    {
18821#line 890
18822    cs->isdn_up = 0U;
18823#line 891
18824    gigaset_isdn_stop(cs);
18825    }
18826  } else {
18827
18828  }
18829  }
18830  {
18831#line 896
18832  cs->cmd_result = -19;
18833#line 897
18834  cs->waiting = 0;
18835#line 898
18836  __cil_tmp4 = & cs->waitqueue;
18837#line 898
18838  __cil_tmp5 = (void *)0;
18839#line 898
18840  __wake_up(__cil_tmp4, 3U, 1, __cil_tmp5);
18841  }
18842#line 899
18843  return;
18844}
18845}
18846#line 901 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18847static void do_shutdown(struct cardstate *cs ) 
18848{ long tmp ;
18849  int __cil_tmp3 ;
18850  unsigned int __cil_tmp4 ;
18851  unsigned int __cil_tmp5 ;
18852  unsigned int __cil_tmp6 ;
18853  int __cil_tmp7 ;
18854  long __cil_tmp8 ;
18855
18856  {
18857  {
18858#line 903
18859  gigaset_block_channels(cs);
18860  }
18861  {
18862#line 905
18863  __cil_tmp3 = cs->mstate;
18864#line 905
18865  if (__cil_tmp3 == 5) {
18866    {
18867#line 906
18868    cs->mstate = 3;
18869#line 907
18870    __cil_tmp4 = cs->at_state.pending_commands;
18871#line 907
18872    cs->at_state.pending_commands = __cil_tmp4 | 32U;
18873#line 908
18874    __cil_tmp5 = (unsigned int )gigaset_debuglevel;
18875#line 908
18876    __cil_tmp6 = __cil_tmp5 & 512U;
18877#line 908
18878    __cil_tmp7 = __cil_tmp6 != 0U;
18879#line 908
18880    __cil_tmp8 = (long )__cil_tmp7;
18881#line 908
18882    tmp = __builtin_expect(__cil_tmp8, 0L);
18883    }
18884#line 908
18885    if (tmp != 0L) {
18886      {
18887#line 908
18888      printk("<7>gigaset: Scheduling PC_SHUTDOWN\n");
18889      }
18890    } else {
18891
18892    }
18893#line 909
18894    cs->commands_pending = 1;
18895  } else {
18896    {
18897#line 911
18898    finish_shutdown(cs);
18899    }
18900  }
18901  }
18902#line 912
18903  return;
18904}
18905}
18906#line 914 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18907static void do_stop(struct cardstate *cs ) 
18908{ unsigned long flags ;
18909  raw_spinlock_t *tmp ;
18910  spinlock_t *__cil_tmp4 ;
18911  spinlock_t *__cil_tmp5 ;
18912
18913  {
18914  {
18915#line 918
18916  __cil_tmp4 = & cs->lock;
18917#line 918
18918  tmp = spinlock_check(__cil_tmp4);
18919#line 918
18920  flags = _raw_spin_lock_irqsave(tmp);
18921#line 919
18922  cs->connected = 0U;
18923#line 920
18924  __cil_tmp5 = & cs->lock;
18925#line 920
18926  spin_unlock_irqrestore(__cil_tmp5, flags);
18927#line 922
18928  do_shutdown(cs);
18929  }
18930#line 923
18931  return;
18932}
18933}
18934#line 933 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
18935static int reinit_and_retry(struct cardstate *cs , int channel ) 
18936{ int i ;
18937  int __cil_tmp4 ;
18938  int __cil_tmp5 ;
18939  unsigned long __cil_tmp6 ;
18940  struct bc_state *__cil_tmp7 ;
18941  struct bc_state *__cil_tmp8 ;
18942  int __cil_tmp9 ;
18943  int __cil_tmp10 ;
18944  struct device *__cil_tmp11 ;
18945  struct device  const  *__cil_tmp12 ;
18946  struct device *__cil_tmp13 ;
18947  struct device  const  *__cil_tmp14 ;
18948  unsigned long __cil_tmp15 ;
18949  struct bc_state *__cil_tmp16 ;
18950  struct bc_state *__cil_tmp17 ;
18951  unsigned long __cil_tmp18 ;
18952  struct bc_state *__cil_tmp19 ;
18953  struct bc_state *__cil_tmp20 ;
18954  unsigned int __cil_tmp21 ;
18955
18956  {
18957#line 937
18958  __cil_tmp4 = cs->retry_count;
18959#line 937
18960  cs->retry_count = __cil_tmp4 - 1;
18961  {
18962#line 937
18963  __cil_tmp5 = cs->retry_count;
18964#line 937
18965  if (__cil_tmp5 <= 0) {
18966#line 938
18967    return (0);
18968  } else {
18969
18970  }
18971  }
18972#line 940
18973  i = 0;
18974#line 940
18975  goto ldv_34812;
18976  ldv_34811: ;
18977  {
18978#line 941
18979  __cil_tmp6 = (unsigned long )i;
18980#line 941
18981  __cil_tmp7 = cs->bcs;
18982#line 941
18983  __cil_tmp8 = __cil_tmp7 + __cil_tmp6;
18984#line 941
18985  __cil_tmp9 = __cil_tmp8->at_state.cid;
18986#line 941
18987  if (__cil_tmp9 > 0) {
18988#line 942
18989    return (0);
18990  } else {
18991
18992  }
18993  }
18994#line 940
18995  i = i + 1;
18996  ldv_34812: ;
18997  {
18998#line 940
18999  __cil_tmp10 = cs->channels;
19000#line 940
19001  if (__cil_tmp10 > i) {
19002#line 941
19003    goto ldv_34811;
19004  } else {
19005#line 943
19006    goto ldv_34813;
19007  }
19008  }
19009  ldv_34813: ;
19010#line 944
19011  if (channel < 0) {
19012    {
19013#line 945
19014    __cil_tmp11 = cs->dev;
19015#line 945
19016    __cil_tmp12 = (struct device  const  *)__cil_tmp11;
19017#line 945
19018    dev_warn(__cil_tmp12, "Could not enter cid mode. Reinit device and try again.\n");
19019    }
19020  } else {
19021    {
19022#line 948
19023    __cil_tmp13 = cs->dev;
19024#line 948
19025    __cil_tmp14 = (struct device  const  *)__cil_tmp13;
19026#line 948
19027    dev_warn(__cil_tmp14, "Could not get a call id. Reinit device and try again.\n");
19028#line 950
19029    __cil_tmp15 = (unsigned long )channel;
19030#line 950
19031    __cil_tmp16 = cs->bcs;
19032#line 950
19033    __cil_tmp17 = __cil_tmp16 + __cil_tmp15;
19034#line 950
19035    __cil_tmp18 = (unsigned long )channel;
19036#line 950
19037    __cil_tmp19 = cs->bcs;
19038#line 950
19039    __cil_tmp20 = __cil_tmp19 + __cil_tmp18;
19040#line 950
19041    __cil_tmp21 = __cil_tmp20->at_state.pending_commands;
19042#line 950
19043    __cil_tmp17->at_state.pending_commands = __cil_tmp21 | 128U;
19044    }
19045  }
19046  {
19047#line 952
19048  schedule_init(cs, 1);
19049  }
19050#line 953
19051  return (1);
19052}
19053}
19054#line 956 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
19055static int at_state_invalid(struct cardstate *cs , struct at_state_t *test_ptr ) 
19056{ unsigned long flags ;
19057  unsigned int channel ;
19058  struct at_state_t *at_state ;
19059  int retval ;
19060  raw_spinlock_t *tmp ;
19061  struct list_head  const  *__mptr ;
19062  struct list_head  const  *__mptr___0 ;
19063  spinlock_t *__cil_tmp10 ;
19064  unsigned long __cil_tmp11 ;
19065  struct at_state_t *__cil_tmp12 ;
19066  unsigned long __cil_tmp13 ;
19067  struct list_head *__cil_tmp14 ;
19068  unsigned long __cil_tmp15 ;
19069  unsigned long __cil_tmp16 ;
19070  struct list_head *__cil_tmp17 ;
19071  struct list_head *__cil_tmp18 ;
19072  unsigned long __cil_tmp19 ;
19073  struct list_head *__cil_tmp20 ;
19074  unsigned long __cil_tmp21 ;
19075  unsigned long __cil_tmp22 ;
19076  unsigned long __cil_tmp23 ;
19077  struct bc_state *__cil_tmp24 ;
19078  struct bc_state *__cil_tmp25 ;
19079  struct at_state_t *__cil_tmp26 ;
19080  unsigned long __cil_tmp27 ;
19081  int __cil_tmp28 ;
19082  unsigned int __cil_tmp29 ;
19083  spinlock_t *__cil_tmp30 ;
19084
19085  {
19086  {
19087#line 962
19088  retval = 0;
19089#line 964
19090  __cil_tmp10 = & cs->lock;
19091#line 964
19092  tmp = spinlock_check(__cil_tmp10);
19093#line 964
19094  flags = _raw_spin_lock_irqsave(tmp);
19095  }
19096  {
19097#line 966
19098  __cil_tmp11 = (unsigned long )test_ptr;
19099#line 966
19100  __cil_tmp12 = & cs->at_state;
19101#line 966
19102  __cil_tmp13 = (unsigned long )__cil_tmp12;
19103#line 966
19104  if (__cil_tmp13 == __cil_tmp11) {
19105#line 967
19106    goto exit;
19107  } else {
19108
19109  }
19110  }
19111#line 969
19112  __cil_tmp14 = cs->temp_at_states.next;
19113#line 969
19114  __mptr = (struct list_head  const  *)__cil_tmp14;
19115#line 969
19116  at_state = (struct at_state_t *)__mptr;
19117#line 969
19118  goto ldv_34831;
19119  ldv_34830: ;
19120  {
19121#line 970
19122  __cil_tmp15 = (unsigned long )test_ptr;
19123#line 970
19124  __cil_tmp16 = (unsigned long )at_state;
19125#line 970
19126  if (__cil_tmp16 == __cil_tmp15) {
19127#line 971
19128    goto exit;
19129  } else {
19130
19131  }
19132  }
19133#line 969
19134  __cil_tmp17 = at_state->list.next;
19135#line 969
19136  __mptr___0 = (struct list_head  const  *)__cil_tmp17;
19137#line 969
19138  at_state = (struct at_state_t *)__mptr___0;
19139  ldv_34831: ;
19140  {
19141#line 969
19142  __cil_tmp18 = & cs->temp_at_states;
19143#line 969
19144  __cil_tmp19 = (unsigned long )__cil_tmp18;
19145#line 969
19146  __cil_tmp20 = & at_state->list;
19147#line 969
19148  __cil_tmp21 = (unsigned long )__cil_tmp20;
19149#line 969
19150  if (__cil_tmp21 != __cil_tmp19) {
19151#line 970
19152    goto ldv_34830;
19153  } else {
19154#line 972
19155    goto ldv_34832;
19156  }
19157  }
19158  ldv_34832: 
19159#line 973
19160  channel = 0U;
19161#line 973
19162  goto ldv_34834;
19163  ldv_34833: ;
19164  {
19165#line 974
19166  __cil_tmp22 = (unsigned long )test_ptr;
19167#line 974
19168  __cil_tmp23 = (unsigned long )channel;
19169#line 974
19170  __cil_tmp24 = cs->bcs;
19171#line 974
19172  __cil_tmp25 = __cil_tmp24 + __cil_tmp23;
19173#line 974
19174  __cil_tmp26 = & __cil_tmp25->at_state;
19175#line 974
19176  __cil_tmp27 = (unsigned long )__cil_tmp26;
19177#line 974
19178  if (__cil_tmp27 == __cil_tmp22) {
19179#line 975
19180    goto exit;
19181  } else {
19182
19183  }
19184  }
19185#line 973
19186  channel = channel + 1U;
19187  ldv_34834: ;
19188  {
19189#line 973
19190  __cil_tmp28 = cs->channels;
19191#line 973
19192  __cil_tmp29 = (unsigned int )__cil_tmp28;
19193#line 973
19194  if (__cil_tmp29 > channel) {
19195#line 974
19196    goto ldv_34833;
19197  } else {
19198#line 976
19199    goto ldv_34835;
19200  }
19201  }
19202  ldv_34835: 
19203#line 977
19204  retval = 1;
19205  exit: 
19206  {
19207#line 979
19208  __cil_tmp30 = & cs->lock;
19209#line 979
19210  spin_unlock_irqrestore(__cil_tmp30, flags);
19211  }
19212#line 980
19213  return (retval);
19214}
19215}
19216#line 983 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
19217static void handle_icall(struct cardstate *cs , struct bc_state *bcs , struct at_state_t **p_at_state ) 
19218{ int retval ;
19219  struct at_state_t *at_state ;
19220  struct device *__cil_tmp6 ;
19221  struct device  const  *__cil_tmp7 ;
19222  unsigned int __cil_tmp8 ;
19223
19224  {
19225  {
19226#line 987
19227  at_state = *p_at_state;
19228#line 989
19229  retval = gigaset_isdn_icall(at_state);
19230  }
19231#line 991
19232  if (retval == 1) {
19233#line 991
19234    goto case_1;
19235  } else
19236#line 996
19237  if (retval == 2) {
19238#line 996
19239    goto case_2;
19240  } else
19241#line 997
19242  if (retval == 0) {
19243#line 997
19244    goto case_0;
19245  } else {
19246#line 993
19247    goto switch_default;
19248#line 990
19249    if (0) {
19250      case_1: ;
19251#line 992
19252      goto ldv_34844;
19253      switch_default: 
19254      {
19255#line 994
19256      __cil_tmp6 = cs->dev;
19257#line 994
19258      __cil_tmp7 = (struct device  const  *)__cil_tmp6;
19259#line 994
19260      dev_err(__cil_tmp7, "internal error: disposition=%d\n", retval);
19261      }
19262      case_2: ;
19263      case_0: 
19264#line 1002
19265      __cil_tmp8 = at_state->pending_commands;
19266#line 1002
19267      at_state->pending_commands = __cil_tmp8 | 2U;
19268#line 1003
19269      cs->commands_pending = 1;
19270#line 1004
19271      goto ldv_34844;
19272    } else {
19273
19274    }
19275  }
19276  ldv_34844: ;
19277#line 1007
19278  return;
19279}
19280}
19281#line 1008 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
19282static int do_lock(struct cardstate *cs ) 
19283{ int mode ;
19284  int i ;
19285  int tmp ;
19286  int tmp___0 ;
19287  int __cil_tmp6 ;
19288  int __cil_tmp7 ;
19289  int __cil_tmp8 ;
19290  int __cil_tmp9 ;
19291  struct list_head *__cil_tmp10 ;
19292  struct list_head  const  *__cil_tmp11 ;
19293  unsigned int __cil_tmp12 ;
19294  unsigned long __cil_tmp13 ;
19295  struct bc_state *__cil_tmp14 ;
19296  struct bc_state *__cil_tmp15 ;
19297  unsigned int __cil_tmp16 ;
19298  int __cil_tmp17 ;
19299
19300  {
19301  {
19302#line 1014
19303  __cil_tmp6 = cs->mstate;
19304#line 1014
19305  if (__cil_tmp6 == 0) {
19306#line 1014
19307    goto case_0;
19308  } else {
19309    {
19310#line 1015
19311    __cil_tmp7 = cs->mstate;
19312#line 1015
19313    if (__cil_tmp7 == 5) {
19314#line 1015
19315      goto case_5;
19316    } else {
19317      {
19318#line 1028
19319      __cil_tmp8 = cs->mstate;
19320#line 1028
19321      if (__cil_tmp8 == 2) {
19322#line 1028
19323        goto case_2;
19324      } else {
19325#line 1030
19326        goto switch_default;
19327#line 1013
19328        if (0) {
19329          case_0: ;
19330          case_5: ;
19331          {
19332#line 1016
19333          __cil_tmp9 = cs->cur_at_seq;
19334#line 1016
19335          if (__cil_tmp9 != 0) {
19336#line 1018
19337            return (-16);
19338          } else {
19339            {
19340#line 1016
19341            __cil_tmp10 = & cs->temp_at_states;
19342#line 1016
19343            __cil_tmp11 = (struct list_head  const  *)__cil_tmp10;
19344#line 1016
19345            tmp = list_empty(__cil_tmp11);
19346            }
19347#line 1016
19348            if (tmp == 0) {
19349#line 1018
19350              return (-16);
19351            } else {
19352              {
19353#line 1016
19354              __cil_tmp12 = cs->at_state.pending_commands;
19355#line 1016
19356              if (__cil_tmp12 != 0U) {
19357#line 1018
19358                return (-16);
19359              } else {
19360
19361              }
19362              }
19363            }
19364          }
19365          }
19366#line 1020
19367          i = 0;
19368#line 1020
19369          goto ldv_34856;
19370          ldv_34855: ;
19371          {
19372#line 1021
19373          __cil_tmp13 = (unsigned long )i;
19374#line 1021
19375          __cil_tmp14 = cs->bcs;
19376#line 1021
19377          __cil_tmp15 = __cil_tmp14 + __cil_tmp13;
19378#line 1021
19379          __cil_tmp16 = __cil_tmp15->at_state.pending_commands;
19380#line 1021
19381          if (__cil_tmp16 != 0U) {
19382#line 1022
19383            return (-16);
19384          } else {
19385
19386          }
19387          }
19388#line 1020
19389          i = i + 1;
19390          ldv_34856: ;
19391          {
19392#line 1020
19393          __cil_tmp17 = cs->channels;
19394#line 1020
19395          if (__cil_tmp17 > i) {
19396#line 1021
19397            goto ldv_34855;
19398          } else {
19399#line 1023
19400            goto ldv_34857;
19401          }
19402          }
19403          ldv_34857: 
19404          {
19405#line 1024
19406          tmp___0 = gigaset_get_channels(cs);
19407          }
19408#line 1024
19409          if (tmp___0 == 0) {
19410#line 1025
19411            return (-16);
19412          } else {
19413
19414          }
19415#line 1027
19416          goto ldv_34858;
19417          case_2: ;
19418#line 1029
19419          goto ldv_34858;
19420          switch_default: ;
19421#line 1031
19422          return (-16);
19423        } else {
19424
19425        }
19426      }
19427      }
19428    }
19429    }
19430  }
19431  }
19432  ldv_34858: 
19433#line 1034
19434  mode = cs->mode;
19435#line 1035
19436  cs->mstate = 2;
19437#line 1036
19438  cs->mode = 0;
19439#line 1038
19440  return (mode);
19441}
19442}
19443#line 1041 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
19444static int do_unlock(struct cardstate *cs ) 
19445{ int __cil_tmp2 ;
19446  unsigned int __cil_tmp3 ;
19447
19448  {
19449  {
19450#line 1043
19451  __cil_tmp2 = cs->mstate;
19452#line 1043
19453  if (__cil_tmp2 != 2) {
19454#line 1044
19455    return (-22);
19456  } else {
19457
19458  }
19459  }
19460  {
19461#line 1046
19462  cs->mstate = 0;
19463#line 1047
19464  cs->mode = 0;
19465#line 1048
19466  gigaset_free_channels(cs);
19467  }
19468  {
19469#line 1049
19470  __cil_tmp3 = cs->connected;
19471#line 1049
19472  if (__cil_tmp3 != 0U) {
19473    {
19474#line 1050
19475    schedule_init(cs, 1);
19476    }
19477  } else {
19478
19479  }
19480  }
19481#line 1052
19482  return (0);
19483}
19484}
19485#line 1055 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
19486static void do_action(int action , struct cardstate *cs , struct bc_state *bcs , struct at_state_t **p_at_state ,
19487                      char **pp_command , int *p_genresp , int *p_resp_code , struct event_t *ev ) 
19488{ struct at_state_t *at_state ;
19489  struct at_state_t *at_state2 ;
19490  unsigned long flags ;
19491  int channel ;
19492  unsigned char *s ;
19493  unsigned char *e ;
19494  int i ;
19495  unsigned long val ;
19496  raw_spinlock_t *tmp ;
19497  long tmp___0 ;
19498  int tmp___1 ;
19499  struct cmdbuf_t *cb ;
19500  void *tmp___2 ;
19501  size_t __len ;
19502  void *__ret ;
19503  raw_spinlock_t *tmp___3 ;
19504  int tmp___4 ;
19505  int tmp___5 ;
19506  long tmp___6 ;
19507  long tmp___7 ;
19508  long tmp___8 ;
19509  long tmp___9 ;
19510  int tmp___10 ;
19511  int tmp___11 ;
19512  size_t __len___0 ;
19513  void *__ret___0 ;
19514  raw_spinlock_t *tmp___12 ;
19515  long tmp___13 ;
19516  long tmp___14 ;
19517  unsigned int __cil_tmp38 ;
19518  spinlock_t *__cil_tmp39 ;
19519  unsigned int __cil_tmp40 ;
19520  spinlock_t *__cil_tmp41 ;
19521  spinlock_t *__cil_tmp42 ;
19522  unsigned int __cil_tmp43 ;
19523  unsigned int __cil_tmp44 ;
19524  unsigned int __cil_tmp45 ;
19525  int __cil_tmp46 ;
19526  long __cil_tmp47 ;
19527  struct device *__cil_tmp48 ;
19528  struct device  const  *__cil_tmp49 ;
19529  struct inbuf_t *__cil_tmp50 ;
19530  struct inbuf_t *__cil_tmp51 ;
19531  int __cil_tmp52 ;
19532  struct inbuf_t *__cil_tmp53 ;
19533  struct inbuf_t *__cil_tmp54 ;
19534  int __cil_tmp55 ;
19535  long __cil_tmp56 ;
19536  long __cil_tmp57 ;
19537  long __cil_tmp58 ;
19538  int __cil_tmp59 ;
19539  int __cil_tmp60 ;
19540  int __cil_tmp61 ;
19541  int __cil_tmp62 ;
19542  unsigned int __cil_tmp63 ;
19543  struct cmdbuf_t *__cil_tmp64 ;
19544  unsigned long __cil_tmp65 ;
19545  unsigned long __cil_tmp66 ;
19546  struct device *__cil_tmp67 ;
19547  struct device  const  *__cil_tmp68 ;
19548  unsigned char (*__cil_tmp69)[0U] ;
19549  void *__cil_tmp70 ;
19550  void const   *__cil_tmp71 ;
19551  unsigned char (*__cil_tmp72)[0U] ;
19552  void *__cil_tmp73 ;
19553  void const   *__cil_tmp74 ;
19554  struct gigaset_ops  const  *__cil_tmp75 ;
19555  int (*__cil_tmp76)(struct cardstate * , struct cmdbuf_t * ) ;
19556  int __cil_tmp77 ;
19557  struct at_state_t *__cil_tmp78 ;
19558  unsigned long __cil_tmp79 ;
19559  unsigned long __cil_tmp80 ;
19560  struct device *__cil_tmp81 ;
19561  struct device  const  *__cil_tmp82 ;
19562  char *__cil_tmp83 ;
19563  void const   *__cil_tmp84 ;
19564  spinlock_t *__cil_tmp85 ;
19565  spinlock_t *__cil_tmp86 ;
19566  struct device *__cil_tmp87 ;
19567  struct device  const  *__cil_tmp88 ;
19568  int __cil_tmp89 ;
19569  unsigned int __cil_tmp90 ;
19570  unsigned int __cil_tmp91 ;
19571  struct gigaset_ops  const  *__cil_tmp92 ;
19572  int (*__cil_tmp93)(struct bc_state * ) ;
19573  int __cil_tmp94 ;
19574  unsigned long __cil_tmp95 ;
19575  struct bc_state *__cil_tmp96 ;
19576  unsigned int __cil_tmp97 ;
19577  struct gigaset_ops  const  *__cil_tmp98 ;
19578  int (*__cil_tmp99)(struct bc_state * ) ;
19579  struct bc_state *__cil_tmp100 ;
19580  unsigned long __cil_tmp101 ;
19581  unsigned long __cil_tmp102 ;
19582  int __cil_tmp103 ;
19583  int __cil_tmp104 ;
19584  unsigned int __cil_tmp105 ;
19585  int __cil_tmp106 ;
19586  unsigned long __cil_tmp107 ;
19587  struct bc_state *__cil_tmp108 ;
19588  struct bc_state *__cil_tmp109 ;
19589  struct device *__cil_tmp110 ;
19590  struct device  const  *__cil_tmp111 ;
19591  struct bc_state *__cil_tmp112 ;
19592  unsigned long __cil_tmp113 ;
19593  unsigned long __cil_tmp114 ;
19594  int __cil_tmp115 ;
19595  unsigned int __cil_tmp116 ;
19596  struct device *__cil_tmp117 ;
19597  struct device  const  *__cil_tmp118 ;
19598  int __cil_tmp119 ;
19599  unsigned long __cil_tmp120 ;
19600  struct bc_state *__cil_tmp121 ;
19601  struct bc_state *__cil_tmp122 ;
19602  struct device *__cil_tmp123 ;
19603  struct device  const  *__cil_tmp124 ;
19604  unsigned long __cil_tmp125 ;
19605  struct bc_state *__cil_tmp126 ;
19606  struct bc_state *__cil_tmp127 ;
19607  unsigned long __cil_tmp128 ;
19608  struct bc_state *__cil_tmp129 ;
19609  struct bc_state *__cil_tmp130 ;
19610  unsigned int __cil_tmp131 ;
19611  int __cil_tmp132 ;
19612  int __cil_tmp133 ;
19613  unsigned long __cil_tmp134 ;
19614  struct bc_state *__cil_tmp135 ;
19615  struct bc_state *__cil_tmp136 ;
19616  unsigned long __cil_tmp137 ;
19617  struct bc_state *__cil_tmp138 ;
19618  struct bc_state *__cil_tmp139 ;
19619  unsigned long __cil_tmp140 ;
19620  struct bc_state *__cil_tmp141 ;
19621  struct bc_state *__cil_tmp142 ;
19622  unsigned int __cil_tmp143 ;
19623  struct device *__cil_tmp144 ;
19624  struct device  const  *__cil_tmp145 ;
19625  unsigned long __cil_tmp146 ;
19626  struct bc_state *__cil_tmp147 ;
19627  struct bc_state *__cil_tmp148 ;
19628  int __cil_tmp149 ;
19629  unsigned long __cil_tmp150 ;
19630  struct bc_state *__cil_tmp151 ;
19631  struct bc_state *__cil_tmp152 ;
19632  unsigned int __cil_tmp153 ;
19633  unsigned int __cil_tmp154 ;
19634  void *__cil_tmp155 ;
19635  unsigned long __cil_tmp156 ;
19636  void *__cil_tmp157 ;
19637  unsigned long __cil_tmp158 ;
19638  void *__cil_tmp159 ;
19639  char const   *__cil_tmp160 ;
19640  char const   *__cil_tmp161 ;
19641  char **__cil_tmp162 ;
19642  unsigned long __cil_tmp163 ;
19643  unsigned long __cil_tmp164 ;
19644  unsigned char __cil_tmp165 ;
19645  unsigned int __cil_tmp166 ;
19646  unsigned char __cil_tmp167 ;
19647  unsigned int __cil_tmp168 ;
19648  int __cil_tmp169 ;
19649  unsigned int __cil_tmp170 ;
19650  unsigned int __cil_tmp171 ;
19651  int __cil_tmp172 ;
19652  long __cil_tmp173 ;
19653  unsigned int __cil_tmp174 ;
19654  unsigned int __cil_tmp175 ;
19655  unsigned int __cil_tmp176 ;
19656  unsigned int __cil_tmp177 ;
19657  struct device *__cil_tmp178 ;
19658  struct device  const  *__cil_tmp179 ;
19659  unsigned int __cil_tmp180 ;
19660  unsigned int __cil_tmp181 ;
19661  int __cil_tmp182 ;
19662  long __cil_tmp183 ;
19663  unsigned int __cil_tmp184 ;
19664  unsigned int __cil_tmp185 ;
19665  unsigned int __cil_tmp186 ;
19666  int __cil_tmp187 ;
19667  long __cil_tmp188 ;
19668  int __cil_tmp189 ;
19669  unsigned int __cil_tmp190 ;
19670  struct device *__cil_tmp191 ;
19671  struct device  const  *__cil_tmp192 ;
19672  int __cil_tmp193 ;
19673  unsigned int __cil_tmp194 ;
19674  struct device *__cil_tmp195 ;
19675  struct device  const  *__cil_tmp196 ;
19676  int __cil_tmp197 ;
19677  unsigned int __cil_tmp198 ;
19678  void *__cil_tmp199 ;
19679  int __cil_tmp200 ;
19680  unsigned int __cil_tmp201 ;
19681  unsigned int __cil_tmp202 ;
19682  unsigned int __cil_tmp203 ;
19683  unsigned int __cil_tmp204 ;
19684  int __cil_tmp205 ;
19685  long __cil_tmp206 ;
19686  int __cil_tmp207 ;
19687  wait_queue_head_t *__cil_tmp208 ;
19688  void *__cil_tmp209 ;
19689  int __cil_tmp210 ;
19690  int __cil_tmp211 ;
19691  void *__cil_tmp212 ;
19692  unsigned int (*__cil_tmp213)[4U] ;
19693  void const   *__cil_tmp214 ;
19694  void *__cil_tmp215 ;
19695  unsigned int (*__cil_tmp216)[4U] ;
19696  void const   *__cil_tmp217 ;
19697  wait_queue_head_t *__cil_tmp218 ;
19698  void *__cil_tmp219 ;
19699  spinlock_t *__cil_tmp220 ;
19700  unsigned int __cil_tmp221 ;
19701  int __cil_tmp222 ;
19702  unsigned int __cil_tmp223 ;
19703  int __cil_tmp224 ;
19704  int __cil_tmp225 ;
19705  unsigned int __cil_tmp226 ;
19706  unsigned int __cil_tmp227 ;
19707  unsigned int __cil_tmp228 ;
19708  int __cil_tmp229 ;
19709  long __cil_tmp230 ;
19710  unsigned int __cil_tmp231 ;
19711  unsigned int __cil_tmp232 ;
19712  unsigned int __cil_tmp233 ;
19713  int __cil_tmp234 ;
19714  long __cil_tmp235 ;
19715  spinlock_t *__cil_tmp236 ;
19716  wait_queue_head_t *__cil_tmp237 ;
19717  void *__cil_tmp238 ;
19718  struct bc_state *__cil_tmp239 ;
19719  char *__cil_tmp240 ;
19720  unsigned long __cil_tmp241 ;
19721  char *__cil_tmp242 ;
19722  unsigned long __cil_tmp243 ;
19723  struct device *__cil_tmp244 ;
19724  struct device  const  *__cil_tmp245 ;
19725  struct device *__cil_tmp246 ;
19726  struct device  const  *__cil_tmp247 ;
19727
19728  {
19729#line 1061
19730  at_state = *p_at_state;
19731#line 1072
19732  if (action == 0) {
19733#line 1072
19734    goto case_0;
19735  } else
19736#line 1074
19737  if (action == 29) {
19738#line 1074
19739    goto case_29;
19740  } else
19741#line 1077
19742  if (action == 6) {
19743#line 1077
19744    goto case_6;
19745  } else
19746#line 1093
19747  if (action == 3) {
19748#line 1093
19749    goto case_3;
19750  } else
19751#line 1099
19752  if (action == 5) {
19753#line 1099
19754    goto case_5;
19755  } else
19756#line 1103
19757  if (action == 1) {
19758#line 1103
19759    goto case_1;
19760  } else
19761#line 1109
19762  if (action == 2) {
19763#line 1109
19764    goto case_2;
19765  } else
19766#line 1115
19767  if (action == 54) {
19768#line 1115
19769    goto case_54;
19770  } else
19771#line 1123
19772  if (action == 52) {
19773#line 1123
19774    goto case_52;
19775  } else
19776#line 1127
19777  if (action == 55) {
19778#line 1127
19779    goto case_55;
19780  } else
19781#line 1136
19782  if (action == 53) {
19783#line 1136
19784    goto case_53;
19785  } else
19786#line 1140
19787  if (action == 4) {
19788#line 1140
19789    goto case_4;
19790  } else
19791#line 1159
19792  if (action == 11) {
19793#line 1159
19794    goto case_11;
19795  } else
19796#line 1183
19797  if (action == 26) {
19798#line 1183
19799    goto case_26;
19800  } else
19801#line 1186
19802  if (action == 15) {
19803#line 1186
19804    goto case_15;
19805  } else
19806#line 1189
19807  if (action == 49) {
19808#line 1189
19809    goto case_49;
19810  } else
19811#line 1190
19812  if (action == 14) {
19813#line 1190
19814    goto case_14;
19815  } else
19816#line 1194
19817  if (action == 21) {
19818#line 1194
19819    goto case_21;
19820  } else
19821#line 1204
19822  if (action == 8) {
19823#line 1204
19824    goto case_8;
19825  } else
19826#line 1212
19827  if (action == 48) {
19828#line 1212
19829    goto case_48;
19830  } else
19831#line 1215
19832  if (action == 20) {
19833#line 1215
19834    goto case_20;
19835  } else
19836#line 1227
19837  if (action == 47) {
19838#line 1227
19839    goto case_47;
19840  } else
19841#line 1231
19842  if (action == 7) {
19843#line 1231
19844    goto case_7;
19845  } else
19846#line 1236
19847  if (action == 25) {
19848#line 1236
19849    goto case_25;
19850  } else
19851#line 1246
19852  if (action == 9) {
19853#line 1246
19854    goto case_9;
19855  } else
19856#line 1253
19857  if (action == 10) {
19858#line 1253
19859    goto case_10;
19860  } else
19861#line 1262
19862  if (action == 12) {
19863#line 1262
19864    goto case_12;
19865  } else
19866#line 1273
19867  if (action == 13) {
19868#line 1273
19869    goto case_13;
19870  } else
19871#line 1283
19872  if (action == 36) {
19873#line 1283
19874    goto case_36;
19875  } else
19876#line 1289
19877  if (action == 18) {
19878#line 1289
19879    goto case_18;
19880  } else
19881#line 1290
19882  if (action == 27) {
19883#line 1290
19884    goto case_27;
19885  } else
19886#line 1294
19887  if (action == 28) {
19888#line 1294
19889    goto case_28;
19890  } else
19891#line 1298
19892  if (action == 19) {
19893#line 1298
19894    goto case_19;
19895  } else
19896#line 1304
19897  if (action == 22) {
19898#line 1304
19899    goto case_22;
19900  } else
19901#line 1305
19902  if (action == 23) {
19903#line 1305
19904    goto case_23;
19905  } else
19906#line 1306
19907  if (action == 24) {
19908#line 1306
19909    goto case_24;
19910  } else
19911#line 1310
19912  if (action == 30) {
19913#line 1310
19914    goto case_30;
19915  } else
19916#line 1314
19917  if (action == 31) {
19918#line 1314
19919    goto case_31;
19920  } else
19921#line 1349
19922  if (action == 33) {
19923#line 1349
19924    goto case_33;
19925  } else
19926#line 1359
19927  if (action == 32) {
19928#line 1359
19929    goto case_32;
19930  } else
19931#line 1363
19932  if (action == 35) {
19933#line 1363
19934    goto case_35;
19935  } else
19936#line 1368
19937  if (action == 16) {
19938#line 1368
19939    goto case_16;
19940  } else
19941#line 1372
19942  if (action == 17) {
19943#line 1372
19944    goto case_17;
19945  } else
19946#line 1376
19947  if (action == 37) {
19948#line 1376
19949    goto case_37;
19950  } else
19951#line 1382
19952  if (action == 40) {
19953#line 1382
19954    goto case_40;
19955  } else
19956#line 1385
19957  if (action == 41) {
19958#line 1385
19959    goto case_41;
19960  } else
19961#line 1388
19962  if (action == 43) {
19963#line 1388
19964    goto case_43;
19965  } else
19966#line 1395
19967  if (action == 46) {
19968#line 1395
19969    goto case_46;
19970  } else
19971#line 1398
19972  if (action == 45) {
19973#line 1398
19974    goto case_45;
19975  } else
19976#line 1403
19977  if (action == 44) {
19978#line 1403
19979    goto case_44;
19980  } else
19981#line 1408
19982  if (action == 56) {
19983#line 1408
19984    goto case_56;
19985  } else
19986#line 1422
19987  if (action == 51) {
19988#line 1422
19989    goto case_51;
19990  } else
19991#line 1441
19992  if (action == 38) {
19993#line 1441
19994    goto case_38;
19995  } else
19996#line 1444
19997  if (action == 39) {
19998#line 1444
19999    goto case_39;
20000  } else
20001#line 1447
20002  if (action == 50) {
20003#line 1447
20004    goto case_50;
20005  } else {
20006#line 1452
20007    goto switch_default;
20008#line 1071
20009    if (0) {
20010      case_0: ;
20011#line 1073
20012      goto ldv_34883;
20013      case_29: 
20014#line 1075
20015      at_state->waiting = 1;
20016#line 1076
20017      goto ldv_34883;
20018      case_6: 
20019      {
20020#line 1078
20021      __cil_tmp38 = cs->at_state.pending_commands;
20022#line 1078
20023      cs->at_state.pending_commands = __cil_tmp38 & 4294967291U;
20024#line 1079
20025      cs->cur_at_seq = 0;
20026#line 1080
20027      cs->mode = 2;
20028#line 1081
20029      __cil_tmp39 = & cs->lock;
20030#line 1081
20031      tmp = spinlock_check(__cil_tmp39);
20032#line 1081
20033      flags = _raw_spin_lock_irqsave(tmp);
20034      }
20035      {
20036#line 1082
20037      __cil_tmp40 = cs->cidmode;
20038#line 1082
20039      if (__cil_tmp40 == 0U) {
20040        {
20041#line 1083
20042        __cil_tmp41 = & cs->lock;
20043#line 1083
20044        spin_unlock_irqrestore(__cil_tmp41, flags);
20045#line 1084
20046        gigaset_free_channels(cs);
20047#line 1085
20048        cs->mstate = 5;
20049        }
20050#line 1086
20051        goto ldv_34883;
20052      } else {
20053
20054      }
20055      }
20056      {
20057#line 1088
20058      __cil_tmp42 = & cs->lock;
20059#line 1088
20060      spin_unlock_irqrestore(__cil_tmp42, flags);
20061#line 1089
20062      __cil_tmp43 = cs->at_state.pending_commands;
20063#line 1089
20064      cs->at_state.pending_commands = __cil_tmp43 | 512U;
20065#line 1090
20066      __cil_tmp44 = (unsigned int )gigaset_debuglevel;
20067#line 1090
20068      __cil_tmp45 = __cil_tmp44 & 512U;
20069#line 1090
20070      __cil_tmp46 = __cil_tmp45 != 0U;
20071#line 1090
20072      __cil_tmp47 = (long )__cil_tmp46;
20073#line 1090
20074      tmp___0 = __builtin_expect(__cil_tmp47, 0L);
20075      }
20076#line 1090
20077      if (tmp___0 != 0L) {
20078        {
20079#line 1090
20080        printk("<7>gigaset: Scheduling PC_CIDMODE\n");
20081        }
20082      } else {
20083
20084      }
20085#line 1091
20086      cs->commands_pending = 1;
20087#line 1092
20088      goto ldv_34883;
20089      case_3: 
20090      {
20091#line 1094
20092      __cil_tmp48 = cs->dev;
20093#line 1094
20094      __cil_tmp49 = (struct device  const  *)__cil_tmp48;
20095#line 1094
20096      dev_warn(__cil_tmp49, "Could not initialize the device.\n");
20097#line 1095
20098      cs->dle = 0;
20099#line 1096
20100      init_failed(cs, 0);
20101#line 1097
20102      cs->cur_at_seq = 0;
20103      }
20104#line 1098
20105      goto ldv_34883;
20106      case_5: 
20107      {
20108#line 1100
20109      init_failed(cs, 1);
20110#line 1101
20111      cs->cur_at_seq = 0;
20112      }
20113#line 1102
20114      goto ldv_34883;
20115      case_1: 
20116#line 1104
20117      cs->dle = 1;
20118#line 1106
20119      __cil_tmp50 = cs->inbuf;
20120#line 1106
20121      __cil_tmp51 = cs->inbuf;
20122#line 1106
20123      __cil_tmp52 = __cil_tmp51->inputstate;
20124#line 1106
20125      __cil_tmp50->inputstate = __cil_tmp52 & -34;
20126#line 1108
20127      goto ldv_34883;
20128      case_2: 
20129#line 1110
20130      cs->dle = 0;
20131#line 1111
20132      __cil_tmp53 = cs->inbuf;
20133#line 1111
20134      __cil_tmp54 = cs->inbuf;
20135#line 1111
20136      __cil_tmp55 = __cil_tmp54->inputstate;
20137#line 1111
20138      __cil_tmp56 = (long )__cil_tmp55;
20139#line 1111
20140      __cil_tmp57 = __cil_tmp56 & 4294967262L;
20141#line 1111
20142      __cil_tmp58 = __cil_tmp57 | 1L;
20143#line 1111
20144      __cil_tmp53->inputstate = (int )__cil_tmp58;
20145#line 1114
20146      goto ldv_34883;
20147      case_54: ;
20148      {
20149#line 1116
20150      __cil_tmp59 = cs->mstate;
20151#line 1116
20152      if (__cil_tmp59 == 1) {
20153        {
20154#line 1117
20155        gigaset_free_channels(cs);
20156#line 1118
20157        cs->mstate = 5;
20158        }
20159      } else {
20160        {
20161#line 1116
20162        __cil_tmp60 = cs->mstate;
20163#line 1116
20164        if (__cil_tmp60 == 4) {
20165          {
20166#line 1117
20167          gigaset_free_channels(cs);
20168#line 1118
20169          cs->mstate = 5;
20170          }
20171        } else {
20172
20173        }
20174        }
20175      }
20176      }
20177#line 1120
20178      cs->mode = 3;
20179#line 1121
20180      cs->cur_at_seq = 0;
20181#line 1122
20182      goto ldv_34883;
20183      case_52: 
20184#line 1124
20185      cs->mode = 2;
20186#line 1125
20187      cs->cur_at_seq = 0;
20188#line 1126
20189      goto ldv_34883;
20190      case_55: 
20191#line 1128
20192      cs->cur_at_seq = 0;
20193      {
20194#line 1129
20195      __cil_tmp61 = cs->mstate;
20196#line 1129
20197      if (__cil_tmp61 == 1) {
20198        {
20199#line 1130
20200        init_failed(cs, 0);
20201        }
20202#line 1131
20203        goto ldv_34883;
20204      } else {
20205        {
20206#line 1129
20207        __cil_tmp62 = cs->mstate;
20208#line 1129
20209        if (__cil_tmp62 == 4) {
20210          {
20211#line 1130
20212          init_failed(cs, 0);
20213          }
20214#line 1131
20215          goto ldv_34883;
20216        } else {
20217
20218        }
20219        }
20220      }
20221      }
20222      {
20223#line 1133
20224      tmp___1 = reinit_and_retry(cs, -1);
20225      }
20226#line 1133
20227      if (tmp___1 == 0) {
20228        {
20229#line 1134
20230        schedule_init(cs, 4);
20231        }
20232      } else {
20233
20234      }
20235#line 1135
20236      goto ldv_34883;
20237      case_53: 
20238      {
20239#line 1137
20240      cs->cur_at_seq = 0;
20241#line 1138
20242      schedule_init(cs, 4);
20243      }
20244#line 1139
20245      goto ldv_34883;
20246      case_4: ;
20247      {
20248#line 1142
20249      __cil_tmp63 = cs->connected;
20250#line 1142
20251      if (__cil_tmp63 != 0U) {
20252        {
20253#line 1145
20254        tmp___2 = kmalloc(35UL, 32U);
20255#line 1145
20256        cb = (struct cmdbuf_t *)tmp___2;
20257        }
20258        {
20259#line 1146
20260        __cil_tmp64 = (struct cmdbuf_t *)0;
20261#line 1146
20262        __cil_tmp65 = (unsigned long )__cil_tmp64;
20263#line 1146
20264        __cil_tmp66 = (unsigned long )cb;
20265#line 1146
20266        if (__cil_tmp66 == __cil_tmp65) {
20267          {
20268#line 1147
20269          __cil_tmp67 = cs->dev;
20270#line 1147
20271          __cil_tmp68 = (struct device  const  *)__cil_tmp67;
20272#line 1147
20273          dev_err(__cil_tmp68, "%s: out of memory\n", "do_action");
20274          }
20275#line 1149
20276          return;
20277        } else {
20278
20279        }
20280        }
20281#line 1151
20282        __len = 3UL;
20283#line 1151
20284        if (__len > 63UL) {
20285          {
20286#line 1151
20287          __cil_tmp69 = & cb->buf;
20288#line 1151
20289          __cil_tmp70 = (void *)__cil_tmp69;
20290#line 1151
20291          __cil_tmp71 = (void const   *)"+++";
20292#line 1151
20293          __ret = __memcpy(__cil_tmp70, __cil_tmp71, __len);
20294          }
20295        } else {
20296          {
20297#line 1151
20298          __cil_tmp72 = & cb->buf;
20299#line 1151
20300          __cil_tmp73 = (void *)__cil_tmp72;
20301#line 1151
20302          __cil_tmp74 = (void const   *)"+++";
20303#line 1151
20304          __ret = __builtin_memcpy(__cil_tmp73, __cil_tmp74, __len);
20305          }
20306        }
20307        {
20308#line 1152
20309        cb->len = 3;
20310#line 1153
20311        cb->offset = 0;
20312#line 1154
20313        cb->next = (struct cmdbuf_t *)0;
20314#line 1155
20315        cb->wake_tasklet = (struct tasklet_struct *)0;
20316#line 1156
20317        __cil_tmp75 = cs->ops;
20318#line 1156
20319        __cil_tmp76 = __cil_tmp75->write_cmd;
20320#line 1156
20321        (*__cil_tmp76)(cs, cb);
20322        }
20323      } else {
20324
20325      }
20326      }
20327#line 1158
20328      goto ldv_34883;
20329      case_11: 
20330      {
20331#line 1161
20332      __cil_tmp77 = ev->parameter;
20333#line 1161
20334      at_state2 = get_free_channel(cs, __cil_tmp77);
20335      }
20336      {
20337#line 1162
20338      __cil_tmp78 = (struct at_state_t *)0;
20339#line 1162
20340      __cil_tmp79 = (unsigned long )__cil_tmp78;
20341#line 1162
20342      __cil_tmp80 = (unsigned long )at_state2;
20343#line 1162
20344      if (__cil_tmp80 == __cil_tmp79) {
20345        {
20346#line 1163
20347        __cil_tmp81 = cs->dev;
20348#line 1163
20349        __cil_tmp82 = (struct device  const  *)__cil_tmp81;
20350#line 1163
20351        dev_warn(__cil_tmp82, "RING ignored: could not allocate channel structure\n");
20352        }
20353#line 1165
20354        goto ldv_34883;
20355      } else {
20356
20357      }
20358      }
20359#line 1171
20360      at_state2->ConState = 700U;
20361#line 1172
20362      i = 0;
20363#line 1172
20364      goto ldv_34905;
20365      ldv_34904: 
20366      {
20367#line 1173
20368      __cil_tmp83 = at_state2->str_var[i];
20369#line 1173
20370      __cil_tmp84 = (void const   *)__cil_tmp83;
20371#line 1173
20372      kfree(__cil_tmp84);
20373#line 1174
20374      at_state2->str_var[i] = (char *)0;
20375#line 1172
20376      i = i + 1;
20377      }
20378      ldv_34905: ;
20379#line 1172
20380      if (i <= 4) {
20381#line 1173
20382        goto ldv_34904;
20383      } else {
20384#line 1175
20385        goto ldv_34906;
20386      }
20387      ldv_34906: 
20388      {
20389#line 1176
20390      at_state2->int_var[2] = -1;
20391#line 1178
20392      __cil_tmp85 = & cs->lock;
20393#line 1178
20394      tmp___3 = spinlock_check(__cil_tmp85);
20395#line 1178
20396      flags = _raw_spin_lock_irqsave(tmp___3);
20397#line 1179
20398      at_state2->timer_expires = 3UL;
20399#line 1180
20400      at_state2->timer_active = 1;
20401#line 1181
20402      __cil_tmp86 = & cs->lock;
20403#line 1181
20404      spin_unlock_irqrestore(__cil_tmp86, flags);
20405      }
20406#line 1182
20407      goto ldv_34883;
20408      case_26: 
20409      {
20410#line 1184
20411      handle_icall(cs, bcs, p_at_state);
20412      }
20413#line 1185
20414      goto ldv_34883;
20415      case_15: 
20416      {
20417#line 1187
20418      __cil_tmp87 = cs->dev;
20419#line 1187
20420      __cil_tmp88 = (struct device  const  *)__cil_tmp87;
20421#line 1187
20422      dev_warn(__cil_tmp88, "Could not shut down the device.\n");
20423      }
20424      case_49: ;
20425      case_14: 
20426      {
20427#line 1191
20428      cs->cur_at_seq = 0;
20429#line 1192
20430      finish_shutdown(cs);
20431      }
20432#line 1193
20433      goto ldv_34883;
20434      case_21: ;
20435      {
20436#line 1195
20437      __cil_tmp89 = cs->onechannel;
20438#line 1195
20439      if (__cil_tmp89 != 0) {
20440#line 1196
20441        __cil_tmp90 = at_state->pending_commands;
20442#line 1196
20443        at_state->pending_commands = __cil_tmp90 | 16U;
20444#line 1197
20445        cs->commands_pending = 1;
20446#line 1198
20447        goto ldv_34883;
20448      } else {
20449
20450      }
20451      }
20452      {
20453#line 1200
20454      __cil_tmp91 = bcs->chstate;
20455#line 1200
20456      bcs->chstate = __cil_tmp91 | 1U;
20457#line 1201
20458      gigaset_isdn_connD(bcs);
20459#line 1202
20460      __cil_tmp92 = cs->ops;
20461#line 1202
20462      __cil_tmp93 = __cil_tmp92->init_bchannel;
20463#line 1202
20464      (*__cil_tmp93)(bcs);
20465      }
20466#line 1203
20467      goto ldv_34883;
20468      case_8: 
20469      {
20470#line 1205
20471      cs->cur_at_seq = 0;
20472#line 1206
20473      __cil_tmp94 = cs->curchannel;
20474#line 1206
20475      __cil_tmp95 = (unsigned long )__cil_tmp94;
20476#line 1206
20477      __cil_tmp96 = cs->bcs;
20478#line 1206
20479      bcs = __cil_tmp96 + __cil_tmp95;
20480#line 1208
20481      __cil_tmp97 = bcs->chstate;
20482#line 1208
20483      bcs->chstate = __cil_tmp97 | 1U;
20484#line 1209
20485      gigaset_isdn_connD(bcs);
20486#line 1210
20487      __cil_tmp98 = cs->ops;
20488#line 1210
20489      __cil_tmp99 = __cil_tmp98->init_bchannel;
20490#line 1210
20491      (*__cil_tmp99)(bcs);
20492      }
20493#line 1211
20494      goto ldv_34883;
20495      case_48: 
20496#line 1213
20497      at_state->int_var[0] = 5;
20498      case_20: 
20499#line 1216
20500      cs->cur_at_seq = 0;
20501#line 1217
20502      at_state->cid = -1;
20503      {
20504#line 1218
20505      __cil_tmp100 = (struct bc_state *)0;
20506#line 1218
20507      __cil_tmp101 = (unsigned long )__cil_tmp100;
20508#line 1218
20509      __cil_tmp102 = (unsigned long )bcs;
20510#line 1218
20511      if (__cil_tmp102 != __cil_tmp101) {
20512        {
20513#line 1218
20514        __cil_tmp103 = cs->onechannel;
20515#line 1218
20516        if (__cil_tmp103 != 0) {
20517          {
20518#line 1218
20519          __cil_tmp104 = cs->dle;
20520#line 1218
20521          if (__cil_tmp104 != 0) {
20522#line 1222
20523            __cil_tmp105 = at_state->pending_commands;
20524#line 1222
20525            at_state->pending_commands = __cil_tmp105 | 8U;
20526#line 1223
20527            cs->commands_pending = 1;
20528          } else {
20529            {
20530#line 1225
20531            disconnect(p_at_state);
20532            }
20533          }
20534          }
20535        } else {
20536          {
20537#line 1225
20538          disconnect(p_at_state);
20539          }
20540        }
20541        }
20542      } else {
20543        {
20544#line 1225
20545        disconnect(p_at_state);
20546        }
20547      }
20548      }
20549#line 1226
20550      goto ldv_34883;
20551      case_47: 
20552#line 1228
20553      at_state->int_var[1] = 0;
20554#line 1229
20555      cs->dle = 0;
20556      case_7: 
20557      {
20558#line 1232
20559      cs->cur_at_seq = 0;
20560#line 1233
20561      __cil_tmp106 = cs->curchannel;
20562#line 1233
20563      __cil_tmp107 = (unsigned long )__cil_tmp106;
20564#line 1233
20565      __cil_tmp108 = cs->bcs;
20566#line 1233
20567      __cil_tmp109 = __cil_tmp108 + __cil_tmp107;
20568#line 1233
20569      at_state2 = & __cil_tmp109->at_state;
20570#line 1234
20571      disconnect(& at_state2);
20572      }
20573#line 1235
20574      goto ldv_34883;
20575      case_25: 
20576      {
20577#line 1237
20578      cs->cur_at_seq = 0;
20579#line 1238
20580      __cil_tmp110 = cs->dev;
20581#line 1238
20582      __cil_tmp111 = (struct device  const  *)__cil_tmp110;
20583#line 1238
20584      dev_warn(__cil_tmp111, "Could not hang up.\n");
20585#line 1239
20586      at_state->cid = -1;
20587      }
20588      {
20589#line 1240
20590      __cil_tmp112 = (struct bc_state *)0;
20591#line 1240
20592      __cil_tmp113 = (unsigned long )__cil_tmp112;
20593#line 1240
20594      __cil_tmp114 = (unsigned long )bcs;
20595#line 1240
20596      if (__cil_tmp114 != __cil_tmp113) {
20597        {
20598#line 1240
20599        __cil_tmp115 = cs->onechannel;
20600#line 1240
20601        if (__cil_tmp115 != 0) {
20602#line 1241
20603          __cil_tmp116 = at_state->pending_commands;
20604#line 1241
20605          at_state->pending_commands = __cil_tmp116 | 8U;
20606        } else {
20607          {
20608#line 1243
20609          disconnect(p_at_state);
20610          }
20611        }
20612        }
20613      } else {
20614        {
20615#line 1243
20616        disconnect(p_at_state);
20617        }
20618      }
20619      }
20620      {
20621#line 1244
20622      schedule_init(cs, 4);
20623      }
20624#line 1245
20625      goto ldv_34883;
20626      case_9: 
20627      {
20628#line 1247
20629      cs->cur_at_seq = 0;
20630#line 1248
20631      __cil_tmp117 = cs->dev;
20632#line 1248
20633      __cil_tmp118 = (struct device  const  *)__cil_tmp117;
20634#line 1248
20635      dev_warn(__cil_tmp118, "Could not leave DLE mode.\n");
20636#line 1249
20637      __cil_tmp119 = cs->curchannel;
20638#line 1249
20639      __cil_tmp120 = (unsigned long )__cil_tmp119;
20640#line 1249
20641      __cil_tmp121 = cs->bcs;
20642#line 1249
20643      __cil_tmp122 = __cil_tmp121 + __cil_tmp120;
20644#line 1249
20645      at_state2 = & __cil_tmp122->at_state;
20646#line 1250
20647      disconnect(& at_state2);
20648#line 1251
20649      schedule_init(cs, 4);
20650      }
20651#line 1252
20652      goto ldv_34883;
20653      case_10: 
20654      {
20655#line 1254
20656      cs->cur_at_seq = 0;
20657#line 1255
20658      __cil_tmp123 = cs->dev;
20659#line 1255
20660      __cil_tmp124 = (struct device  const  *)__cil_tmp123;
20661#line 1255
20662      dev_warn(__cil_tmp124, "Could not enter DLE mode. Trying to hang up.\n");
20663#line 1257
20664      channel = cs->curchannel;
20665#line 1258
20666      __cil_tmp125 = (unsigned long )channel;
20667#line 1258
20668      __cil_tmp126 = cs->bcs;
20669#line 1258
20670      __cil_tmp127 = __cil_tmp126 + __cil_tmp125;
20671#line 1258
20672      __cil_tmp128 = (unsigned long )channel;
20673#line 1258
20674      __cil_tmp129 = cs->bcs;
20675#line 1258
20676      __cil_tmp130 = __cil_tmp129 + __cil_tmp128;
20677#line 1258
20678      __cil_tmp131 = __cil_tmp130->at_state.pending_commands;
20679#line 1258
20680      __cil_tmp127->at_state.pending_commands = __cil_tmp131 | 2U;
20681#line 1259
20682      cs->commands_pending = 1;
20683      }
20684#line 1260
20685      goto ldv_34883;
20686      case_12: 
20687#line 1263
20688      cs->cur_at_seq = 0;
20689#line 1264
20690      channel = cs->curchannel;
20691      {
20692#line 1265
20693      __cil_tmp132 = ev->parameter;
20694#line 1265
20695      if (__cil_tmp132 > 0) {
20696        {
20697#line 1265
20698        __cil_tmp133 = ev->parameter;
20699#line 1265
20700        if (__cil_tmp133 <= 65535) {
20701#line 1266
20702          __cil_tmp134 = (unsigned long )channel;
20703#line 1266
20704          __cil_tmp135 = cs->bcs;
20705#line 1266
20706          __cil_tmp136 = __cil_tmp135 + __cil_tmp134;
20707#line 1266
20708          __cil_tmp136->at_state.cid = ev->parameter;
20709#line 1267
20710          __cil_tmp137 = (unsigned long )channel;
20711#line 1267
20712          __cil_tmp138 = cs->bcs;
20713#line 1267
20714          __cil_tmp139 = __cil_tmp138 + __cil_tmp137;
20715#line 1267
20716          __cil_tmp140 = (unsigned long )channel;
20717#line 1267
20718          __cil_tmp141 = cs->bcs;
20719#line 1267
20720          __cil_tmp142 = __cil_tmp141 + __cil_tmp140;
20721#line 1267
20722          __cil_tmp143 = __cil_tmp142->at_state.pending_commands;
20723#line 1267
20724          __cil_tmp139->at_state.pending_commands = __cil_tmp143 | 1U;
20725#line 1269
20726          cs->commands_pending = 1;
20727#line 1270
20728          goto ldv_34883;
20729        } else {
20730
20731        }
20732        }
20733      } else {
20734
20735      }
20736      }
20737      case_13: 
20738      {
20739#line 1274
20740      cs->cur_at_seq = 0;
20741#line 1275
20742      channel = cs->curchannel;
20743#line 1276
20744      tmp___4 = reinit_and_retry(cs, channel);
20745      }
20746#line 1276
20747      if (tmp___4 == 0) {
20748        {
20749#line 1277
20750        __cil_tmp144 = cs->dev;
20751#line 1277
20752        __cil_tmp145 = (struct device  const  *)__cil_tmp144;
20753#line 1277
20754        dev_warn(__cil_tmp145, "Could not get a call ID. Cannot dial.\n");
20755#line 1279
20756        __cil_tmp146 = (unsigned long )channel;
20757#line 1279
20758        __cil_tmp147 = cs->bcs;
20759#line 1279
20760        __cil_tmp148 = __cil_tmp147 + __cil_tmp146;
20761#line 1279
20762        at_state2 = & __cil_tmp148->at_state;
20763#line 1280
20764        disconnect(& at_state2);
20765        }
20766      } else {
20767
20768      }
20769#line 1282
20770      goto ldv_34883;
20771      case_36: 
20772      {
20773#line 1284
20774      cs->cur_at_seq = 0;
20775#line 1285
20776      __cil_tmp149 = cs->curchannel;
20777#line 1285
20778      __cil_tmp150 = (unsigned long )__cil_tmp149;
20779#line 1285
20780      __cil_tmp151 = cs->bcs;
20781#line 1285
20782      __cil_tmp152 = __cil_tmp151 + __cil_tmp150;
20783#line 1285
20784      at_state2 = & __cil_tmp152->at_state;
20785#line 1286
20786      disconnect(& at_state2);
20787      }
20788#line 1287
20789      goto ldv_34883;
20790      case_18: ;
20791      case_27: 
20792#line 1291
20793      cs->cur_at_seq = 0;
20794#line 1292
20795      goto ldv_34883;
20796      case_28: 
20797      {
20798#line 1295
20799      disconnect(p_at_state);
20800      }
20801#line 1296
20802      goto ldv_34883;
20803      case_19: 
20804#line 1299
20805      cs->cur_at_seq = 0;
20806#line 1300
20807      __cil_tmp153 = at_state->pending_commands;
20808#line 1300
20809      at_state->pending_commands = __cil_tmp153 | 2U;
20810#line 1301
20811      cs->commands_pending = 1;
20812#line 1302
20813      goto ldv_34883;
20814      case_22: ;
20815      case_23: ;
20816      case_24: 
20817#line 1307
20818      __cil_tmp154 = at_state->pending_commands;
20819#line 1307
20820      at_state->pending_commands = __cil_tmp154 | 2U;
20821#line 1308
20822      cs->commands_pending = 1;
20823#line 1309
20824      goto ldv_34883;
20825      case_30: 
20826#line 1312
20827      at_state->getstring = 1;
20828#line 1313
20829      goto ldv_34883;
20830      case_31: ;
20831      {
20832#line 1315
20833      __cil_tmp155 = (void *)0;
20834#line 1315
20835      __cil_tmp156 = (unsigned long )__cil_tmp155;
20836#line 1315
20837      __cil_tmp157 = ev->ptr;
20838#line 1315
20839      __cil_tmp158 = (unsigned long )__cil_tmp157;
20840#line 1315
20841      if (__cil_tmp158 == __cil_tmp156) {
20842#line 1316
20843        *p_genresp = 1;
20844#line 1317
20845        *p_resp_code = 1;
20846#line 1318
20847        goto ldv_34883;
20848      } else {
20849
20850      }
20851      }
20852      {
20853#line 1320
20854      __cil_tmp159 = ev->ptr;
20855#line 1320
20856      s = (unsigned char *)__cil_tmp159;
20857#line 1322
20858      __cil_tmp160 = (char const   *)s;
20859#line 1322
20860      tmp___5 = strcmp(__cil_tmp160, "OK");
20861      }
20862#line 1322
20863      if (tmp___5 == 0) {
20864#line 1323
20865        *p_genresp = 1;
20866#line 1324
20867        *p_resp_code = 1;
20868#line 1325
20869        goto ldv_34883;
20870      } else {
20871
20872      }
20873#line 1328
20874      i = 0;
20875#line 1328
20876      goto ldv_34937;
20877      ldv_34936: 
20878      {
20879#line 1329
20880      __cil_tmp161 = (char const   *)s;
20881#line 1329
20882      __cil_tmp162 = (char **)(& e);
20883#line 1329
20884      val = simple_strtoul(__cil_tmp161, __cil_tmp162, 10U);
20885      }
20886#line 1330
20887      if (val > 2147483647UL) {
20888#line 1331
20889        goto ldv_34935;
20890      } else {
20891        {
20892#line 1330
20893        __cil_tmp163 = (unsigned long )s;
20894#line 1330
20895        __cil_tmp164 = (unsigned long )e;
20896#line 1330
20897        if (__cil_tmp164 == __cil_tmp163) {
20898#line 1331
20899          goto ldv_34935;
20900        } else {
20901
20902        }
20903        }
20904      }
20905#line 1332
20906      if (i == 3) {
20907        {
20908#line 1333
20909        __cil_tmp165 = *e;
20910#line 1333
20911        __cil_tmp166 = (unsigned int )__cil_tmp165;
20912#line 1333
20913        if (__cil_tmp166 != 0U) {
20914#line 1334
20915          goto ldv_34935;
20916        } else {
20917          {
20918#line 1335
20919          __cil_tmp167 = *e;
20920#line 1335
20921          __cil_tmp168 = (unsigned int )__cil_tmp167;
20922#line 1335
20923          if (__cil_tmp168 != 46U) {
20924#line 1336
20925            goto ldv_34935;
20926          } else {
20927#line 1338
20928            s = e + 1UL;
20929          }
20930          }
20931        }
20932        }
20933      } else {
20934
20935      }
20936#line 1339
20937      cs->fwver[i] = (unsigned int )val;
20938#line 1328
20939      i = i + 1;
20940      ldv_34937: ;
20941#line 1328
20942      if (i <= 3) {
20943#line 1329
20944        goto ldv_34936;
20945      } else {
20946#line 1331
20947        goto ldv_34935;
20948      }
20949      ldv_34935: ;
20950#line 1341
20951      if (i != 4) {
20952#line 1342
20953        *p_genresp = 1;
20954#line 1343
20955        *p_resp_code = 1;
20956#line 1344
20957        goto ldv_34883;
20958      } else {
20959
20960      }
20961#line 1347
20962      cs->gotfwver = 0;
20963#line 1348
20964      goto ldv_34883;
20965      case_33: ;
20966      {
20967#line 1350
20968      __cil_tmp169 = cs->gotfwver;
20969#line 1350
20970      if (__cil_tmp169 == 0) {
20971        {
20972#line 1351
20973        cs->gotfwver = 1;
20974#line 1352
20975        __cil_tmp170 = (unsigned int )gigaset_debuglevel;
20976#line 1352
20977        __cil_tmp171 = __cil_tmp170 & 512U;
20978#line 1352
20979        __cil_tmp172 = __cil_tmp171 != 0U;
20980#line 1352
20981        __cil_tmp173 = (long )__cil_tmp172;
20982#line 1352
20983        tmp___6 = __builtin_expect(__cil_tmp173, 0L);
20984        }
20985#line 1352
20986        if (tmp___6 != 0L) {
20987          {
20988#line 1352
20989          __cil_tmp174 = cs->fwver[0];
20990#line 1352
20991          __cil_tmp175 = cs->fwver[1];
20992#line 1352
20993          __cil_tmp176 = cs->fwver[2];
20994#line 1352
20995          __cil_tmp177 = cs->fwver[3];
20996#line 1352
20997          printk("<7>gigaset: firmware version %02d.%03d.%02d.%02d\n", __cil_tmp174,
20998                 __cil_tmp175, __cil_tmp176, __cil_tmp177);
20999          }
21000        } else {
21001
21002        }
21003#line 1356
21004        goto ldv_34883;
21005      } else {
21006
21007      }
21008      }
21009      case_32: 
21010      {
21011#line 1360
21012      cs->gotfwver = -1;
21013#line 1361
21014      __cil_tmp178 = cs->dev;
21015#line 1361
21016      __cil_tmp179 = (struct device  const  *)__cil_tmp178;
21017#line 1361
21018      dev_err(__cil_tmp179, "could not read firmware version.\n");
21019      }
21020#line 1362
21021      goto ldv_34883;
21022      case_35: 
21023      {
21024#line 1364
21025      __cil_tmp180 = (unsigned int )gigaset_debuglevel;
21026#line 1364
21027      __cil_tmp181 = __cil_tmp180 & 4194303U;
21028#line 1364
21029      __cil_tmp182 = __cil_tmp181 != 0U;
21030#line 1364
21031      __cil_tmp183 = (long )__cil_tmp182;
21032#line 1364
21033      tmp___7 = __builtin_expect(__cil_tmp183, 0L);
21034      }
21035#line 1364
21036      if (tmp___7 != 0L) {
21037        {
21038#line 1364
21039        __cil_tmp184 = at_state->ConState;
21040#line 1364
21041        printk("<7>gigaset: %s: ERROR response in ConState %d\n", "do_action", __cil_tmp184);
21042        }
21043      } else {
21044
21045      }
21046#line 1366
21047      cs->cur_at_seq = 0;
21048#line 1367
21049      goto ldv_34883;
21050      case_16: 
21051      {
21052#line 1369
21053      __cil_tmp185 = (unsigned int )gigaset_debuglevel;
21054#line 1369
21055      __cil_tmp186 = __cil_tmp185 & 4194303U;
21056#line 1369
21057      __cil_tmp187 = __cil_tmp186 != 0U;
21058#line 1369
21059      __cil_tmp188 = (long )__cil_tmp187;
21060#line 1369
21061      tmp___8 = __builtin_expect(__cil_tmp188, 0L);
21062      }
21063#line 1369
21064      if (tmp___8 != 0L) {
21065        {
21066#line 1369
21067        __cil_tmp189 = ev->type;
21068#line 1369
21069        __cil_tmp190 = at_state->ConState;
21070#line 1369
21071        printk("<7>gigaset: %s: resp_code %d in ConState %d\n", "do_action", __cil_tmp189,
21072               __cil_tmp190);
21073        }
21074      } else {
21075
21076      }
21077#line 1371
21078      goto ldv_34883;
21079      case_17: 
21080      {
21081#line 1373
21082      __cil_tmp191 = cs->dev;
21083#line 1373
21084      __cil_tmp192 = (struct device  const  *)__cil_tmp191;
21085#line 1373
21086      __cil_tmp193 = ev->type;
21087#line 1373
21088      __cil_tmp194 = at_state->ConState;
21089#line 1373
21090      dev_warn(__cil_tmp192, "%s: resp_code %d in ConState %d!\n", "do_action", __cil_tmp193,
21091               __cil_tmp194);
21092      }
21093#line 1375
21094      goto ldv_34883;
21095      case_37: 
21096      {
21097#line 1377
21098      __cil_tmp195 = cs->dev;
21099#line 1377
21100      __cil_tmp196 = (struct device  const  *)__cil_tmp195;
21101#line 1377
21102      __cil_tmp197 = ev->parameter;
21103#line 1377
21104      __cil_tmp198 = at_state->ConState;
21105#line 1377
21106      dev_warn(__cil_tmp196, "cause code %04x in connection state %d.\n", __cil_tmp197,
21107               __cil_tmp198);
21108      }
21109#line 1379
21110      goto ldv_34883;
21111      case_40: 
21112      {
21113#line 1383
21114      __cil_tmp199 = ev->ptr;
21115#line 1383
21116      __cil_tmp200 = ev->parameter;
21117#line 1383
21118      __cil_tmp201 = (unsigned int )__cil_tmp200;
21119#line 1383
21120      start_dial(at_state, __cil_tmp199, __cil_tmp201);
21121      }
21122#line 1384
21123      goto ldv_34883;
21124      case_41: 
21125      {
21126#line 1386
21127      start_accept(at_state);
21128      }
21129#line 1387
21130      goto ldv_34883;
21131      case_43: 
21132      {
21133#line 1389
21134      __cil_tmp202 = at_state->pending_commands;
21135#line 1389
21136      at_state->pending_commands = __cil_tmp202 | 2U;
21137#line 1390
21138      __cil_tmp203 = (unsigned int )gigaset_debuglevel;
21139#line 1390
21140      __cil_tmp204 = __cil_tmp203 & 512U;
21141#line 1390
21142      __cil_tmp205 = __cil_tmp204 != 0U;
21143#line 1390
21144      __cil_tmp206 = (long )__cil_tmp205;
21145#line 1390
21146      tmp___9 = __builtin_expect(__cil_tmp206, 0L);
21147      }
21148#line 1390
21149      if (tmp___9 != 0L) {
21150        {
21151#line 1390
21152        printk("<7>gigaset: Scheduling PC_HUP\n");
21153        }
21154      } else {
21155
21156      }
21157#line 1391
21158      cs->commands_pending = 1;
21159#line 1392
21160      goto ldv_34883;
21161      case_46: 
21162      {
21163#line 1396
21164      do_stop(cs);
21165      }
21166#line 1397
21167      goto ldv_34883;
21168      case_45: 
21169      {
21170#line 1399
21171      do_start(cs);
21172      }
21173#line 1400
21174      goto ldv_34883;
21175      case_44: ;
21176      {
21177#line 1404
21178      __cil_tmp207 = ev->parameter;
21179#line 1404
21180      if (__cil_tmp207 != 0) {
21181        {
21182#line 1404
21183        tmp___10 = do_lock(cs);
21184#line 1404
21185        cs->cmd_result = tmp___10;
21186        }
21187      } else {
21188        {
21189#line 1404
21190        tmp___11 = do_unlock(cs);
21191#line 1404
21192        cs->cmd_result = tmp___11;
21193        }
21194      }
21195      }
21196      {
21197#line 1405
21198      cs->waiting = 0;
21199#line 1406
21200      __cil_tmp208 = & cs->waitqueue;
21201#line 1406
21202      __cil_tmp209 = (void *)0;
21203#line 1406
21204      __wake_up(__cil_tmp208, 3U, 1, __cil_tmp209);
21205      }
21206#line 1407
21207      goto ldv_34883;
21208      case_56: ;
21209      {
21210#line 1409
21211      __cil_tmp210 = ev->parameter;
21212#line 1409
21213      if (__cil_tmp210 != 0) {
21214#line 1410
21215        cs->cmd_result = -22;
21216      } else {
21217        {
21218#line 1411
21219        __cil_tmp211 = cs->gotfwver;
21220#line 1411
21221        if (__cil_tmp211 != 1) {
21222#line 1412
21223          cs->cmd_result = -2;
21224        } else {
21225#line 1414
21226          __len___0 = 16UL;
21227#line 1414
21228          if (__len___0 > 63UL) {
21229            {
21230#line 1414
21231            __cil_tmp212 = ev->arg;
21232#line 1414
21233            __cil_tmp213 = & cs->fwver;
21234#line 1414
21235            __cil_tmp214 = (void const   *)__cil_tmp213;
21236#line 1414
21237            __ret___0 = __memcpy(__cil_tmp212, __cil_tmp214, __len___0);
21238            }
21239          } else {
21240            {
21241#line 1414
21242            __cil_tmp215 = ev->arg;
21243#line 1414
21244            __cil_tmp216 = & cs->fwver;
21245#line 1414
21246            __cil_tmp217 = (void const   *)__cil_tmp216;
21247#line 1414
21248            __ret___0 = __builtin_memcpy(__cil_tmp215, __cil_tmp217, __len___0);
21249            }
21250          }
21251#line 1415
21252          cs->cmd_result = 0;
21253        }
21254        }
21255      }
21256      }
21257      {
21258#line 1417
21259      cs->waiting = 0;
21260#line 1418
21261      __cil_tmp218 = & cs->waitqueue;
21262#line 1418
21263      __cil_tmp219 = (void *)0;
21264#line 1418
21265      __wake_up(__cil_tmp218, 3U, 1, __cil_tmp219);
21266      }
21267#line 1419
21268      goto ldv_34883;
21269      case_51: 
21270      {
21271#line 1423
21272      __cil_tmp220 = & cs->lock;
21273#line 1423
21274      tmp___12 = spinlock_check(__cil_tmp220);
21275#line 1423
21276      flags = _raw_spin_lock_irqsave(tmp___12);
21277      }
21278      {
21279#line 1424
21280      __cil_tmp221 = cs->cidmode;
21281#line 1424
21282      __cil_tmp222 = ev->parameter;
21283#line 1424
21284      __cil_tmp223 = (unsigned int )__cil_tmp222;
21285#line 1424
21286      if (__cil_tmp223 != __cil_tmp221) {
21287#line 1425
21288        __cil_tmp224 = ev->parameter;
21289#line 1425
21290        cs->cidmode = (unsigned int )__cil_tmp224;
21291        {
21292#line 1426
21293        __cil_tmp225 = ev->parameter;
21294#line 1426
21295        if (__cil_tmp225 != 0) {
21296          {
21297#line 1427
21298          __cil_tmp226 = cs->at_state.pending_commands;
21299#line 1427
21300          cs->at_state.pending_commands = __cil_tmp226 | 512U;
21301#line 1428
21302          __cil_tmp227 = (unsigned int )gigaset_debuglevel;
21303#line 1428
21304          __cil_tmp228 = __cil_tmp227 & 512U;
21305#line 1428
21306          __cil_tmp229 = __cil_tmp228 != 0U;
21307#line 1428
21308          __cil_tmp230 = (long )__cil_tmp229;
21309#line 1428
21310          tmp___13 = __builtin_expect(__cil_tmp230, 0L);
21311          }
21312#line 1428
21313          if (tmp___13 != 0L) {
21314            {
21315#line 1428
21316            printk("<7>gigaset: Scheduling PC_CIDMODE\n");
21317            }
21318          } else {
21319
21320          }
21321        } else {
21322          {
21323#line 1430
21324          __cil_tmp231 = cs->at_state.pending_commands;
21325#line 1430
21326          cs->at_state.pending_commands = __cil_tmp231 | 1024U;
21327#line 1431
21328          __cil_tmp232 = (unsigned int )gigaset_debuglevel;
21329#line 1431
21330          __cil_tmp233 = __cil_tmp232 & 512U;
21331#line 1431
21332          __cil_tmp234 = __cil_tmp233 != 0U;
21333#line 1431
21334          __cil_tmp235 = (long )__cil_tmp234;
21335#line 1431
21336          tmp___14 = __builtin_expect(__cil_tmp235, 0L);
21337          }
21338#line 1431
21339          if (tmp___14 != 0L) {
21340            {
21341#line 1431
21342            printk("<7>gigaset: Scheduling PC_UMMODE\n");
21343            }
21344          } else {
21345
21346          }
21347        }
21348        }
21349#line 1433
21350        cs->commands_pending = 1;
21351      } else {
21352
21353      }
21354      }
21355      {
21356#line 1435
21357      __cil_tmp236 = & cs->lock;
21358#line 1435
21359      spin_unlock_irqrestore(__cil_tmp236, flags);
21360#line 1436
21361      cs->waiting = 0;
21362#line 1437
21363      __cil_tmp237 = & cs->waitqueue;
21364#line 1437
21365      __cil_tmp238 = (void *)0;
21366#line 1437
21367      __wake_up(__cil_tmp237, 3U, 1, __cil_tmp238);
21368      }
21369#line 1438
21370      goto ldv_34883;
21371      case_38: 
21372      {
21373#line 1442
21374      bchannel_down(bcs);
21375      }
21376#line 1443
21377      goto ldv_34883;
21378      case_39: 
21379      {
21380#line 1445
21381      bchannel_up(bcs);
21382      }
21383#line 1446
21384      goto ldv_34883;
21385      case_50: 
21386      {
21387#line 1448
21388      do_shutdown(cs);
21389      }
21390#line 1449
21391      goto ldv_34883;
21392      switch_default: ;
21393#line 1453
21394      if (action > 99) {
21395#line 1453
21396        if (action <= 106) {
21397#line 1454
21398          __cil_tmp239 = at_state->bcs;
21399#line 1454
21400          *pp_command = __cil_tmp239->commands[action + -100];
21401          {
21402#line 1455
21403          __cil_tmp240 = (char *)0;
21404#line 1455
21405          __cil_tmp241 = (unsigned long )__cil_tmp240;
21406#line 1455
21407          __cil_tmp242 = *pp_command;
21408#line 1455
21409          __cil_tmp243 = (unsigned long )__cil_tmp242;
21410#line 1455
21411          if (__cil_tmp243 == __cil_tmp241) {
21412#line 1456
21413            *p_genresp = 1;
21414#line 1457
21415            *p_resp_code = -21;
21416          } else {
21417
21418          }
21419          }
21420        } else {
21421          {
21422#line 1460
21423          __cil_tmp244 = cs->dev;
21424#line 1460
21425          __cil_tmp245 = (struct device  const  *)__cil_tmp244;
21426#line 1460
21427          dev_err(__cil_tmp245, "%s: action==%d!\n", "do_action", action);
21428          }
21429        }
21430      } else {
21431        {
21432#line 1460
21433        __cil_tmp246 = cs->dev;
21434#line 1460
21435        __cil_tmp247 = (struct device  const  *)__cil_tmp246;
21436#line 1460
21437        dev_err(__cil_tmp247, "%s: action==%d!\n", "do_action", action);
21438        }
21439      }
21440    } else {
21441
21442    }
21443  }
21444  ldv_34883: ;
21445#line 1463
21446  return;
21447}
21448}
21449#line 1465 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
21450static void process_event(struct cardstate *cs , struct event_t *ev ) 
21451{ struct bc_state *bcs ;
21452  char *p_command ;
21453  struct reply_t *rep ;
21454  int rcode ;
21455  int genresp ;
21456  int resp_code ;
21457  int sendcid ;
21458  struct at_state_t *at_state ;
21459  int index ;
21460  int curact ;
21461  unsigned long flags ;
21462  long tmp ;
21463  long tmp___0 ;
21464  int tmp___1 ;
21465  long tmp___2 ;
21466  raw_spinlock_t *tmp___3 ;
21467  long tmp___4 ;
21468  long tmp___5 ;
21469  long tmp___6 ;
21470  raw_spinlock_t *tmp___7 ;
21471  raw_spinlock_t *tmp___8 ;
21472  int __cil_tmp24 ;
21473  int __cil_tmp25 ;
21474  struct at_state_t *__cil_tmp26 ;
21475  unsigned long __cil_tmp27 ;
21476  unsigned long __cil_tmp28 ;
21477  unsigned int __cil_tmp29 ;
21478  unsigned int __cil_tmp30 ;
21479  int __cil_tmp31 ;
21480  long __cil_tmp32 ;
21481  int __cil_tmp33 ;
21482  int __cil_tmp34 ;
21483  struct at_state_t *__cil_tmp35 ;
21484  void *__cil_tmp36 ;
21485  void *__cil_tmp37 ;
21486  unsigned int __cil_tmp38 ;
21487  unsigned int __cil_tmp39 ;
21488  int __cil_tmp40 ;
21489  long __cil_tmp41 ;
21490  unsigned int __cil_tmp42 ;
21491  unsigned int __cil_tmp43 ;
21492  int __cil_tmp44 ;
21493  long __cil_tmp45 ;
21494  unsigned int __cil_tmp46 ;
21495  int __cil_tmp47 ;
21496  spinlock_t *__cil_tmp48 ;
21497  int __cil_tmp49 ;
21498  unsigned int __cil_tmp50 ;
21499  int __cil_tmp51 ;
21500  unsigned int __cil_tmp52 ;
21501  int __cil_tmp53 ;
21502  unsigned int __cil_tmp54 ;
21503  unsigned int __cil_tmp55 ;
21504  int __cil_tmp56 ;
21505  long __cil_tmp57 ;
21506  int __cil_tmp58 ;
21507  unsigned int __cil_tmp59 ;
21508  unsigned int __cil_tmp60 ;
21509  int __cil_tmp61 ;
21510  long __cil_tmp62 ;
21511  unsigned int __cil_tmp63 ;
21512  unsigned int __cil_tmp64 ;
21513  int __cil_tmp65 ;
21514  long __cil_tmp66 ;
21515  spinlock_t *__cil_tmp67 ;
21516  int __cil_tmp68 ;
21517  int __cil_tmp69 ;
21518  int __cil_tmp70 ;
21519  int __cil_tmp71 ;
21520  int __cil_tmp72 ;
21521  int __cil_tmp73 ;
21522  char *__cil_tmp74 ;
21523  void const   *__cil_tmp75 ;
21524  void *__cil_tmp76 ;
21525  int __cil_tmp77 ;
21526  int __cil_tmp78 ;
21527  struct device *__cil_tmp79 ;
21528  struct device  const  *__cil_tmp80 ;
21529  int __cil_tmp81 ;
21530  unsigned int __cil_tmp82 ;
21531  int __cil_tmp83 ;
21532  int __cil_tmp84 ;
21533  unsigned int __cil_tmp85 ;
21534  int __cil_tmp86 ;
21535  int __cil_tmp87 ;
21536  int __cil_tmp88 ;
21537  unsigned int __cil_tmp89 ;
21538  int __cil_tmp90 ;
21539  int __cil_tmp91 ;
21540  int __cil_tmp92 ;
21541  int __cil_tmp93 ;
21542  int __cil_tmp94 ;
21543  struct at_state_t *__cil_tmp95 ;
21544  unsigned long __cil_tmp96 ;
21545  unsigned long __cil_tmp97 ;
21546  struct at_state_t *__cil_tmp98 ;
21547  unsigned long __cil_tmp99 ;
21548  unsigned long __cil_tmp100 ;
21549  int __cil_tmp101 ;
21550  int __cil_tmp102 ;
21551  spinlock_t *__cil_tmp103 ;
21552  spinlock_t *__cil_tmp104 ;
21553  void *__cil_tmp105 ;
21554  void *__cil_tmp106 ;
21555  char *__cil_tmp107 ;
21556  unsigned long __cil_tmp108 ;
21557  unsigned long __cil_tmp109 ;
21558  unsigned int __cil_tmp110 ;
21559  char const   *__cil_tmp111 ;
21560  int __cil_tmp112 ;
21561  void *__cil_tmp113 ;
21562  void *__cil_tmp114 ;
21563  spinlock_t *__cil_tmp115 ;
21564  int __cil_tmp116 ;
21565  int __cil_tmp117 ;
21566  int __cil_tmp118 ;
21567  int __cil_tmp119 ;
21568  unsigned int __cil_tmp120 ;
21569  spinlock_t *__cil_tmp121 ;
21570
21571  {
21572#line 1468
21573  p_command = (char *)0;
21574#line 1471
21575  genresp = 0;
21576#line 1472
21577  resp_code = 1;
21578  {
21579#line 1479
21580  __cil_tmp24 = ev->cid;
21581#line 1479
21582  if (__cil_tmp24 >= 0) {
21583    {
21584#line 1480
21585    __cil_tmp25 = ev->cid;
21586#line 1480
21587    at_state = at_state_from_cid(cs, __cil_tmp25);
21588    }
21589    {
21590#line 1481
21591    __cil_tmp26 = (struct at_state_t *)0;
21592#line 1481
21593    __cil_tmp27 = (unsigned long )__cil_tmp26;
21594#line 1481
21595    __cil_tmp28 = (unsigned long )at_state;
21596#line 1481
21597    if (__cil_tmp28 == __cil_tmp27) {
21598      {
21599#line 1482
21600      __cil_tmp29 = (unsigned int )gigaset_debuglevel;
21601#line 1482
21602      __cil_tmp30 = __cil_tmp29 & 512U;
21603#line 1482
21604      __cil_tmp31 = __cil_tmp30 != 0U;
21605#line 1482
21606      __cil_tmp32 = (long )__cil_tmp31;
21607#line 1482
21608      tmp = __builtin_expect(__cil_tmp32, 0L);
21609      }
21610#line 1482
21611      if (tmp != 0L) {
21612        {
21613#line 1482
21614        __cil_tmp33 = ev->type;
21615#line 1482
21616        __cil_tmp34 = ev->cid;
21617#line 1482
21618        printk("<7>gigaset: event %d for invalid cid %d\n", __cil_tmp33, __cil_tmp34);
21619        }
21620      } else {
21621
21622      }
21623      {
21624#line 1484
21625      __cil_tmp35 = & cs->at_state;
21626#line 1484
21627      __cil_tmp36 = (void *)0;
21628#line 1484
21629      __cil_tmp37 = (void *)0;
21630#line 1484
21631      gigaset_add_event(cs, __cil_tmp35, -2, __cil_tmp36, 0, __cil_tmp37);
21632      }
21633#line 1486
21634      return;
21635    } else {
21636
21637    }
21638    }
21639  } else {
21640    {
21641#line 1489
21642    at_state = ev->at_state;
21643#line 1490
21644    tmp___1 = at_state_invalid(cs, at_state);
21645    }
21646#line 1490
21647    if (tmp___1 != 0) {
21648      {
21649#line 1491
21650      __cil_tmp38 = (unsigned int )gigaset_debuglevel;
21651#line 1491
21652      __cil_tmp39 = __cil_tmp38 & 512U;
21653#line 1491
21654      __cil_tmp40 = __cil_tmp39 != 0U;
21655#line 1491
21656      __cil_tmp41 = (long )__cil_tmp40;
21657#line 1491
21658      tmp___0 = __builtin_expect(__cil_tmp41, 0L);
21659      }
21660#line 1491
21661      if (tmp___0 != 0L) {
21662        {
21663#line 1491
21664        printk("<7>gigaset: event for invalid at_state %p\n", at_state);
21665        }
21666      } else {
21667
21668      }
21669#line 1493
21670      return;
21671    } else {
21672
21673    }
21674  }
21675  }
21676  {
21677#line 1497
21678  __cil_tmp42 = (unsigned int )gigaset_debuglevel;
21679#line 1497
21680  __cil_tmp43 = __cil_tmp42 & 512U;
21681#line 1497
21682  __cil_tmp44 = __cil_tmp43 != 0U;
21683#line 1497
21684  __cil_tmp45 = (long )__cil_tmp44;
21685#line 1497
21686  tmp___2 = __builtin_expect(__cil_tmp45, 0L);
21687  }
21688#line 1497
21689  if (tmp___2 != 0L) {
21690    {
21691#line 1497
21692    __cil_tmp46 = at_state->ConState;
21693#line 1497
21694    __cil_tmp47 = ev->type;
21695#line 1497
21696    printk("<7>gigaset: connection state %d, event %d\n", __cil_tmp46, __cil_tmp47);
21697    }
21698  } else {
21699
21700  }
21701  {
21702#line 1500
21703  bcs = at_state->bcs;
21704#line 1501
21705  sendcid = at_state->cid;
21706#line 1504
21707  rep = at_state->replystruct;
21708#line 1506
21709  __cil_tmp48 = & cs->lock;
21710#line 1506
21711  tmp___3 = spinlock_check(__cil_tmp48);
21712#line 1506
21713  flags = _raw_spin_lock_irqsave(tmp___3);
21714  }
21715  {
21716#line 1507
21717  __cil_tmp49 = ev->type;
21718#line 1507
21719  if (__cil_tmp49 == -105) {
21720    {
21721#line 1508
21722    __cil_tmp50 = at_state->timer_index;
21723#line 1508
21724    __cil_tmp51 = ev->parameter;
21725#line 1508
21726    __cil_tmp52 = (unsigned int )__cil_tmp51;
21727#line 1508
21728    if (__cil_tmp52 != __cil_tmp50) {
21729#line 1508
21730      goto _L;
21731    } else {
21732      {
21733#line 1508
21734      __cil_tmp53 = at_state->timer_active;
21735#line 1508
21736      if (__cil_tmp53 == 0) {
21737        _L: 
21738        {
21739#line 1510
21740        ev->type = -19;
21741#line 1511
21742        __cil_tmp54 = (unsigned int )gigaset_debuglevel;
21743#line 1511
21744        __cil_tmp55 = __cil_tmp54 & 512U;
21745#line 1511
21746        __cil_tmp56 = __cil_tmp55 != 0U;
21747#line 1511
21748        __cil_tmp57 = (long )__cil_tmp56;
21749#line 1511
21750        tmp___4 = __builtin_expect(__cil_tmp57, 0L);
21751        }
21752#line 1511
21753        if (tmp___4 != 0L) {
21754          {
21755#line 1511
21756          printk("<7>gigaset: old timeout\n");
21757          }
21758        } else {
21759
21760        }
21761      } else {
21762        {
21763#line 1512
21764        __cil_tmp58 = at_state->waiting;
21765#line 1512
21766        if (__cil_tmp58 == 0) {
21767          {
21768#line 1513
21769          __cil_tmp59 = (unsigned int )gigaset_debuglevel;
21770#line 1513
21771          __cil_tmp60 = __cil_tmp59 & 512U;
21772#line 1513
21773          __cil_tmp61 = __cil_tmp60 != 0U;
21774#line 1513
21775          __cil_tmp62 = (long )__cil_tmp61;
21776#line 1513
21777          tmp___6 = __builtin_expect(__cil_tmp62, 0L);
21778          }
21779#line 1513
21780          if (tmp___6 != 0L) {
21781            {
21782#line 1513
21783            printk("<7>gigaset: timeout occurred\n");
21784            }
21785          } else {
21786            {
21787#line 1515
21788            __cil_tmp63 = (unsigned int )gigaset_debuglevel;
21789#line 1515
21790            __cil_tmp64 = __cil_tmp63 & 512U;
21791#line 1515
21792            __cil_tmp65 = __cil_tmp64 != 0U;
21793#line 1515
21794            __cil_tmp66 = (long )__cil_tmp65;
21795#line 1515
21796            tmp___5 = __builtin_expect(__cil_tmp66, 0L);
21797            }
21798#line 1515
21799            if (tmp___5 != 0L) {
21800              {
21801#line 1515
21802              printk("<7>gigaset: stopped waiting\n");
21803              }
21804            } else {
21805
21806            }
21807          }
21808        } else {
21809
21810        }
21811        }
21812      }
21813      }
21814    }
21815    }
21816  } else {
21817
21818  }
21819  }
21820  {
21821#line 1517
21822  __cil_tmp67 = & cs->lock;
21823#line 1517
21824  spin_unlock_irqrestore(__cil_tmp67, flags);
21825  }
21826  {
21827#line 1521
21828  __cil_tmp68 = ev->type;
21829#line 1521
21830  if (__cil_tmp68 > 99) {
21831    {
21832#line 1521
21833    __cil_tmp69 = ev->type;
21834#line 1521
21835    if (__cil_tmp69 <= 102) {
21836#line 1522
21837      __cil_tmp70 = ev->type;
21838#line 1522
21839      index = __cil_tmp70 + -100;
21840#line 1523
21841      at_state->int_var[index] = ev->parameter;
21842    } else {
21843#line 1521
21844      goto _L___0;
21845    }
21846    }
21847  } else {
21848    _L___0: 
21849    {
21850#line 1524
21851    __cil_tmp71 = ev->type;
21852#line 1524
21853    if (__cil_tmp71 > 102) {
21854      {
21855#line 1524
21856      __cil_tmp72 = ev->type;
21857#line 1524
21858      if (__cil_tmp72 <= 107) {
21859        {
21860#line 1525
21861        __cil_tmp73 = ev->type;
21862#line 1525
21863        index = __cil_tmp73 + -103;
21864#line 1526
21865        __cil_tmp74 = at_state->str_var[index];
21866#line 1526
21867        __cil_tmp75 = (void const   *)__cil_tmp74;
21868#line 1526
21869        kfree(__cil_tmp75);
21870#line 1527
21871        __cil_tmp76 = ev->ptr;
21872#line 1527
21873        at_state->str_var[index] = (char *)__cil_tmp76;
21874#line 1528
21875        ev->ptr = (void *)0;
21876        }
21877      } else {
21878
21879      }
21880      }
21881    } else {
21882
21883    }
21884    }
21885  }
21886  }
21887  {
21888#line 1532
21889  __cil_tmp77 = ev->type;
21890#line 1532
21891  if (__cil_tmp77 == -105) {
21892#line 1533
21893    at_state->getstring = 0;
21894  } else {
21895    {
21896#line 1532
21897    __cil_tmp78 = ev->type;
21898#line 1532
21899    if (__cil_tmp78 == -20) {
21900#line 1533
21901      at_state->getstring = 0;
21902    } else {
21903
21904    }
21905    }
21906  }
21907  }
21908  ldv_34982: 
21909#line 1538
21910  rcode = rep->resp_code;
21911#line 1539
21912  if (rcode == -28) {
21913    {
21914#line 1541
21915    __cil_tmp79 = cs->dev;
21916#line 1541
21917    __cil_tmp80 = (struct device  const  *)__cil_tmp79;
21918#line 1541
21919    __cil_tmp81 = ev->type;
21920#line 1541
21921    __cil_tmp82 = at_state->ConState;
21922#line 1541
21923    dev_warn(__cil_tmp80, "%s: rcode=RSP_LAST: resp_code %d in ConState %d!\n", "process_event",
21924             __cil_tmp81, __cil_tmp82);
21925    }
21926#line 1544
21927    return;
21928  } else {
21929
21930  }
21931#line 1546
21932  if (rcode == -26) {
21933#line 1546
21934    goto _L___2;
21935  } else {
21936    {
21937#line 1546
21938    __cil_tmp83 = ev->type;
21939#line 1546
21940    if (__cil_tmp83 == rcode) {
21941      _L___2: 
21942      {
21943#line 1546
21944      __cil_tmp84 = rep->min_ConState;
21945#line 1546
21946      __cil_tmp85 = at_state->ConState;
21947#line 1546
21948      __cil_tmp86 = (int )__cil_tmp85;
21949#line 1546
21950      if (__cil_tmp86 >= __cil_tmp84) {
21951        {
21952#line 1546
21953        __cil_tmp87 = rep->max_ConState;
21954#line 1546
21955        if (__cil_tmp87 < 0) {
21956#line 1546
21957          goto _L___1;
21958        } else {
21959          {
21960#line 1546
21961          __cil_tmp88 = rep->max_ConState;
21962#line 1546
21963          __cil_tmp89 = at_state->ConState;
21964#line 1546
21965          __cil_tmp90 = (int )__cil_tmp89;
21966#line 1546
21967          if (__cil_tmp90 <= __cil_tmp88) {
21968            _L___1: 
21969            {
21970#line 1546
21971            __cil_tmp91 = rep->parameter;
21972#line 1546
21973            if (__cil_tmp91 < 0) {
21974#line 1551
21975              goto ldv_34981;
21976            } else {
21977              {
21978#line 1546
21979              __cil_tmp92 = ev->parameter;
21980#line 1546
21981              __cil_tmp93 = rep->parameter;
21982#line 1546
21983              if (__cil_tmp93 == __cil_tmp92) {
21984#line 1551
21985                goto ldv_34981;
21986              } else {
21987
21988              }
21989              }
21990            }
21991            }
21992          } else {
21993
21994          }
21995          }
21996        }
21997        }
21998      } else {
21999
22000      }
22001      }
22002    } else {
22003
22004    }
22005    }
22006  }
22007#line 1537
22008  rep = rep + 1;
22009#line 1552
22010  goto ldv_34982;
22011  ldv_34981: 
22012#line 1554
22013  p_command = rep->command;
22014#line 1556
22015  at_state->waiting = 0;
22016#line 1557
22017  curact = 0;
22018#line 1557
22019  goto ldv_34985;
22020  ldv_34984: 
22021  {
22022#line 1560
22023  __cil_tmp94 = rep->action[curact];
22024#line 1560
22025  do_action(__cil_tmp94, cs, bcs, & at_state, & p_command, & genresp, & resp_code,
22026            ev);
22027  }
22028  {
22029#line 1562
22030  __cil_tmp95 = (struct at_state_t *)0;
22031#line 1562
22032  __cil_tmp96 = (unsigned long )__cil_tmp95;
22033#line 1562
22034  __cil_tmp97 = (unsigned long )at_state;
22035#line 1562
22036  if (__cil_tmp97 == __cil_tmp96) {
22037#line 1563
22038    goto ldv_34983;
22039  } else {
22040
22041  }
22042  }
22043#line 1557
22044  curact = curact + 1;
22045  ldv_34985: ;
22046#line 1557
22047  if (curact <= 2) {
22048#line 1558
22049    goto ldv_34984;
22050  } else {
22051#line 1560
22052    goto ldv_34983;
22053  }
22054  ldv_34983: ;
22055  {
22056#line 1566
22057  __cil_tmp98 = (struct at_state_t *)0;
22058#line 1566
22059  __cil_tmp99 = (unsigned long )__cil_tmp98;
22060#line 1566
22061  __cil_tmp100 = (unsigned long )at_state;
22062#line 1566
22063  if (__cil_tmp100 != __cil_tmp99) {
22064    {
22065#line 1568
22066    __cil_tmp101 = rep->new_ConState;
22067#line 1568
22068    if (__cil_tmp101 >= 0) {
22069#line 1569
22070      __cil_tmp102 = rep->new_ConState;
22071#line 1569
22072      at_state->ConState = (unsigned int )__cil_tmp102;
22073    } else {
22074
22075    }
22076    }
22077#line 1571
22078    if (genresp != 0) {
22079      {
22080#line 1572
22081      __cil_tmp103 = & cs->lock;
22082#line 1572
22083      tmp___7 = spinlock_check(__cil_tmp103);
22084#line 1572
22085      flags = _raw_spin_lock_irqsave(tmp___7);
22086#line 1573
22087      at_state->timer_expires = 0UL;
22088#line 1574
22089      at_state->timer_active = 0;
22090#line 1575
22091      __cil_tmp104 = & cs->lock;
22092#line 1575
22093      spin_unlock_irqrestore(__cil_tmp104, flags);
22094#line 1576
22095      __cil_tmp105 = (void *)0;
22096#line 1576
22097      __cil_tmp106 = (void *)0;
22098#line 1576
22099      gigaset_add_event(cs, at_state, resp_code, __cil_tmp105, 0, __cil_tmp106);
22100      }
22101    } else {
22102      {
22103#line 1580
22104      __cil_tmp107 = (char *)0;
22105#line 1580
22106      __cil_tmp108 = (unsigned long )__cil_tmp107;
22107#line 1580
22108      __cil_tmp109 = (unsigned long )p_command;
22109#line 1580
22110      if (__cil_tmp109 != __cil_tmp108) {
22111        {
22112#line 1581
22113        __cil_tmp110 = cs->connected;
22114#line 1581
22115        if (__cil_tmp110 != 0U) {
22116          {
22117#line 1582
22118          __cil_tmp111 = (char const   *)p_command;
22119#line 1582
22120          __cil_tmp112 = cs->dle;
22121#line 1582
22122          send_command(cs, __cil_tmp111, sendcid, __cil_tmp112, 32U);
22123          }
22124        } else {
22125          {
22126#line 1586
22127          __cil_tmp113 = (void *)0;
22128#line 1586
22129          __cil_tmp114 = (void *)0;
22130#line 1586
22131          gigaset_add_event(cs, at_state, -9, __cil_tmp113, 0, __cil_tmp114);
22132          }
22133        }
22134        }
22135      } else {
22136
22137      }
22138      }
22139      {
22140#line 1591
22141      __cil_tmp115 = & cs->lock;
22142#line 1591
22143      tmp___8 = spinlock_check(__cil_tmp115);
22144#line 1591
22145      flags = _raw_spin_lock_irqsave(tmp___8);
22146      }
22147      {
22148#line 1592
22149      __cil_tmp116 = rep->timeout;
22150#line 1592
22151      if (__cil_tmp116 == 0) {
22152#line 1593
22153        at_state->timer_expires = 0UL;
22154#line 1594
22155        at_state->timer_active = 0;
22156      } else {
22157        {
22158#line 1595
22159        __cil_tmp117 = rep->timeout;
22160#line 1595
22161        if (__cil_tmp117 > 0) {
22162#line 1596
22163          __cil_tmp118 = rep->timeout;
22164#line 1596
22165          __cil_tmp119 = __cil_tmp118 * 10;
22166#line 1596
22167          at_state->timer_expires = (unsigned long )__cil_tmp119;
22168#line 1597
22169          at_state->timer_active = 1;
22170#line 1598
22171          __cil_tmp120 = at_state->timer_index;
22172#line 1598
22173          at_state->timer_index = __cil_tmp120 + 1U;
22174        } else {
22175
22176        }
22177        }
22178      }
22179      }
22180      {
22181#line 1600
22182      __cil_tmp121 = & cs->lock;
22183#line 1600
22184      spin_unlock_irqrestore(__cil_tmp121, flags);
22185      }
22186    }
22187  } else {
22188
22189  }
22190  }
22191#line 1603
22192  return;
22193}
22194}
22195#line 1605 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
22196static void schedule_sequence(struct cardstate *cs , struct at_state_t *at_state ,
22197                              int sequence ) 
22198{ void *__cil_tmp4 ;
22199  void *__cil_tmp5 ;
22200
22201  {
22202  {
22203#line 1608
22204  cs->cur_at_seq = sequence;
22205#line 1609
22206  __cil_tmp4 = (void *)0;
22207#line 1609
22208  __cil_tmp5 = (void *)0;
22209#line 1609
22210  gigaset_add_event(cs, at_state, -27, __cil_tmp4, sequence, __cil_tmp5);
22211  }
22212#line 1610
22213  return;
22214}
22215}
22216#line 1612 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
22217static void process_command_flags(struct cardstate *cs ) 
22218{ struct at_state_t *at_state ;
22219  struct bc_state *bcs ;
22220  int i ;
22221  int sequence ;
22222  unsigned long flags ;
22223  long tmp ;
22224  long tmp___0 ;
22225  raw_spinlock_t *tmp___1 ;
22226  int tmp___2 ;
22227  struct list_head  const  *__mptr ;
22228  struct list_head  const  *__mptr___0 ;
22229  long tmp___3 ;
22230  int __cil_tmp14 ;
22231  unsigned int __cil_tmp15 ;
22232  unsigned int __cil_tmp16 ;
22233  int __cil_tmp17 ;
22234  long __cil_tmp18 ;
22235  unsigned int __cil_tmp19 ;
22236  unsigned int __cil_tmp20 ;
22237  int __cil_tmp21 ;
22238  long __cil_tmp22 ;
22239  unsigned int __cil_tmp23 ;
22240  unsigned int __cil_tmp24 ;
22241  unsigned int __cil_tmp25 ;
22242  unsigned long __cil_tmp26 ;
22243  struct bc_state *__cil_tmp27 ;
22244  unsigned int __cil_tmp28 ;
22245  int __cil_tmp29 ;
22246  unsigned int __cil_tmp30 ;
22247  unsigned int __cil_tmp31 ;
22248  unsigned int __cil_tmp32 ;
22249  unsigned int __cil_tmp33 ;
22250  unsigned int __cil_tmp34 ;
22251  int __cil_tmp35 ;
22252  unsigned int __cil_tmp36 ;
22253  unsigned int __cil_tmp37 ;
22254  unsigned int __cil_tmp38 ;
22255  unsigned long __cil_tmp39 ;
22256  struct bc_state *__cil_tmp40 ;
22257  unsigned int __cil_tmp41 ;
22258  int __cil_tmp42 ;
22259  unsigned int __cil_tmp43 ;
22260  int __cil_tmp44 ;
22261  unsigned int __cil_tmp45 ;
22262  unsigned int __cil_tmp46 ;
22263  unsigned int __cil_tmp47 ;
22264  unsigned int __cil_tmp48 ;
22265  int __cil_tmp49 ;
22266  spinlock_t *__cil_tmp50 ;
22267  unsigned int __cil_tmp51 ;
22268  unsigned int __cil_tmp52 ;
22269  struct list_head *__cil_tmp53 ;
22270  struct list_head  const  *__cil_tmp54 ;
22271  int __cil_tmp55 ;
22272  unsigned long __cil_tmp56 ;
22273  struct bc_state *__cil_tmp57 ;
22274  unsigned int __cil_tmp58 ;
22275  int __cil_tmp59 ;
22276  int __cil_tmp60 ;
22277  spinlock_t *__cil_tmp61 ;
22278  unsigned int __cil_tmp62 ;
22279  unsigned long __cil_tmp63 ;
22280  struct bc_state *__cil_tmp64 ;
22281  unsigned int __cil_tmp65 ;
22282  unsigned int __cil_tmp66 ;
22283  unsigned int __cil_tmp67 ;
22284  unsigned int __cil_tmp68 ;
22285  unsigned int __cil_tmp69 ;
22286  unsigned int __cil_tmp70 ;
22287  unsigned int __cil_tmp71 ;
22288  struct at_state_t *__cil_tmp72 ;
22289  unsigned int __cil_tmp73 ;
22290  unsigned int __cil_tmp74 ;
22291  unsigned int __cil_tmp75 ;
22292  struct at_state_t *__cil_tmp76 ;
22293  unsigned int __cil_tmp77 ;
22294  unsigned int __cil_tmp78 ;
22295  unsigned int __cil_tmp79 ;
22296  struct at_state_t *__cil_tmp80 ;
22297  int __cil_tmp81 ;
22298  struct list_head *__cil_tmp82 ;
22299  unsigned int __cil_tmp83 ;
22300  unsigned int __cil_tmp84 ;
22301  unsigned int __cil_tmp85 ;
22302  struct list_head *__cil_tmp86 ;
22303  struct list_head *__cil_tmp87 ;
22304  unsigned long __cil_tmp88 ;
22305  struct list_head *__cil_tmp89 ;
22306  unsigned long __cil_tmp90 ;
22307  unsigned int __cil_tmp91 ;
22308  unsigned int __cil_tmp92 ;
22309  unsigned int __cil_tmp93 ;
22310  struct inbuf_t *__cil_tmp94 ;
22311  struct at_state_t *__cil_tmp95 ;
22312  unsigned int __cil_tmp96 ;
22313  unsigned int __cil_tmp97 ;
22314  unsigned int __cil_tmp98 ;
22315  struct at_state_t *__cil_tmp99 ;
22316  unsigned int __cil_tmp100 ;
22317  unsigned int __cil_tmp101 ;
22318  unsigned int __cil_tmp102 ;
22319  int __cil_tmp103 ;
22320  struct at_state_t *__cil_tmp104 ;
22321  unsigned long __cil_tmp105 ;
22322  struct bc_state *__cil_tmp106 ;
22323  unsigned int __cil_tmp107 ;
22324  unsigned int __cil_tmp108 ;
22325  unsigned int __cil_tmp109 ;
22326  struct at_state_t *__cil_tmp110 ;
22327  unsigned int __cil_tmp111 ;
22328  unsigned int __cil_tmp112 ;
22329  unsigned int __cil_tmp113 ;
22330  struct at_state_t *__cil_tmp114 ;
22331  unsigned int __cil_tmp115 ;
22332  int __cil_tmp116 ;
22333  unsigned int __cil_tmp117 ;
22334  struct at_state_t *__cil_tmp118 ;
22335  unsigned int __cil_tmp119 ;
22336  unsigned int __cil_tmp120 ;
22337  int __cil_tmp121 ;
22338  int __cil_tmp122 ;
22339  unsigned int __cil_tmp123 ;
22340  unsigned int __cil_tmp124 ;
22341  unsigned int __cil_tmp125 ;
22342  int __cil_tmp126 ;
22343  long __cil_tmp127 ;
22344  unsigned int __cil_tmp128 ;
22345  struct at_state_t *__cil_tmp129 ;
22346  int __cil_tmp130 ;
22347
22348  {
22349#line 1614
22350  at_state = (struct at_state_t *)0;
22351#line 1620
22352  cs->commands_pending = 0;
22353  {
22354#line 1622
22355  __cil_tmp14 = cs->cur_at_seq;
22356#line 1622
22357  if (__cil_tmp14 != 0) {
22358    {
22359#line 1623
22360    __cil_tmp15 = (unsigned int )gigaset_debuglevel;
22361#line 1623
22362    __cil_tmp16 = __cil_tmp15 & 512U;
22363#line 1623
22364    __cil_tmp17 = __cil_tmp16 != 0U;
22365#line 1623
22366    __cil_tmp18 = (long )__cil_tmp17;
22367#line 1623
22368    tmp = __builtin_expect(__cil_tmp18, 0L);
22369    }
22370#line 1623
22371    if (tmp != 0L) {
22372      {
22373#line 1623
22374      printk("<7>gigaset: not searching scheduled commands: busy\n");
22375      }
22376    } else {
22377
22378    }
22379#line 1624
22380    return;
22381  } else {
22382
22383  }
22384  }
22385  {
22386#line 1627
22387  __cil_tmp19 = (unsigned int )gigaset_debuglevel;
22388#line 1627
22389  __cil_tmp20 = __cil_tmp19 & 512U;
22390#line 1627
22391  __cil_tmp21 = __cil_tmp20 != 0U;
22392#line 1627
22393  __cil_tmp22 = (long )__cil_tmp21;
22394#line 1627
22395  tmp___0 = __builtin_expect(__cil_tmp22, 0L);
22396  }
22397#line 1627
22398  if (tmp___0 != 0L) {
22399    {
22400#line 1627
22401    printk("<7>gigaset: searching scheduled commands\n");
22402    }
22403  } else {
22404
22405  }
22406#line 1629
22407  sequence = 0;
22408  {
22409#line 1632
22410  __cil_tmp23 = cs->at_state.pending_commands;
22411#line 1632
22412  __cil_tmp24 = __cil_tmp23 & 32U;
22413#line 1632
22414  if (__cil_tmp24 != 0U) {
22415#line 1633
22416    __cil_tmp25 = cs->at_state.pending_commands;
22417#line 1633
22418    cs->at_state.pending_commands = __cil_tmp25 & 4294966783U;
22419#line 1634
22420    i = 0;
22421#line 1634
22422    goto ldv_35006;
22423    ldv_35005: 
22424#line 1635
22425    __cil_tmp26 = (unsigned long )i;
22426#line 1635
22427    __cil_tmp27 = cs->bcs;
22428#line 1635
22429    bcs = __cil_tmp27 + __cil_tmp26;
22430#line 1636
22431    at_state = & bcs->at_state;
22432#line 1637
22433    __cil_tmp28 = at_state->pending_commands;
22434#line 1637
22435    at_state->pending_commands = __cil_tmp28 & 4294967214U;
22436    {
22437#line 1639
22438    __cil_tmp29 = at_state->cid;
22439#line 1639
22440    if (__cil_tmp29 > 0) {
22441#line 1640
22442      __cil_tmp30 = at_state->pending_commands;
22443#line 1640
22444      at_state->pending_commands = __cil_tmp30 | 2U;
22445    } else {
22446
22447    }
22448    }
22449    {
22450#line 1641
22451    __cil_tmp31 = at_state->pending_commands;
22452#line 1641
22453    __cil_tmp32 = __cil_tmp31 & 128U;
22454#line 1641
22455    if (__cil_tmp32 != 0U) {
22456#line 1642
22457      __cil_tmp33 = at_state->pending_commands;
22458#line 1642
22459      at_state->pending_commands = __cil_tmp33 | 256U;
22460#line 1643
22461      __cil_tmp34 = at_state->pending_commands;
22462#line 1643
22463      at_state->pending_commands = __cil_tmp34 & 4294967167U;
22464    } else {
22465
22466    }
22467    }
22468#line 1634
22469    i = i + 1;
22470    ldv_35006: ;
22471    {
22472#line 1634
22473    __cil_tmp35 = cs->channels;
22474#line 1634
22475    if (__cil_tmp35 > i) {
22476#line 1635
22477      goto ldv_35005;
22478    } else {
22479#line 1637
22480      goto ldv_35007;
22481    }
22482    }
22483    ldv_35007: ;
22484  } else {
22485
22486  }
22487  }
22488  {
22489#line 1649
22490  __cil_tmp36 = cs->at_state.pending_commands;
22491#line 1649
22492  __cil_tmp37 = __cil_tmp36 & 4U;
22493#line 1649
22494  if (__cil_tmp37 != 0U) {
22495#line 1650
22496    __cil_tmp38 = cs->at_state.pending_commands;
22497#line 1650
22498    cs->at_state.pending_commands = __cil_tmp38 & 4294966783U;
22499#line 1651
22500    i = 0;
22501#line 1651
22502    goto ldv_35009;
22503    ldv_35008: 
22504#line 1652
22505    __cil_tmp39 = (unsigned long )i;
22506#line 1652
22507    __cil_tmp40 = cs->bcs;
22508#line 1652
22509    bcs = __cil_tmp40 + __cil_tmp39;
22510#line 1653
22511    at_state = & bcs->at_state;
22512#line 1654
22513    __cil_tmp41 = at_state->pending_commands;
22514#line 1654
22515    at_state->pending_commands = __cil_tmp41 & 4294967214U;
22516    {
22517#line 1656
22518    __cil_tmp42 = at_state->cid;
22519#line 1656
22520    if (__cil_tmp42 > 0) {
22521#line 1657
22522      __cil_tmp43 = at_state->pending_commands;
22523#line 1657
22524      at_state->pending_commands = __cil_tmp43 | 2U;
22525    } else {
22526
22527    }
22528    }
22529    {
22530#line 1658
22531    __cil_tmp44 = cs->mstate;
22532#line 1658
22533    if (__cil_tmp44 == 4) {
22534      {
22535#line 1659
22536      __cil_tmp45 = at_state->pending_commands;
22537#line 1659
22538      __cil_tmp46 = __cil_tmp45 & 128U;
22539#line 1659
22540      if (__cil_tmp46 != 0U) {
22541#line 1660
22542        __cil_tmp47 = at_state->pending_commands;
22543#line 1660
22544        at_state->pending_commands = __cil_tmp47 | 256U;
22545#line 1661
22546        __cil_tmp48 = at_state->pending_commands;
22547#line 1661
22548        at_state->pending_commands = __cil_tmp48 & 4294967167U;
22549      } else {
22550
22551      }
22552      }
22553    } else {
22554
22555    }
22556    }
22557#line 1651
22558    i = i + 1;
22559    ldv_35009: ;
22560    {
22561#line 1651
22562    __cil_tmp49 = cs->channels;
22563#line 1651
22564    if (__cil_tmp49 > i) {
22565#line 1652
22566      goto ldv_35008;
22567    } else {
22568#line 1654
22569      goto ldv_35010;
22570    }
22571    }
22572    ldv_35010: ;
22573  } else {
22574
22575  }
22576  }
22577  {
22578#line 1669
22579  __cil_tmp50 = & cs->lock;
22580#line 1669
22581  tmp___1 = spinlock_check(__cil_tmp50);
22582#line 1669
22583  flags = _raw_spin_lock_irqsave(tmp___1);
22584  }
22585  {
22586#line 1670
22587  __cil_tmp51 = cs->at_state.pending_commands;
22588#line 1670
22589  if (__cil_tmp51 == 1024U) {
22590    {
22591#line 1670
22592    __cil_tmp52 = cs->cidmode;
22593#line 1670
22594    if (__cil_tmp52 == 0U) {
22595      {
22596#line 1670
22597      __cil_tmp53 = & cs->temp_at_states;
22598#line 1670
22599      __cil_tmp54 = (struct list_head  const  *)__cil_tmp53;
22600#line 1670
22601      tmp___2 = list_empty(__cil_tmp54);
22602      }
22603#line 1670
22604      if (tmp___2 != 0) {
22605        {
22606#line 1670
22607        __cil_tmp55 = cs->mode;
22608#line 1670
22609        if (__cil_tmp55 == 3) {
22610#line 1674
22611          sequence = 11;
22612#line 1675
22613          at_state = & cs->at_state;
22614#line 1676
22615          i = 0;
22616#line 1676
22617          goto ldv_35016;
22618          ldv_35015: 
22619#line 1677
22620          __cil_tmp56 = (unsigned long )i;
22621#line 1677
22622          __cil_tmp57 = cs->bcs;
22623#line 1677
22624          bcs = __cil_tmp57 + __cil_tmp56;
22625          {
22626#line 1678
22627          __cil_tmp58 = bcs->at_state.pending_commands;
22628#line 1678
22629          if (__cil_tmp58 != 0U) {
22630#line 1680
22631            sequence = 0;
22632#line 1681
22633            goto ldv_35014;
22634          } else {
22635            {
22636#line 1678
22637            __cil_tmp59 = bcs->at_state.cid;
22638#line 1678
22639            if (__cil_tmp59 > 0) {
22640#line 1680
22641              sequence = 0;
22642#line 1681
22643              goto ldv_35014;
22644            } else {
22645
22646            }
22647            }
22648          }
22649          }
22650#line 1676
22651          i = i + 1;
22652          ldv_35016: ;
22653          {
22654#line 1676
22655          __cil_tmp60 = cs->channels;
22656#line 1676
22657          if (__cil_tmp60 > i) {
22658#line 1677
22659            goto ldv_35015;
22660          } else {
22661#line 1679
22662            goto ldv_35014;
22663          }
22664          }
22665          ldv_35014: ;
22666        } else {
22667
22668        }
22669        }
22670      } else {
22671
22672      }
22673    } else {
22674
22675    }
22676    }
22677  } else {
22678
22679  }
22680  }
22681  {
22682#line 1685
22683  __cil_tmp61 = & cs->lock;
22684#line 1685
22685  spin_unlock_irqrestore(__cil_tmp61, flags);
22686#line 1686
22687  __cil_tmp62 = cs->at_state.pending_commands;
22688#line 1686
22689  cs->at_state.pending_commands = __cil_tmp62 & 4294966271U;
22690  }
22691#line 1687
22692  if (sequence != 0) {
22693    {
22694#line 1688
22695    schedule_sequence(cs, at_state, sequence);
22696    }
22697#line 1689
22698    return;
22699  } else {
22700
22701  }
22702#line 1692
22703  i = 0;
22704#line 1692
22705  goto ldv_35018;
22706  ldv_35017: 
22707#line 1693
22708  __cil_tmp63 = (unsigned long )i;
22709#line 1693
22710  __cil_tmp64 = cs->bcs;
22711#line 1693
22712  bcs = __cil_tmp64 + __cil_tmp63;
22713  {
22714#line 1694
22715  __cil_tmp65 = bcs->at_state.pending_commands;
22716#line 1694
22717  __cil_tmp66 = __cil_tmp65 & 2U;
22718#line 1694
22719  if (__cil_tmp66 != 0U) {
22720#line 1695
22721    __cil_tmp67 = bcs->at_state.pending_commands;
22722#line 1695
22723    bcs->at_state.pending_commands = __cil_tmp67 & 4294967293U;
22724    {
22725#line 1696
22726    __cil_tmp68 = bcs->at_state.pending_commands;
22727#line 1696
22728    __cil_tmp69 = __cil_tmp68 & 128U;
22729#line 1696
22730    if (__cil_tmp69 != 0U) {
22731#line 1698
22732      __cil_tmp70 = bcs->at_state.pending_commands;
22733#line 1698
22734      bcs->at_state.pending_commands = __cil_tmp70 | 256U;
22735#line 1699
22736      __cil_tmp71 = bcs->at_state.pending_commands;
22737#line 1699
22738      bcs->at_state.pending_commands = __cil_tmp71 & 4294967167U;
22739    } else {
22740      {
22741#line 1701
22742      __cil_tmp72 = & bcs->at_state;
22743#line 1701
22744      schedule_sequence(cs, __cil_tmp72, 400);
22745      }
22746#line 1702
22747      return;
22748    }
22749    }
22750  } else {
22751
22752  }
22753  }
22754  {
22755#line 1705
22756  __cil_tmp73 = bcs->at_state.pending_commands;
22757#line 1705
22758  __cil_tmp74 = __cil_tmp73 & 256U;
22759#line 1705
22760  if (__cil_tmp74 != 0U) {
22761    {
22762#line 1706
22763    __cil_tmp75 = bcs->at_state.pending_commands;
22764#line 1706
22765    bcs->at_state.pending_commands = __cil_tmp75 & 4294967039U;
22766#line 1707
22767    cs->curchannel = bcs->channel;
22768#line 1708
22769    __cil_tmp76 = & cs->at_state;
22770#line 1708
22771    schedule_sequence(cs, __cil_tmp76, 350);
22772    }
22773#line 1709
22774    return;
22775  } else {
22776    {
22777#line 1710
22778    __cil_tmp77 = bcs->at_state.pending_commands;
22779#line 1710
22780    __cil_tmp78 = __cil_tmp77 & 8U;
22781#line 1710
22782    if (__cil_tmp78 != 0U) {
22783      {
22784#line 1711
22785      __cil_tmp79 = bcs->at_state.pending_commands;
22786#line 1711
22787      bcs->at_state.pending_commands = __cil_tmp79 & 4294967287U;
22788#line 1712
22789      cs->curchannel = bcs->channel;
22790#line 1713
22791      __cil_tmp80 = & cs->at_state;
22792#line 1713
22793      schedule_sequence(cs, __cil_tmp80, 200);
22794      }
22795#line 1714
22796      return;
22797    } else {
22798
22799    }
22800    }
22801  }
22802  }
22803#line 1692
22804  i = i + 1;
22805  ldv_35018: ;
22806  {
22807#line 1692
22808  __cil_tmp81 = cs->channels;
22809#line 1692
22810  if (__cil_tmp81 > i) {
22811#line 1693
22812    goto ldv_35017;
22813  } else {
22814#line 1695
22815    goto ldv_35019;
22816  }
22817  }
22818  ldv_35019: 
22819#line 1718
22820  __cil_tmp82 = cs->temp_at_states.next;
22821#line 1718
22822  __mptr = (struct list_head  const  *)__cil_tmp82;
22823#line 1718
22824  at_state = (struct at_state_t *)__mptr;
22825#line 1718
22826  goto ldv_35025;
22827  ldv_35024: ;
22828  {
22829#line 1719
22830  __cil_tmp83 = at_state->pending_commands;
22831#line 1719
22832  __cil_tmp84 = __cil_tmp83 & 2U;
22833#line 1719
22834  if (__cil_tmp84 != 0U) {
22835    {
22836#line 1720
22837    __cil_tmp85 = at_state->pending_commands;
22838#line 1720
22839    at_state->pending_commands = __cil_tmp85 & 4294967293U;
22840#line 1721
22841    schedule_sequence(cs, at_state, 400);
22842    }
22843#line 1722
22844    return;
22845  } else {
22846
22847  }
22848  }
22849#line 1718
22850  __cil_tmp86 = at_state->list.next;
22851#line 1718
22852  __mptr___0 = (struct list_head  const  *)__cil_tmp86;
22853#line 1718
22854  at_state = (struct at_state_t *)__mptr___0;
22855  ldv_35025: ;
22856  {
22857#line 1718
22858  __cil_tmp87 = & cs->temp_at_states;
22859#line 1718
22860  __cil_tmp88 = (unsigned long )__cil_tmp87;
22861#line 1718
22862  __cil_tmp89 = & at_state->list;
22863#line 1718
22864  __cil_tmp90 = (unsigned long )__cil_tmp89;
22865#line 1718
22866  if (__cil_tmp90 != __cil_tmp88) {
22867#line 1719
22868    goto ldv_35024;
22869  } else {
22870#line 1721
22871    goto ldv_35026;
22872  }
22873  }
22874  ldv_35026: ;
22875  {
22876#line 1725
22877  __cil_tmp91 = cs->at_state.pending_commands;
22878#line 1725
22879  __cil_tmp92 = __cil_tmp91 & 4U;
22880#line 1725
22881  if (__cil_tmp92 != 0U) {
22882    {
22883#line 1726
22884    __cil_tmp93 = cs->at_state.pending_commands;
22885#line 1726
22886    cs->at_state.pending_commands = __cil_tmp93 & 4294967291U;
22887#line 1727
22888    cs->dle = 0;
22889#line 1728
22890    __cil_tmp94 = cs->inbuf;
22891#line 1728
22892    __cil_tmp94->inputstate = 1;
22893#line 1729
22894    __cil_tmp95 = & cs->at_state;
22895#line 1729
22896    schedule_sequence(cs, __cil_tmp95, 100);
22897    }
22898#line 1730
22899    return;
22900  } else {
22901
22902  }
22903  }
22904  {
22905#line 1732
22906  __cil_tmp96 = cs->at_state.pending_commands;
22907#line 1732
22908  __cil_tmp97 = __cil_tmp96 & 32U;
22909#line 1732
22910  if (__cil_tmp97 != 0U) {
22911    {
22912#line 1733
22913    __cil_tmp98 = cs->at_state.pending_commands;
22914#line 1733
22915    cs->at_state.pending_commands = __cil_tmp98 & 4294967263U;
22916#line 1734
22917    __cil_tmp99 = & cs->at_state;
22918#line 1734
22919    schedule_sequence(cs, __cil_tmp99, 500);
22920    }
22921#line 1735
22922    return;
22923  } else {
22924
22925  }
22926  }
22927  {
22928#line 1737
22929  __cil_tmp100 = cs->at_state.pending_commands;
22930#line 1737
22931  __cil_tmp101 = __cil_tmp100 & 512U;
22932#line 1737
22933  if (__cil_tmp101 != 0U) {
22934#line 1738
22935    __cil_tmp102 = cs->at_state.pending_commands;
22936#line 1738
22937    cs->at_state.pending_commands = __cil_tmp102 & 4294966783U;
22938    {
22939#line 1739
22940    __cil_tmp103 = cs->mode;
22941#line 1739
22942    if (__cil_tmp103 == 2) {
22943      {
22944#line 1740
22945      cs->retry_count = 1;
22946#line 1741
22947      __cil_tmp104 = & cs->at_state;
22948#line 1741
22949      schedule_sequence(cs, __cil_tmp104, 10);
22950      }
22951#line 1742
22952      return;
22953    } else {
22954
22955    }
22956    }
22957  } else {
22958
22959  }
22960  }
22961#line 1746
22962  i = 0;
22963#line 1746
22964  goto ldv_35030;
22965  ldv_35029: 
22966#line 1747
22967  __cil_tmp105 = (unsigned long )i;
22968#line 1747
22969  __cil_tmp106 = cs->bcs;
22970#line 1747
22971  bcs = __cil_tmp106 + __cil_tmp105;
22972  {
22973#line 1748
22974  __cil_tmp107 = bcs->at_state.pending_commands;
22975#line 1748
22976  __cil_tmp108 = __cil_tmp107 & 16U;
22977#line 1748
22978  if (__cil_tmp108 != 0U) {
22979    {
22980#line 1749
22981    __cil_tmp109 = bcs->at_state.pending_commands;
22982#line 1749
22983    bcs->at_state.pending_commands = __cil_tmp109 & 4294967279U;
22984#line 1750
22985    cs->curchannel = bcs->channel;
22986#line 1751
22987    __cil_tmp110 = & cs->at_state;
22988#line 1751
22989    schedule_sequence(cs, __cil_tmp110, 250);
22990    }
22991#line 1752
22992    return;
22993  } else {
22994
22995  }
22996  }
22997  {
22998#line 1754
22999  __cil_tmp111 = bcs->at_state.pending_commands;
23000#line 1754
23001  __cil_tmp112 = __cil_tmp111 & 64U;
23002#line 1754
23003  if (__cil_tmp112 != 0U) {
23004    {
23005#line 1755
23006    __cil_tmp113 = bcs->at_state.pending_commands;
23007#line 1755
23008    bcs->at_state.pending_commands = __cil_tmp113 & 4294967231U;
23009#line 1756
23010    __cil_tmp114 = & bcs->at_state;
23011#line 1756
23012    schedule_sequence(cs, __cil_tmp114, 720);
23013    }
23014#line 1757
23015    return;
23016  } else {
23017
23018  }
23019  }
23020  {
23021#line 1759
23022  __cil_tmp115 = bcs->at_state.pending_commands;
23023#line 1759
23024  __cil_tmp116 = (int )__cil_tmp115;
23025#line 1759
23026  if (__cil_tmp116 & 1) {
23027    {
23028#line 1760
23029    __cil_tmp117 = bcs->at_state.pending_commands;
23030#line 1760
23031    bcs->at_state.pending_commands = __cil_tmp117 & 4294967294U;
23032#line 1761
23033    __cil_tmp118 = & bcs->at_state;
23034#line 1761
23035    schedule_sequence(cs, __cil_tmp118, 600);
23036    }
23037#line 1762
23038    return;
23039  } else {
23040
23041  }
23042  }
23043  {
23044#line 1764
23045  __cil_tmp119 = bcs->at_state.pending_commands;
23046#line 1764
23047  __cil_tmp120 = __cil_tmp119 & 128U;
23048#line 1764
23049  if (__cil_tmp120 != 0U) {
23050    {
23051#line 1766
23052    __cil_tmp121 = cs->mode;
23053#line 1766
23054    if (__cil_tmp121 == 2) {
23055#line 1766
23056      goto case_2;
23057    } else {
23058      {
23059#line 1771
23060      __cil_tmp122 = cs->mode;
23061#line 1771
23062      if (__cil_tmp122 == 0) {
23063#line 1771
23064        goto case_0;
23065      } else
23066#line 1765
23067      if (0) {
23068        case_2: 
23069        {
23070#line 1767
23071        __cil_tmp123 = cs->at_state.pending_commands;
23072#line 1767
23073        cs->at_state.pending_commands = __cil_tmp123 | 512U;
23074#line 1768
23075        __cil_tmp124 = (unsigned int )gigaset_debuglevel;
23076#line 1768
23077        __cil_tmp125 = __cil_tmp124 & 512U;
23078#line 1768
23079        __cil_tmp126 = __cil_tmp125 != 0U;
23080#line 1768
23081        __cil_tmp127 = (long )__cil_tmp126;
23082#line 1768
23083        tmp___3 = __builtin_expect(__cil_tmp127, 0L);
23084        }
23085#line 1768
23086        if (tmp___3 != 0L) {
23087          {
23088#line 1768
23089          printk("<7>gigaset: Scheduling PC_CIDMODE\n");
23090          }
23091        } else {
23092
23093        }
23094#line 1769
23095        cs->commands_pending = 1;
23096#line 1770
23097        return;
23098        case_0: 
23099        {
23100#line 1772
23101        schedule_init(cs, 1);
23102        }
23103#line 1773
23104        return;
23105      } else {
23106
23107      }
23108      }
23109    }
23110    }
23111    {
23112#line 1775
23113    __cil_tmp128 = bcs->at_state.pending_commands;
23114#line 1775
23115    bcs->at_state.pending_commands = __cil_tmp128 & 4294967167U;
23116#line 1776
23117    cs->curchannel = bcs->channel;
23118#line 1777
23119    cs->retry_count = 2;
23120#line 1778
23121    __cil_tmp129 = & cs->at_state;
23122#line 1778
23123    schedule_sequence(cs, __cil_tmp129, 300);
23124    }
23125#line 1779
23126    return;
23127  } else {
23128
23129  }
23130  }
23131#line 1746
23132  i = i + 1;
23133  ldv_35030: ;
23134  {
23135#line 1746
23136  __cil_tmp130 = cs->channels;
23137#line 1746
23138  if (__cil_tmp130 > i) {
23139#line 1747
23140    goto ldv_35029;
23141  } else {
23142#line 1749
23143    goto ldv_35031;
23144  }
23145  }
23146  ldv_35031: ;
23147#line 1751
23148  return;
23149}
23150}
23151#line 1784 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
23152static void process_events(struct cardstate *cs ) 
23153{ struct event_t *ev ;
23154  unsigned int head ;
23155  unsigned int tail ;
23156  int i ;
23157  int check_flags ;
23158  int was_busy ;
23159  unsigned long flags ;
23160  raw_spinlock_t *tmp ;
23161  raw_spinlock_t *tmp___0 ;
23162  raw_spinlock_t *tmp___1 ;
23163  spinlock_t *__cil_tmp12 ;
23164  int __cil_tmp13 ;
23165  spinlock_t *__cil_tmp14 ;
23166  spinlock_t *__cil_tmp15 ;
23167  int __cil_tmp16 ;
23168  unsigned long __cil_tmp17 ;
23169  struct event_t (*__cil_tmp18)[64U] ;
23170  struct event_t *__cil_tmp19 ;
23171  int __cil_tmp20 ;
23172  spinlock_t *__cil_tmp21 ;
23173  spinlock_t *__cil_tmp22 ;
23174  void *__cil_tmp23 ;
23175  void const   *__cil_tmp24 ;
23176  int __cil_tmp25 ;
23177  unsigned int __cil_tmp26 ;
23178  spinlock_t *__cil_tmp27 ;
23179  struct device *__cil_tmp28 ;
23180  struct device  const  *__cil_tmp29 ;
23181
23182  {
23183  {
23184#line 1789
23185  check_flags = 0;
23186#line 1793
23187  __cil_tmp12 = & cs->ev_lock;
23188#line 1793
23189  tmp = spinlock_check(__cil_tmp12);
23190#line 1793
23191  flags = _raw_spin_lock_irqsave(tmp);
23192#line 1794
23193  head = cs->ev_head;
23194#line 1796
23195  i = 0;
23196  }
23197#line 1796
23198  goto ldv_35054;
23199  ldv_35053: 
23200#line 1797
23201  tail = cs->ev_tail;
23202#line 1798
23203  if (tail == head) {
23204#line 1799
23205    if (check_flags == 0) {
23206      {
23207#line 1799
23208      __cil_tmp13 = cs->commands_pending;
23209#line 1799
23210      if (__cil_tmp13 == 0) {
23211#line 1800
23212        goto ldv_35045;
23213      } else {
23214
23215      }
23216      }
23217    } else {
23218
23219    }
23220    {
23221#line 1801
23222    check_flags = 0;
23223#line 1802
23224    __cil_tmp14 = & cs->ev_lock;
23225#line 1802
23226    spin_unlock_irqrestore(__cil_tmp14, flags);
23227#line 1803
23228    process_command_flags(cs);
23229#line 1804
23230    __cil_tmp15 = & cs->ev_lock;
23231#line 1804
23232    tmp___0 = spinlock_check(__cil_tmp15);
23233#line 1804
23234    flags = _raw_spin_lock_irqsave(tmp___0);
23235#line 1805
23236    tail = cs->ev_tail;
23237    }
23238#line 1806
23239    if (tail == head) {
23240      {
23241#line 1807
23242      __cil_tmp16 = cs->commands_pending;
23243#line 1807
23244      if (__cil_tmp16 == 0) {
23245#line 1808
23246        goto ldv_35045;
23247      } else {
23248
23249      }
23250      }
23251#line 1809
23252      goto ldv_35049;
23253    } else {
23254
23255    }
23256  } else {
23257
23258  }
23259  {
23260#line 1813
23261  __cil_tmp17 = (unsigned long )head;
23262#line 1813
23263  __cil_tmp18 = & cs->events;
23264#line 1813
23265  __cil_tmp19 = (struct event_t *)__cil_tmp18;
23266#line 1813
23267  ev = __cil_tmp19 + __cil_tmp17;
23268#line 1814
23269  __cil_tmp20 = cs->cur_at_seq;
23270#line 1814
23271  was_busy = __cil_tmp20 != 0;
23272#line 1815
23273  __cil_tmp21 = & cs->ev_lock;
23274#line 1815
23275  spin_unlock_irqrestore(__cil_tmp21, flags);
23276#line 1816
23277  process_event(cs, ev);
23278#line 1817
23279  __cil_tmp22 = & cs->ev_lock;
23280#line 1817
23281  tmp___1 = spinlock_check(__cil_tmp22);
23282#line 1817
23283  flags = _raw_spin_lock_irqsave(tmp___1);
23284#line 1818
23285  __cil_tmp23 = ev->ptr;
23286#line 1818
23287  __cil_tmp24 = (void const   *)__cil_tmp23;
23288#line 1818
23289  kfree(__cil_tmp24);
23290#line 1819
23291  ev->ptr = (void *)0;
23292  }
23293#line 1820
23294  if (was_busy != 0) {
23295    {
23296#line 1820
23297    __cil_tmp25 = cs->cur_at_seq;
23298#line 1820
23299    if (__cil_tmp25 == 0) {
23300#line 1821
23301      check_flags = 1;
23302    } else {
23303
23304    }
23305    }
23306  } else {
23307
23308  }
23309#line 1823
23310  __cil_tmp26 = head + 1U;
23311#line 1823
23312  head = __cil_tmp26 & 63U;
23313#line 1824
23314  cs->ev_head = head;
23315  ldv_35049: 
23316#line 1796
23317  i = i + 1;
23318  ldv_35054: ;
23319#line 1796
23320  if (i <= 127) {
23321#line 1797
23322    goto ldv_35053;
23323  } else {
23324#line 1799
23325    goto ldv_35045;
23326  }
23327  ldv_35045: 
23328  {
23329#line 1827
23330  __cil_tmp27 = & cs->ev_lock;
23331#line 1827
23332  spin_unlock_irqrestore(__cil_tmp27, flags);
23333  }
23334#line 1829
23335  if (i == 128) {
23336    {
23337#line 1830
23338    __cil_tmp28 = cs->dev;
23339#line 1830
23340    __cil_tmp29 = (struct device  const  *)__cil_tmp28;
23341#line 1830
23342    dev_err(__cil_tmp29, "infinite loop in process_events; aborting.\n");
23343    }
23344  } else {
23345
23346  }
23347#line 1832
23348  return;
23349}
23350}
23351#line 1839 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/ev-layer.c.p"
23352void gigaset_handle_event(unsigned long data ) 
23353{ struct cardstate *cs ;
23354  long tmp ;
23355  struct inbuf_t *__cil_tmp4 ;
23356  int __cil_tmp5 ;
23357  struct inbuf_t *__cil_tmp6 ;
23358  int __cil_tmp7 ;
23359  unsigned int __cil_tmp8 ;
23360  unsigned int __cil_tmp9 ;
23361  int __cil_tmp10 ;
23362  long __cil_tmp11 ;
23363  struct gigaset_ops  const  *__cil_tmp12 ;
23364  void (*__cil_tmp13)(struct inbuf_t * ) ;
23365  struct inbuf_t *__cil_tmp14 ;
23366
23367  {
23368#line 1841
23369  cs = (struct cardstate *)data;
23370  {
23371#line 1844
23372  __cil_tmp4 = cs->inbuf;
23373#line 1844
23374  __cil_tmp5 = __cil_tmp4->tail;
23375#line 1844
23376  __cil_tmp6 = cs->inbuf;
23377#line 1844
23378  __cil_tmp7 = __cil_tmp6->head;
23379#line 1844
23380  if (__cil_tmp7 != __cil_tmp5) {
23381    {
23382#line 1845
23383    __cil_tmp8 = (unsigned int )gigaset_debuglevel;
23384#line 1845
23385    __cil_tmp9 = __cil_tmp8 & 8U;
23386#line 1845
23387    __cil_tmp10 = __cil_tmp9 != 0U;
23388#line 1845
23389    __cil_tmp11 = (long )__cil_tmp10;
23390#line 1845
23391    tmp = __builtin_expect(__cil_tmp11, 0L);
23392    }
23393#line 1845
23394    if (tmp != 0L) {
23395      {
23396#line 1845
23397      printk("<7>gigaset: processing new data\n");
23398      }
23399    } else {
23400
23401    }
23402    {
23403#line 1846
23404    __cil_tmp12 = cs->ops;
23405#line 1846
23406    __cil_tmp13 = __cil_tmp12->handle_input;
23407#line 1846
23408    __cil_tmp14 = cs->inbuf;
23409#line 1846
23410    (*__cil_tmp13)(__cil_tmp14);
23411    }
23412  } else {
23413
23414  }
23415  }
23416  {
23417#line 1849
23418  process_events(cs);
23419  }
23420#line 1850
23421  return;
23422}
23423}
23424#line 69 "include/asm-generic/bug.h"
23425extern void warn_slowpath_null(char const   * , int  ) ;
23426#line 1034 "include/linux/skbuff.h"
23427extern void skb_queue_tail(struct sk_buff_head * , struct sk_buff * ) ;
23428#line 1093 "include/linux/skbuff.h"
23429__inline static int skb_is_nonlinear(struct sk_buff  const  *skb ) 
23430{ unsigned int __cil_tmp2 ;
23431
23432  {
23433  {
23434#line 1095
23435  __cil_tmp2 = skb->data_len;
23436#line 1095
23437  return ((int )__cil_tmp2);
23438  }
23439}
23440}
23441#line 1131 "include/linux/skbuff.h"
23442__inline static unsigned char *skb_tail_pointer(struct sk_buff  const  *skb ) 
23443{ sk_buff_data_t __cil_tmp2 ;
23444  unsigned long __cil_tmp3 ;
23445  unsigned char *__cil_tmp4 ;
23446  unsigned char *__cil_tmp5 ;
23447
23448  {
23449  {
23450#line 1133
23451  __cil_tmp2 = skb->tail;
23452#line 1133
23453  __cil_tmp3 = (unsigned long )__cil_tmp2;
23454#line 1133
23455  __cil_tmp4 = skb->head;
23456#line 1133
23457  __cil_tmp5 = (unsigned char *)__cil_tmp4;
23458#line 1133
23459  return (__cil_tmp5 + __cil_tmp3);
23460  }
23461}
23462}
23463#line 1136 "include/linux/skbuff.h"
23464__inline static void skb_reset_tail_pointer(struct sk_buff *skb ) 
23465{ unsigned char *__cil_tmp2 ;
23466  long __cil_tmp3 ;
23467  sk_buff_data_t __cil_tmp4 ;
23468  unsigned char *__cil_tmp5 ;
23469  long __cil_tmp6 ;
23470  sk_buff_data_t __cil_tmp7 ;
23471
23472  {
23473#line 1138
23474  __cil_tmp2 = skb->head;
23475#line 1138
23476  __cil_tmp3 = (long )__cil_tmp2;
23477#line 1138
23478  __cil_tmp4 = (sk_buff_data_t )__cil_tmp3;
23479#line 1138
23480  __cil_tmp5 = skb->data;
23481#line 1138
23482  __cil_tmp6 = (long )__cil_tmp5;
23483#line 1138
23484  __cil_tmp7 = (sk_buff_data_t )__cil_tmp6;
23485#line 1138
23486  skb->tail = __cil_tmp7 - __cil_tmp4;
23487#line 1139
23488  return;
23489}
23490}
23491#line 1141 "include/linux/skbuff.h"
23492__inline static void skb_set_tail_pointer(struct sk_buff *skb , int offset ) 
23493{ sk_buff_data_t __cil_tmp3 ;
23494  sk_buff_data_t __cil_tmp4 ;
23495
23496  {
23497  {
23498#line 1143
23499  skb_reset_tail_pointer(skb);
23500#line 1144
23501  __cil_tmp3 = (sk_buff_data_t )offset;
23502#line 1144
23503  __cil_tmp4 = skb->tail;
23504#line 1144
23505  skb->tail = __cil_tmp4 + __cil_tmp3;
23506  }
23507#line 1145
23508  return;
23509}
23510}
23511#line 1167
23512extern unsigned char *skb_put(struct sk_buff * , unsigned int  ) ;
23513#line 1168 "include/linux/skbuff.h"
23514__inline static unsigned char *__skb_put(struct sk_buff *skb , unsigned int len ) 
23515{ unsigned char *tmp ;
23516  unsigned char *tmp___0 ;
23517  int tmp___1 ;
23518  long tmp___2 ;
23519  struct sk_buff  const  *__cil_tmp7 ;
23520  struct sk_buff  const  *__cil_tmp8 ;
23521  int __cil_tmp9 ;
23522  long __cil_tmp10 ;
23523  sk_buff_data_t __cil_tmp11 ;
23524  unsigned int __cil_tmp12 ;
23525
23526  {
23527  {
23528#line 1170
23529  __cil_tmp7 = (struct sk_buff  const  *)skb;
23530#line 1170
23531  tmp___0 = skb_tail_pointer(__cil_tmp7);
23532#line 1170
23533  tmp = tmp___0;
23534#line 1171
23535  __cil_tmp8 = (struct sk_buff  const  *)skb;
23536#line 1171
23537  tmp___1 = skb_is_nonlinear(__cil_tmp8);
23538#line 1171
23539  __cil_tmp9 = tmp___1 != 0;
23540#line 1171
23541  __cil_tmp10 = (long )__cil_tmp9;
23542#line 1171
23543  tmp___2 = __builtin_expect(__cil_tmp10, 0L);
23544  }
23545#line 1171
23546  if (tmp___2 != 0L) {
23547#line 1171
23548    __asm__  volatile   ("1:\tud2\n.pushsection __bug_table,\"a\"\n2:\t.long 1b - 2b, %c0 - 2b\n\t.word %c1, 0\n\t.org 2b+%c2\n.popsection": : "i" ((char *)"include/linux/skbuff.h"),
23549                         "i" (1171), "i" (12UL));
23550    ldv_22611: ;
23551#line 1171
23552    goto ldv_22611;
23553  } else {
23554
23555  }
23556#line 1172
23557  __cil_tmp11 = skb->tail;
23558#line 1172
23559  skb->tail = __cil_tmp11 + len;
23560#line 1173
23561  __cil_tmp12 = skb->len;
23562#line 1173
23563  skb->len = __cil_tmp12 + len;
23564#line 1174
23565  return (tmp);
23566}
23567}
23568#line 1253 "include/linux/skbuff.h"
23569__inline static void skb_reserve(struct sk_buff *skb , int len ) 
23570{ unsigned long __cil_tmp3 ;
23571  unsigned char *__cil_tmp4 ;
23572  sk_buff_data_t __cil_tmp5 ;
23573  sk_buff_data_t __cil_tmp6 ;
23574
23575  {
23576#line 1255
23577  __cil_tmp3 = (unsigned long )len;
23578#line 1255
23579  __cil_tmp4 = skb->data;
23580#line 1255
23581  skb->data = __cil_tmp4 + __cil_tmp3;
23582#line 1256
23583  __cil_tmp5 = (sk_buff_data_t )len;
23584#line 1256
23585  __cil_tmp6 = skb->tail;
23586#line 1256
23587  skb->tail = __cil_tmp6 + __cil_tmp5;
23588#line 1257
23589  return;
23590}
23591}
23592#line 1298 "include/linux/skbuff.h"
23593__inline static unsigned char *skb_mac_header(struct sk_buff  const  *skb ) 
23594{ sk_buff_data_t __cil_tmp2 ;
23595  unsigned long __cil_tmp3 ;
23596  unsigned char *__cil_tmp4 ;
23597  unsigned char *__cil_tmp5 ;
23598
23599  {
23600  {
23601#line 1300
23602  __cil_tmp2 = skb->mac_header;
23603#line 1300
23604  __cil_tmp3 = (unsigned long )__cil_tmp2;
23605#line 1300
23606  __cil_tmp4 = skb->head;
23607#line 1300
23608  __cil_tmp5 = (unsigned char *)__cil_tmp4;
23609#line 1300
23610  return (__cil_tmp5 + __cil_tmp3);
23611  }
23612}
23613}
23614#line 1308 "include/linux/skbuff.h"
23615__inline static void skb_reset_mac_header(struct sk_buff *skb ) 
23616{ unsigned char *__cil_tmp2 ;
23617  long __cil_tmp3 ;
23618  sk_buff_data_t __cil_tmp4 ;
23619  unsigned char *__cil_tmp5 ;
23620  long __cil_tmp6 ;
23621  sk_buff_data_t __cil_tmp7 ;
23622
23623  {
23624#line 1310
23625  __cil_tmp2 = skb->head;
23626#line 1310
23627  __cil_tmp3 = (long )__cil_tmp2;
23628#line 1310
23629  __cil_tmp4 = (sk_buff_data_t )__cil_tmp3;
23630#line 1310
23631  __cil_tmp5 = skb->data;
23632#line 1310
23633  __cil_tmp6 = (long )__cil_tmp5;
23634#line 1310
23635  __cil_tmp7 = (sk_buff_data_t )__cil_tmp6;
23636#line 1310
23637  skb->mac_header = __cil_tmp7 - __cil_tmp4;
23638#line 1311
23639  return;
23640}
23641}
23642#line 1448 "include/linux/skbuff.h"
23643__inline static void __skb_trim(struct sk_buff *skb , unsigned int len ) 
23644{ int __ret_warn_on ;
23645  long tmp ;
23646  int tmp___0 ;
23647  long tmp___1 ;
23648  struct sk_buff  const  *__cil_tmp7 ;
23649  int __cil_tmp8 ;
23650  long __cil_tmp9 ;
23651  int __cil_tmp10 ;
23652  long __cil_tmp11 ;
23653  int __cil_tmp12 ;
23654  int __cil_tmp13 ;
23655  int __cil_tmp14 ;
23656  long __cil_tmp15 ;
23657  int __cil_tmp16 ;
23658  int __cil_tmp17 ;
23659
23660  {
23661  {
23662#line 1450
23663  __cil_tmp7 = (struct sk_buff  const  *)skb;
23664#line 1450
23665  tmp___0 = skb_is_nonlinear(__cil_tmp7);
23666#line 1450
23667  __cil_tmp8 = tmp___0 != 0;
23668#line 1450
23669  __cil_tmp9 = (long )__cil_tmp8;
23670#line 1450
23671  tmp___1 = __builtin_expect(__cil_tmp9, 0L);
23672  }
23673#line 1450
23674  if (tmp___1 != 0L) {
23675    {
23676#line 1451
23677    __ret_warn_on = 1;
23678#line 1451
23679    __cil_tmp10 = __ret_warn_on != 0;
23680#line 1451
23681    __cil_tmp11 = (long )__cil_tmp10;
23682#line 1451
23683    tmp = __builtin_expect(__cil_tmp11, 0L);
23684    }
23685#line 1451
23686    if (tmp != 0L) {
23687      {
23688#line 1451
23689      __cil_tmp12 = (int const   )1451;
23690#line 1451
23691      __cil_tmp13 = (int )__cil_tmp12;
23692#line 1451
23693      warn_slowpath_null("include/linux/skbuff.h", __cil_tmp13);
23694      }
23695    } else {
23696
23697    }
23698    {
23699#line 1451
23700    __cil_tmp14 = __ret_warn_on != 0;
23701#line 1451
23702    __cil_tmp15 = (long )__cil_tmp14;
23703#line 1451
23704    __builtin_expect(__cil_tmp15, 0L);
23705    }
23706#line 1452
23707    return;
23708  } else {
23709
23710  }
23711  {
23712#line 1454
23713  skb->len = len;
23714#line 1455
23715  __cil_tmp16 = (int const   )len;
23716#line 1455
23717  __cil_tmp17 = (int )__cil_tmp16;
23718#line 1455
23719  skb_set_tail_pointer(skb, __cil_tmp17);
23720  }
23721#line 1456
23722  return;
23723}
23724}
23725#line 1541
23726extern struct sk_buff *dev_alloc_skb(unsigned int  ) ;
23727#line 2061 "include/linux/netdevice.h"
23728extern void dev_kfree_skb_any(struct sk_buff * ) ;
23729#line 6 "include/linux/crc-ccitt.h"
23730extern u16 const   crc_ccitt_table[256U] ;
23731#line 10 "include/linux/crc-ccitt.h"
23732__inline static u16 crc_ccitt_byte(u16 crc , u8 c ) 
23733{ unsigned short __cil_tmp3 ;
23734  int __cil_tmp4 ;
23735  int __cil_tmp5 ;
23736  int __cil_tmp6 ;
23737  int __cil_tmp7 ;
23738
23739  {
23740  {
23741#line 12
23742  __cil_tmp3 = (unsigned short )crc_ccitt_table[((int )crc ^ (int )c) & 255];
23743#line 12
23744  __cil_tmp4 = (int )__cil_tmp3;
23745#line 12
23746  __cil_tmp5 = (int )crc;
23747#line 12
23748  __cil_tmp6 = __cil_tmp5 >> 8;
23749#line 12
23750  __cil_tmp7 = __cil_tmp6 ^ __cil_tmp4;
23751#line 12
23752  return ((u16 )__cil_tmp7);
23753  }
23754}
23755}
23756#line 631 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
23757int gigaset_m10x_send_skb(struct bc_state *bcs , struct sk_buff *skb ) ;
23758#line 635
23759void gigaset_m10x_input(struct inbuf_t *inbuf ) ;
23760#line 675
23761void gigaset_skb_rcvd(struct bc_state *bcs , struct sk_buff *skb ) ;
23762#line 676
23763void gigaset_isdn_rcv_err(struct bc_state *bcs ) ;
23764#line 793 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
23765__inline static struct sk_buff *gigaset_new_rx_skb(struct bc_state *bcs ) 
23766{ struct cardstate *cs ;
23767  unsigned short hw_hdr_len ;
23768  int __cil_tmp4 ;
23769  unsigned int __cil_tmp5 ;
23770  unsigned int __cil_tmp6 ;
23771  unsigned int __cil_tmp7 ;
23772  struct sk_buff *__cil_tmp8 ;
23773  unsigned long __cil_tmp9 ;
23774  struct sk_buff *__cil_tmp10 ;
23775  unsigned long __cil_tmp11 ;
23776  struct device *__cil_tmp12 ;
23777  struct device  const  *__cil_tmp13 ;
23778  struct sk_buff *__cil_tmp14 ;
23779  int __cil_tmp15 ;
23780
23781  {
23782#line 795
23783  cs = bcs->cs;
23784#line 796
23785  hw_hdr_len = cs->hw_hdr_len;
23786  {
23787#line 798
23788  __cil_tmp4 = bcs->ignore;
23789#line 798
23790  if (__cil_tmp4 != 0) {
23791#line 799
23792    bcs->rx_skb = (struct sk_buff *)0;
23793  } else {
23794    {
23795#line 801
23796    __cil_tmp5 = (unsigned int )hw_hdr_len;
23797#line 801
23798    __cil_tmp6 = bcs->rx_bufsize;
23799#line 801
23800    __cil_tmp7 = __cil_tmp6 + __cil_tmp5;
23801#line 801
23802    bcs->rx_skb = dev_alloc_skb(__cil_tmp7);
23803    }
23804    {
23805#line 802
23806    __cil_tmp8 = (struct sk_buff *)0;
23807#line 802
23808    __cil_tmp9 = (unsigned long )__cil_tmp8;
23809#line 802
23810    __cil_tmp10 = bcs->rx_skb;
23811#line 802
23812    __cil_tmp11 = (unsigned long )__cil_tmp10;
23813#line 802
23814    if (__cil_tmp11 == __cil_tmp9) {
23815      {
23816#line 803
23817      __cil_tmp12 = cs->dev;
23818#line 803
23819      __cil_tmp13 = (struct device  const  *)__cil_tmp12;
23820#line 803
23821      dev_warn(__cil_tmp13, "could not allocate skb\n");
23822      }
23823    } else {
23824      {
23825#line 805
23826      __cil_tmp14 = bcs->rx_skb;
23827#line 805
23828      __cil_tmp15 = (int )hw_hdr_len;
23829#line 805
23830      skb_reserve(__cil_tmp14, __cil_tmp15);
23831      }
23832    }
23833    }
23834  }
23835  }
23836#line 807
23837  return (bcs->rx_skb);
23838}
23839}
23840#line 6 "include/linux/bitrev.h"
23841extern u8 const   byte_rev_table[256U] ;
23842#line 8 "include/linux/bitrev.h"
23843__inline static u8 bitrev8(u8 byte ) 
23844{ 
23845
23846  {
23847#line 10
23848  return ((u8 )byte_rev_table[(int )byte]);
23849}
23850}
23851#line 32 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
23852__inline static int muststuff(unsigned char c ) 
23853{ unsigned int __cil_tmp2 ;
23854  unsigned int __cil_tmp3 ;
23855  unsigned int __cil_tmp4 ;
23856
23857  {
23858  {
23859#line 34
23860  __cil_tmp2 = (unsigned int )c;
23861#line 34
23862  if (__cil_tmp2 <= 31U) {
23863#line 34
23864    return (1);
23865  } else {
23866
23867  }
23868  }
23869  {
23870#line 35
23871  __cil_tmp3 = (unsigned int )c;
23872#line 35
23873  if (__cil_tmp3 == 126U) {
23874#line 35
23875    return (1);
23876  } else {
23877
23878  }
23879  }
23880  {
23881#line 36
23882  __cil_tmp4 = (unsigned int )c;
23883#line 36
23884  if (__cil_tmp4 == 125U) {
23885#line 36
23886    return (1);
23887  } else {
23888
23889  }
23890  }
23891#line 40
23892  return (0);
23893}
23894}
23895#line 55 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
23896static unsigned int cmd_loop(unsigned int numbytes , struct inbuf_t *inbuf ) 
23897{ unsigned char *src ;
23898  struct cardstate *cs ;
23899  unsigned int cbytes ;
23900  unsigned int procbytes ;
23901  unsigned char c ;
23902  unsigned char *tmp ;
23903  int __cil_tmp9 ;
23904  unsigned long __cil_tmp10 ;
23905  unsigned char (*__cil_tmp11)[8192U] ;
23906  unsigned char *__cil_tmp12 ;
23907  int __cil_tmp13 ;
23908  int __cil_tmp14 ;
23909  int __cil_tmp15 ;
23910  unsigned char __cil_tmp16 ;
23911  unsigned int __cil_tmp17 ;
23912  struct device *__cil_tmp18 ;
23913  struct device  const  *__cil_tmp19 ;
23914  enum debuglevel __cil_tmp20 ;
23915  unsigned char const   *__cil_tmp21 ;
23916  size_t __cil_tmp22 ;
23917  unsigned char (*__cil_tmp23)[512U] ;
23918  unsigned char const   *__cil_tmp24 ;
23919  int __cil_tmp25 ;
23920  int __cil_tmp26 ;
23921  int __cil_tmp27 ;
23922  int __cil_tmp28 ;
23923  int __cil_tmp29 ;
23924  int __cil_tmp30 ;
23925  int __cil_tmp31 ;
23926  int __cil_tmp32 ;
23927  int __cil_tmp33 ;
23928  int __cil_tmp34 ;
23929  int __cil_tmp35 ;
23930  int __cil_tmp36 ;
23931
23932  {
23933#line 57
23934  __cil_tmp9 = inbuf->head;
23935#line 57
23936  __cil_tmp10 = (unsigned long )__cil_tmp9;
23937#line 57
23938  __cil_tmp11 = & inbuf->data;
23939#line 57
23940  __cil_tmp12 = (unsigned char *)__cil_tmp11;
23941#line 57
23942  src = __cil_tmp12 + __cil_tmp10;
23943#line 58
23944  cs = inbuf->cs;
23945#line 59
23946  cbytes = cs->cbytes;
23947#line 60
23948  procbytes = 0U;
23949#line 63
23950  goto ldv_34636;
23951  ldv_34635: 
23952#line 64
23953  tmp = src;
23954#line 64
23955  src = src + 1;
23956#line 64
23957  c = *tmp;
23958#line 65
23959  procbytes = procbytes + 1U;
23960  {
23961#line 68
23962  __cil_tmp13 = (int )c;
23963#line 68
23964  if (__cil_tmp13 == 10) {
23965#line 68
23966    goto case_10;
23967  } else {
23968    {
23969#line 75
23970    __cil_tmp14 = (int )c;
23971#line 75
23972    if (__cil_tmp14 == 13) {
23973#line 75
23974      goto case_13;
23975    } else {
23976      {
23977#line 98
23978      __cil_tmp15 = (int )c;
23979#line 98
23980      if (__cil_tmp15 == 16) {
23981#line 98
23982        goto case_16;
23983      } else {
23984#line 110
23985        goto switch_default;
23986#line 67
23987        if (0) {
23988          case_10: ;
23989#line 69
23990          if (cbytes == 0U) {
23991            {
23992#line 69
23993            __cil_tmp16 = cs->respdata[0];
23994#line 69
23995            __cil_tmp17 = (unsigned int )__cil_tmp16;
23996#line 69
23997            if (__cil_tmp17 == 13U) {
23998#line 71
23999              cs->respdata[0] = (unsigned char)0;
24000#line 72
24001              goto ldv_34630;
24002            } else {
24003
24004            }
24005            }
24006          } else {
24007
24008          }
24009          case_13: ;
24010#line 77
24011          if (cbytes > 510U) {
24012            {
24013#line 78
24014            __cil_tmp18 = cs->dev;
24015#line 78
24016            __cil_tmp19 = (struct device  const  *)__cil_tmp18;
24017#line 78
24018            dev_warn(__cil_tmp19, "response too large (%d)\n", cbytes);
24019#line 80
24020            cbytes = 511U;
24021            }
24022          } else {
24023
24024          }
24025          {
24026#line 82
24027          cs->cbytes = cbytes;
24028#line 83
24029          __cil_tmp20 = (enum debuglevel )8192;
24030#line 83
24031          __cil_tmp21 = (unsigned char const   *)"received response";
24032#line 83
24033          __cil_tmp22 = (size_t )cbytes;
24034#line 83
24035          __cil_tmp23 = & cs->respdata;
24036#line 83
24037          __cil_tmp24 = (unsigned char const   *)__cil_tmp23;
24038#line 83
24039          gigaset_dbg_buffer(__cil_tmp20, __cil_tmp21, __cil_tmp22, __cil_tmp24);
24040#line 85
24041          gigaset_handle_modem_response(cs);
24042#line 86
24043          cbytes = 0U;
24044#line 89
24045          cs->respdata[0] = c;
24046          }
24047          {
24048#line 92
24049          __cil_tmp25 = cs->dle;
24050#line 92
24051          if (__cil_tmp25 != 0) {
24052            {
24053#line 92
24054            __cil_tmp26 = inbuf->inputstate;
24055#line 92
24056            __cil_tmp27 = __cil_tmp26 & 32;
24057#line 92
24058            if (__cil_tmp27 == 0) {
24059#line 93
24060              __cil_tmp28 = inbuf->inputstate;
24061#line 93
24062              inbuf->inputstate = __cil_tmp28 & -2;
24063            } else {
24064
24065            }
24066            }
24067          } else {
24068
24069          }
24070          }
24071#line 96
24072          goto exit;
24073          case_16: ;
24074          {
24075#line 99
24076          __cil_tmp29 = inbuf->inputstate;
24077#line 99
24078          __cil_tmp30 = __cil_tmp29 & 2;
24079#line 99
24080          if (__cil_tmp30 != 0) {
24081#line 101
24082            __cil_tmp31 = inbuf->inputstate;
24083#line 101
24084            inbuf->inputstate = __cil_tmp31 & -3;
24085          } else {
24086            {
24087#line 102
24088            __cil_tmp32 = cs->dle;
24089#line 102
24090            if (__cil_tmp32 != 0) {
24091#line 105
24092              __cil_tmp33 = inbuf->inputstate;
24093#line 105
24094              inbuf->inputstate = __cil_tmp33 | 2;
24095#line 106
24096              goto exit;
24097            } else {
24098              {
24099#line 102
24100              __cil_tmp34 = inbuf->inputstate;
24101#line 102
24102              __cil_tmp35 = __cil_tmp34 & 32;
24103#line 102
24104              if (__cil_tmp35 != 0) {
24105#line 105
24106                __cil_tmp36 = inbuf->inputstate;
24107#line 105
24108                inbuf->inputstate = __cil_tmp36 | 2;
24109#line 106
24110                goto exit;
24111              } else {
24112
24113              }
24114              }
24115            }
24116            }
24117          }
24118          }
24119          switch_default: ;
24120#line 112
24121          if (cbytes <= 510U) {
24122#line 113
24123            cs->respdata[cbytes] = c;
24124          } else {
24125
24126          }
24127#line 114
24128          cbytes = cbytes + 1U;
24129        } else {
24130
24131        }
24132      }
24133      }
24134    }
24135    }
24136  }
24137  }
24138  ldv_34630: ;
24139  ldv_34636: ;
24140#line 63
24141  if (procbytes < numbytes) {
24142#line 64
24143    goto ldv_34635;
24144  } else {
24145#line 66
24146    goto ldv_34637;
24147  }
24148  ldv_34637: ;
24149  exit: 
24150#line 118
24151  cs->cbytes = cbytes;
24152#line 119
24153  return (procbytes);
24154}
24155}
24156#line 127 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
24157static unsigned int lock_loop(unsigned int numbytes , struct inbuf_t *inbuf ) 
24158{ unsigned char *src ;
24159  int __cil_tmp4 ;
24160  unsigned long __cil_tmp5 ;
24161  unsigned char (*__cil_tmp6)[8192U] ;
24162  unsigned char *__cil_tmp7 ;
24163  enum debuglevel __cil_tmp8 ;
24164  unsigned char const   *__cil_tmp9 ;
24165  size_t __cil_tmp10 ;
24166  unsigned char const   *__cil_tmp11 ;
24167  struct cardstate *__cil_tmp12 ;
24168  size_t __cil_tmp13 ;
24169
24170  {
24171  {
24172#line 129
24173  __cil_tmp4 = inbuf->head;
24174#line 129
24175  __cil_tmp5 = (unsigned long )__cil_tmp4;
24176#line 129
24177  __cil_tmp6 = & inbuf->data;
24178#line 129
24179  __cil_tmp7 = (unsigned char *)__cil_tmp6;
24180#line 129
24181  src = __cil_tmp7 + __cil_tmp5;
24182#line 131
24183  __cil_tmp8 = (enum debuglevel )2097152;
24184#line 131
24185  __cil_tmp9 = (unsigned char const   *)"received response";
24186#line 131
24187  __cil_tmp10 = (size_t )numbytes;
24188#line 131
24189  __cil_tmp11 = (unsigned char const   *)src;
24190#line 131
24191  gigaset_dbg_buffer(__cil_tmp8, __cil_tmp9, __cil_tmp10, __cil_tmp11);
24192#line 132
24193  __cil_tmp12 = inbuf->cs;
24194#line 132
24195  __cil_tmp13 = (size_t )numbytes;
24196#line 132
24197  gigaset_if_receive(__cil_tmp12, src, __cil_tmp13);
24198  }
24199#line 133
24200  return (numbytes);
24201}
24202}
24203#line 144 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
24204static unsigned int hdlc_loop(unsigned int numbytes , struct inbuf_t *inbuf ) 
24205{ struct cardstate *cs ;
24206  struct bc_state *bcs ;
24207  int inputstate ;
24208  __u16 fcs ;
24209  struct sk_buff *skb ;
24210  unsigned char *src ;
24211  unsigned int procbytes ;
24212  unsigned char c ;
24213  unsigned char *tmp ;
24214  unsigned char *tmp___0 ;
24215  long tmp___1 ;
24216  int tmp___2 ;
24217  long tmp___3 ;
24218  long tmp___4 ;
24219  int tmp___5 ;
24220  long tmp___6 ;
24221  unsigned char *tmp___7 ;
24222  int __cil_tmp20 ;
24223  unsigned long __cil_tmp21 ;
24224  unsigned char (*__cil_tmp22)[8192U] ;
24225  unsigned char *__cil_tmp23 ;
24226  int __cil_tmp24 ;
24227  unsigned int __cil_tmp25 ;
24228  int __cil_tmp26 ;
24229  int __cil_tmp27 ;
24230  int __cil_tmp28 ;
24231  unsigned int __cil_tmp29 ;
24232  unsigned int __cil_tmp30 ;
24233  int __cil_tmp31 ;
24234  int __cil_tmp32 ;
24235  int __cil_tmp33 ;
24236  unsigned int __cil_tmp34 ;
24237  unsigned int __cil_tmp35 ;
24238  int __cil_tmp36 ;
24239  unsigned char __cil_tmp37 ;
24240  unsigned int __cil_tmp38 ;
24241  unsigned int __cil_tmp39 ;
24242  int __cil_tmp40 ;
24243  long __cil_tmp41 ;
24244  int __cil_tmp42 ;
24245  unsigned int __cil_tmp43 ;
24246  int __cil_tmp44 ;
24247  unsigned int __cil_tmp45 ;
24248  unsigned int __cil_tmp46 ;
24249  int __cil_tmp47 ;
24250  long __cil_tmp48 ;
24251  struct sk_buff *__cil_tmp49 ;
24252  unsigned long __cil_tmp50 ;
24253  unsigned long __cil_tmp51 ;
24254  unsigned int __cil_tmp52 ;
24255  struct device *__cil_tmp53 ;
24256  struct device  const  *__cil_tmp54 ;
24257  unsigned int __cil_tmp55 ;
24258  unsigned int __cil_tmp56 ;
24259  struct device *__cil_tmp57 ;
24260  struct device  const  *__cil_tmp58 ;
24261  unsigned int __cil_tmp59 ;
24262  unsigned int __cil_tmp60 ;
24263  unsigned int __cil_tmp61 ;
24264  int __cil_tmp62 ;
24265  struct sk_buff *__cil_tmp63 ;
24266  unsigned long __cil_tmp64 ;
24267  unsigned long __cil_tmp65 ;
24268  int __cil_tmp66 ;
24269  unsigned char __cil_tmp67 ;
24270  unsigned int __cil_tmp68 ;
24271  unsigned int __cil_tmp69 ;
24272  int __cil_tmp70 ;
24273  long __cil_tmp71 ;
24274  int __cil_tmp72 ;
24275  int __cil_tmp73 ;
24276  unsigned int __cil_tmp74 ;
24277  unsigned int __cil_tmp75 ;
24278  int __cil_tmp76 ;
24279  long __cil_tmp77 ;
24280  int __cil_tmp78 ;
24281  struct sk_buff *__cil_tmp79 ;
24282  unsigned long __cil_tmp80 ;
24283  unsigned long __cil_tmp81 ;
24284  unsigned int __cil_tmp82 ;
24285  unsigned int __cil_tmp83 ;
24286  struct device *__cil_tmp84 ;
24287  struct device  const  *__cil_tmp85 ;
24288  int __cil_tmp86 ;
24289  u16 __cil_tmp87 ;
24290  int __cil_tmp88 ;
24291  u8 __cil_tmp89 ;
24292  u8 __cil_tmp90 ;
24293
24294  {
24295#line 146
24296  cs = inbuf->cs;
24297#line 147
24298  bcs = cs->bcs;
24299#line 148
24300  inputstate = bcs->inputstate;
24301#line 149
24302  fcs = bcs->rx_fcs;
24303#line 150
24304  skb = bcs->rx_skb;
24305#line 151
24306  __cil_tmp20 = inbuf->head;
24307#line 151
24308  __cil_tmp21 = (unsigned long )__cil_tmp20;
24309#line 151
24310  __cil_tmp22 = & inbuf->data;
24311#line 151
24312  __cil_tmp23 = (unsigned char *)__cil_tmp22;
24313#line 151
24314  src = __cil_tmp23 + __cil_tmp21;
24315#line 152
24316  procbytes = 0U;
24317  {
24318#line 155
24319  __cil_tmp24 = inputstate & 4;
24320#line 155
24321  if (__cil_tmp24 != 0) {
24322#line 156
24323    if (numbytes == 0U) {
24324#line 157
24325      return (0U);
24326    } else {
24327
24328    }
24329#line 158
24330    inputstate = inputstate & -5;
24331#line 159
24332    goto byte_stuff;
24333  } else {
24334
24335  }
24336  }
24337#line 162
24338  goto ldv_34657;
24339  ldv_34658: 
24340#line 163
24341  tmp = src;
24342#line 163
24343  src = src + 1;
24344#line 163
24345  c = *tmp;
24346#line 164
24347  procbytes = procbytes + 1U;
24348  {
24349#line 165
24350  __cil_tmp25 = (unsigned int )c;
24351#line 165
24352  if (__cil_tmp25 == 16U) {
24353    {
24354#line 166
24355    __cil_tmp26 = inputstate & 2;
24356#line 166
24357    if (__cil_tmp26 != 0) {
24358#line 168
24359      inputstate = inputstate & -3;
24360    } else {
24361      {
24362#line 169
24363      __cil_tmp27 = cs->dle;
24364#line 169
24365      if (__cil_tmp27 != 0) {
24366#line 171
24367        inputstate = inputstate | 2;
24368#line 172
24369        goto ldv_34656;
24370      } else {
24371        {
24372#line 169
24373        __cil_tmp28 = inputstate & 32;
24374#line 169
24375        if (__cil_tmp28 != 0) {
24376#line 171
24377          inputstate = inputstate | 2;
24378#line 172
24379          goto ldv_34656;
24380        } else {
24381
24382        }
24383        }
24384      }
24385      }
24386    }
24387    }
24388  } else {
24389
24390  }
24391  }
24392  {
24393#line 176
24394  __cil_tmp29 = (unsigned int )c;
24395#line 176
24396  if (__cil_tmp29 == 125U) {
24397#line 178
24398    if (procbytes >= numbytes) {
24399#line 180
24400      inputstate = inputstate | 4;
24401#line 181
24402      goto ldv_34656;
24403    } else {
24404
24405    }
24406    byte_stuff: 
24407#line 184
24408    tmp___0 = src;
24409#line 184
24410    src = src + 1;
24411#line 184
24412    c = *tmp___0;
24413#line 185
24414    procbytes = procbytes + 1U;
24415    {
24416#line 186
24417    __cil_tmp30 = (unsigned int )c;
24418#line 186
24419    if (__cil_tmp30 == 16U) {
24420      {
24421#line 187
24422      __cil_tmp31 = inputstate & 2;
24423#line 187
24424      if (__cil_tmp31 != 0) {
24425#line 189
24426        inputstate = inputstate & -3;
24427      } else {
24428        {
24429#line 190
24430        __cil_tmp32 = cs->dle;
24431#line 190
24432        if (__cil_tmp32 != 0) {
24433#line 193
24434          inputstate = inputstate | 6;
24435#line 195
24436          goto ldv_34656;
24437        } else {
24438          {
24439#line 190
24440          __cil_tmp33 = inputstate & 32;
24441#line 190
24442          if (__cil_tmp33 != 0) {
24443#line 193
24444            inputstate = inputstate | 6;
24445#line 195
24446            goto ldv_34656;
24447          } else {
24448
24449          }
24450          }
24451        }
24452        }
24453      }
24454      }
24455    } else {
24456
24457    }
24458    }
24459    {
24460#line 198
24461    __cil_tmp34 = (unsigned int )c;
24462#line 198
24463    __cil_tmp35 = __cil_tmp34 ^ 32U;
24464#line 198
24465    c = (unsigned char )__cil_tmp35;
24466#line 200
24467    __cil_tmp36 = (int )c;
24468#line 200
24469    __cil_tmp37 = (unsigned char )__cil_tmp36;
24470#line 200
24471    tmp___2 = muststuff(__cil_tmp37);
24472    }
24473#line 200
24474    if (tmp___2 == 0) {
24475      {
24476#line 201
24477      __cil_tmp38 = (unsigned int )gigaset_debuglevel;
24478#line 201
24479      __cil_tmp39 = __cil_tmp38 & 2048U;
24480#line 201
24481      __cil_tmp40 = __cil_tmp39 != 0U;
24482#line 201
24483      __cil_tmp41 = (long )__cil_tmp40;
24484#line 201
24485      tmp___1 = __builtin_expect(__cil_tmp41, 0L);
24486      }
24487#line 201
24488      if (tmp___1 != 0L) {
24489        {
24490#line 201
24491        __cil_tmp42 = (int )c;
24492#line 201
24493        printk("<7>gigaset: byte stuffed: 0x%02x\n", __cil_tmp42);
24494        }
24495      } else {
24496
24497      }
24498    } else {
24499
24500    }
24501  } else {
24502    {
24503#line 203
24504    __cil_tmp43 = (unsigned int )c;
24505#line 203
24506    if (__cil_tmp43 == 126U) {
24507      {
24508#line 205
24509      __cil_tmp44 = inputstate & 8;
24510#line 205
24511      if (__cil_tmp44 != 0) {
24512        {
24513#line 206
24514        __cil_tmp45 = (unsigned int )gigaset_debuglevel;
24515#line 206
24516        __cil_tmp46 = __cil_tmp45 & 2048U;
24517#line 206
24518        __cil_tmp47 = __cil_tmp46 != 0U;
24519#line 206
24520        __cil_tmp48 = (long )__cil_tmp47;
24521#line 206
24522        tmp___3 = __builtin_expect(__cil_tmp48, 0L);
24523        }
24524#line 206
24525        if (tmp___3 != 0L) {
24526          {
24527#line 206
24528          printk("<7>gigaset: 7e----------------------------\n");
24529          }
24530        } else {
24531
24532        }
24533        {
24534#line 210
24535        __cil_tmp49 = (struct sk_buff *)0;
24536#line 210
24537        __cil_tmp50 = (unsigned long )__cil_tmp49;
24538#line 210
24539        __cil_tmp51 = (unsigned long )skb;
24540#line 210
24541        if (__cil_tmp51 == __cil_tmp50) {
24542          {
24543#line 212
24544          gigaset_isdn_rcv_err(bcs);
24545          }
24546        } else {
24547          {
24548#line 213
24549          __cil_tmp52 = skb->len;
24550#line 213
24551          if (__cil_tmp52 <= 1U) {
24552            {
24553#line 215
24554            __cil_tmp53 = cs->dev;
24555#line 215
24556            __cil_tmp54 = (struct device  const  *)__cil_tmp53;
24557#line 215
24558            __cil_tmp55 = skb->len;
24559#line 215
24560            dev_warn(__cil_tmp54, "short frame (%d)\n", __cil_tmp55);
24561#line 218
24562            gigaset_isdn_rcv_err(bcs);
24563#line 219
24564            dev_kfree_skb_any(skb);
24565            }
24566          } else {
24567            {
24568#line 220
24569            __cil_tmp56 = (unsigned int )fcs;
24570#line 220
24571            if (__cil_tmp56 != 61624U) {
24572              {
24573#line 222
24574              __cil_tmp57 = cs->dev;
24575#line 222
24576              __cil_tmp58 = (struct device  const  *)__cil_tmp57;
24577#line 222
24578              __cil_tmp59 = skb->len;
24579#line 222
24580              dev_err(__cil_tmp58, "Checksum failed, %u bytes corrupted!\n", __cil_tmp59);
24581#line 225
24582              gigaset_isdn_rcv_err(bcs);
24583#line 226
24584              dev_kfree_skb_any(skb);
24585              }
24586            } else {
24587              {
24588#line 229
24589              __cil_tmp60 = skb->len;
24590#line 229
24591              __cil_tmp61 = __cil_tmp60 - 2U;
24592#line 229
24593              __skb_trim(skb, __cil_tmp61);
24594#line 230
24595              gigaset_skb_rcvd(bcs, skb);
24596              }
24597            }
24598            }
24599          }
24600          }
24601        }
24602        }
24603        {
24604#line 234
24605        inputstate = inputstate & -9;
24606#line 235
24607        skb = gigaset_new_rx_skb(bcs);
24608        }
24609      } else {
24610#line 239
24611        __cil_tmp62 = bcs->emptycount;
24612#line 239
24613        bcs->emptycount = __cil_tmp62 + 1;
24614        {
24615#line 241
24616        __cil_tmp63 = (struct sk_buff *)0;
24617#line 241
24618        __cil_tmp64 = (unsigned long )__cil_tmp63;
24619#line 241
24620        __cil_tmp65 = (unsigned long )skb;
24621#line 241
24622        if (__cil_tmp65 == __cil_tmp64) {
24623          {
24624#line 243
24625          gigaset_isdn_rcv_err(bcs);
24626#line 244
24627          skb = gigaset_new_rx_skb(bcs);
24628          }
24629        } else {
24630
24631        }
24632        }
24633      }
24634      }
24635#line 248
24636      fcs = (__u16 )65535U;
24637#line 249
24638      goto ldv_34657;
24639    } else {
24640      {
24641#line 251
24642      __cil_tmp66 = (int )c;
24643#line 251
24644      __cil_tmp67 = (unsigned char )__cil_tmp66;
24645#line 251
24646      tmp___5 = muststuff(__cil_tmp67);
24647      }
24648#line 251
24649      if (tmp___5 != 0) {
24650        {
24651#line 253
24652        __cil_tmp68 = (unsigned int )gigaset_debuglevel;
24653#line 253
24654        __cil_tmp69 = __cil_tmp68 & 2048U;
24655#line 253
24656        __cil_tmp70 = __cil_tmp69 != 0U;
24657#line 253
24658        __cil_tmp71 = (long )__cil_tmp70;
24659#line 253
24660        tmp___4 = __builtin_expect(__cil_tmp71, 0L);
24661        }
24662#line 253
24663        if (tmp___4 != 0L) {
24664          {
24665#line 253
24666          __cil_tmp72 = (int )c;
24667#line 253
24668          printk("<7>gigaset: not byte stuffed: 0x%02x\n", __cil_tmp72);
24669          }
24670        } else {
24671
24672        }
24673      } else {
24674
24675      }
24676    }
24677    }
24678  }
24679  }
24680  {
24681#line 259
24682  __cil_tmp73 = inputstate & 8;
24683#line 259
24684  if (__cil_tmp73 == 0) {
24685    {
24686#line 260
24687    __cil_tmp74 = (unsigned int )gigaset_debuglevel;
24688#line 260
24689    __cil_tmp75 = __cil_tmp74 & 2048U;
24690#line 260
24691    __cil_tmp76 = __cil_tmp75 != 0U;
24692#line 260
24693    __cil_tmp77 = (long )__cil_tmp76;
24694#line 260
24695    tmp___6 = __builtin_expect(__cil_tmp77, 0L);
24696    }
24697#line 260
24698    if (tmp___6 != 0L) {
24699      {
24700#line 260
24701      __cil_tmp78 = bcs->emptycount;
24702#line 260
24703      printk("<7>gigaset: 7e (%d x) ================\n", __cil_tmp78);
24704      }
24705    } else {
24706
24707    }
24708#line 262
24709    bcs->emptycount = 0;
24710  } else {
24711
24712  }
24713  }
24714#line 265
24715  inputstate = inputstate | 8;
24716  {
24717#line 266
24718  __cil_tmp79 = (struct sk_buff *)0;
24719#line 266
24720  __cil_tmp80 = (unsigned long )__cil_tmp79;
24721#line 266
24722  __cil_tmp81 = (unsigned long )skb;
24723#line 266
24724  if (__cil_tmp81 != __cil_tmp80) {
24725    {
24726#line 267
24727    __cil_tmp82 = bcs->rx_bufsize;
24728#line 267
24729    __cil_tmp83 = skb->len;
24730#line 267
24731    if (__cil_tmp83 >= __cil_tmp82) {
24732      {
24733#line 268
24734      __cil_tmp84 = cs->dev;
24735#line 268
24736      __cil_tmp85 = (struct device  const  *)__cil_tmp84;
24737#line 268
24738      dev_warn(__cil_tmp85, "received packet too long\n");
24739#line 269
24740      dev_kfree_skb_any(skb);
24741#line 271
24742      skb = (struct sk_buff *)0;
24743#line 271
24744      bcs->rx_skb = skb;
24745      }
24746    } else {
24747      {
24748#line 273
24749      tmp___7 = __skb_put(skb, 1U);
24750#line 273
24751      *tmp___7 = c;
24752#line 274
24753      __cil_tmp86 = (int )fcs;
24754#line 274
24755      __cil_tmp87 = (u16 )__cil_tmp86;
24756#line 274
24757      __cil_tmp88 = (int )c;
24758#line 274
24759      __cil_tmp89 = (u8 const   )__cil_tmp88;
24760#line 274
24761      __cil_tmp90 = (u8 )__cil_tmp89;
24762#line 274
24763      fcs = crc_ccitt_byte(__cil_tmp87, __cil_tmp90);
24764      }
24765    }
24766    }
24767  } else {
24768
24769  }
24770  }
24771  ldv_34657: ;
24772#line 162
24773  if (procbytes < numbytes) {
24774#line 163
24775    goto ldv_34658;
24776  } else {
24777#line 165
24778    goto ldv_34656;
24779  }
24780  ldv_34656: 
24781#line 279
24782  bcs->inputstate = inputstate;
24783#line 280
24784  bcs->rx_fcs = fcs;
24785#line 281
24786  return (procbytes);
24787}
24788}
24789#line 291 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
24790static unsigned int iraw_loop(unsigned int numbytes , struct inbuf_t *inbuf ) 
24791{ struct cardstate *cs ;
24792  struct bc_state *bcs ;
24793  int inputstate ;
24794  struct sk_buff *skb ;
24795  unsigned char *src ;
24796  unsigned int procbytes ;
24797  unsigned char c ;
24798  unsigned char *tmp ;
24799  unsigned char *tmp___0 ;
24800  int __cil_tmp12 ;
24801  unsigned long __cil_tmp13 ;
24802  unsigned char (*__cil_tmp14)[8192U] ;
24803  unsigned char *__cil_tmp15 ;
24804  struct sk_buff *__cil_tmp16 ;
24805  unsigned long __cil_tmp17 ;
24806  unsigned long __cil_tmp18 ;
24807  unsigned int __cil_tmp19 ;
24808  int __cil_tmp20 ;
24809  int __cil_tmp21 ;
24810  int __cil_tmp22 ;
24811  int __cil_tmp23 ;
24812  u8 __cil_tmp24 ;
24813  unsigned int __cil_tmp25 ;
24814  unsigned int __cil_tmp26 ;
24815  int __cil_tmp27 ;
24816
24817  {
24818#line 293
24819  cs = inbuf->cs;
24820#line 294
24821  bcs = cs->bcs;
24822#line 295
24823  inputstate = bcs->inputstate;
24824#line 296
24825  skb = bcs->rx_skb;
24826#line 297
24827  __cil_tmp12 = inbuf->head;
24828#line 297
24829  __cil_tmp13 = (unsigned long )__cil_tmp12;
24830#line 297
24831  __cil_tmp14 = & inbuf->data;
24832#line 297
24833  __cil_tmp15 = (unsigned char *)__cil_tmp14;
24834#line 297
24835  src = __cil_tmp15 + __cil_tmp13;
24836#line 298
24837  procbytes = 0U;
24838  {
24839#line 301
24840  __cil_tmp16 = (struct sk_buff *)0;
24841#line 301
24842  __cil_tmp17 = (unsigned long )__cil_tmp16;
24843#line 301
24844  __cil_tmp18 = (unsigned long )skb;
24845#line 301
24846  if (__cil_tmp18 == __cil_tmp17) {
24847    {
24848#line 303
24849    gigaset_new_rx_skb(bcs);
24850    }
24851#line 304
24852    return (numbytes);
24853  } else {
24854
24855  }
24856  }
24857#line 307
24858  goto ldv_34672;
24859  ldv_34671: 
24860#line 308
24861  tmp = src;
24862#line 308
24863  src = src + 1;
24864#line 308
24865  c = *tmp;
24866#line 309
24867  procbytes = procbytes + 1U;
24868  {
24869#line 311
24870  __cil_tmp19 = (unsigned int )c;
24871#line 311
24872  if (__cil_tmp19 == 16U) {
24873    {
24874#line 312
24875    __cil_tmp20 = inputstate & 2;
24876#line 312
24877    if (__cil_tmp20 != 0) {
24878#line 314
24879      inputstate = inputstate & -3;
24880    } else {
24881      {
24882#line 315
24883      __cil_tmp21 = cs->dle;
24884#line 315
24885      if (__cil_tmp21 != 0) {
24886#line 317
24887        inputstate = inputstate | 2;
24888#line 318
24889        goto ldv_34670;
24890      } else {
24891        {
24892#line 315
24893        __cil_tmp22 = inputstate & 32;
24894#line 315
24895        if (__cil_tmp22 != 0) {
24896#line 317
24897          inputstate = inputstate | 2;
24898#line 318
24899          goto ldv_34670;
24900        } else {
24901
24902        }
24903        }
24904      }
24905      }
24906    }
24907    }
24908  } else {
24909
24910  }
24911  }
24912  {
24913#line 323
24914  inputstate = inputstate | 8;
24915#line 324
24916  tmp___0 = __skb_put(skb, 1U);
24917#line 324
24918  __cil_tmp23 = (int )c;
24919#line 324
24920  __cil_tmp24 = (u8 )__cil_tmp23;
24921#line 324
24922  *tmp___0 = bitrev8(__cil_tmp24);
24923  }
24924  ldv_34672: ;
24925#line 307
24926  if (procbytes < numbytes) {
24927    {
24928#line 307
24929    __cil_tmp25 = bcs->rx_bufsize;
24930#line 307
24931    __cil_tmp26 = skb->len;
24932#line 307
24933    if (__cil_tmp26 < __cil_tmp25) {
24934#line 308
24935      goto ldv_34671;
24936    } else {
24937#line 310
24938      goto ldv_34670;
24939    }
24940    }
24941  } else {
24942#line 310
24943    goto ldv_34670;
24944  }
24945  ldv_34670: ;
24946  {
24947#line 328
24948  __cil_tmp27 = inputstate & 8;
24949#line 328
24950  if (__cil_tmp27 != 0) {
24951    {
24952#line 329
24953    gigaset_skb_rcvd(bcs, skb);
24954#line 330
24955    inputstate = inputstate & -9;
24956#line 331
24957    gigaset_new_rx_skb(bcs);
24958    }
24959  } else {
24960
24961  }
24962  }
24963#line 334
24964  bcs->inputstate = inputstate;
24965#line 335
24966  return (procbytes);
24967}
24968}
24969#line 344 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
24970static void handle_dle(struct inbuf_t *inbuf ) 
24971{ struct cardstate *cs ;
24972  int __cil_tmp3 ;
24973  int __cil_tmp4 ;
24974  int __cil_tmp5 ;
24975  unsigned char __cil_tmp6 ;
24976  unsigned int __cil_tmp7 ;
24977  int __cil_tmp8 ;
24978  int __cil_tmp9 ;
24979  int __cil_tmp10 ;
24980  int __cil_tmp11 ;
24981  int __cil_tmp12 ;
24982  int __cil_tmp13 ;
24983  int __cil_tmp14 ;
24984  int __cil_tmp15 ;
24985  int __cil_tmp16 ;
24986  int __cil_tmp17 ;
24987  unsigned char __cil_tmp18 ;
24988  int __cil_tmp19 ;
24989  unsigned char __cil_tmp20 ;
24990  int __cil_tmp21 ;
24991  unsigned char __cil_tmp22 ;
24992  int __cil_tmp23 ;
24993  int __cil_tmp24 ;
24994  struct device *__cil_tmp25 ;
24995  struct device  const  *__cil_tmp26 ;
24996  int __cil_tmp27 ;
24997  int __cil_tmp28 ;
24998  int __cil_tmp29 ;
24999  int __cil_tmp30 ;
25000  struct device *__cil_tmp31 ;
25001  struct device  const  *__cil_tmp32 ;
25002  int __cil_tmp33 ;
25003  int __cil_tmp34 ;
25004  int __cil_tmp35 ;
25005  int __cil_tmp36 ;
25006  int __cil_tmp37 ;
25007  int __cil_tmp38 ;
25008  int __cil_tmp39 ;
25009  int __cil_tmp40 ;
25010  struct device *__cil_tmp41 ;
25011  struct device  const  *__cil_tmp42 ;
25012  struct device *__cil_tmp43 ;
25013  struct device  const  *__cil_tmp44 ;
25014  unsigned char __cil_tmp45 ;
25015  int __cil_tmp46 ;
25016
25017  {
25018#line 346
25019  cs = inbuf->cs;
25020  {
25021#line 348
25022  __cil_tmp3 = cs->mstate;
25023#line 348
25024  if (__cil_tmp3 == 2) {
25025#line 349
25026    return;
25027  } else {
25028
25029  }
25030  }
25031  {
25032#line 351
25033  __cil_tmp4 = inbuf->inputstate;
25034#line 351
25035  __cil_tmp5 = __cil_tmp4 & 2;
25036#line 351
25037  if (__cil_tmp5 == 0) {
25038    {
25039#line 353
25040    __cil_tmp6 = inbuf->data[inbuf->head];
25041#line 353
25042    __cil_tmp7 = (unsigned int )__cil_tmp6;
25043#line 353
25044    if (__cil_tmp7 == 16U) {
25045      {
25046#line 353
25047      __cil_tmp8 = cs->dle;
25048#line 353
25049      if (__cil_tmp8 != 0) {
25050#line 353
25051        goto _L;
25052      } else {
25053        {
25054#line 353
25055        __cil_tmp9 = inbuf->inputstate;
25056#line 353
25057        __cil_tmp10 = __cil_tmp9 & 32;
25058#line 353
25059        if (__cil_tmp10 != 0) {
25060          _L: 
25061#line 356
25062          __cil_tmp11 = inbuf->head;
25063#line 356
25064          inbuf->head = __cil_tmp11 + 1;
25065          {
25066#line 357
25067          __cil_tmp12 = inbuf->tail;
25068#line 357
25069          __cil_tmp13 = inbuf->head;
25070#line 357
25071          if (__cil_tmp13 == __cil_tmp12) {
25072#line 360
25073            __cil_tmp14 = inbuf->inputstate;
25074#line 360
25075            inbuf->inputstate = __cil_tmp14 | 2;
25076#line 361
25077            return;
25078          } else {
25079            {
25080#line 357
25081            __cil_tmp15 = inbuf->head;
25082#line 357
25083            if (__cil_tmp15 == 8192) {
25084#line 360
25085              __cil_tmp16 = inbuf->inputstate;
25086#line 360
25087              inbuf->inputstate = __cil_tmp16 | 2;
25088#line 361
25089              return;
25090            } else {
25091
25092            }
25093            }
25094          }
25095          }
25096        } else {
25097#line 365
25098          return;
25099        }
25100        }
25101      }
25102      }
25103    } else {
25104#line 365
25105      return;
25106    }
25107    }
25108  } else {
25109
25110  }
25111  }
25112#line 370
25113  __cil_tmp17 = inbuf->inputstate;
25114#line 370
25115  inbuf->inputstate = __cil_tmp17 & -3;
25116  {
25117#line 373
25118  __cil_tmp18 = inbuf->data[inbuf->head];
25119#line 373
25120  __cil_tmp19 = (int )__cil_tmp18;
25121#line 373
25122  if (__cil_tmp19 == 88) {
25123#line 373
25124    goto case_88;
25125  } else {
25126    {
25127#line 380
25128    __cil_tmp20 = inbuf->data[inbuf->head];
25129#line 380
25130    __cil_tmp21 = (int )__cil_tmp20;
25131#line 380
25132    if (__cil_tmp21 == 46) {
25133#line 380
25134      goto case_46;
25135    } else {
25136      {
25137#line 390
25138      __cil_tmp22 = inbuf->data[inbuf->head];
25139#line 390
25140      __cil_tmp23 = (int )__cil_tmp22;
25141#line 390
25142      if (__cil_tmp23 == 16) {
25143#line 390
25144        goto case_16;
25145      } else {
25146#line 397
25147        goto switch_default;
25148#line 372
25149        if (0) {
25150          case_88: ;
25151          {
25152#line 374
25153          __cil_tmp24 = inbuf->inputstate;
25154#line 374
25155          if (__cil_tmp24 & 1) {
25156            {
25157#line 375
25158            __cil_tmp25 = cs->dev;
25159#line 375
25160            __cil_tmp26 = (struct device  const  *)__cil_tmp25;
25161#line 375
25162            dev_notice(__cil_tmp26, "received <DLE>X in command mode\n");
25163            }
25164          } else {
25165
25166          }
25167          }
25168#line 377
25169          __cil_tmp27 = inbuf->inputstate;
25170#line 377
25171          inbuf->inputstate = __cil_tmp27 | 33;
25172#line 378
25173          __cil_tmp28 = inbuf->head;
25174#line 378
25175          inbuf->head = __cil_tmp28 + 1;
25176#line 379
25177          goto ldv_34678;
25178          case_46: ;
25179          {
25180#line 381
25181          __cil_tmp29 = inbuf->inputstate;
25182#line 381
25183          __cil_tmp30 = __cil_tmp29 & 32;
25184#line 381
25185          if (__cil_tmp30 == 0) {
25186            {
25187#line 382
25188            __cil_tmp31 = cs->dev;
25189#line 382
25190            __cil_tmp32 = (struct device  const  *)__cil_tmp31;
25191#line 382
25192            dev_notice(__cil_tmp32, "received <DLE>. without <DLE>X\n");
25193            }
25194          } else {
25195
25196          }
25197          }
25198#line 384
25199          __cil_tmp33 = inbuf->inputstate;
25200#line 384
25201          inbuf->inputstate = __cil_tmp33 & -33;
25202          {
25203#line 386
25204          __cil_tmp34 = cs->dle;
25205#line 386
25206          if (__cil_tmp34 != 0) {
25207#line 387
25208            __cil_tmp35 = inbuf->inputstate;
25209#line 387
25210            inbuf->inputstate = __cil_tmp35 & -2;
25211          } else {
25212
25213          }
25214          }
25215#line 388
25216          __cil_tmp36 = inbuf->head;
25217#line 388
25218          inbuf->head = __cil_tmp36 + 1;
25219#line 389
25220          goto ldv_34678;
25221          case_16: 
25222#line 392
25223          __cil_tmp37 = inbuf->inputstate;
25224#line 392
25225          inbuf->inputstate = __cil_tmp37 | 2;
25226          {
25227#line 393
25228          __cil_tmp38 = cs->dle;
25229#line 393
25230          if (__cil_tmp38 == 0) {
25231            {
25232#line 393
25233            __cil_tmp39 = inbuf->inputstate;
25234#line 393
25235            __cil_tmp40 = __cil_tmp39 & 32;
25236#line 393
25237            if (__cil_tmp40 == 0) {
25238              {
25239#line 394
25240              __cil_tmp41 = cs->dev;
25241#line 394
25242              __cil_tmp42 = (struct device  const  *)__cil_tmp41;
25243#line 394
25244              dev_notice(__cil_tmp42, "received <DLE><DLE> not in DLE mode\n");
25245              }
25246            } else {
25247
25248            }
25249            }
25250          } else {
25251
25252          }
25253          }
25254#line 396
25255          goto ldv_34678;
25256          switch_default: 
25257          {
25258#line 398
25259          __cil_tmp43 = cs->dev;
25260#line 398
25261          __cil_tmp44 = (struct device  const  *)__cil_tmp43;
25262#line 398
25263          __cil_tmp45 = inbuf->data[inbuf->head];
25264#line 398
25265          __cil_tmp46 = (int )__cil_tmp45;
25266#line 398
25267          dev_notice(__cil_tmp44, "received <DLE><%02x>\n", __cil_tmp46);
25268          }
25269        } else {
25270
25271        }
25272      }
25273      }
25274    }
25275    }
25276  }
25277  }
25278  ldv_34678: ;
25279#line 403
25280  return;
25281}
25282}
25283#line 413 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
25284void gigaset_m10x_input(struct inbuf_t *inbuf ) 
25285{ struct cardstate *cs ;
25286  unsigned int numbytes ;
25287  unsigned int procbytes ;
25288  long tmp ;
25289  int tmp___0 ;
25290  long tmp___1 ;
25291  long tmp___2 ;
25292  unsigned int __cil_tmp9 ;
25293  unsigned int __cil_tmp10 ;
25294  int __cil_tmp11 ;
25295  long __cil_tmp12 ;
25296  int __cil_tmp13 ;
25297  int __cil_tmp14 ;
25298  int __cil_tmp15 ;
25299  int __cil_tmp16 ;
25300  int __cil_tmp17 ;
25301  int __cil_tmp18 ;
25302  unsigned int __cil_tmp19 ;
25303  unsigned int __cil_tmp20 ;
25304  int __cil_tmp21 ;
25305  long __cil_tmp22 ;
25306  int __cil_tmp23 ;
25307  int __cil_tmp24 ;
25308  struct bc_state *__cil_tmp25 ;
25309  unsigned int __cil_tmp26 ;
25310  int __cil_tmp27 ;
25311  unsigned int __cil_tmp28 ;
25312  unsigned int __cil_tmp29 ;
25313  int __cil_tmp30 ;
25314  unsigned int __cil_tmp31 ;
25315  unsigned int __cil_tmp32 ;
25316  int __cil_tmp33 ;
25317  long __cil_tmp34 ;
25318  int __cil_tmp35 ;
25319  int __cil_tmp36 ;
25320  int __cil_tmp37 ;
25321
25322  {
25323  {
25324#line 415
25325  cs = inbuf->cs;
25326#line 418
25327  __cil_tmp9 = (unsigned int )gigaset_debuglevel;
25328#line 418
25329  __cil_tmp10 = __cil_tmp9 & 8U;
25330#line 418
25331  __cil_tmp11 = __cil_tmp10 != 0U;
25332#line 418
25333  __cil_tmp12 = (long )__cil_tmp11;
25334#line 418
25335  tmp = __builtin_expect(__cil_tmp12, 0L);
25336  }
25337#line 418
25338  if (tmp != 0L) {
25339    {
25340#line 418
25341    __cil_tmp13 = inbuf->head;
25342#line 418
25343    __cil_tmp14 = inbuf->tail;
25344#line 418
25345    printk("<7>gigaset: buffer state: %u -> %u\n", __cil_tmp13, __cil_tmp14);
25346    }
25347  } else {
25348
25349  }
25350#line 420
25351  goto ldv_34689;
25352  ldv_34688: 
25353  {
25354#line 422
25355  handle_dle(inbuf);
25356  }
25357  {
25358#line 425
25359  __cil_tmp15 = inbuf->tail;
25360#line 425
25361  __cil_tmp16 = inbuf->head;
25362#line 425
25363  if (__cil_tmp16 <= __cil_tmp15) {
25364#line 425
25365    tmp___0 = inbuf->tail;
25366  } else {
25367#line 425
25368    tmp___0 = 8192;
25369  }
25370  }
25371  {
25372#line 425
25373  __cil_tmp17 = inbuf->head;
25374#line 425
25375  __cil_tmp18 = tmp___0 - __cil_tmp17;
25376#line 425
25377  numbytes = (unsigned int )__cil_tmp18;
25378#line 427
25379  __cil_tmp19 = (unsigned int )gigaset_debuglevel;
25380#line 427
25381  __cil_tmp20 = __cil_tmp19 & 8U;
25382#line 427
25383  __cil_tmp21 = __cil_tmp20 != 0U;
25384#line 427
25385  __cil_tmp22 = (long )__cil_tmp21;
25386#line 427
25387  tmp___1 = __builtin_expect(__cil_tmp22, 0L);
25388  }
25389#line 427
25390  if (tmp___1 != 0L) {
25391    {
25392#line 427
25393    printk("<7>gigaset: processing %u bytes\n", numbytes);
25394    }
25395  } else {
25396
25397  }
25398  {
25399#line 433
25400  __cil_tmp23 = cs->mstate;
25401#line 433
25402  if (__cil_tmp23 == 2) {
25403    {
25404#line 434
25405    procbytes = lock_loop(numbytes, inbuf);
25406    }
25407  } else {
25408    {
25409#line 435
25410    __cil_tmp24 = inbuf->inputstate;
25411#line 435
25412    if (__cil_tmp24 & 1) {
25413      {
25414#line 436
25415      procbytes = cmd_loop(numbytes, inbuf);
25416      }
25417    } else {
25418      {
25419#line 437
25420      __cil_tmp25 = cs->bcs;
25421#line 437
25422      __cil_tmp26 = __cil_tmp25->proto2;
25423#line 437
25424      if (__cil_tmp26 == 1U) {
25425        {
25426#line 438
25427        procbytes = hdlc_loop(numbytes, inbuf);
25428        }
25429      } else {
25430        {
25431#line 440
25432        procbytes = iraw_loop(numbytes, inbuf);
25433        }
25434      }
25435      }
25436    }
25437    }
25438  }
25439  }
25440#line 441
25441  __cil_tmp27 = inbuf->head;
25442#line 441
25443  __cil_tmp28 = (unsigned int )__cil_tmp27;
25444#line 441
25445  __cil_tmp29 = __cil_tmp28 + procbytes;
25446#line 441
25447  inbuf->head = (int )__cil_tmp29;
25448  {
25449#line 444
25450  __cil_tmp30 = inbuf->head;
25451#line 444
25452  if (__cil_tmp30 > 8191) {
25453#line 445
25454    inbuf->head = 0;
25455  } else {
25456
25457  }
25458  }
25459  {
25460#line 447
25461  __cil_tmp31 = (unsigned int )gigaset_debuglevel;
25462#line 447
25463  __cil_tmp32 = __cil_tmp31 & 8U;
25464#line 447
25465  __cil_tmp33 = __cil_tmp32 != 0U;
25466#line 447
25467  __cil_tmp34 = (long )__cil_tmp33;
25468#line 447
25469  tmp___2 = __builtin_expect(__cil_tmp34, 0L);
25470  }
25471#line 447
25472  if (tmp___2 != 0L) {
25473    {
25474#line 447
25475    __cil_tmp35 = inbuf->head;
25476#line 447
25477    printk("<7>gigaset: head set to %u\n", __cil_tmp35);
25478    }
25479  } else {
25480
25481  }
25482  ldv_34689: ;
25483  {
25484#line 420
25485  __cil_tmp36 = inbuf->tail;
25486#line 420
25487  __cil_tmp37 = inbuf->head;
25488#line 420
25489  if (__cil_tmp37 != __cil_tmp36) {
25490#line 421
25491    goto ldv_34688;
25492  } else {
25493#line 423
25494    goto ldv_34690;
25495  }
25496  }
25497  ldv_34690: ;
25498#line 425
25499  return;
25500}
25501}
25502#line 464 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
25503static struct sk_buff *HDLC_Encode(struct sk_buff *skb ) 
25504{ struct sk_buff *hdlc_skb ;
25505  __u16 fcs ;
25506  unsigned char c ;
25507  unsigned char *cp ;
25508  int len ;
25509  unsigned int stuf_cnt ;
25510  int tmp ;
25511  unsigned char *tmp___0 ;
25512  int tmp___1 ;
25513  size_t __len ;
25514  void *__ret ;
25515  unsigned char *tmp___4 ;
25516  unsigned char *tmp___5 ;
25517  unsigned char *tmp___6 ;
25518  unsigned char *tmp___7 ;
25519  unsigned char *tmp___8 ;
25520  unsigned char *tmp___9 ;
25521  unsigned char *tmp___10 ;
25522  unsigned char *tmp___11 ;
25523  int tmp___12 ;
25524  unsigned int tmp___13 ;
25525  unsigned char *tmp___14 ;
25526  int tmp___15 ;
25527  unsigned char *tmp___16 ;
25528  unsigned char *tmp___17 ;
25529  int tmp___18 ;
25530  unsigned char *tmp___19 ;
25531  unsigned char *tmp___20 ;
25532  unsigned int __cil_tmp30 ;
25533  unsigned char __cil_tmp31 ;
25534  int __cil_tmp32 ;
25535  unsigned char __cil_tmp33 ;
25536  int __cil_tmp34 ;
25537  u16 __cil_tmp35 ;
25538  unsigned char __cil_tmp36 ;
25539  int __cil_tmp37 ;
25540  u8 __cil_tmp38 ;
25541  u8 __cil_tmp39 ;
25542  int __cil_tmp40 ;
25543  int __cil_tmp41 ;
25544  __u16 __cil_tmp42 ;
25545  unsigned int __cil_tmp43 ;
25546  unsigned int __cil_tmp44 ;
25547  unsigned int __cil_tmp45 ;
25548  unsigned int __cil_tmp46 ;
25549  unsigned int __cil_tmp47 ;
25550  struct sk_buff *__cil_tmp48 ;
25551  unsigned long __cil_tmp49 ;
25552  unsigned long __cil_tmp50 ;
25553  __u16 __cil_tmp51 ;
25554  int __cil_tmp52 ;
25555  __u16 __cil_tmp53 ;
25556  struct sk_buff  const  *__cil_tmp54 ;
25557  struct sk_buff  const  *__cil_tmp55 ;
25558  void *__cil_tmp56 ;
25559  void const   *__cil_tmp57 ;
25560  unsigned char *__cil_tmp58 ;
25561  unsigned char __cil_tmp59 ;
25562  int __cil_tmp60 ;
25563  unsigned char __cil_tmp61 ;
25564  unsigned char *__cil_tmp62 ;
25565  unsigned char __cil_tmp63 ;
25566  unsigned int __cil_tmp64 ;
25567  unsigned int __cil_tmp65 ;
25568  unsigned char *__cil_tmp66 ;
25569  unsigned int __cil_tmp67 ;
25570  int __cil_tmp68 ;
25571  unsigned char __cil_tmp69 ;
25572  unsigned int __cil_tmp70 ;
25573  unsigned int __cil_tmp71 ;
25574  int __cil_tmp72 ;
25575  int __cil_tmp73 ;
25576  int __cil_tmp74 ;
25577  unsigned char __cil_tmp75 ;
25578  unsigned int __cil_tmp76 ;
25579  unsigned int __cil_tmp77 ;
25580
25581  {
25582#line 473
25583  stuf_cnt = 0U;
25584#line 474
25585  fcs = (__u16 )65535U;
25586#line 475
25587  cp = skb->data;
25588#line 476
25589  __cil_tmp30 = skb->len;
25590#line 476
25591  len = (int )__cil_tmp30;
25592#line 477
25593  goto ldv_34707;
25594  ldv_34706: 
25595  {
25596#line 478
25597  __cil_tmp31 = *cp;
25598#line 478
25599  __cil_tmp32 = (int )__cil_tmp31;
25600#line 478
25601  __cil_tmp33 = (unsigned char )__cil_tmp32;
25602#line 478
25603  tmp = muststuff(__cil_tmp33);
25604  }
25605#line 478
25606  if (tmp != 0) {
25607#line 479
25608    stuf_cnt = stuf_cnt + 1U;
25609  } else {
25610
25611  }
25612  {
25613#line 480
25614  tmp___0 = cp;
25615#line 480
25616  cp = cp + 1;
25617#line 480
25618  __cil_tmp34 = (int )fcs;
25619#line 480
25620  __cil_tmp35 = (u16 )__cil_tmp34;
25621#line 480
25622  __cil_tmp36 = *tmp___0;
25623#line 480
25624  __cil_tmp37 = (int )__cil_tmp36;
25625#line 480
25626  __cil_tmp38 = (u8 const   )__cil_tmp37;
25627#line 480
25628  __cil_tmp39 = (u8 )__cil_tmp38;
25629#line 480
25630  fcs = crc_ccitt_byte(__cil_tmp35, __cil_tmp39);
25631  }
25632  ldv_34707: 
25633#line 477
25634  tmp___1 = len;
25635#line 477
25636  len = len - 1;
25637#line 477
25638  if (tmp___1 != 0) {
25639#line 478
25640    goto ldv_34706;
25641  } else {
25642#line 480
25643    goto ldv_34708;
25644  }
25645  ldv_34708: 
25646  {
25647#line 482
25648  __cil_tmp40 = (int )fcs;
25649#line 482
25650  __cil_tmp41 = ~ __cil_tmp40;
25651#line 482
25652  fcs = (__u16 )__cil_tmp41;
25653#line 488
25654  __cil_tmp42 = skb->mac_len;
25655#line 488
25656  __cil_tmp43 = (unsigned int )__cil_tmp42;
25657#line 488
25658  __cil_tmp44 = skb->len;
25659#line 488
25660  __cil_tmp45 = __cil_tmp44 + stuf_cnt;
25661#line 488
25662  __cil_tmp46 = __cil_tmp45 + __cil_tmp43;
25663#line 488
25664  __cil_tmp47 = __cil_tmp46 + 6U;
25665#line 488
25666  hdlc_skb = dev_alloc_skb(__cil_tmp47);
25667  }
25668  {
25669#line 489
25670  __cil_tmp48 = (struct sk_buff *)0;
25671#line 489
25672  __cil_tmp49 = (unsigned long )__cil_tmp48;
25673#line 489
25674  __cil_tmp50 = (unsigned long )hdlc_skb;
25675#line 489
25676  if (__cil_tmp50 == __cil_tmp49) {
25677    {
25678#line 490
25679    dev_kfree_skb_any(skb);
25680    }
25681#line 491
25682    return ((struct sk_buff *)0);
25683  } else {
25684
25685  }
25686  }
25687  {
25688#line 495
25689  skb_reset_mac_header(hdlc_skb);
25690#line 496
25691  __cil_tmp51 = skb->mac_len;
25692#line 496
25693  __cil_tmp52 = (int )__cil_tmp51;
25694#line 496
25695  skb_reserve(hdlc_skb, __cil_tmp52);
25696#line 497
25697  __cil_tmp53 = skb->mac_len;
25698#line 497
25699  __len = (size_t )__cil_tmp53;
25700#line 497
25701  __cil_tmp54 = (struct sk_buff  const  *)skb;
25702#line 497
25703  tmp___4 = skb_mac_header(__cil_tmp54);
25704#line 497
25705  __cil_tmp55 = (struct sk_buff  const  *)hdlc_skb;
25706#line 497
25707  tmp___5 = skb_mac_header(__cil_tmp55);
25708#line 497
25709  __cil_tmp56 = (void *)tmp___5;
25710#line 497
25711  __cil_tmp57 = (void const   *)tmp___4;
25712#line 497
25713  __ret = __builtin_memcpy(__cil_tmp56, __cil_tmp57, __len);
25714#line 498
25715  hdlc_skb->mac_len = skb->mac_len;
25716#line 501
25717  tmp___6 = skb_put(hdlc_skb, 1U);
25718#line 501
25719  *tmp___6 = (unsigned char)126;
25720  }
25721#line 504
25722  goto ldv_34713;
25723  ldv_34712: 
25724  {
25725#line 505
25726  __cil_tmp58 = skb->data;
25727#line 505
25728  __cil_tmp59 = *__cil_tmp58;
25729#line 505
25730  __cil_tmp60 = (int )__cil_tmp59;
25731#line 505
25732  __cil_tmp61 = (unsigned char )__cil_tmp60;
25733#line 505
25734  tmp___12 = muststuff(__cil_tmp61);
25735  }
25736#line 505
25737  if (tmp___12 != 0) {
25738    {
25739#line 506
25740    tmp___7 = skb_put(hdlc_skb, 1U);
25741#line 506
25742    *tmp___7 = (unsigned char)125;
25743#line 507
25744    tmp___8 = skb_put(hdlc_skb, 1U);
25745#line 507
25746    tmp___9 = skb->data;
25747#line 507
25748    __cil_tmp62 = skb->data;
25749#line 507
25750    skb->data = __cil_tmp62 + 1;
25751#line 507
25752    __cil_tmp63 = *tmp___9;
25753#line 507
25754    __cil_tmp64 = (unsigned int )__cil_tmp63;
25755#line 507
25756    __cil_tmp65 = __cil_tmp64 ^ 32U;
25757#line 507
25758    *tmp___8 = (unsigned char )__cil_tmp65;
25759    }
25760  } else {
25761    {
25762#line 509
25763    tmp___10 = skb_put(hdlc_skb, 1U);
25764#line 509
25765    tmp___11 = skb->data;
25766#line 509
25767    __cil_tmp66 = skb->data;
25768#line 509
25769    skb->data = __cil_tmp66 + 1;
25770#line 509
25771    *tmp___10 = *tmp___11;
25772    }
25773  }
25774  ldv_34713: 
25775#line 504
25776  tmp___13 = skb->len;
25777#line 504
25778  __cil_tmp67 = skb->len;
25779#line 504
25780  skb->len = __cil_tmp67 - 1U;
25781#line 504
25782  if (tmp___13 != 0U) {
25783#line 505
25784    goto ldv_34712;
25785  } else {
25786#line 507
25787    goto ldv_34714;
25788  }
25789  ldv_34714: 
25790  {
25791#line 513
25792  c = (unsigned char )fcs;
25793#line 514
25794  __cil_tmp68 = (int )c;
25795#line 514
25796  __cil_tmp69 = (unsigned char )__cil_tmp68;
25797#line 514
25798  tmp___15 = muststuff(__cil_tmp69);
25799  }
25800#line 514
25801  if (tmp___15 != 0) {
25802    {
25803#line 515
25804    tmp___14 = skb_put(hdlc_skb, 1U);
25805#line 515
25806    *tmp___14 = (unsigned char)125;
25807#line 516
25808    __cil_tmp70 = (unsigned int )c;
25809#line 516
25810    __cil_tmp71 = __cil_tmp70 ^ 32U;
25811#line 516
25812    c = (unsigned char )__cil_tmp71;
25813    }
25814  } else {
25815
25816  }
25817  {
25818#line 518
25819  tmp___16 = skb_put(hdlc_skb, 1U);
25820#line 518
25821  *tmp___16 = c;
25822#line 520
25823  __cil_tmp72 = (int )fcs;
25824#line 520
25825  __cil_tmp73 = __cil_tmp72 >> 8;
25826#line 520
25827  c = (unsigned char )__cil_tmp73;
25828#line 521
25829  __cil_tmp74 = (int )c;
25830#line 521
25831  __cil_tmp75 = (unsigned char )__cil_tmp74;
25832#line 521
25833  tmp___18 = muststuff(__cil_tmp75);
25834  }
25835#line 521
25836  if (tmp___18 != 0) {
25837    {
25838#line 522
25839    tmp___17 = skb_put(hdlc_skb, 1U);
25840#line 522
25841    *tmp___17 = (unsigned char)125;
25842#line 523
25843    __cil_tmp76 = (unsigned int )c;
25844#line 523
25845    __cil_tmp77 = __cil_tmp76 ^ 32U;
25846#line 523
25847    c = (unsigned char )__cil_tmp77;
25848    }
25849  } else {
25850
25851  }
25852  {
25853#line 525
25854  tmp___19 = skb_put(hdlc_skb, 1U);
25855#line 525
25856  *tmp___19 = c;
25857#line 527
25858  tmp___20 = skb_put(hdlc_skb, 1U);
25859#line 527
25860  *tmp___20 = (unsigned char)126;
25861#line 529
25862  dev_kfree_skb_any(skb);
25863  }
25864#line 530
25865  return (hdlc_skb);
25866}
25867}
25868#line 542 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
25869static struct sk_buff *iraw_encode(struct sk_buff *skb ) 
25870{ struct sk_buff *iraw_skb ;
25871  unsigned char c ;
25872  unsigned char *cp ;
25873  int len ;
25874  size_t __len ;
25875  void *__ret ;
25876  unsigned char *tmp___1 ;
25877  unsigned char *tmp___2 ;
25878  unsigned char *tmp___3 ;
25879  unsigned char *tmp___4 ;
25880  unsigned char *tmp___5 ;
25881  int tmp___6 ;
25882  __u16 __cil_tmp14 ;
25883  unsigned int __cil_tmp15 ;
25884  unsigned int __cil_tmp16 ;
25885  unsigned int __cil_tmp17 ;
25886  unsigned int __cil_tmp18 ;
25887  struct sk_buff *__cil_tmp19 ;
25888  unsigned long __cil_tmp20 ;
25889  unsigned long __cil_tmp21 ;
25890  __u16 __cil_tmp22 ;
25891  int __cil_tmp23 ;
25892  __u16 __cil_tmp24 ;
25893  struct sk_buff  const  *__cil_tmp25 ;
25894  struct sk_buff  const  *__cil_tmp26 ;
25895  void *__cil_tmp27 ;
25896  void const   *__cil_tmp28 ;
25897  unsigned int __cil_tmp29 ;
25898  unsigned char __cil_tmp30 ;
25899  int __cil_tmp31 ;
25900  u8 __cil_tmp32 ;
25901  unsigned int __cil_tmp33 ;
25902
25903  {
25904  {
25905#line 552
25906  __cil_tmp14 = skb->mac_len;
25907#line 552
25908  __cil_tmp15 = (unsigned int )__cil_tmp14;
25909#line 552
25910  __cil_tmp16 = skb->len;
25911#line 552
25912  __cil_tmp17 = __cil_tmp16 * 2U;
25913#line 552
25914  __cil_tmp18 = __cil_tmp17 + __cil_tmp15;
25915#line 552
25916  iraw_skb = dev_alloc_skb(__cil_tmp18);
25917  }
25918  {
25919#line 553
25920  __cil_tmp19 = (struct sk_buff *)0;
25921#line 553
25922  __cil_tmp20 = (unsigned long )__cil_tmp19;
25923#line 553
25924  __cil_tmp21 = (unsigned long )iraw_skb;
25925#line 553
25926  if (__cil_tmp21 == __cil_tmp20) {
25927    {
25928#line 554
25929    dev_kfree_skb_any(skb);
25930    }
25931#line 555
25932    return ((struct sk_buff *)0);
25933  } else {
25934
25935  }
25936  }
25937  {
25938#line 559
25939  skb_reset_mac_header(iraw_skb);
25940#line 560
25941  __cil_tmp22 = skb->mac_len;
25942#line 560
25943  __cil_tmp23 = (int )__cil_tmp22;
25944#line 560
25945  skb_reserve(iraw_skb, __cil_tmp23);
25946#line 561
25947  __cil_tmp24 = skb->mac_len;
25948#line 561
25949  __len = (size_t )__cil_tmp24;
25950#line 561
25951  __cil_tmp25 = (struct sk_buff  const  *)skb;
25952#line 561
25953  tmp___1 = skb_mac_header(__cil_tmp25);
25954#line 561
25955  __cil_tmp26 = (struct sk_buff  const  *)iraw_skb;
25956#line 561
25957  tmp___2 = skb_mac_header(__cil_tmp26);
25958#line 561
25959  __cil_tmp27 = (void *)tmp___2;
25960#line 561
25961  __cil_tmp28 = (void const   *)tmp___1;
25962#line 561
25963  __ret = __builtin_memcpy(__cil_tmp27, __cil_tmp28, __len);
25964#line 562
25965  iraw_skb->mac_len = skb->mac_len;
25966#line 565
25967  cp = skb->data;
25968#line 566
25969  __cil_tmp29 = skb->len;
25970#line 566
25971  len = (int )__cil_tmp29;
25972  }
25973#line 567
25974  goto ldv_34726;
25975  ldv_34725: 
25976  {
25977#line 568
25978  tmp___3 = cp;
25979#line 568
25980  cp = cp + 1;
25981#line 568
25982  __cil_tmp30 = *tmp___3;
25983#line 568
25984  __cil_tmp31 = (int )__cil_tmp30;
25985#line 568
25986  __cil_tmp32 = (u8 )__cil_tmp31;
25987#line 568
25988  c = bitrev8(__cil_tmp32);
25989  }
25990  {
25991#line 569
25992  __cil_tmp33 = (unsigned int )c;
25993#line 569
25994  if (__cil_tmp33 == 16U) {
25995    {
25996#line 570
25997    tmp___4 = skb_put(iraw_skb, 1U);
25998#line 570
25999    *tmp___4 = c;
26000    }
26001  } else {
26002
26003  }
26004  }
26005  {
26006#line 571
26007  tmp___5 = skb_put(iraw_skb, 1U);
26008#line 571
26009  *tmp___5 = c;
26010  }
26011  ldv_34726: 
26012#line 567
26013  tmp___6 = len;
26014#line 567
26015  len = len - 1;
26016#line 567
26017  if (tmp___6 != 0) {
26018#line 568
26019    goto ldv_34725;
26020  } else {
26021#line 570
26022    goto ldv_34727;
26023  }
26024  ldv_34727: 
26025  {
26026#line 573
26027  dev_kfree_skb_any(skb);
26028  }
26029#line 574
26030  return (iraw_skb);
26031}
26032}
26033#line 591 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/asyncdata.c.p"
26034int gigaset_m10x_send_skb(struct bc_state *bcs , struct sk_buff *skb ) 
26035{ struct cardstate *cs ;
26036  unsigned int len ;
26037  unsigned long flags ;
26038  raw_spinlock_t *tmp ;
26039  unsigned int __cil_tmp7 ;
26040  struct sk_buff *__cil_tmp8 ;
26041  unsigned long __cil_tmp9 ;
26042  unsigned long __cil_tmp10 ;
26043  struct device *__cil_tmp11 ;
26044  struct device  const  *__cil_tmp12 ;
26045  struct sk_buff_head *__cil_tmp13 ;
26046  spinlock_t *__cil_tmp14 ;
26047  unsigned int __cil_tmp15 ;
26048  struct tasklet_struct *__cil_tmp16 ;
26049  spinlock_t *__cil_tmp17 ;
26050
26051  {
26052#line 593
26053  cs = bcs->cs;
26054#line 594
26055  len = skb->len;
26056  {
26057#line 597
26058  __cil_tmp7 = bcs->proto2;
26059#line 597
26060  if (__cil_tmp7 == 1U) {
26061    {
26062#line 598
26063    skb = HDLC_Encode(skb);
26064    }
26065  } else {
26066    {
26067#line 600
26068    skb = iraw_encode(skb);
26069    }
26070  }
26071  }
26072  {
26073#line 601
26074  __cil_tmp8 = (struct sk_buff *)0;
26075#line 601
26076  __cil_tmp9 = (unsigned long )__cil_tmp8;
26077#line 601
26078  __cil_tmp10 = (unsigned long )skb;
26079#line 601
26080  if (__cil_tmp10 == __cil_tmp9) {
26081    {
26082#line 602
26083    __cil_tmp11 = cs->dev;
26084#line 602
26085    __cil_tmp12 = (struct device  const  *)__cil_tmp11;
26086#line 602
26087    dev_err(__cil_tmp12, "unable to allocate memory for encoding!\n");
26088    }
26089#line 604
26090    return (-12);
26091  } else {
26092
26093  }
26094  }
26095  {
26096#line 607
26097  __cil_tmp13 = & bcs->squeue;
26098#line 607
26099  skb_queue_tail(__cil_tmp13, skb);
26100#line 608
26101  __cil_tmp14 = & cs->lock;
26102#line 608
26103  tmp = spinlock_check(__cil_tmp14);
26104#line 608
26105  flags = _raw_spin_lock_irqsave(tmp);
26106  }
26107  {
26108#line 609
26109  __cil_tmp15 = cs->connected;
26110#line 609
26111  if (__cil_tmp15 != 0U) {
26112    {
26113#line 610
26114    __cil_tmp16 = & cs->write_tasklet;
26115#line 610
26116    tasklet_schedule(__cil_tmp16);
26117    }
26118  } else {
26119
26120  }
26121  }
26122  {
26123#line 611
26124  __cil_tmp17 = & cs->lock;
26125#line 611
26126  spin_unlock_irqrestore(__cil_tmp17, flags);
26127  }
26128#line 613
26129  return ((int )len);
26130}
26131}
26132#line 108 "include/linux/printk.h"
26133extern int __printk_ratelimit(char const   * ) ;
26134#line 110
26135extern bool printk_timed_ratelimit(unsigned long * , unsigned int  ) ;
26136#line 365 "include/linux/kernel.h"
26137extern char const   hex_asc[] ;
26138#line 376
26139extern int hex_to_bin(char  ) ;
26140#line 62 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/string_64.h"
26141extern char *strcpy(char * , char const   * ) ;
26142#line 27 "include/linux/string.h"
26143extern char *strncpy(char * , char const   * , __kernel_size_t  ) ;
26144#line 35 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/atomic.h"
26145__inline static void atomic_set(atomic_t *v , int i ) 
26146{ 
26147
26148  {
26149#line 37
26150  v->counter = i;
26151#line 38
26152  return;
26153}
26154}
26155#line 173 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/atomic.h"
26156__inline static int atomic_add_return(int i , atomic_t *v ) 
26157{ int __i ;
26158
26159  {
26160#line 182
26161  __i = i;
26162#line 183
26163  __asm__  volatile   (".section .smp_locks,\"a\"\n.balign 4\n.long 671f - .\n.previous\n671:\n\tlock; xaddl %0, %1": "+r" (i),
26164                       "+m" (v->counter): : "memory");
26165#line 186
26166  return (i + __i);
26167}
26168}
26169#line 205 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/arch/x86/include/asm/atomic.h"
26170__inline static int atomic_sub_return(int i , atomic_t *v ) 
26171{ int tmp ;
26172  int __cil_tmp4 ;
26173
26174  {
26175  {
26176#line 207
26177  __cil_tmp4 = - i;
26178#line 207
26179  tmp = atomic_add_return(__cil_tmp4, v);
26180  }
26181#line 207
26182  return (tmp);
26183}
26184}
26185#line 80 "include/linux/kobject.h"
26186__inline static char const   *kobject_name(struct kobject  const  *kobj ) 
26187{ char const   *__cil_tmp2 ;
26188
26189  {
26190  {
26191#line 82
26192  __cil_tmp2 = kobj->name;
26193#line 82
26194  return ((char const   *)__cil_tmp2);
26195  }
26196}
26197}
26198#line 45 "include/linux/ctype.h"
26199__inline static unsigned char __toupper(unsigned char c ) 
26200{ int __cil_tmp2 ;
26201  int __cil_tmp3 ;
26202  unsigned int __cil_tmp4 ;
26203  unsigned int __cil_tmp5 ;
26204
26205  {
26206  {
26207#line 47
26208  __cil_tmp2 = (int )_ctype[(int )c];
26209#line 47
26210  __cil_tmp3 = __cil_tmp2 & 2;
26211#line 47
26212  if (__cil_tmp3 != 0) {
26213#line 48
26214    __cil_tmp4 = (unsigned int )c;
26215#line 48
26216    __cil_tmp5 = __cil_tmp4 + 224U;
26217#line 48
26218    c = (unsigned char )__cil_tmp5;
26219  } else {
26220
26221  }
26222  }
26223#line 49
26224  return (c);
26225}
26226}
26227#line 318 "include/linux/slab.h"
26228__inline static void *kzalloc(size_t size , gfp_t flags ) 
26229{ void *tmp ;
26230  unsigned int __cil_tmp4 ;
26231
26232  {
26233  {
26234#line 320
26235  __cil_tmp4 = flags | 32768U;
26236#line 320
26237  tmp = kmalloc(size, __cil_tmp4);
26238  }
26239#line 320
26240  return (tmp);
26241}
26242}
26243#line 608 "include/linux/device.h"
26244__inline static char const   *dev_name(struct device  const  *dev ) 
26245{ char const   *tmp ;
26246  char const   *__cil_tmp3 ;
26247  unsigned long __cil_tmp4 ;
26248  char const   *__cil_tmp5 ;
26249  unsigned long __cil_tmp6 ;
26250  char const   *__cil_tmp7 ;
26251  struct kobject  const  *__cil_tmp8 ;
26252
26253  {
26254  {
26255#line 611
26256  __cil_tmp3 = (char const   * const  )0;
26257#line 611
26258  __cil_tmp4 = (unsigned long )__cil_tmp3;
26259#line 611
26260  __cil_tmp5 = dev->init_name;
26261#line 611
26262  __cil_tmp6 = (unsigned long )__cil_tmp5;
26263#line 611
26264  if (__cil_tmp6 != __cil_tmp4) {
26265    {
26266#line 612
26267    __cil_tmp7 = dev->init_name;
26268#line 612
26269    return ((char const   *)__cil_tmp7);
26270    }
26271  } else {
26272
26273  }
26274  }
26275  {
26276#line 614
26277  __cil_tmp8 = & dev->kobj;
26278#line 614
26279  tmp = kobject_name(__cil_tmp8);
26280  }
26281#line 614
26282  return (tmp);
26283}
26284}
26285#line 783
26286extern char const   *dev_driver_string(struct device  const  * ) ;
26287#line 803
26288extern int _dev_info(struct device  const  * , char const   *  , ...) ;
26289#line 493 "include/linux/skbuff.h"
26290extern struct sk_buff *__alloc_skb(unsigned int  , gfp_t  , int  , int  ) ;
26291#line 495 "include/linux/skbuff.h"
26292__inline static struct sk_buff *alloc_skb(unsigned int size , gfp_t priority ) 
26293{ struct sk_buff *tmp ;
26294
26295  {
26296  {
26297#line 498
26298  tmp = __alloc_skb(size, priority, 0, -1);
26299  }
26300#line 498
26301  return (tmp);
26302}
26303}
26304#line 1177
26305extern unsigned char *skb_push(struct sk_buff * , unsigned int  ) ;
26306#line 1185
26307extern unsigned char *skb_pull(struct sk_buff * , unsigned int  ) ;
26308#line 1198
26309extern unsigned char *__pskb_pull_tail(struct sk_buff * , int  ) ;
26310#line 1720 "include/linux/skbuff.h"
26311__inline static int __skb_linearize(struct sk_buff *skb ) 
26312{ int tmp___0 ;
26313  unsigned char *tmp___1 ;
26314  unsigned int __cil_tmp4 ;
26315  int __cil_tmp5 ;
26316  unsigned char *__cil_tmp6 ;
26317  unsigned long __cil_tmp7 ;
26318  unsigned long __cil_tmp8 ;
26319
26320  {
26321  {
26322#line 1722
26323  __cil_tmp4 = skb->data_len;
26324#line 1722
26325  __cil_tmp5 = (int )__cil_tmp4;
26326#line 1722
26327  tmp___1 = __pskb_pull_tail(skb, __cil_tmp5);
26328  }
26329  {
26330#line 1722
26331  __cil_tmp6 = (unsigned char *)0;
26332#line 1722
26333  __cil_tmp7 = (unsigned long )__cil_tmp6;
26334#line 1722
26335  __cil_tmp8 = (unsigned long )tmp___1;
26336#line 1722
26337  if (__cil_tmp8 != __cil_tmp7) {
26338#line 1722
26339    tmp___0 = 0;
26340  } else {
26341#line 1722
26342    tmp___0 = -12;
26343  }
26344  }
26345#line 1722
26346  return (tmp___0);
26347}
26348}
26349#line 1732 "include/linux/skbuff.h"
26350__inline static int skb_linearize(struct sk_buff *skb ) 
26351{ int tmp___0 ;
26352  int tmp___1 ;
26353  int tmp___2 ;
26354  struct sk_buff  const  *__cil_tmp5 ;
26355
26356  {
26357  {
26358#line 1734
26359  __cil_tmp5 = (struct sk_buff  const  *)skb;
26360#line 1734
26361  tmp___2 = skb_is_nonlinear(__cil_tmp5);
26362  }
26363#line 1734
26364  if (tmp___2 != 0) {
26365    {
26366#line 1734
26367    tmp___0 = __skb_linearize(skb);
26368#line 1734
26369    tmp___1 = tmp___0;
26370    }
26371  } else {
26372#line 1734
26373    tmp___1 = 0;
26374  }
26375#line 1734
26376  return (tmp___1);
26377}
26378}
26379#line 278 "include/linux/proc_fs.h"
26380__inline static struct proc_inode *PROC_I(struct inode  const  *inode ) 
26381{ struct inode  const  *__mptr ;
26382  struct proc_inode *__cil_tmp3 ;
26383
26384  {
26385#line 280
26386  __mptr = inode;
26387  {
26388#line 280
26389  __cil_tmp3 = (struct proc_inode *)__mptr;
26390#line 280
26391  return (__cil_tmp3 + 1152921504606846912UL);
26392  }
26393}
26394}
26395#line 283 "include/linux/proc_fs.h"
26396__inline static struct proc_dir_entry *PDE(struct inode  const  *inode ) 
26397{ struct proc_inode *tmp ;
26398
26399  {
26400  {
26401#line 285
26402  tmp = PROC_I(inode);
26403  }
26404#line 285
26405  return (tmp->pde);
26406}
26407}
26408#line 78 "include/linux/seq_file.h"
26409extern ssize_t seq_read(struct file * , char * , size_t  , loff_t * ) ;
26410#line 79
26411extern loff_t seq_lseek(struct file * , loff_t  , int  ) ;
26412#line 86
26413extern int seq_printf(struct seq_file * , char const   *  , ...) ;
26414#line 119
26415extern int single_open(struct file * , int (*)(struct seq_file * , void * ) , void * ) ;
26416#line 120
26417extern int single_release(struct inode * , struct file * ) ;
26418#line 674 "/anthill/stuff/tacas-comp/inst/current/envs/linux-3.0.1/linux-3.0.1/drivers/isdn/gigaset/gigaset.h"
26419void gigaset_skb_sent(struct bc_state *bcs , struct sk_buff *dskb ) ;
26420#line 78 "include/linux/isdn/capilli.h"
26421extern int attach_capi_ctr(struct capi_ctr * ) ;
26422#line 79
26423extern int detach_capi_ctr(struct capi_ctr * ) ;
26424#line 81
26425extern void capi_ctr_ready(struct capi_ctr * ) ;
26426#line 82
26427extern void capi_ctr_down(struct capi_ctr * ) ;
26428#line 85
26429extern void capi_ctr_handle_message(struct capi_ctr * , u16  , struct sk_buff * ) ;
26430#line 100
26431extern void register_capi_driver(struct capi_driver * ) ;
26432#line 101
26433extern void unregister_capi_driver(struct capi_driver * ) ;
26434#line 33 "include/linux/isdn/capiutil.h"
26435__inline static void capimsg_setu8(void *m , int off , __u8 val ) 
26436{ unsigned long __cil_tmp4 ;
26437  __u8 *__cil_tmp5 ;
26438  __u8 *__cil_tmp6 ;
26439
26440  {
26441#line 35
26442  __cil_tmp4 = (unsigned long )off;
26443#line 35
26444  __cil_tmp5 = (__u8 *)m;
26445#line 35
26446  __cil_tmp6 = __cil_tmp5 + __cil_tmp4;
26447#line 35
26448  *__cil_tmp6 = val;
26449#line 36
26450  return;
26451}
26452}
26453#line 38 "include/linux/isdn/capiutil.h"
26454__inline static void capimsg_setu16(void *m , int off , __u16 val ) 
26455{ unsigned long __cil_tmp4 ;
26456  __u8 *__cil_tmp5 ;
26457  __u8 *__cil_tmp6 ;
26458  unsigned long __cil_tmp7 ;
26459  unsigned long __cil_tmp8 ;
26460  __u8 *__cil_tmp9 ;
26461  __u8 *__cil_tmp10 ;
26462  int __cil_tmp11 ;
26463  int __cil_tmp12 ;
26464
26465  {
26466#line 40
26467  __cil_tmp4 = (unsigned long )off;
26468#line 40
26469  __cil_tmp5 = (__u8 *)m;
26470#line 40
26471  __cil_tmp6 = __cil_tmp5 + __cil_tmp4;
26472#line 40
26473  *__cil_tmp6 = (__u8 )val;
26474#line 41
26475  __cil_tmp7 = (unsigned long )off;
26476#line 41
26477  __cil_tmp8 = __cil_tmp7 + 1UL;
26478#line 41
26479  __cil_tmp9 = (__u8 *)m;
26480#line 41
26481  __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
26482#line 41
26483  __cil_tmp11 = (int )val;
26484#line 41
26485  __cil_tmp12 = __cil_tmp11 >> 8;
26486#line 41
26487  *__cil_tmp10 = (__u8 )__cil_tmp12;
26488#line 42
26489  return;
26490}
26491}
26492#line 44 "include/linux/isdn/capiutil.h"
26493__inline static void capimsg_setu32(void *m , int off , __u32 val ) 
26494{ unsigned long __cil_tmp4 ;
26495  __u8 *__cil_tmp5 ;
26496  __u8 *__cil_tmp6 ;
26497  unsigned long __cil_tmp7 ;
26498  unsigned long __cil_tmp8 ;
26499  __u8 *__cil_tmp9 ;
26500  __u8 *__cil_tmp10 ;
26501  __u32 __cil_tmp11 ;
26502  unsigned long __cil_tmp12 ;
26503  unsigned long __cil_tmp13 ;
26504  __u8 *__cil_tmp14 ;
26505  __u8 *__cil_tmp15 ;
26506  __u32 __cil_tmp16 ;
26507  unsigned long __cil_tmp17 ;
26508  unsigned long __cil_tmp18 ;
26509  __u8 *__cil_tmp19 ;
26510  __u8 *__cil_tmp20 ;
26511  __u32 __cil_tmp21 ;
26512
26513  {
26514#line 46
26515  __cil_tmp4 = (unsigned long )off;
26516#line 46
26517  __cil_tmp5 = (__u8 *)m;
26518#line 46
26519  __cil_tmp6 = __cil_tmp5 + __cil_tmp4;
26520#line 46
26521  *__cil_tmp6 = (__u8 )val;
26522#line 47
26523  __cil_tmp7 = (unsigned long )off;
26524#line 47
26525  __cil_tmp8 = __cil_tmp7 + 1UL;
26526#line 47
26527  __cil_tmp9 = (__u8 *)m;
26528#line 47
26529  __cil_tmp10 = __cil_tmp9 + __cil_tmp8;
26530#line 47
26531  __cil_tmp11 = val >> 8;
26532#line 47
26533  *__cil_tmp10 = (__u8 )__cil_tmp11;
26534#line 48
26535  __cil_tmp12 = (unsigned long )off;
26536#line 48
26537  __cil_tmp13 = __cil_tmp12 + 2UL;
26538#line 48
26539  __cil_tmp14 = (__u8 *)m;
26540#line 48
26541  __cil_tmp15 = __cil_tmp14 + __cil_tmp13;
26542#line 48
26543  __cil_tmp16 = val >> 16;
26544#line 48
26545  *__cil_tmp15 = (__u8 )__cil_tmp16;
26546#line 49
26547  __cil_tmp17 = (unsigned long )off;
26548#line 49
26549  __cil_tmp18 = __cil_tmp17 + 3UL;
26550#line 49
26551  __cil_tmp19 = (__u8 *)m;
26552#line 49
26553  __cil_tmp20 = __cil_tmp19 + __cil_tmp18;
26554#line 49
26555  __cil_tmp21 = val >> 24;
26556#line 49
26557  *__cil_tmp20 = (__u8 )__cil_tmp21;
26558#line 50
26559  return;
26560}
26561}
26562#line 150
26563extern unsigned int capi_cmsg2message(_cmsg * , __u8 * ) ;
26564#line 156
26565extern unsigned int capi_message2cmsg(_cmsg * , __u8 * ) ;
26566#line 163
26567extern unsigned int capi_cmsg_header(_cmsg * , __u16  , __u8  , __u8  , __u16  , __u32  ) ;
26568#line 178
26569extern char *capi_cmd2str(__u8  , __u8  ) ;
26570#line 190
26571extern void cdebbuf_free(_cdebbuf * ) ;
26572#line 194
26573extern _cdebbuf *capi_cmsg2str(_cmsg * ) ;
26574#line 199 "include/linux/isdn/capiutil.h"
26575__inline static void capi_cmsg_answer(_cmsg *cmsg ) 
26576{ __u8 __cil_tmp2 ;
26577  unsigned int __cil_tmp3 ;
26578  unsigned int __cil_tmp4 ;
26579
26580  {
26581#line 201
26582  __cil_tmp2 = cmsg->Subcommand;
26583#line 201
26584  __cil_tmp3 = (unsigned int )__cil_tmp2;
26585#line 201
26586  __cil_tmp4 = __cil_tmp3 | 1U;
26587#line 201
26588  cmsg->Subcommand = (__u8 )__cil_tmp4;
26589#line 202
26590  return;
26591}
26592}
26593#line 117 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26594static struct __anonstruct_cip2bchlc_198 cip2bchlc[29U]  = 
26595#line 117 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26596  {      {(u8 *)0, (u8 *)0}, 
26597        {(u8 *)"8090A3", (u8 *)0}, 
26598        {(u8 *)"8890", (u8 *)0}, 
26599        {(u8 *)"8990", (u8 *)0}, 
26600        {(u8 *)"9090A3", (u8 *)0}, 
26601        {(u8 *)"9190", (u8 *)0}, 
26602        {(u8 *)"9890", (u8 *)0}, 
26603        {(u8 *)"88C0C6E6", (u8 *)0}, 
26604        {(u8 *)"8890218F", (u8 *)0}, 
26605        {(u8 *)"9190A5", (u8 *)0}, 
26606        {(u8 *)0, (u8 *)0}, 
26607        {(u8 *)0, (u8 *)0}, 
26608        {(u8 *)0, (u8 *)0}, 
26609        {(u8 *)0, (u8 *)0}, 
26610        {(u8 *)0, (u8 *)0}, 
26611        {(u8 *)0, (u8 *)0}, 
26612        {(u8 *)"8090A3", (u8 *)"9181"}, 
26613        {(u8 *)"9090A3", (u8 *)"9184"}, 
26614        {(u8 *)"8890", (u8 *)"91A1"}, 
26615        {(u8 *)"8890", (u8 *)"91A4"}, 
26616        {(u8 *)"8890", (u8 *)"91A8"}, 
26617        {(u8 *)"8890", (u8 *)"91B1"}, 
26618        {(u8 *)"8890", (u8 *)"91B2"}, 
26619        {(u8 *)"8890", (u8 *)"91B5"}, 
26620        {(u8 *)"8890", (u8 *)"91B8"}, 
26621        {(u8 *)"8890", (u8 *)"91C1"}, 
26622        {(u8 *)"9190A5", (u8 *)"9181"}, 
26623        {(u8 *)"9190A5", (u8 *)"916001"}, 
26624        {(u8 *)"8890", (u8 *)"916002"}};
26625#line 173 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26626__inline static void ignore_cstruct_param(struct cardstate *cs , _cstruct param ,
26627                                          char *msgname , char *paramname ) 
26628{ _cstruct __cil_tmp5 ;
26629  unsigned long __cil_tmp6 ;
26630  unsigned long __cil_tmp7 ;
26631  __u8 __cil_tmp8 ;
26632  unsigned int __cil_tmp9 ;
26633  struct device *__cil_tmp10 ;
26634  struct device  const  *__cil_tmp11 ;
26635
26636  {
26637  {
26638#line 176
26639  __cil_tmp5 = (_cstruct )0;
26640#line 176
26641  __cil_tmp6 = (unsigned long )__cil_tmp5;
26642#line 176
26643  __cil_tmp7 = (unsigned long )param;
26644#line 176
26645  if (__cil_tmp7 != __cil_tmp6) {
26646    {
26647#line 176
26648    __cil_tmp8 = *param;
26649#line 176
26650    __cil_tmp9 = (unsigned int )__cil_tmp8;
26651#line 176
26652    if (__cil_tmp9 != 0U) {
26653      {
26654#line 177
26655      __cil_tmp10 = cs->dev;
26656#line 177
26657      __cil_tmp11 = (struct device  const  *)__cil_tmp10;
26658#line 177
26659      dev_warn(__cil_tmp11, "%s: ignoring unsupported parameter: %s\n", msgname, paramname);
26660      }
26661    } else {
26662
26663    }
26664    }
26665  } else {
26666
26667  }
26668  }
26669#line 178
26670  return;
26671}
26672}
26673#line 186 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26674static int encode_ie(char *in , u8 *out , int maxlen ) 
26675{ int l ;
26676  int tmp ;
26677  int tmp___0 ;
26678  int __cil_tmp7 ;
26679  int __cil_tmp8 ;
26680  int __cil_tmp9 ;
26681  int __cil_tmp10 ;
26682  char __cil_tmp11 ;
26683  int __cil_tmp12 ;
26684  char __cil_tmp13 ;
26685  char *__cil_tmp14 ;
26686  char __cil_tmp15 ;
26687  int __cil_tmp16 ;
26688  char __cil_tmp17 ;
26689  unsigned long __cil_tmp18 ;
26690  u8 *__cil_tmp19 ;
26691  u8 __cil_tmp20 ;
26692  int __cil_tmp21 ;
26693  u8 __cil_tmp22 ;
26694  int __cil_tmp23 ;
26695  int __cil_tmp24 ;
26696  int __cil_tmp25 ;
26697  char __cil_tmp26 ;
26698  signed char __cil_tmp27 ;
26699  int __cil_tmp28 ;
26700
26701  {
26702#line 188
26703  l = 0;
26704#line 189
26705  goto ldv_35214;
26706  ldv_35213: ;
26707  {
26708#line 190
26709  __cil_tmp7 = (int )_ctype[(int )((unsigned char )*in)];
26710#line 190
26711  __cil_tmp8 = __cil_tmp7 & 68;
26712#line 190
26713  if (__cil_tmp8 == 0) {
26714#line 191
26715    return (-1);
26716  } else {
26717    {
26718#line 190
26719    __cil_tmp9 = (int )_ctype[(int )((unsigned char )*(in + 1UL))];
26720#line 190
26721    __cil_tmp10 = __cil_tmp9 & 68;
26722#line 190
26723    if (__cil_tmp10 == 0) {
26724#line 191
26725      return (-1);
26726    } else
26727#line 190
26728    if (l >= maxlen) {
26729#line 191
26730      return (-1);
26731    } else {
26732
26733    }
26734    }
26735  }
26736  }
26737  {
26738#line 192
26739  l = l + 1;
26740#line 192
26741  __cil_tmp11 = *in;
26742#line 192
26743  __cil_tmp12 = (int )__cil_tmp11;
26744#line 192
26745  __cil_tmp13 = (char )__cil_tmp12;
26746#line 192
26747  tmp = hex_to_bin(__cil_tmp13);
26748#line 192
26749  __cil_tmp14 = in + 1UL;
26750#line 192
26751  __cil_tmp15 = *__cil_tmp14;
26752#line 192
26753  __cil_tmp16 = (int )__cil_tmp15;
26754#line 192
26755  __cil_tmp17 = (char )__cil_tmp16;
26756#line 192
26757  tmp___0 = hex_to_bin(__cil_tmp17);
26758#line 192
26759  __cil_tmp18 = (unsigned long )l;
26760#line 192
26761  __cil_tmp19 = out + __cil_tmp18;
26762#line 192
26763  __cil_tmp20 = (u8 )tmp___0;
26764#line 192
26765  __cil_tmp21 = (int )__cil_tmp20;
26766#line 192
26767  __cil_tmp22 = (u8 )tmp;
26768#line 192
26769  __cil_tmp23 = (int )__cil_tmp22;
26770#line 192
26771  __cil_tmp24 = __cil_tmp23 << 4U;
26772#line 192
26773  __cil_tmp25 = __cil_tmp24 + __cil_tmp21;
26774#line 192
26775  *__cil_tmp19 = (u8 )__cil_tmp25;
26776#line 193
26777  in = in + 2UL;
26778  }
26779  ldv_35214: ;
26780  {
26781#line 189
26782  __cil_tmp26 = *in;
26783#line 189
26784  __cil_tmp27 = (signed char )__cil_tmp26;
26785#line 189
26786  __cil_tmp28 = (int )__cil_tmp27;
26787#line 189
26788  if (__cil_tmp28 != 0) {
26789#line 190
26790    goto ldv_35213;
26791  } else {
26792#line 192
26793    goto ldv_35215;
26794  }
26795  }
26796  ldv_35215: 
26797#line 195
26798  *out = (u8 )l;
26799#line 196
26800  return (l);
26801}
26802}
26803#line 203 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26804static void decode_ie(u8 *in , char *out ) 
26805{ int i ;
26806  char *tmp ;
26807  unsigned char tmp___0 ;
26808  char *tmp___1 ;
26809  unsigned char tmp___2 ;
26810  int tmp___3 ;
26811  u8 __cil_tmp9 ;
26812  unsigned char __cil_tmp10 ;
26813  int __cil_tmp11 ;
26814  unsigned char __cil_tmp12 ;
26815  unsigned char __cil_tmp13 ;
26816  int __cil_tmp14 ;
26817  unsigned char __cil_tmp15 ;
26818
26819  {
26820#line 205
26821  __cil_tmp9 = *in;
26822#line 205
26823  i = (int )__cil_tmp9;
26824#line 206
26825  goto ldv_35222;
26826  ldv_35221: 
26827  {
26828#line 208
26829  tmp = out;
26830#line 208
26831  out = out + 1;
26832#line 208
26833  in = in + 1;
26834#line 208
26835  __cil_tmp10 = (unsigned char )hex_asc[(int )*in >> 4];
26836#line 208
26837  __cil_tmp11 = (int )__cil_tmp10;
26838#line 208
26839  __cil_tmp12 = (unsigned char )__cil_tmp11;
26840#line 208
26841  tmp___0 = __toupper(__cil_tmp12);
26842#line 208
26843  *tmp = (char )tmp___0;
26844#line 209
26845  tmp___1 = out;
26846#line 209
26847  out = out + 1;
26848#line 209
26849  __cil_tmp13 = (unsigned char )hex_asc[(int )*in & 15];
26850#line 209
26851  __cil_tmp14 = (int )__cil_tmp13;
26852#line 209
26853  __cil_tmp15 = (unsigned char )__cil_tmp14;
26854#line 209
26855  tmp___2 = __toupper(__cil_tmp15);
26856#line 209
26857  *tmp___1 = (char )tmp___2;
26858  }
26859  ldv_35222: 
26860#line 206
26861  tmp___3 = i;
26862#line 206
26863  i = i - 1;
26864#line 206
26865  if (tmp___3 > 0) {
26866#line 207
26867    goto ldv_35221;
26868  } else {
26869#line 209
26870    goto ldv_35223;
26871  }
26872  ldv_35223: ;
26873#line 211
26874  return;
26875}
26876}
26877#line 217 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26878__inline static struct gigaset_capi_appl *get_appl(struct gigaset_capi_ctr *iif ,
26879                                                   u16 appl ) 
26880{ struct gigaset_capi_appl *ap ;
26881  struct list_head  const  *__mptr ;
26882  struct list_head  const  *__mptr___0 ;
26883  struct list_head *__cil_tmp6 ;
26884  int __cil_tmp7 ;
26885  u16 __cil_tmp8 ;
26886  int __cil_tmp9 ;
26887  struct list_head *__cil_tmp10 ;
26888  struct list_head *__cil_tmp11 ;
26889  unsigned long __cil_tmp12 ;
26890  struct list_head *__cil_tmp13 ;
26891  unsigned long __cil_tmp14 ;
26892
26893  {
26894#line 221
26895  __cil_tmp6 = iif->appls.next;
26896#line 221
26897  __mptr = (struct list_head  const  *)__cil_tmp6;
26898#line 221
26899  ap = (struct gigaset_capi_appl *)__mptr;
26900#line 221
26901  goto ldv_35234;
26902  ldv_35233: ;
26903  {
26904#line 222
26905  __cil_tmp7 = (int )appl;
26906#line 222
26907  __cil_tmp8 = ap->id;
26908#line 222
26909  __cil_tmp9 = (int )__cil_tmp8;
26910#line 222
26911  if (__cil_tmp9 == __cil_tmp7) {
26912#line 223
26913    return (ap);
26914  } else {
26915
26916  }
26917  }
26918#line 221
26919  __cil_tmp10 = ap->ctrlist.next;
26920#line 221
26921  __mptr___0 = (struct list_head  const  *)__cil_tmp10;
26922#line 221
26923  ap = (struct gigaset_capi_appl *)__mptr___0;
26924  ldv_35234: ;
26925  {
26926#line 221
26927  __cil_tmp11 = & iif->appls;
26928#line 221
26929  __cil_tmp12 = (unsigned long )__cil_tmp11;
26930#line 221
26931  __cil_tmp13 = & ap->ctrlist;
26932#line 221
26933  __cil_tmp14 = (unsigned long )__cil_tmp13;
26934#line 221
26935  if (__cil_tmp14 != __cil_tmp12) {
26936#line 222
26937    goto ldv_35233;
26938  } else {
26939#line 224
26940    goto ldv_35235;
26941  }
26942  }
26943  ldv_35235: ;
26944#line 224
26945  return ((struct gigaset_capi_appl *)0);
26946}
26947}
26948#line 230 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
26949__inline static void dump_cmsg(enum debuglevel level , char const   *tag , _cmsg *p ) 
26950{ _cdebbuf *cdb ;
26951  long tmp ;
26952  char *tmp___0 ;
26953  long tmp___1 ;
26954  unsigned int __cil_tmp8 ;
26955  unsigned int __cil_tmp9 ;
26956  unsigned int __cil_tmp10 ;
26957  _cdebbuf *__cil_tmp11 ;
26958  unsigned long __cil_tmp12 ;
26959  unsigned long __cil_tmp13 ;
26960  unsigned int __cil_tmp14 ;
26961  unsigned int __cil_tmp15 ;
26962  unsigned int __cil_tmp16 ;
26963  int __cil_tmp17 ;
26964  long __cil_tmp18 ;
26965  __u16 __cil_tmp19 ;
26966  int __cil_tmp20 ;
26967  u_char *__cil_tmp21 ;
26968  unsigned int __cil_tmp22 ;
26969  unsigned int __cil_tmp23 ;
26970  unsigned int __cil_tmp24 ;
26971  int __cil_tmp25 ;
26972  long __cil_tmp26 ;
26973  __u8 __cil_tmp27 ;
26974  int __cil_tmp28 ;
26975  __u8 __cil_tmp29 ;
26976  __u8 __cil_tmp30 ;
26977  int __cil_tmp31 ;
26978  __u8 __cil_tmp32 ;
26979  __u16 __cil_tmp33 ;
26980  int __cil_tmp34 ;
26981
26982  {
26983  {
26984#line 235
26985  __cil_tmp8 = (unsigned int )level;
26986#line 235
26987  __cil_tmp9 = (unsigned int )gigaset_debuglevel;
26988#line 235
26989  __cil_tmp10 = __cil_tmp9 & __cil_tmp8;
26990#line 235
26991  if (__cil_tmp10 == 0U) {
26992#line 236
26993    return;
26994  } else {
26995
26996  }
26997  }
26998  {
26999#line 238
27000  cdb = capi_cmsg2str(p);
27001  }
27002  {
27003#line 239
27004  __cil_tmp11 = (_cdebbuf *)0;
27005#line 239
27006  __cil_tmp12 = (unsigned long )__cil_tmp11;
27007#line 239
27008  __cil_tmp13 = (unsigned long )cdb;
27009#line 239
27010  if (__cil_tmp13 != __cil_tmp12) {
27011    {
27012#line 240
27013    __cil_tmp14 = (unsigned int )level;
27014#line 240
27015    __cil_tmp15 = (unsigned int )gigaset_debuglevel;
27016#line 240
27017    __cil_tmp16 = __cil_tmp15 & __cil_tmp14;
27018#line 240
27019    __cil_tmp17 = __cil_tmp16 != 0U;
27020#line 240
27021    __cil_tmp18 = (long )__cil_tmp17;
27022#line 240
27023    tmp = __builtin_expect(__cil_tmp18, 0L);
27024    }
27025#line 240
27026    if (tmp != 0L) {
27027      {
27028#line 240
27029      __cil_tmp19 = p->ApplId;
27030#line 240
27031      __cil_tmp20 = (int )__cil_tmp19;
27032#line 240
27033      __cil_tmp21 = cdb->buf;
27034#line 240
27035      printk("<7>gigaset: %s: [%d] %s\n", tag, __cil_tmp20, __cil_tmp21);
27036      }
27037    } else {
27038
27039    }
27040    {
27041#line 241
27042    cdebbuf_free(cdb);
27043    }
27044  } else {
27045    {
27046#line 243
27047    __cil_tmp22 = (unsigned int )level;
27048#line 243
27049    __cil_tmp23 = (unsigned int )gigaset_debuglevel;
27050#line 243
27051    __cil_tmp24 = __cil_tmp23 & __cil_tmp22;
27052#line 243
27053    __cil_tmp25 = __cil_tmp24 != 0U;
27054#line 243
27055    __cil_tmp26 = (long )__cil_tmp25;
27056#line 243
27057    tmp___1 = __builtin_expect(__cil_tmp26, 0L);
27058    }
27059#line 243
27060    if (tmp___1 != 0L) {
27061      {
27062#line 243
27063      __cil_tmp27 = p->Command;
27064#line 243
27065      __cil_tmp28 = (int )__cil_tmp27;
27066#line 243
27067      __cil_tmp29 = (__u8 )__cil_tmp28;
27068#line 243
27069      __cil_tmp30 = p->Subcommand;
27070#line 243
27071      __cil_tmp31 = (int )__cil_tmp30;
27072#line 243
27073      __cil_tmp32 = (__u8 )__cil_tmp31;
27074#line 243
27075      tmp___0 = capi_cmd2str(__cil_tmp29, __cil_tmp32);
27076#line 243
27077      __cil_tmp33 = p->ApplId;
27078#line 243
27079      __cil_tmp34 = (int )__cil_tmp33;
27080#line 243
27081      printk("<7>gigaset: %s: [%d] %s\n", tag, __cil_tmp34, tmp___0);
27082      }
27083    } else {
27084
27085    }
27086  }
27087  }
27088#line 244
27089  return;
27090}
27091}
27092#line 249 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
27093__inline static void dump_rawmsg(enum debuglevel level , char const   *tag , unsigned char *data ) 
27094{ char *dbgline ;
27095  int i ;
27096  int l ;
27097  long tmp ;
27098  long tmp___0 ;
27099  void *tmp___1 ;
27100  long tmp___2 ;
27101  long tmp___3 ;
27102  void *tmp___4 ;
27103  long tmp___5 ;
27104  unsigned int __cil_tmp14 ;
27105  unsigned int __cil_tmp15 ;
27106  unsigned int __cil_tmp16 ;
27107  unsigned char *__cil_tmp17 ;
27108  unsigned char __cil_tmp18 ;
27109  int __cil_tmp19 ;
27110  int __cil_tmp20 ;
27111  unsigned char __cil_tmp21 ;
27112  int __cil_tmp22 ;
27113  unsigned int __cil_tmp23 ;
27114  unsigned int __cil_tmp24 ;
27115  unsigned int __cil_tmp25 ;
27116  int __cil_tmp26 ;
27117  long __cil_tmp27 ;
27118  unsigned int __cil_tmp28 ;
27119  unsigned int __cil_tmp29 ;
27120  unsigned int __cil_tmp30 ;
27121  int __cil_tmp31 ;
27122  long __cil_tmp32 ;
27123  unsigned char *__cil_tmp33 ;
27124  unsigned char __cil_tmp34 ;
27125  int __cil_tmp35 ;
27126  unsigned char *__cil_tmp36 ;
27127  unsigned char __cil_tmp37 ;
27128  int __cil_tmp38 ;
27129  unsigned char *__cil_tmp39 ;
27130  unsigned char __cil_tmp40 ;
27131  int __cil_tmp41 ;
27132  int __cil_tmp42 ;
27133  unsigned char *__cil_tmp43 ;
27134  unsigned char __cil_tmp44 ;
27135  int __cil_tmp45 ;
27136  int __cil_tmp46 ;
27137  unsigned char *__cil_tmp47 ;
27138  unsigned char __cil_tmp48 ;
27139  int __cil_tmp49 ;
27140  int __cil_tmp50 ;
27141  unsigned char *__cil_tmp51 ;
27142  unsigned char __cil_tmp52 ;
27143  int __cil_tmp53 ;
27144  int __cil_tmp54 ;
27145  unsigned char *__cil_tmp55 ;
27146  unsigned char __cil_tmp56 ;
27147  int __cil_tmp57 ;
27148  int __cil_tmp58 ;
27149  unsigned char *__cil_tmp59 ;
27150  unsigned char __cil_tmp60 ;
27151  int __cil_tmp61 ;
27152  int __cil_tmp62 ;
27153  unsigned char *__cil_tmp63 ;
27154  unsigned char __cil_tmp64 ;
27155  int __cil_tmp65 ;
27156  int __cil_tmp66 ;
27157  unsigned char *__cil_tmp67 ;
27158  unsigned char __cil_tmp68 ;
27159  int __cil_tmp69 ;
27160  int __cil_tmp70 ;
27161  int __cil_tmp71 ;
27162  int __cil_tmp72 ;
27163  int __cil_tmp73 ;
27164  size_t __cil_tmp74 ;
27165  char *__cil_tmp75 ;
27166  unsigned long __cil_tmp76 ;
27167  unsigned long __cil_tmp77 ;
27168  int __cil_tmp78 ;
27169  unsigned long __cil_tmp79 ;
27170  char *__cil_tmp80 ;
27171  int __cil_tmp81 ;
27172  unsigned long __cil_tmp82 ;
27173  unsigned long __cil_tmp83 ;
27174  char *__cil_tmp84 ;
27175  int __cil_tmp85 ;
27176  unsigned long __cil_tmp86 ;
27177  unsigned long __cil_tmp87 ;
27178  char *__cil_tmp88 ;
27179  int __cil_tmp89 ;
27180  unsigned long __cil_tmp90 ;
27181  unsigned long __cil_tmp91 ;
27182  char *__cil_tmp92 ;
27183  unsigned int __cil_tmp93 ;
27184  unsigned int __cil_tmp94 ;
27185  unsigned int __cil_tmp95 ;
27186  int __cil_tmp96 ;
27187  long __cil_tmp97 ;
27188  void const   *__cil_tmp98 ;
27189  unsigned char *__cil_tmp99 ;
27190  unsigned char __cil_tmp100 ;
27191  unsigned int __cil_tmp101 ;
27192  unsigned char *__cil_tmp102 ;
27193  unsigned char __cil_tmp103 ;
27194  unsigned int __cil_tmp104 ;
27195  unsigned char *__cil_tmp105 ;
27196  unsigned char __cil_tmp106 ;
27197  unsigned int __cil_tmp107 ;
27198  unsigned char *__cil_tmp108 ;
27199  unsigned char __cil_tmp109 ;
27200  int __cil_tmp110 ;
27201  int __cil_tmp111 ;
27202  unsigned char *__cil_tmp112 ;
27203  unsigned char __cil_tmp113 ;
27204  int __cil_tmp114 ;
27205  unsigned int __cil_tmp115 ;
27206  unsigned int __cil_tmp116 ;
27207  unsigned int __cil_tmp117 ;
27208  int __cil_tmp118 ;
27209  long __cil_tmp119 ;
27210  int __cil_tmp120 ;
27211  int __cil_tmp121 ;
27212  size_t __cil_tmp122 ;
27213  char *__cil_tmp123 ;
27214  unsigned long __cil_tmp124 ;
27215  unsigned long __cil_tmp125 ;
27216  unsigned char *__cil_tmp126 ;
27217  unsigned char __cil_tmp127 ;
27218  int __cil_tmp128 ;
27219  int __cil_tmp129 ;
27220  unsigned char __cil_tmp130 ;
27221  int __cil_tmp131 ;
27222  int __cil_tmp132 ;
27223  unsigned long __cil_tmp133 ;
27224  int __cil_tmp134 ;
27225  unsigned long __cil_tmp135 ;
27226  char *__cil_tmp136 ;
27227  int __cil_tmp137 ;
27228  unsigned long __cil_tmp138 ;
27229  unsigned long __cil_tmp139 ;
27230  char *__cil_tmp140 ;
27231  int __cil_tmp141 ;
27232  unsigned long __cil_tmp142 ;
27233  unsigned long __cil_tmp143 ;
27234  char *__cil_tmp144 ;
27235  int __cil_tmp145 ;
27236  unsigned long __cil_tmp146 ;
27237  unsigned long __cil_tmp147 ;
27238  char *__cil_tmp148 ;
27239  unsigned int __cil_tmp149 ;
27240  unsigned int __cil_tmp150 ;
27241  unsigned int __cil_tmp151 ;
27242  int __cil_tmp152 ;
27243  long __cil_tmp153 ;
27244  void const   *__cil_tmp154 ;
27245
27246  {
27247  {
27248#line 256
27249  __cil_tmp14 = (unsigned int )level;
27250#line 256
27251  __cil_tmp15 = (unsigned int )gigaset_debuglevel;
27252#line 256
27253  __cil_tmp16 = __cil_tmp15 & __cil_tmp14;
27254#line 256
27255  if (__cil_tmp16 == 0U) {
27256#line 257
27257    return;
27258  } else {
27259
27260  }
27261  }
27262#line 259
27263  __cil_tmp17 = data + 1UL;
27264#line 259
27265  __cil_tmp18 = *__cil_tmp17;
27266#line 259
27267  __cil_tmp19 = (int )__cil_tmp18;
27268#line 259
27269  __cil_tmp20 = __cil_tmp19 << 8;
27270#line 259
27271  __cil_tmp21 = *data;
27272#line 259
27273  __cil_tmp22 = (int )__cil_tmp21;
27274#line 259
27275  l = __cil_tmp22 | __cil_tmp20;
27276#line 260
27277  if (l <= 11) {
27278    {
27279#line 261
27280    __cil_tmp23 = (unsigned int )level;
27281#line 261
27282    __cil_tmp24 = (unsigned int )gigaset_debuglevel;
27283#line 261
27284    __cil_tmp25 = __cil_tmp24 & __cil_tmp23;
27285#line 261
27286    __cil_tmp26 = __cil_tmp25 != 0U;
27287#line 261
27288    __cil_tmp27 = (long )__cil_tmp26;
27289#line 261
27290    tmp = __builtin_expect(__cil_tmp27, 0L);
27291    }
27292#line 261
27293    if (tmp != 0L) {
27294      {
27295#line 261
27296      printk("<7>gigaset: %s: ??? LEN=%04d\n", tag, l);
27297      }
27298    } else {
27299
27300    }
27301#line 262
27302    return;
27303  } else {
27304
27305  }
27306  {
27307#line 264
27308  __cil_tmp28 = (unsigned int )level;
27309#line 264
27310  __cil_tmp29 = (unsigned int )gigaset_debuglevel;
27311#line 264
27312  __cil_tmp30 = __cil_tmp29 & __cil_tmp28;
27313#line 264
27314  __cil_tmp31 = __cil_tmp30 != 0U;
27315#line 264
27316  __cil_tmp32 = (long )__cil_tmp31;
27317#line 264
27318  tmp___0 = __builtin_expect(__cil_tmp32, 0L);
27319  }
27320#line 264
27321  if (tmp___0 != 0L) {
27322    {
27323#line 264
27324    __cil_tmp33 = data + 4UL;
27325#line 264
27326    __cil_tmp34 = *__cil_tmp33;
27327#line 264
27328    __cil_tmp35 = (int )__cil_tmp34;
27329#line 264
27330    __cil_tmp36 = data + 5UL;
27331#line 264
27332    __cil_tmp37 = *__cil_tmp36;
27333#line 264
27334    __cil_tmp38 = (int )__cil_tmp37;
27335#line 264
27336    __cil_tmp39 = data + 3UL;
27337#line 264
27338    __cil_tmp40 = *__cil_tmp39;
27339#line 264
27340    __cil_tmp41 = (int )__cil_tmp40;
27341#line 264
27342    __cil_tmp42 = __cil_tmp41 << 8;
27343#line 264
27344    __cil_tmp43 = data + 2UL;
27345#line 264
27346    __cil_tmp44 = *__cil_tmp43;
27347#line 264
27348    __cil_tmp45 = (int )__cil_tmp44;
27349#line 264
27350    __cil_tmp46 = __cil_tmp45 | __cil_tmp42;
27351#line 264
27352    __cil_tmp47 = data + 7UL;
27353#line 264
27354    __cil_tmp48 = *__cil_tmp47;
27355#line 264
27356    __cil_tmp49 = (int )__cil_tmp48;
27357#line 264
27358    __cil_tmp50 = __cil_tmp49 << 8;
27359#line 264
27360    __cil_tmp51 = data + 6UL;
27361#line 264
27362    __cil_tmp52 = *__cil_tmp51;
27363#line 264
27364    __cil_tmp53 = (int )__cil_tmp52;
27365#line 264
27366    __cil_tmp54 = __cil_tmp53 | __cil_tmp50;
27367#line 264
27368    __cil_tmp55 = data + 11UL;
27369#line 264
27370    __cil_tmp56 = *__cil_tmp55;
27371#line 264
27372    __cil_tmp57 = (int )__cil_tmp56;
27373#line 264
27374    __cil_tmp58 = __cil_tmp57 << 24;
27375#line 264
27376    __cil_tmp59 = data + 10UL;
27377#line 264
27378    __cil_tmp60 = *__cil_tmp59;
27379#line 264
27380    __cil_tmp61 = (int )__cil_tmp60;
27381#line 264
27382    __cil_tmp62 = __cil_tmp61 << 16;
27383#line 264
27384    __cil_tmp63 = data + 9UL;
27385#line 264
27386    __cil_tmp64 = *__cil_tmp63;
27387#line 264
27388    __cil_tmp65 = (int )__cil_tmp64;
27389#line 264
27390    __cil_tmp66 = __cil_tmp65 << 8;
27391#line 264
27392    __cil_tmp67 = data + 8UL;
27393#line 264
27394    __cil_tmp68 = *__cil_tmp67;
27395#line 264
27396    __cil_tmp69 = (int )__cil_tmp68;
27397#line 264
27398    __cil_tmp70 = __cil_tmp69 | __cil_tmp66;
27399#line 264
27400    __cil_tmp71 = __cil_tmp70 | __cil_tmp62;
27401#line 264
27402    __cil_tmp72 = __cil_tmp71 | __cil_tmp58;
27403#line 264
27404    printk("<7>gigaset: %s: 0x%02x:0x%02x: ID=%03d #0x%04x LEN=%04d NCCI=0x%x\n",
27405           tag, __cil_tmp35, __cil_tmp38, __cil_tmp46, __cil_tmp54, l, __cil_tmp72);
27406    }
27407  } else {
27408
27409  }
27410  {
27411#line 268
27412  l = l + -12;
27413#line 269
27414  __cil_tmp73 = l * 3;
27415#line 269
27416  __cil_tmp74 = (size_t )__cil_tmp73;
27417#line 269
27418  tmp___1 = kmalloc(__cil_tmp74, 32U);
27419#line 269
27420  dbgline = (char *)tmp___1;
27421  }
27422  {
27423#line 270
27424  __cil_tmp75 = (char *)0;
27425#line 270
27426  __cil_tmp76 = (unsigned long )__cil_tmp75;
27427#line 270
27428  __cil_tmp77 = (unsigned long )dbgline;
27429#line 270
27430  if (__cil_tmp77 == __cil_tmp76) {
27431#line 271
27432    return;
27433  } else {
27434
27435  }
27436  }
27437#line 272
27438  i = 0;
27439#line 272
27440  goto ldv_35251;
27441  ldv_35250: 
27442#line 273
27443  __cil_tmp78 = i * 3;
27444#line 273
27445  __cil_tmp79 = (unsigned long )__cil_tmp78;
27446#line 273
27447  __cil_tmp80 = dbgline + __cil_tmp79;
27448#line 273
27449  *__cil_tmp80 = (char )hex_asc[(int )*(data + (unsigned long )(i + 12)) >> 4];
27450#line 274
27451  __cil_tmp81 = i * 3;
27452#line 274
27453  __cil_tmp82 = (unsigned long )__cil_tmp81;
27454#line 274
27455  __cil_tmp83 = __cil_tmp82 + 1UL;
27456#line 274
27457  __cil_tmp84 = dbgline + __cil_tmp83;
27458#line 274
27459  *__cil_tmp84 = (char )hex_asc[(int )*(data + (unsigned long )(i + 12)) & 15];
27460#line 275
27461  __cil_tmp85 = i * 3;
27462#line 275
27463  __cil_tmp86 = (unsigned long )__cil_tmp85;
27464#line 275
27465  __cil_tmp87 = __cil_tmp86 + 2UL;
27466#line 275
27467  __cil_tmp88 = dbgline + __cil_tmp87;
27468#line 275
27469  *__cil_tmp88 = (char)32;
27470#line 272
27471  i = i + 1;
27472  ldv_35251: ;
27473#line 272
27474  if (i < l) {
27475#line 273
27476    goto ldv_35250;
27477  } else {
27478#line 275
27479    goto ldv_35252;
27480  }
27481  ldv_35252: 
27482  {
27483#line 277
27484  __cil_tmp89 = l * 3;
27485#line 277
27486  __cil_tmp90 = (unsigned long )__cil_tmp89;
27487#line 277
27488  __cil_tmp91 = __cil_tmp90 + 1152921504606846975UL;
27489#line 277
27490  __cil_tmp92 = dbgline + __cil_tmp91;
27491#line 277
27492  *__cil_tmp92 = (char)0;
27493#line 278
27494  __cil_tmp93 = (unsigned int )level;
27495#line 278
27496  __cil_tmp94 = (unsigned int )gigaset_debuglevel;
27497#line 278
27498  __cil_tmp95 = __cil_tmp94 & __cil_tmp93;
27499#line 278
27500  __cil_tmp96 = __cil_tmp95 != 0U;
27501#line 278
27502  __cil_tmp97 = (long )__cil_tmp96;
27503#line 278
27504  tmp___2 = __builtin_expect(__cil_tmp97, 0L);
27505  }
27506#line 278
27507  if (tmp___2 != 0L) {
27508    {
27509#line 278
27510    printk("<7>gigaset:   %s\n", dbgline);
27511    }
27512  } else {
27513
27514  }
27515  {
27516#line 279
27517  __cil_tmp98 = (void const   *)dbgline;
27518#line 279
27519  kfree(__cil_tmp98);
27520  }
27521  {
27522#line 280
27523  __cil_tmp99 = data + 4UL;
27524#line 280
27525  __cil_tmp100 = *__cil_tmp99;
27526#line 280
27527  __cil_tmp101 = (unsigned int )__cil_tmp100;
27528#line 280
27529  if (__cil_tmp101 == 134U) {
27530    {
27531#line 280
27532    __cil_tmp102 = data + 5UL;
27533#line 280
27534    __cil_tmp103 = *__cil_tmp102;
27535#line 280
27536    __cil_tmp104 = (unsigned int )__cil_tmp103;
27537#line 280
27538    if (__cil_tmp104 == 128U) {
27539#line 280
27540      goto _L;
27541    } else {
27542      {
27543#line 280
27544      __cil_tmp105 = data + 5UL;
27545#line 280
27546      __cil_tmp106 = *__cil_tmp105;
27547#line 280
27548      __cil_tmp107 = (unsigned int )__cil_tmp106;
27549#line 280
27550      if (__cil_tmp107 == 130U) {
27551        _L: 
27552        {
27553#line 283
27554        __cil_tmp108 = data + 17UL;
27555#line 283
27556        __cil_tmp109 = *__cil_tmp108;
27557#line 283
27558        __cil_tmp110 = (int )__cil_tmp109;
27559#line 283
27560        __cil_tmp111 = __cil_tmp110 << 8;
27561#line 283
27562        __cil_tmp112 = data + 16UL;
27563#line 283
27564        __cil_tmp113 = *__cil_tmp112;
27565#line 283
27566        __cil_tmp114 = (int )__cil_tmp113;
27567#line 283
27568        l = __cil_tmp114 | __cil_tmp111;
27569#line 284
27570        __cil_tmp115 = (unsigned int )level;
27571#line 284
27572        __cil_tmp116 = (unsigned int )gigaset_debuglevel;
27573#line 284
27574        __cil_tmp117 = __cil_tmp116 & __cil_tmp115;
27575#line 284
27576        __cil_tmp118 = __cil_tmp117 != 0U;
27577#line 284
27578        __cil_tmp119 = (long )__cil_tmp118;
27579#line 284
27580        tmp___3 = __builtin_expect(__cil_tmp119, 0L);
27581        }
27582#line 284
27583        if (tmp___3 != 0L) {
27584          {
27585#line 284
27586          printk("<7>gigaset:    DataLength=%d\n", l);
27587          }
27588        } else {
27589
27590        }
27591#line 285
27592        if (l <= 0) {
27593#line 286
27594          return;
27595        } else {
27596          {
27597#line 285
27598          __cil_tmp120 = gigaset_debuglevel & 256;
27599#line 285
27600          if (__cil_tmp120 == 0) {
27601#line 286
27602            return;
27603          } else {
27604
27605          }
27606          }
27607        }
27608#line 287
27609        if (l > 64) {
27610#line 288
27611          l = 64;
27612        } else {
27613
27614        }
27615        {
27616#line 289
27617        __cil_tmp121 = l * 3;
27618#line 289
27619        __cil_tmp122 = (size_t )__cil_tmp121;
27620#line 289
27621        tmp___4 = kmalloc(__cil_tmp122, 32U);
27622#line 289
27623        dbgline = (char *)tmp___4;
27624        }
27625        {
27626#line 290
27627        __cil_tmp123 = (char *)0;
27628#line 290
27629        __cil_tmp124 = (unsigned long )__cil_tmp123;
27630#line 290
27631        __cil_tmp125 = (unsigned long )dbgline;
27632#line 290
27633        if (__cil_tmp125 == __cil_tmp124) {
27634#line 291
27635          return;
27636        } else {
27637
27638        }
27639        }
27640#line 292
27641        __cil_tmp126 = data + 1UL;
27642#line 292
27643        __cil_tmp127 = *__cil_tmp126;
27644#line 292
27645        __cil_tmp128 = (int )__cil_tmp127;
27646#line 292
27647        __cil_tmp129 = __cil_tmp128 << 8;
27648#line 292
27649        __cil_tmp130 = *data;
27650#line 292
27651        __cil_tmp131 = (int )__cil_tmp130;
27652#line 292
27653        __cil_tmp132 = __cil_tmp131 | __cil_tmp129;
27654#line 292
27655        __cil_tmp133 = (unsigned long )__cil_tmp132;
27656#line 292
27657        data = data + __cil_tmp133;
27658#line 293
27659        i = 0;
27660#line 293
27661        goto ldv_35254;
27662        ldv_35253: 
27663#line 294
27664        __cil_tmp134 = i * 3;
27665#line 294
27666        __cil_tmp135 = (unsigned long )__cil_tmp134;
27667#line 294
27668        __cil_tmp136 = dbgline + __cil_tmp135;
27669#line 294
27670        *__cil_tmp136 = (char )hex_asc[(int )*(data + (unsigned long )i) >> 4];
27671#line 295
27672        __cil_tmp137 = i * 3;
27673#line 295
27674        __cil_tmp138 = (unsigned long )__cil_tmp137;
27675#line 295
27676        __cil_tmp139 = __cil_tmp138 + 1UL;
27677#line 295
27678        __cil_tmp140 = dbgline + __cil_tmp139;
27679#line 295
27680        *__cil_tmp140 = (char )hex_asc[(int )*(data + (unsigned long )i) & 15];
27681#line 296
27682        __cil_tmp141 = i * 3;
27683#line 296
27684        __cil_tmp142 = (unsigned long )__cil_tmp141;
27685#line 296
27686        __cil_tmp143 = __cil_tmp142 + 2UL;
27687#line 296
27688        __cil_tmp144 = dbgline + __cil_tmp143;
27689#line 296
27690        *__cil_tmp144 = (char)32;
27691#line 293
27692        i = i + 1;
27693        ldv_35254: ;
27694#line 293
27695        if (i < l) {
27696#line 294
27697          goto ldv_35253;
27698        } else {
27699#line 296
27700          goto ldv_35255;
27701        }
27702        ldv_35255: 
27703        {
27704#line 298
27705        __cil_tmp145 = l * 3;
27706#line 298
27707        __cil_tmp146 = (unsigned long )__cil_tmp145;
27708#line 298
27709        __cil_tmp147 = __cil_tmp146 + 1152921504606846975UL;
27710#line 298
27711        __cil_tmp148 = dbgline + __cil_tmp147;
27712#line 298
27713        *__cil_tmp148 = (char)0;
27714#line 299
27715        __cil_tmp149 = (unsigned int )level;
27716#line 299
27717        __cil_tmp150 = (unsigned int )gigaset_debuglevel;
27718#line 299
27719        __cil_tmp151 = __cil_tmp150 & __cil_tmp149;
27720#line 299
27721        __cil_tmp152 = __cil_tmp151 != 0U;
27722#line 299
27723        __cil_tmp153 = (long )__cil_tmp152;
27724#line 299
27725        tmp___5 = __builtin_expect(__cil_tmp153, 0L);
27726        }
27727#line 299
27728        if (tmp___5 != 0L) {
27729          {
27730#line 299
27731          printk("<7>gigaset:   %s\n", dbgline);
27732          }
27733        } else {
27734
27735        }
27736        {
27737#line 300
27738        __cil_tmp154 = (void const   *)dbgline;
27739#line 300
27740        kfree(__cil_tmp154);
27741        }
27742      } else {
27743
27744      }
27745      }
27746    }
27747    }
27748  } else {
27749
27750  }
27751  }
27752#line 302
27753  return;
27754}
27755}
27756#line 309 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
27757static char const   *format_ie(char const   *ie ) 
27758{ char result[60U] ;
27759  int len ;
27760  int count ;
27761  char *pout ;
27762  char *tmp ;
27763  char *tmp___0 ;
27764  char *tmp___1 ;
27765  int tmp___2 ;
27766  char *tmp___3 ;
27767  char *tmp___4 ;
27768  char *tmp___5 ;
27769  char const   *__cil_tmp13 ;
27770  unsigned long __cil_tmp14 ;
27771  unsigned long __cil_tmp15 ;
27772  char __cil_tmp16 ;
27773
27774  {
27775#line 313
27776  pout = (char *)(& result);
27777  {
27778#line 315
27779  __cil_tmp13 = (char const   *)0;
27780#line 315
27781  __cil_tmp14 = (unsigned long )__cil_tmp13;
27782#line 315
27783  __cil_tmp15 = (unsigned long )ie;
27784#line 315
27785  if (__cil_tmp15 == __cil_tmp14) {
27786#line 316
27787    return ("NULL");
27788  } else {
27789
27790  }
27791  }
27792#line 318
27793  __cil_tmp16 = *ie;
27794#line 318
27795  len = (int )__cil_tmp16;
27796#line 318
27797  count = len;
27798#line 319
27799  if (count > 20) {
27800#line 320
27801    count = 19;
27802  } else {
27803
27804  }
27805#line 321
27806  goto ldv_35264;
27807  ldv_35263: 
27808#line 322
27809  tmp = pout;
27810#line 322
27811  pout = pout + 1;
27812#line 322
27813  ie = ie + 1;
27814#line 322
27815  *tmp = (char )hex_asc[((int )*ie & 240) >> 4];
27816#line 323
27817  tmp___0 = pout;
27818#line 323
27819  pout = pout + 1;
27820#line 323
27821  *tmp___0 = (char )hex_asc[(int )*ie & 15];
27822#line 324
27823  tmp___1 = pout;
27824#line 324
27825  pout = pout + 1;
27826#line 324
27827  *tmp___1 = (char)32;
27828  ldv_35264: 
27829#line 321
27830  tmp___2 = count;
27831#line 321
27832  count = count - 1;
27833#line 321
27834  if (tmp___2 != 0) {
27835#line 322
27836    goto ldv_35263;
27837  } else {
27838#line 324
27839    goto ldv_35265;
27840  }
27841  ldv_35265: ;
27842#line 326
27843  if (len > 20) {
27844#line 327
27845    tmp___3 = pout;
27846#line 327
27847    pout = pout + 1;
27848#line 327
27849    *tmp___3 = (char)46;
27850#line 328
27851    tmp___4 = pout;
27852#line 328
27853    pout = pout + 1;
27854#line 328
27855    *tmp___4 = (char)46;
27856#line 329
27857    tmp___5 = pout;
27858#line 329
27859    pout = pout + 1;
27860#line 329
27861    *tmp___5 = (char)46;
27862  } else {
27863
27864  }
27865#line 331
27866  pout = pout - 1;
27867#line 331
27868  *pout = (char)0;
27869#line 332
27870  return ((char const   *)(& result));
27871}
27872}
27873#line 338 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
27874static void send_data_b3_conf(struct cardstate *cs , struct capi_ctr *ctr , u16 appl ,
27875                              u16 msgid , int channel , u16 handle , u16 info ) 
27876{ struct sk_buff *cskb ;
27877  u8 *msg ;
27878  unsigned char *tmp ;
27879  struct sk_buff *__cil_tmp11 ;
27880  unsigned long __cil_tmp12 ;
27881  unsigned long __cil_tmp13 ;
27882  struct device *__cil_tmp14 ;
27883  struct device  const  *__cil_tmp15 ;
27884  void *__cil_tmp16 ;
27885  __u16 __cil_tmp17 ;
27886  void *__cil_tmp18 ;
27887  int __cil_tmp19 ;
27888  __u16 __cil_tmp20 ;
27889  void *__cil_tmp21 ;
27890  __u8 __cil_tmp22 ;
27891  void *__cil_tmp23 ;
27892  __u8 __cil_tmp24 ;
27893  void *__cil_tmp25 ;
27894  int __cil_tmp26 ;
27895  __u16 __cil_tmp27 ;
27896  void *__cil_tmp28 ;
27897  int __cil_tmp29 ;
27898  __u8 __cil_tmp30 ;
27899  int __cil_tmp31 ;
27900  __u8 __cil_tmp32 ;
27901  void *__cil_tmp33 ;
27902  __u8 __cil_tmp34 ;
27903  int __cil_tmp35 ;
27904  __u8 __cil_tmp36 ;
27905  void *__cil_tmp37 ;
27906  __u16 __cil_tmp38 ;
27907  void *__cil_tmp39 ;
27908  int __cil_tmp40 ;
27909  __u16 __cil_tmp41 ;
27910  void *__cil_tmp42 ;
27911  int __cil_tmp43 ;
27912  __u16 __cil_tmp44 ;
27913  enum debuglevel __cil_tmp45 ;
27914  int __cil_tmp46 ;
27915  u16 __cil_tmp47 ;
27916
27917  {
27918  {
27919#line 345
27920  cskb = alloc_skb(16U, 32U);
27921  }
27922  {
27923#line 346
27924  __cil_tmp11 = (struct sk_buff *)0;
27925#line 346
27926  __cil_tmp12 = (unsigned long )__cil_tmp11;
27927#line 346
27928  __cil_tmp13 = (unsigned long )cskb;
27929#line 346
27930  if (__cil_tmp13 == __cil_tmp12) {
27931    {
27932#line 347
27933    __cil_tmp14 = cs->dev;
27934#line 347
27935    __cil_tmp15 = (struct device  const  *)__cil_tmp14;
27936#line 347
27937    dev_err(__cil_tmp15, "%s: out of memory\n", "send_data_b3_conf");
27938    }
27939#line 348
27940    return;
27941  } else {
27942
27943  }
27944  }
27945  {
27946#line 351
27947  tmp = __skb_put(cskb, 16U);
27948#line 351
27949  msg = tmp;
27950#line 352
27951  __cil_tmp16 = (void *)msg;
27952#line 352
27953  __cil_tmp17 = (__u16 )16;
27954#line 352
27955  capimsg_setu16(__cil_tmp16, 0, __cil_tmp17);
27956#line 353
27957  __cil_tmp18 = (void *)msg;
27958#line 353
27959  __cil_tmp19 = (int )appl;
27960#line 353
27961  __cil_tmp20 = (__u16 )__cil_tmp19;
27962#line 353
27963  capimsg_setu16(__cil_tmp18, 2, __cil_tmp20);
27964#line 354
27965  __cil_tmp21 = (void *)msg;
27966#line 354
27967  __cil_tmp22 = (__u8 )134;
27968#line 354
27969  capimsg_setu8(__cil_tmp21, 4, __cil_tmp22);
27970#line 355
27971  __cil_tmp23 = (void *)msg;
27972#line 355
27973  __cil_tmp24 = (__u8 )129;
27974#line 355
27975  capimsg_setu8(__cil_tmp23, 5, __cil_tmp24);
27976#line 356
27977  __cil_tmp25 = (void *)msg;
27978#line 356
27979  __cil_tmp26 = (int )msgid;
27980#line 356
27981  __cil_tmp27 = (__u16 )__cil_tmp26;
27982#line 356
27983  capimsg_setu16(__cil_tmp25, 6, __cil_tmp27);
27984#line 357
27985  __cil_tmp28 = (void *)msg;
27986#line 357
27987  __cil_tmp29 = ctr->cnr;
27988#line 357
27989  __cil_tmp30 = (__u8 )__cil_tmp29;
27990#line 357
27991  __cil_tmp31 = (int )__cil_tmp30;
27992#line 357
27993  __cil_tmp32 = (__u8 )__cil_tmp31;
27994#line 357
27995  capimsg_setu8(__cil_tmp28, 8, __cil_tmp32);
27996#line 358
27997  __cil_tmp33 = (void *)msg;
27998#line 358
27999  __cil_tmp34 = (__u8 )channel;
28000#line 358
28001  __cil_tmp35 = (int )__cil_tmp34;
28002#line 358
28003  __cil_tmp36 = (__u8 )__cil_tmp35;
28004#line 358
28005  capimsg_setu8(__cil_tmp33, 9, __cil_tmp36);
28006#line 359
28007  __cil_tmp37 = (void *)msg;
28008#line 359
28009  __cil_tmp38 = (__u16 )1;
28010#line 359
28011  capimsg_setu16(__cil_tmp37, 10, __cil_tmp38);
28012#line 360
28013  __cil_tmp39 = (void *)msg;
28014#line 360
28015  __cil_tmp40 = (int )handle;
28016#line 360
28017  __cil_tmp41 = (__u16 )__cil_tmp40;
28018#line 360
28019  capimsg_setu16(__cil_tmp39, 12, __cil_tmp41);
28020#line 361
28021  __cil_tmp42 = (void *)msg;
28022#line 361
28023  __cil_tmp43 = (int )info;
28024#line 361
28025  __cil_tmp44 = (__u16 )__cil_tmp43;
28026#line 361
28027  capimsg_setu16(__cil_tmp42, 14, __cil_tmp44);
28028#line 364
28029  __cil_tmp45 = (enum debuglevel )16384;
28030#line 364
28031  dump_rawmsg(__cil_tmp45, "send_data_b3_conf", msg);
28032#line 365
28033  __cil_tmp46 = (int )appl;
28034#line 365
28035  __cil_tmp47 = (u16 )__cil_tmp46;
28036#line 365
28037  capi_ctr_handle_message(ctr, __cil_tmp47, cskb);
28038  }
28039#line 366
28040  return;
28041}
28042}
28043#line 382 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
28044void gigaset_skb_sent(struct bc_state *bcs , struct sk_buff *dskb ) 
28045{ struct cardstate *cs ;
28046  struct gigaset_capi_ctr *iif ;
28047  struct gigaset_capi_appl *ap ;
28048  unsigned char *req ;
28049  unsigned char *tmp ;
28050  u16 flags ;
28051  long tmp___0 ;
28052  long tmp___1 ;
28053  int tmp___2 ;
28054  void *__cil_tmp12 ;
28055  void *__cil_tmp13 ;
28056  struct sk_buff  const  *__cil_tmp14 ;
28057  int __cil_tmp15 ;
28058  struct gigaset_capi_appl *__cil_tmp16 ;
28059  unsigned long __cil_tmp17 ;
28060  unsigned long __cil_tmp18 ;
28061  unsigned int __cil_tmp19 ;
28062  unsigned int __cil_tmp20 ;
28063  int __cil_tmp21 ;
28064  long __cil_tmp22 ;
28065  int __cil_tmp23 ;
28066  unsigned int __cil_tmp24 ;
28067  unsigned int __cil_tmp25 ;
28068  int __cil_tmp26 ;
28069  long __cil_tmp27 ;
28070  unsigned char *__cil_tmp28 ;
28071  unsigned char __cil_tmp29 ;
28072  int __cil_tmp30 ;
28073  int __cil_tmp31 ;
28074  short __cil_tmp32 ;
28075  int __cil_tmp33 ;
28076  unsigned char *__cil_tmp34 ;
28077  unsigned char __cil_tmp35 ;
28078  short __cil_tmp36 ;
28079  int __cil_tmp37 ;
28080  int __cil_tmp38 ;
28081  int __cil_tmp39 ;
28082  int __cil_tmp40 ;
28083  int __cil_tmp41 ;
28084  int __cil_tmp42 ;
28085  struct capi_ctr *__cil_tmp43 ;
28086  u16 __cil_tmp44 ;
28087  int __cil_tmp45 ;
28088  u16 __cil_tmp46 ;
28089  unsigned char *__cil_tmp47 ;
28090  unsigned char __cil_tmp48 ;
28091  int __cil_tmp49 ;
28092  int __cil_tmp50 ;
28093  short __cil_tmp51 ;
28094  int __cil_tmp52 ;
28095  unsigned char *__cil_tmp53 ;
28096  unsigned char __cil_tmp54 ;
28097  short __cil_tmp55 ;
28098  int __cil_tmp56 ;
28099  int __cil_tmp57 ;
28100  u16 __cil_tmp58 ;
28101  int __cil_tmp59 ;
28102  u16 __cil_tmp60 ;
28103  int __cil_tmp61 ;
28104  int __cil_tmp62 ;
28105  unsigned char *__cil_tmp63 ;
28106  unsigned char __cil_tmp64 ;
28107  int __cil_tmp65 ;
28108  int __cil_tmp66 ;
28109  short __cil_tmp67 ;
28110  int __cil_tmp68 ;
28111  unsigned char *__cil_tmp69 ;
28112  unsigned char __cil_tmp70 ;
28113  short __cil_tmp71 ;
28114  int __cil_tmp72 ;
28115  int __cil_tmp73 ;
28116  u16 __cil_tmp74 ;
28117  int __cil_tmp75 ;
28118  u16 __cil_tmp76 ;
28119  u16 __cil_tmp77 ;
28120
28121  {
28122  {
28123#line 384
28124  cs = bcs->cs;
28125#line 385
28126  __cil_tmp12 = cs->iif;
28127#line 385
28128  iif = (struct gigaset_capi_ctr *)__cil_tmp12;
28129#line 386
28130  __cil_tmp13 = bcs->ap;
28131#line 386
28132  ap = (struct gigaset_capi_appl *)__cil_tmp13;
28133#line 387
28134  __cil_tmp14 = (struct sk_buff  const  *)dskb;
28135#line 387
28136  tmp = skb_mac_header(__cil_tmp14);
28137#line 387
28138  req = tmp;
28139#line 391
28140  __cil_tmp15 = bcs->trans_up;
28141#line 391
28142  bcs->trans_up = __cil_tmp15 + 1;
28143  }
28144  {
28145#line 393
28146  __cil_tmp16 = (struct gigaset_capi_appl *)0;
28147#line 393
28148  __cil_tmp17 = (unsigned long )__cil_tmp16;
28149#line 393
28150  __cil_tmp18 = (unsigned long )ap;
28151#line 393
28152  if (__cil_tmp18 == __cil_tmp17) {
28153    {
28154#line 394
28155    __cil_tmp19 = (unsigned int )gigaset_debuglevel;
28156#line 394
28157    __cil_tmp20 = __cil_tmp19 & 16384U;
28158#line 394
28159    __cil_tmp21 = __cil_tmp20 != 0U;
28160#line 394
28161    __cil_tmp22 = (long )__cil_tmp21;
28162#line 394
28163    tmp___0 = __builtin_expect(__cil_tmp22, 0L);
28164    }
28165#line 394
28166    if (tmp___0 != 0L) {
28167      {
28168#line 394
28169      printk("<7>gigaset: %s: application gone\n", "gigaset_skb_sent");
28170      }
28171    } else {
28172
28173    }
28174#line 395
28175    return;
28176  } else {
28177
28178  }
28179  }
28180  {
28181#line 399
28182  __cil_tmp23 = bcs->apconnstate;
28183#line 399
28184  if (__cil_tmp23 <= 1) {
28185    {
28186#line 400
28187    __cil_tmp24 = (unsigned int )gigaset_debuglevel;
28188#line 400
28189    __cil_tmp25 = __cil_tmp24 & 16384U;
28190#line 400
28191    __cil_tmp26 = __cil_tmp25 != 0U;
28192#line 400
28193    __cil_tmp27 = (long )__cil_tmp26;
28194#line 400
28195    tmp___1 = __builtin_expect(__cil_tmp27, 0L);
28196    }
28197#line 400
28198    if (tmp___1 != 0L) {
28199      {
28200#line 400
28201      printk("<7>gigaset: %s: disconnected\n", "gigaset_skb_sent");
28202      }
28203    } else {
28204
28205    }
28206#line 401
28207    return;
28208  } else {
28209
28210  }
28211  }
28212#line 408
28213  __cil_tmp28 = req + 21UL;
28214#line 408
28215  __cil_tmp29 = *__cil_tmp28;
28216#line 408
28217  __cil_tmp30 = (int )__cil_tmp29;
28218#line 408
28219  __cil_tmp31 = __cil_tmp30 << 8;
28220#line 408
28221  __cil_tmp32 = (short )__cil_tmp31;
28222#line 408
28223  __cil_tmp33 = (int )__cil_tmp32;
28224#line 408
28225  __cil_tmp34 = req + 20UL;
28226#line 408
28227  __cil_tmp35 = *__cil_tmp34;
28228#line 408
28229  __cil_tmp36 = (short )__cil_tmp35;
28230#line 408
28231  __cil_tmp37 = (int )__cil_tmp36;
28232#line 408
28233  __cil_tmp38 = __cil_tmp37 | __cil_tmp33;
28234#line 408
28235  flags = (u16 )__cil_tmp38;
28236  {
28237#line 409
28238  __cil_tmp39 = (int )flags;
28239#line 409
28240  __cil_tmp40 = __cil_tmp39 & 4;
28241#line 409
28242  if (__cil_tmp40 != 0) {
28243    {
28244#line 410
28245    __cil_tmp41 = (int )flags;
28246#line 410
28247    __cil_tmp42 = __cil_tmp41 & -5;
28248#line 410
28249    if (__cil_tmp42 != 0) {
28250#line 410
28251      tmp___2 = 2;
28252    } else {
28253#line 410
28254      tmp___2 = 0;
28255    }
28256    }
28257    {
28258#line 410
28259    __cil_tmp43 = & iif->ctr;
28260#line 410
28261    __cil_tmp44 = ap->id;
28262#line 410
28263    __cil_tmp45 = (int )__cil_tmp44;
28264#line 410
28265    __cil_tmp46 = (u16 )__cil_tmp45;
28266#line 410
28267    __cil_tmp47 = req + 7UL;
28268#line 410
28269    __cil_tmp48 = *__cil_tmp47;
28270#line 410
28271    __cil_tmp49 = (int )__cil_tmp48;
28272#line 410
28273    __cil_tmp50 = __cil_tmp49 << 8;
28274#line 410
28275    __cil_tmp51 = (short )__cil_tmp50;
28276#line 410
28277    __cil_tmp52 = (int )__cil_tmp51;
28278#line 410
28279    __cil_tmp53 = req + 6UL;
28280#line 410
28281    __cil_tmp54 = *__cil_tmp53;
28282#line 410
28283    __cil_tmp55 = (short )__cil_tmp54;
28284#line 410
28285    __cil_tmp56 = (int )__cil_tmp55;
28286#line 410
28287    __cil_tmp57 = __cil_tmp56 | __cil_tmp52;
28288#line 410
28289    __cil_tmp58 = (u16 )__cil_tmp57;
28290#line 410
28291    __cil_tmp59 = (int )__cil_tmp58;
28292#line 410
28293    __cil_tmp60 = (u16 )__cil_tmp59;
28294#line 410
28295    __cil_tmp61 = bcs->channel;
28296#line 410
28297    __cil_tmp62 = __cil_tmp61 + 1;
28298#line 410
28299    __cil_tmp63 = req + 19UL;
28300#line 410
28301    __cil_tmp64 = *__cil_tmp63;
28302#line 410
28303    __cil_tmp65 = (int )__cil_tmp64;
28304#line 410
28305    __cil_tmp66 = __cil_tmp65 << 8;
28306#line 410
28307    __cil_tmp67 = (short )__cil_tmp66;
28308#line 410
28309    __cil_tmp68 = (int )__cil_tmp67;
28310#line 410
28311    __cil_tmp69 = req + 18UL;
28312#line 410
28313    __cil_tmp70 = *__cil_tmp69;
28314#line 410
28315    __cil_tmp71 = (short )__cil_tmp70;
28316#line 410
28317    __cil_tmp72 = (int )__cil_tmp71;
28318#line 410
28319    __cil_tmp73 = __cil_tmp72 | __cil_tmp68;
28320#line 410
28321    __cil_tmp74 = (u16 )__cil_tmp73;
28322#line 410
28323    __cil_tmp75 = (int )__cil_tmp74;
28324#line 410
28325    __cil_tmp76 = (u16 )__cil_tmp75;
28326#line 410
28327    __cil_tmp77 = (u16 )tmp___2;
28328#line 410
28329    send_data_b3_conf(cs, __cil_tmp43, __cil_tmp46, __cil_tmp60, __cil_tmp62, __cil_tmp76,
28330                      __cil_tmp77);
28331    }
28332  } else {
28333
28334  }
28335  }
28336#line 413
28337  return;
28338}
28339}
28340#line 427 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
28341void gigaset_skb_rcvd(struct bc_state *bcs , struct sk_buff *skb ) 
28342{ struct cardstate *cs ;
28343  struct gigaset_capi_ctr *iif ;
28344  struct gigaset_capi_appl *ap ;
28345  int len ;
28346  long tmp ;
28347  long tmp___0 ;
28348  u16 tmp___1 ;
28349  void *__cil_tmp10 ;
28350  void *__cil_tmp11 ;
28351  unsigned int __cil_tmp12 ;
28352  int __cil_tmp13 ;
28353  struct gigaset_capi_appl *__cil_tmp14 ;
28354  unsigned long __cil_tmp15 ;
28355  unsigned long __cil_tmp16 ;
28356  unsigned int __cil_tmp17 ;
28357  unsigned int __cil_tmp18 ;
28358  int __cil_tmp19 ;
28359  long __cil_tmp20 ;
28360  int __cil_tmp21 ;
28361  unsigned int __cil_tmp22 ;
28362  unsigned int __cil_tmp23 ;
28363  int __cil_tmp24 ;
28364  long __cil_tmp25 ;
28365  unsigned char *__cil_tmp26 ;
28366  void *__cil_tmp27 ;
28367  __u16 __cil_tmp28 ;
28368  unsigned char *__cil_tmp29 ;
28369  void *__cil_tmp30 ;
28370  u16 __cil_tmp31 ;
28371  int __cil_tmp32 ;
28372  __u16 __cil_tmp33 ;
28373  unsigned char *__cil_tmp34 ;
28374  void *__cil_tmp35 ;
28375  __u8 __cil_tmp36 ;
28376  unsigned char *__cil_tmp37 ;
28377  void *__cil_tmp38 ;
28378  __u8 __cil_tmp39 ;
28379  u16 __cil_tmp40 ;
28380  int __cil_tmp41 ;
28381  int __cil_tmp42 ;
28382  unsigned char *__cil_tmp43 ;
28383  void *__cil_tmp44 ;
28384  unsigned char *__cil_tmp45 ;
28385  void *__cil_tmp46 ;
28386  int __cil_tmp47 ;
28387  __u8 __cil_tmp48 ;
28388  int __cil_tmp49 ;
28389  __u8 __cil_tmp50 ;
28390  unsigned char *__cil_tmp51 ;
28391  void *__cil_tmp52 ;
28392  int __cil_tmp53 ;
28393  __u8 __cil_tmp54 ;
28394  unsigned int __cil_tmp55 ;
28395  unsigned int __cil_tmp56 ;
28396  int __cil_tmp57 ;
28397  __u8 __cil_tmp58 ;
28398  unsigned char *__cil_tmp59 ;
28399  void *__cil_tmp60 ;
28400  __u16 __cil_tmp61 ;
28401  unsigned char *__cil_tmp62 ;
28402  void *__cil_tmp63 ;
28403  __u16 __cil_tmp64 ;
28404  int __cil_tmp65 ;
28405  __u16 __cil_tmp66 ;
28406  unsigned char *__cil_tmp67 ;
28407  void *__cil_tmp68 ;
28408  __u16 __cil_tmp69 ;
28409  enum debuglevel __cil_tmp70 ;
28410  unsigned char *__cil_tmp71 ;
28411  struct capi_ctr *__cil_tmp72 ;
28412  u16 __cil_tmp73 ;
28413  int __cil_tmp74 ;
28414  u16 __cil_tmp75 ;
28415
28416  {
28417#line 429
28418  cs = bcs->cs;
28419#line 430
28420  __cil_tmp10 = cs->iif;
28421#line 430
28422  iif = (struct gigaset_capi_ctr *)__cil_tmp10;
28423#line 431
28424  __cil_tmp11 = bcs->ap;
28425#line 431
28426  ap = (struct gigaset_capi_appl *)__cil_tmp11;
28427#line 432
28428  __cil_tmp12 = skb->len;
28429#line 432
28430  len = (int )__cil_tmp12;
28431#line 435
28432  __cil_tmp13 = bcs->trans_down;
28433#line 435
28434  bcs->trans_down = __cil_tmp13 + 1;
28435  {
28436#line 437
28437  __cil_tmp14 = (struct gigaset_capi_appl *)0;
28438#line 437
28439  __cil_tmp15 = (unsigned long )__cil_tmp14;
28440#line 437
28441  __cil_tmp16 = (unsigned long )ap;
28442#line 437
28443  if (__cil_tmp16 == __cil_tmp15) {
28444    {
28445#line 438
28446    __cil_tmp17 = (unsigned int )gigaset_debuglevel;
28447#line 438
28448    __cil_tmp18 = __cil_tmp17 & 16384U;
28449#line 438
28450    __cil_tmp19 = __cil_tmp18 != 0U;
28451#line 438
28452    __cil_tmp20 = (long )__cil_tmp19;
28453#line 438
28454    tmp = __builtin_expect(__cil_tmp20, 0L);
28455    }
28456#line 438
28457    if (tmp != 0L) {
28458      {
28459#line 438
28460      printk("<7>gigaset: %s: application gone\n", "gigaset_skb_rcvd");
28461      }
28462    } else {
28463
28464    }
28465    {
28466#line 439
28467    dev_kfree_skb_any(skb);
28468    }
28469#line 440
28470    return;
28471  } else {
28472
28473  }
28474  }
28475  {
28476#line 444
28477  __cil_tmp21 = bcs->apconnstate;
28478#line 444
28479  if (__cil_tmp21 <= 1) {
28480    {
28481#line 445
28482    __cil_tmp22 = (unsigned int )gigaset_debuglevel;
28483#line 445
28484    __cil_tmp23 = __cil_tmp22 & 16384U;
28485#line 445
28486    __cil_tmp24 = __cil_tmp23 != 0U;
28487#line 445
28488    __cil_tmp25 = (long )__cil_tmp24;
28489#line 445
28490    tmp___0 = __builtin_expect(__cil_tmp25, 0L);
28491    }
28492#line 445
28493    if (tmp___0 != 0L) {
28494      {
28495#line 445
28496      printk("<7>gigaset: %s: disconnected\n", "gigaset_skb_rcvd");
28497      }
28498    } else {
28499
28500    }
28501    {
28502#line 446
28503    dev_kfree_skb_any(skb);
28504    }
28505#line 447
28506    return;
28507  } else {
28508
28509  }
28510  }
28511  {
28512#line 455
28513  skb_push(skb, 22U);
28514#line 456
28515  __cil_tmp26 = skb->data;
28516#line 456
28517  __cil_tmp27 = (void *)__cil_tmp26;
28518#line 456
28519  __cil_tmp28 = (__u16 )22;
28520#line 456
28521  capimsg_setu16(__cil_tmp27, 0, __cil_tmp28);
28522#line 457
28523  __cil_tmp29 = skb->data;
28524#line 457
28525  __cil_tmp30 = (void *)__cil_tmp29;
28526#line 457
28527  __cil_tmp31 = ap->id;
28528#line 457
28529  __cil_tmp32 = (int )__cil_tmp31;
28530#line 457
28531  __cil_tmp33 = (__u16 )__cil_tmp32;
28532#line 457
28533  capimsg_setu16(__cil_tmp30, 2, __cil_tmp33);
28534#line 458
28535  __cil_tmp34 = skb->data;
28536#line 458
28537  __cil_tmp35 = (void *)__cil_tmp34;
28538#line 458
28539  __cil_tmp36 = (__u8 )134;
28540#line 458
28541  capimsg_setu8(__cil_tmp35, 4, __cil_tmp36);
28542#line 459
28543  __cil_tmp37 = skb->data;
28544#line 459
28545  __cil_tmp38 = (void *)__cil_tmp37;
28546#line 459
28547  __cil_tmp39 = (__u8 )130;
28548#line 459
28549  capimsg_setu8(__cil_tmp38, 5, __cil_tmp39);
28550#line 460
28551  tmp___1 = ap->nextMessageNumber;
28552#line 460
28553  __cil_tmp40 = ap->nextMessageNumber;
28554#line 460
28555  __cil_tmp41 = (int )__cil_tmp40;
28556#line 460
28557  __cil_tmp42 = __cil_tmp41 + 1;
28558#line 460
28559  ap->nextMessageNumber = (u16 )__cil_tmp42;
28560#line 460
28561  __cil_tmp43 = skb->data;
28562#line 460
28563  __cil_tmp44 = (void *)__cil_tmp43;
28564#line 460
28565  capimsg_setu16(__cil_tmp44, 6, tmp___1);
28566#line 461
28567  __cil_tmp45 = skb->data;
28568#line 461
28569  __cil_tmp46 = (void *)__cil_tmp45;
28570#line 461
28571  __cil_tmp47 = iif->ctr.cnr;
28572#line 461
28573  __cil_tmp48 = (__u8 )__cil_tmp47;
28574#line 461
28575  __cil_tmp49 = (int )__cil_tmp48;
28576#line 461
28577  __cil_tmp50 = (__u8 )__cil_tmp49;
28578#line 461
28579  capimsg_setu8(__cil_tmp46, 8, __cil_tmp50);
28580#line 462
28581  __cil_tmp51 = skb->data;
28582#line 462
28583  __cil_tmp52 = (void *)__cil_tmp51;
28584#line 462
28585  __cil_tmp53 = bcs->channel;
28586#line 462
28587  __cil_tmp54 = (__u8 )__cil_tmp53;
28588#line 462
28589  __cil_tmp55 = (unsigned int )__cil_tmp54;
28590#line 462
28591  __cil_tmp56 = __cil_tmp55 + 1U;
28592#line 462
28593  __cil_tmp57 = (int )__cil_tmp56;
28594#line 462
28595  __cil_tmp58 = (__u8 )__cil_tmp57;
28596#line 462
28597  capimsg_setu8(__cil_tmp52, 9, __cil_tmp58);
28598#line 463
28599  __cil_tmp59 = skb->data;
28600#line 463
28601  __cil_tmp60 = (void *)__cil_tmp59;
28602#line 463
28603  __cil_tmp61 = (__u16 )1;
28604#line 463
28605  capimsg_setu16(__cil_tmp60, 10, __cil_tmp61);
28606#line 465
28607  __cil_tmp62 = skb->data;
28608#line 465
28609  __cil_tmp63 = (void *)__cil_tmp62;
28610#line 465
28611  __cil_tmp64 = (__u16 )len;
28612#line 465
28613  __cil_tmp65 = (int )__cil_tmp64;
28614#line 465
28615  __cil_tmp66 = (__u16 )__cil_tmp65;
28616#line 465
28617  capimsg_setu16(__cil_tmp63, 16, __cil_tmp66);
28618#line 467
28619  __cil_tmp67 = skb->data;
28620#line 467
28621  __cil_tmp68 = (void *)__cil_tmp67;
28622#line 467
28623  __cil_tmp69 = (__u16 )0;
28624#line 467
28625  capimsg_setu16(__cil_tmp68, 20, __cil_tmp69);
28626#line 471
28627  __cil_tmp70 = (enum debuglevel )16384;
28628#line 471
28629  __cil_tmp71 = skb->data;
28630#line 471
28631  dump_rawmsg(__cil_tmp70, "gigaset_skb_rcvd", __cil_tmp71);
28632#line 472
28633  __cil_tmp72 = & iif->ctr;
28634#line 472
28635  __cil_tmp73 = ap->id;
28636#line 472
28637  __cil_tmp74 = (int )__cil_tmp73;
28638#line 472
28639  __cil_tmp75 = (u16 )__cil_tmp74;
28640#line 472
28641  capi_ctr_handle_message(__cil_tmp72, __cil_tmp75, skb);
28642  }
28643#line 473
28644  return;
28645}
28646}
28647#line 483 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
28648void gigaset_isdn_rcv_err(struct bc_state *bcs ) 
28649{ int __cil_tmp2 ;
28650  int __cil_tmp3 ;
28651  int __cil_tmp4 ;
28652
28653  {
28654  {
28655#line 486
28656  __cil_tmp2 = bcs->ignore;
28657#line 486
28658  if (__cil_tmp2 != 0) {
28659#line 487
28660    __cil_tmp3 = bcs->ignore;
28661#line 487
28662    bcs->ignore = __cil_tmp3 - 1;
28663#line 488
28664    return;
28665  } else {
28666
28667  }
28668  }
28669#line 492
28670  __cil_tmp4 = bcs->corrupted;
28671#line 492
28672  bcs->corrupted = __cil_tmp4 + 1;
28673#line 493
28674  return;
28675}
28676}
28677#line 507 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
28678int gigaset_isdn_icall(struct at_state_t *at_state ) 
28679{ struct cardstate *cs ;
28680  struct bc_state *bcs ;
28681  struct gigaset_capi_ctr *iif ;
28682  struct gigaset_capi_appl *ap ;
28683  u32 actCIPmask ;
28684  struct sk_buff *skb ;
28685  unsigned int msgsize ;
28686  unsigned long flags ;
28687  int i ;
28688  int tmp ;
28689  int tmp___0 ;
28690  int tmp___1 ;
28691  int tmp___2 ;
28692  int tmp___3 ;
28693  size_t tmp___4 ;
28694  size_t __len ;
28695  void *__ret ;
28696  size_t tmp___5 ;
28697  size_t __len___0 ;
28698  void *__ret___0 ;
28699  char const   *tmp___6 ;
28700  long tmp___7 ;
28701  char const   *tmp___8 ;
28702  long tmp___9 ;
28703  char const   *tmp___10 ;
28704  long tmp___11 ;
28705  char const   *tmp___12 ;
28706  long tmp___13 ;
28707  raw_spinlock_t *tmp___14 ;
28708  struct list_head  const  *__mptr ;
28709  u16 tmp___15 ;
28710  unsigned char *tmp___16 ;
28711  raw_spinlock_t *tmp___17 ;
28712  struct list_head  const  *__mptr___0 ;
28713  int tmp___18 ;
28714  void *__cil_tmp37 ;
28715  struct bc_state *__cil_tmp38 ;
28716  unsigned long __cil_tmp39 ;
28717  unsigned long __cil_tmp40 ;
28718  _cmsg *__cil_tmp41 ;
28719  __u16 __cil_tmp42 ;
28720  __u8 __cil_tmp43 ;
28721  __u8 __cil_tmp44 ;
28722  __u16 __cil_tmp45 ;
28723  int __cil_tmp46 ;
28724  int __cil_tmp47 ;
28725  int __cil_tmp48 ;
28726  int __cil_tmp49 ;
28727  int __cil_tmp50 ;
28728  __u32 __cil_tmp51 ;
28729  char *__cil_tmp52 ;
28730  unsigned long __cil_tmp53 ;
28731  char *__cil_tmp54 ;
28732  unsigned long __cil_tmp55 ;
28733  char *__cil_tmp56 ;
28734  u8 (*__cil_tmp57)[12U] ;
28735  u8 *__cil_tmp58 ;
28736  struct device *__cil_tmp59 ;
28737  struct device  const  *__cil_tmp60 ;
28738  char *__cil_tmp61 ;
28739  u8 *__cil_tmp62 ;
28740  unsigned long __cil_tmp63 ;
28741  unsigned long __cil_tmp64 ;
28742  u8 *__cil_tmp65 ;
28743  unsigned long __cil_tmp66 ;
28744  unsigned long __cil_tmp67 ;
28745  char const   *__cil_tmp68 ;
28746  char *__cil_tmp69 ;
28747  char const   *__cil_tmp70 ;
28748  unsigned int __cil_tmp71 ;
28749  char *__cil_tmp72 ;
28750  u8 (*__cil_tmp73)[12U] ;
28751  u8 *__cil_tmp74 ;
28752  u8 (*__cil_tmp75)[12U] ;
28753  _cstruct __cil_tmp76 ;
28754  __u8 __cil_tmp77 ;
28755  unsigned int __cil_tmp78 ;
28756  char *__cil_tmp79 ;
28757  unsigned long __cil_tmp80 ;
28758  char *__cil_tmp81 ;
28759  unsigned long __cil_tmp82 ;
28760  char *__cil_tmp83 ;
28761  u8 (*__cil_tmp84)[4U] ;
28762  u8 *__cil_tmp85 ;
28763  struct device *__cil_tmp86 ;
28764  struct device  const  *__cil_tmp87 ;
28765  char *__cil_tmp88 ;
28766  u8 (*__cil_tmp89)[4U] ;
28767  _cstruct __cil_tmp90 ;
28768  __u8 __cil_tmp91 ;
28769  unsigned int __cil_tmp92 ;
28770  char *__cil_tmp93 ;
28771  unsigned long __cil_tmp94 ;
28772  char *__cil_tmp95 ;
28773  unsigned long __cil_tmp96 ;
28774  u8 *__cil_tmp97 ;
28775  unsigned long __cil_tmp98 ;
28776  unsigned long __cil_tmp99 ;
28777  char const   *__cil_tmp100 ;
28778  char *__cil_tmp101 ;
28779  char const   *__cil_tmp102 ;
28780  char const   *__cil_tmp103 ;
28781  char *__cil_tmp104 ;
28782  char const   *__cil_tmp105 ;
28783  unsigned int __cil_tmp106 ;
28784  char *__cil_tmp107 ;
28785  unsigned long __cil_tmp108 ;
28786  char *__cil_tmp109 ;
28787  unsigned long __cil_tmp110 ;
28788  char *__cil_tmp111 ;
28789  char const   *__cil_tmp112 ;
28790  struct device *__cil_tmp113 ;
28791  struct device  const  *__cil_tmp114 ;
28792  char *__cil_tmp115 ;
28793  u8 __cil_tmp116 ;
28794  unsigned int __cil_tmp117 ;
28795  unsigned int __cil_tmp118 ;
28796  u8 (*__cil_tmp119)[22U] ;
28797  void *__cil_tmp120 ;
28798  void *__cil_tmp121 ;
28799  char *__cil_tmp122 ;
28800  void const   *__cil_tmp123 ;
28801  u8 (*__cil_tmp124)[22U] ;
28802  _cstruct __cil_tmp125 ;
28803  __u8 __cil_tmp126 ;
28804  unsigned int __cil_tmp127 ;
28805  char *__cil_tmp128 ;
28806  unsigned long __cil_tmp129 ;
28807  char *__cil_tmp130 ;
28808  unsigned long __cil_tmp131 ;
28809  char *__cil_tmp132 ;
28810  char const   *__cil_tmp133 ;
28811  struct device *__cil_tmp134 ;
28812  struct device  const  *__cil_tmp135 ;
28813  char *__cil_tmp136 ;
28814  u8 __cil_tmp137 ;
28815  unsigned int __cil_tmp138 ;
28816  unsigned int __cil_tmp139 ;
28817  u8 (*__cil_tmp140)[23U] ;
28818  void *__cil_tmp141 ;
28819  void *__cil_tmp142 ;
28820  char *__cil_tmp143 ;
28821  void const   *__cil_tmp144 ;
28822  u8 (*__cil_tmp145)[23U] ;
28823  _cstruct __cil_tmp146 ;
28824  __u8 __cil_tmp147 ;
28825  unsigned int __cil_tmp148 ;
28826  unsigned int __cil_tmp149 ;
28827  unsigned int __cil_tmp150 ;
28828  int __cil_tmp151 ;
28829  long __cil_tmp152 ;
28830  _cstruct __cil_tmp153 ;
28831  char const   *__cil_tmp154 ;
28832  __u32 __cil_tmp155 ;
28833  __u16 __cil_tmp156 ;
28834  int __cil_tmp157 ;
28835  unsigned int __cil_tmp158 ;
28836  unsigned int __cil_tmp159 ;
28837  int __cil_tmp160 ;
28838  long __cil_tmp161 ;
28839  _cstruct __cil_tmp162 ;
28840  char const   *__cil_tmp163 ;
28841  unsigned int __cil_tmp164 ;
28842  unsigned int __cil_tmp165 ;
28843  int __cil_tmp166 ;
28844  long __cil_tmp167 ;
28845  _cstruct __cil_tmp168 ;
28846  char const   *__cil_tmp169 ;
28847  unsigned int __cil_tmp170 ;
28848  unsigned int __cil_tmp171 ;
28849  int __cil_tmp172 ;
28850  long __cil_tmp173 ;
28851  _cstruct __cil_tmp174 ;
28852  char const   *__cil_tmp175 ;
28853  spinlock_t *__cil_tmp176 ;
28854  void *__cil_tmp177 ;
28855  unsigned long __cil_tmp178 ;
28856  void *__cil_tmp179 ;
28857  unsigned long __cil_tmp180 ;
28858  struct device *__cil_tmp181 ;
28859  struct device  const  *__cil_tmp182 ;
28860  void *__cil_tmp183 ;
28861  int __cil_tmp184 ;
28862  int __cil_tmp185 ;
28863  struct device *__cil_tmp186 ;
28864  struct device  const  *__cil_tmp187 ;
28865  void *__cil_tmp188 ;
28866  int __cil_tmp189 ;
28867  spinlock_t *__cil_tmp190 ;
28868  __u16 __cil_tmp191 ;
28869  int __cil_tmp192 ;
28870  int __cil_tmp193 ;
28871  int __cil_tmp194 ;
28872  struct list_head *__cil_tmp195 ;
28873  u32 __cil_tmp196 ;
28874  unsigned int __cil_tmp197 ;
28875  u16 __cil_tmp198 ;
28876  int __cil_tmp199 ;
28877  int __cil_tmp200 ;
28878  struct sk_buff *__cil_tmp201 ;
28879  unsigned long __cil_tmp202 ;
28880  unsigned long __cil_tmp203 ;
28881  struct device *__cil_tmp204 ;
28882  struct device  const  *__cil_tmp205 ;
28883  _cmsg *__cil_tmp206 ;
28884  enum debuglevel __cil_tmp207 ;
28885  _cmsg *__cil_tmp208 ;
28886  spinlock_t *__cil_tmp209 ;
28887  void *__cil_tmp210 ;
28888  unsigned int __cil_tmp211 ;
28889  spinlock_t *__cil_tmp212 ;
28890  struct capi_ctr *__cil_tmp213 ;
28891  u16 __cil_tmp214 ;
28892  int __cil_tmp215 ;
28893  u16 __cil_tmp216 ;
28894  struct list_head *__cil_tmp217 ;
28895  struct list_head *__cil_tmp218 ;
28896  unsigned long __cil_tmp219 ;
28897  struct list_head *__cil_tmp220 ;
28898  unsigned long __cil_tmp221 ;
28899  void *__cil_tmp222 ;
28900  unsigned long __cil_tmp223 ;
28901  void *__cil_tmp224 ;
28902  unsigned long __cil_tmp225 ;
28903
28904  {
28905#line 509
28906  cs = at_state->cs;
28907#line 510
28908  bcs = at_state->bcs;
28909#line 511
28910  __cil_tmp37 = cs->iif;
28911#line 511
28912  iif = (struct gigaset_capi_ctr *)__cil_tmp37;
28913  {
28914#line 525
28915  __cil_tmp38 = (struct bc_state *)0;
28916#line 525
28917  __cil_tmp39 = (unsigned long )__cil_tmp38;
28918#line 525
28919  __cil_tmp40 = (unsigned long )bcs;
28920#line 525
28921  if (__cil_tmp40 == __cil_tmp39) {
28922#line 526
28923    return (2);
28924  } else {
28925
28926  }
28927  }
28928  {
28929#line 529
28930  __cil_tmp41 = & iif->hcmsg;
28931#line 529
28932  __cil_tmp42 = (__u16 )0;
28933#line 529
28934  __cil_tmp43 = (__u8 )2;
28935#line 529
28936  __cil_tmp44 = (__u8 )130;
28937#line 529
28938  __cil_tmp45 = (__u16 )0;
28939#line 529
28940  __cil_tmp46 = bcs->channel;
28941#line 529
28942  __cil_tmp47 = __cil_tmp46 + 1;
28943#line 529
28944  __cil_tmp48 = __cil_tmp47 << 8;
28945#line 529
28946  __cil_tmp49 = iif->ctr.cnr;
28947#line 529
28948  __cil_tmp50 = __cil_tmp49 | __cil_tmp48;
28949#line 529
28950  __cil_tmp51 = (__u32 )__cil_tmp50;
28951#line 529
28952  capi_cmsg_header(__cil_tmp41, __cil_tmp42, __cil_tmp43, __cil_tmp44, __cil_tmp45,
28953                   __cil_tmp51);
28954#line 533
28955  msgsize = 22U;
28956  }
28957  {
28958#line 536
28959  __cil_tmp52 = (char *)0;
28960#line 536
28961  __cil_tmp53 = (unsigned long )__cil_tmp52;
28962#line 536
28963  __cil_tmp54 = at_state->str_var[3];
28964#line 536
28965  __cil_tmp55 = (unsigned long )__cil_tmp54;
28966#line 536
28967  if (__cil_tmp55 != __cil_tmp53) {
28968    {
28969#line 538
28970    __cil_tmp56 = at_state->str_var[3];
28971#line 538
28972    __cil_tmp57 = & iif->bc_buf;
28973#line 538
28974    __cil_tmp58 = (u8 *)__cil_tmp57;
28975#line 538
28976    tmp = encode_ie(__cil_tmp56, __cil_tmp58, 11);
28977    }
28978#line 538
28979    if (tmp < 0) {
28980      {
28981#line 540
28982      __cil_tmp59 = cs->dev;
28983#line 540
28984      __cil_tmp60 = (struct device  const  *)__cil_tmp59;
28985#line 540
28986      __cil_tmp61 = at_state->str_var[3];
28987#line 540
28988      dev_warn(__cil_tmp60, "RING ignored - bad BC %s\n", __cil_tmp61);
28989      }
28990#line 542
28991      return (2);
28992    } else {
28993
28994    }
28995#line 546
28996    iif->hcmsg.CIPValue = (__u16 )0U;
28997#line 547
28998    i = 0;
28999#line 547
29000    goto ldv_35336;
29001    ldv_35335: ;
29002    {
29003#line 548
29004    __cil_tmp62 = (u8 *)0;
29005#line 548
29006    __cil_tmp63 = (unsigned long )__cil_tmp62;
29007#line 548
29008    __cil_tmp64 = (unsigned long )cip2bchlc[i].bc;
29009#line 548
29010    if (__cil_tmp64 != __cil_tmp63) {
29011      {
29012#line 548
29013      __cil_tmp65 = (u8 *)0;
29014#line 548
29015      __cil_tmp66 = (unsigned long )__cil_tmp65;
29016#line 548
29017      __cil_tmp67 = (unsigned long )cip2bchlc[i].hlc;
29018#line 548
29019      if (__cil_tmp67 == __cil_tmp66) {
29020        {
29021#line 548
29022        __cil_tmp68 = (char const   *)cip2bchlc[i].bc;
29023#line 548
29024        __cil_tmp69 = at_state->str_var[3];
29025#line 548
29026        __cil_tmp70 = (char const   *)__cil_tmp69;
29027#line 548
29028        tmp___0 = strcmp(__cil_tmp68, __cil_tmp70);
29029        }
29030#line 548
29031        if (tmp___0 == 0) {
29032#line 552
29033          iif->hcmsg.CIPValue = (__u16 )i;
29034#line 553
29035          goto ldv_35334;
29036        } else {
29037
29038        }
29039      } else {
29040
29041      }
29042      }
29043    } else {
29044
29045    }
29046    }
29047#line 547
29048    i = i + 1;
29049    ldv_35336: ;
29050    {
29051#line 547
29052    __cil_tmp71 = (unsigned int )i;
29053#line 547
29054    if (__cil_tmp71 <= 28U) {
29055#line 548
29056      goto ldv_35335;
29057    } else {
29058#line 550
29059      goto ldv_35334;
29060    }
29061    }
29062    ldv_35334: ;
29063  } else {
29064    {
29065#line 557
29066    iif->hcmsg.CIPValue = (__u16 )1U;
29067#line 558
29068    __cil_tmp72 = (char *)cip2bchlc[1].bc;
29069#line 558
29070    __cil_tmp73 = & iif->bc_buf;
29071#line 558
29072    __cil_tmp74 = (u8 *)__cil_tmp73;
29073#line 558
29074    encode_ie(__cil_tmp72, __cil_tmp74, 11);
29075    }
29076  }
29077  }
29078#line 560
29079  __cil_tmp75 = & iif->bc_buf;
29080#line 560
29081  iif->hcmsg.BC = (_cstruct )__cil_tmp75;
29082#line 561
29083  __cil_tmp76 = iif->hcmsg.BC;
29084#line 561
29085  __cil_tmp77 = *__cil_tmp76;
29086#line 561
29087  __cil_tmp78 = (unsigned int )__cil_tmp77;
29088#line 561
29089  msgsize = __cil_tmp78 + msgsize;
29090  {
29091#line 564
29092  __cil_tmp79 = (char *)0;
29093#line 564
29094  __cil_tmp80 = (unsigned long )__cil_tmp79;
29095#line 564
29096  __cil_tmp81 = at_state->str_var[4];
29097#line 564
29098  __cil_tmp82 = (unsigned long )__cil_tmp81;
29099#line 564
29100  if (__cil_tmp82 != __cil_tmp80) {
29101    {
29102#line 566
29103    __cil_tmp83 = at_state->str_var[4];
29104#line 566
29105    __cil_tmp84 = & iif->hlc_buf;
29106#line 566
29107    __cil_tmp85 = (u8 *)__cil_tmp84;
29108#line 566
29109    tmp___1 = encode_ie(__cil_tmp83, __cil_tmp85, 3);
29110    }
29111#line 566
29112    if (tmp___1 < 0) {
29113      {
29114#line 568
29115      __cil_tmp86 = cs->dev;
29116#line 568
29117      __cil_tmp87 = (struct device  const  *)__cil_tmp86;
29118#line 568
29119      __cil_tmp88 = at_state->str_var[4];
29120#line 568
29121      dev_warn(__cil_tmp87, "RING ignored - bad HLC %s\n", __cil_tmp88);
29122      }
29123#line 570
29124      return (2);
29125    } else {
29126
29127    }
29128#line 572
29129    __cil_tmp89 = & iif->hlc_buf;
29130#line 572
29131    iif->hcmsg.HLC = (_cstruct )__cil_tmp89;
29132#line 573
29133    __cil_tmp90 = iif->hcmsg.HLC;
29134#line 573
29135    __cil_tmp91 = *__cil_tmp90;
29136#line 573
29137    __cil_tmp92 = (unsigned int )__cil_tmp91;
29138#line 573
29139    msgsize = __cil_tmp92 + msgsize;
29140    {
29141#line 577
29142    __cil_tmp93 = (char *)0;
29143#line 577
29144    __cil_tmp94 = (unsigned long )__cil_tmp93;
29145#line 577
29146    __cil_tmp95 = at_state->str_var[3];
29147#line 577
29148    __cil_tmp96 = (unsigned long )__cil_tmp95;
29149#line 577
29150    if (__cil_tmp96 != __cil_tmp94) {
29151#line 578
29152      i = 0;
29153#line 578
29154      goto ldv_35341;
29155      ldv_35340: ;
29156      {
29157#line 579
29158      __cil_tmp97 = (u8 *)0;
29159#line 579
29160      __cil_tmp98 = (unsigned long )__cil_tmp97;
29161#line 579
29162      __cil_tmp99 = (unsigned long )cip2bchlc[i].hlc;
29163#line 579
29164      if (__cil_tmp99 != __cil_tmp98) {
29165        {
29166#line 579
29167        __cil_tmp100 = (char const   *)cip2bchlc[i].hlc;
29168#line 579
29169        __cil_tmp101 = at_state->str_var[4];
29170#line 579
29171        __cil_tmp102 = (char const   *)__cil_tmp101;
29172#line 579
29173        tmp___2 = strcmp(__cil_tmp100, __cil_tmp102);
29174        }
29175#line 579
29176        if (tmp___2 == 0) {
29177          {
29178#line 579
29179          __cil_tmp103 = (char const   *)cip2bchlc[i].bc;
29180#line 579
29181          __cil_tmp104 = at_state->str_var[3];
29182#line 579
29183          __cil_tmp105 = (char const   *)__cil_tmp104;
29184#line 579
29185          tmp___3 = strcmp(__cil_tmp103, __cil_tmp105);
29186          }
29187#line 579
29188          if (tmp___3 == 0) {
29189#line 584
29190            iif->hcmsg.CIPValue = (__u16 )i;
29191#line 585
29192            goto ldv_35339;
29193          } else {
29194
29195          }
29196        } else {
29197
29198        }
29199      } else {
29200
29201      }
29202      }
29203#line 578
29204      i = i + 1;
29205      ldv_35341: ;
29206      {
29207#line 578
29208      __cil_tmp106 = (unsigned int )i;
29209#line 578
29210      if (__cil_tmp106 <= 28U) {
29211#line 579
29212        goto ldv_35340;
29213      } else {
29214#line 581
29215        goto ldv_35339;
29216      }
29217      }
29218      ldv_35339: ;
29219    } else {
29220
29221    }
29222    }
29223  } else {
29224
29225  }
29226  }
29227  {
29228#line 590
29229  __cil_tmp107 = (char *)0;
29230#line 590
29231  __cil_tmp108 = (unsigned long )__cil_tmp107;
29232#line 590
29233  __cil_tmp109 = at_state->str_var[1];
29234#line 590
29235  __cil_tmp110 = (unsigned long )__cil_tmp109;
29236#line 590
29237  if (__cil_tmp110 != __cil_tmp108) {
29238    {
29239#line 591
29240    __cil_tmp111 = at_state->str_var[1];
29241#line 591
29242    __cil_tmp112 = (char const   *)__cil_tmp111;
29243#line 591
29244    tmp___4 = strlen(__cil_tmp112);
29245#line 591
29246    i = (int )tmp___4;
29247    }
29248#line 592
29249    if (i > 20) {
29250      {
29251#line 593
29252      __cil_tmp113 = cs->dev;
29253#line 593
29254      __cil_tmp114 = (struct device  const  *)__cil_tmp113;
29255#line 593
29256      __cil_tmp115 = at_state->str_var[3];
29257#line 593
29258      dev_warn(__cil_tmp114, "RING ignored - bad number %s\n", __cil_tmp115);
29259      }
29260#line 595
29261      return (2);
29262    } else {
29263
29264    }
29265    {
29266#line 597
29267    __cil_tmp116 = (u8 )i;
29268#line 597
29269    __cil_tmp117 = (unsigned int )__cil_tmp116;
29270#line 597
29271    __cil_tmp118 = __cil_tmp117 + 1U;
29272#line 597
29273    iif->cdpty_buf[0] = (u8 )__cil_tmp118;
29274#line 598
29275    iif->cdpty_buf[1] = (u8 )128U;
29276#line 599
29277    __len = (size_t )i;
29278#line 599
29279    __cil_tmp119 = & iif->cdpty_buf;
29280#line 599
29281    __cil_tmp120 = (void *)__cil_tmp119;
29282#line 599
29283    __cil_tmp121 = __cil_tmp120 + 2U;
29284#line 599
29285    __cil_tmp122 = at_state->str_var[1];
29286#line 599
29287    __cil_tmp123 = (void const   *)__cil_tmp122;
29288#line 599
29289    __ret = __builtin_memcpy(__cil_tmp121, __cil_tmp123, __len);
29290#line 600
29291    __cil_tmp124 = & iif->cdpty_buf;
29292#line 600
29293    iif->hcmsg.CalledPartyNumber = (_cstruct )__cil_tmp124;
29294#line 601
29295    __cil_tmp125 = iif->hcmsg.CalledPartyNumber;
29296#line 601
29297    __cil_tmp126 = *__cil_tmp125;
29298#line 601
29299    __cil_tmp127 = (unsigned int )__cil_tmp126;
29300#line 601
29301    msgsize = __cil_tmp127 + msgsize;
29302    }
29303  } else {
29304
29305  }
29306  }
29307  {
29308#line 605
29309  __cil_tmp128 = (char *)0;
29310#line 605
29311  __cil_tmp129 = (unsigned long )__cil_tmp128;
29312#line 605
29313  __cil_tmp130 = at_state->str_var[0];
29314#line 605
29315  __cil_tmp131 = (unsigned long )__cil_tmp130;
29316#line 605
29317  if (__cil_tmp131 != __cil_tmp129) {
29318    {
29319#line 606
29320    __cil_tmp132 = at_state->str_var[0];
29321#line 606
29322    __cil_tmp133 = (char const   *)__cil_tmp132;
29323#line 606
29324    tmp___5 = strlen(__cil_tmp133);
29325#line 606
29326    i = (int )tmp___5;
29327    }
29328#line 607
29329    if (i > 20) {
29330      {
29331#line 608
29332      __cil_tmp134 = cs->dev;
29333#line 608
29334      __cil_tmp135 = (struct device  const  *)__cil_tmp134;
29335#line 608
29336      __cil_tmp136 = at_state->str_var[3];
29337#line 608
29338      dev_warn(__cil_tmp135, "RING ignored - bad number %s\n", __cil_tmp136);
29339      }
29340#line 610
29341      return (2);
29342    } else {
29343
29344    }
29345    {
29346#line 612
29347    __cil_tmp137 = (u8 )i;
29348#line 612
29349    __cil_tmp138 = (unsigned int )__cil_tmp137;
29350#line 612
29351    __cil_tmp139 = __cil_tmp138 + 2U;
29352#line 612
29353    iif->cgpty_buf[0] = (u8 )__cil_tmp139;
29354#line 613
29355    iif->cgpty_buf[1] = (u8 )0U;
29356#line 614
29357    iif->cgpty_buf[2] = (u8 )128U;
29358#line 615
29359    __len___0 = (size_t )i;
29360#line 615
29361    __cil_tmp140 = & iif->cgpty_buf;
29362#line 615
29363    __cil_tmp141 = (void *)__cil_tmp140;
29364#line 615
29365    __cil_tmp142 = __cil_tmp141 + 3U;
29366#line 615
29367    __cil_tmp143 = at_state->str_var[0];
29368#line 615
29369    __cil_tmp144 = (void const   *)__cil_tmp143;
29370#line 615
29371    __ret___0 = __builtin_memcpy(__cil_tmp142, __cil_tmp144, __len___0);
29372#line 616
29373    __cil_tmp145 = & iif->cgpty_buf;
29374#line 616
29375    iif->hcmsg.CallingPartyNumber = (_cstruct )__cil_tmp145;
29376#line 617
29377    __cil_tmp146 = iif->hcmsg.CallingPartyNumber;
29378#line 617
29379    __cil_tmp147 = *__cil_tmp146;
29380#line 617
29381    __cil_tmp148 = (unsigned int )__cil_tmp147;
29382#line 617
29383    msgsize = __cil_tmp148 + msgsize;
29384    }
29385  } else {
29386
29387  }
29388  }
29389  {
29390#line 630
29391  __cil_tmp149 = (unsigned int )gigaset_debuglevel;
29392#line 630
29393  __cil_tmp150 = __cil_tmp149 & 32U;
29394#line 630
29395  __cil_tmp151 = __cil_tmp150 != 0U;
29396#line 630
29397  __cil_tmp152 = (long )__cil_tmp151;
29398#line 630
29399  tmp___7 = __builtin_expect(__cil_tmp152, 0L);
29400  }
29401#line 630
29402  if (tmp___7 != 0L) {
29403    {
29404#line 630
29405    __cil_tmp153 = iif->hcmsg.BC;
29406#line 630
29407    __cil_tmp154 = (char const   *)__cil_tmp153;
29408#line 630
29409    tmp___6 = format_ie(__cil_tmp154);
29410#line 630
29411    __cil_tmp155 = iif->hcmsg.adr.adrPLCI;
29412#line 630
29413    __cil_tmp156 = iif->hcmsg.CIPValue;
29414#line 630
29415    __cil_tmp157 = (int )__cil_tmp156;
29416#line 630
29417    printk("<7>gigaset: icall: PLCI %x CIP %d BC %s\n", __cil_tmp155, __cil_tmp157,
29418           tmp___6);
29419    }
29420  } else {
29421
29422  }
29423  {
29424#line 633
29425  __cil_tmp158 = (unsigned int )gigaset_debuglevel;
29426#line 633
29427  __cil_tmp159 = __cil_tmp158 & 32U;
29428#line 633
29429  __cil_tmp160 = __cil_tmp159 != 0U;
29430#line 633
29431  __cil_tmp161 = (long )__cil_tmp160;
29432#line 633
29433  tmp___9 = __builtin_expect(__cil_tmp161, 0L);
29434  }
29435#line 633
29436  if (tmp___9 != 0L) {
29437    {
29438#line 633
29439    __cil_tmp162 = iif->hcmsg.HLC;
29440#line 633
29441    __cil_tmp163 = (char const   *)__cil_tmp162;
29442#line 633
29443    tmp___8 = format_ie(__cil_tmp163);
29444#line 633
29445    printk("<7>gigaset: icall: HLC %s\n", tmp___8);
29446    }
29447  } else {
29448
29449  }
29450  {
29451#line 635
29452  __cil_tmp164 = (unsigned int )gigaset_debuglevel;
29453#line 635
29454  __cil_tmp165 = __cil_tmp164 & 32U;
29455#line 635
29456  __cil_tmp166 = __cil_tmp165 != 0U;
29457#line 635
29458  __cil_tmp167 = (long )__cil_tmp166;
29459#line 635
29460  tmp___11 = __builtin_expect(__cil_tmp167, 0L);
29461  }
29462#line 635
29463  if (tmp___11 != 0L) {
29464    {
29465#line 635
29466    __cil_tmp168 = iif->hcmsg.CallingPartyNumber;
29467#line 635
29468    __cil_tmp169 = (char const   *)__cil_tmp168;
29469#line 635
29470    tmp___10 = format_ie(__cil_tmp169);
29471#line 635
29472    printk("<7>gigaset: icall: CgPty %s\n", tmp___10);
29473    }
29474  } else {
29475
29476  }
29477  {
29478#line 637
29479  __cil_tmp170 = (unsigned int )gigaset_debuglevel;
29480#line 637
29481  __cil_tmp171 = __cil_tmp170 & 32U;
29482#line 637
29483  __cil_tmp172 = __cil_tmp171 != 0U;
29484#line 637
29485  __cil_tmp173 = (long )__cil_tmp172;
29486#line 637
29487  tmp___13 = __builtin_expect(__cil_tmp173, 0L);
29488  }
29489#line 637
29490  if (tmp___13 != 0L) {
29491    {
29492#line 637
29493    __cil_tmp174 = iif->hcmsg.CalledPartyNumber;
29494#line 637
29495    __cil_tmp175 = (char const   *)__cil_tmp174;
29496#line 637
29497    tmp___12 = format_ie(__cil_tmp175);
29498#line 637
29499    printk("<7>gigaset: icall: CdPty %s\n", tmp___12);
29500    }
29501  } else {
29502
29503  }
29504  {
29505#line 641
29506  __cil_tmp176 = & bcs->aplock;
29507#line 641
29508  tmp___14 = spinlock_check(__cil_tmp176);
29509#line 641
29510  flags = _raw_spin_lock_irqsave(tmp___14);
29511  }
29512  {
29513#line 642
29514  __cil_tmp177 = (void *)0;
29515#line 642
29516  __cil_tmp178 = (unsigned long )__cil_tmp177;
29517#line 642
29518  __cil_tmp179 = bcs->ap;
29519#line 642
29520  __cil_tmp180 = (unsigned long )__cil_tmp179;
29521#line 642
29522  if (__cil_tmp180 != __cil_tmp178) {
29523    {
29524#line 643
29525    __cil_tmp181 = cs->dev;
29526#line 643
29527    __cil_tmp182 = (struct device  const  *)__cil_tmp181;
29528#line 643
29529    __cil_tmp183 = bcs->ap;
29530#line 643
29531    __cil_tmp184 = bcs->apconnstate;
29532#line 643
29533    dev_warn(__cil_tmp182, "%s: channel not properly cleared (%p/%d)\n", "gigaset_isdn_icall",
29534             __cil_tmp183, __cil_tmp184);
29535#line 645
29536    bcs->ap = (void *)0;
29537#line 646
29538    bcs->apconnstate = 0;
29539    }
29540  } else {
29541    {
29542#line 642
29543    __cil_tmp185 = bcs->apconnstate;
29544#line 642
29545    if (__cil_tmp185 != 0) {
29546      {
29547#line 643
29548      __cil_tmp186 = cs->dev;
29549#line 643
29550      __cil_tmp187 = (struct device  const  *)__cil_tmp186;
29551#line 643
29552      __cil_tmp188 = bcs->ap;
29553#line 643
29554      __cil_tmp189 = bcs->apconnstate;
29555#line 643
29556      dev_warn(__cil_tmp187, "%s: channel not properly cleared (%p/%d)\n", "gigaset_isdn_icall",
29557               __cil_tmp188, __cil_tmp189);
29558#line 645
29559      bcs->ap = (void *)0;
29560#line 646
29561      bcs->apconnstate = 0;
29562      }
29563    } else {
29564
29565    }
29566    }
29567  }
29568  }
29569  {
29570#line 648
29571  __cil_tmp190 = & bcs->aplock;
29572#line 648
29573  spin_unlock_irqrestore(__cil_tmp190, flags);
29574#line 649
29575  __cil_tmp191 = iif->hcmsg.CIPValue;
29576#line 649
29577  __cil_tmp192 = (int )__cil_tmp191;
29578#line 649
29579  __cil_tmp193 = 1 << __cil_tmp192;
29580#line 649
29581  __cil_tmp194 = __cil_tmp193 | 1;
29582#line 649
29583  actCIPmask = (u32 )__cil_tmp194;
29584#line 650
29585  __cil_tmp195 = iif->appls.next;
29586#line 650
29587  __mptr = (struct list_head  const  *)__cil_tmp195;
29588#line 650
29589  ap = (struct gigaset_capi_appl *)__mptr;
29590  }
29591#line 650
29592  goto ldv_35361;
29593  ldv_35360: ;
29594  {
29595#line 651
29596  __cil_tmp196 = ap->listenCIPmask;
29597#line 651
29598  __cil_tmp197 = __cil_tmp196 & actCIPmask;
29599#line 651
29600  if (__cil_tmp197 != 0U) {
29601    {
29602#line 653
29603    iif->hcmsg.ApplId = ap->id;
29604#line 654
29605    tmp___15 = ap->nextMessageNumber;
29606#line 654
29607    __cil_tmp198 = ap->nextMessageNumber;
29608#line 654
29609    __cil_tmp199 = (int )__cil_tmp198;
29610#line 654
29611    __cil_tmp200 = __cil_tmp199 + 1;
29612#line 654
29613    ap->nextMessageNumber = (u16 )__cil_tmp200;
29614#line 654
29615    iif->hcmsg.Messagenumber = tmp___15;
29616#line 656
29617    skb = alloc_skb(msgsize, 32U);
29618    }
29619    {
29620#line 657
29621    __cil_tmp201 = (struct sk_buff *)0;
29622#line 657
29623    __cil_tmp202 = (unsigned long )__cil_tmp201;
29624#line 657
29625    __cil_tmp203 = (unsigned long )skb;
29626#line 657
29627    if (__cil_tmp203 == __cil_tmp202) {
29628      {
29629#line 658
29630      __cil_tmp204 = cs->dev;
29631#line 658
29632      __cil_tmp205 = (struct device  const  *)__cil_tmp204;
29633#line 658
29634      dev_err(__cil_tmp205, "%s: out of memory\n", "gigaset_isdn_icall");
29635      }
29636#line 660
29637      goto ldv_35356;
29638    } else {
29639
29640    }
29641    }
29642    {
29643#line 662
29644    tmp___16 = __skb_put(skb, msgsize);
29645#line 662
29646    __cil_tmp206 = & iif->hcmsg;
29647#line 662
29648    capi_cmsg2message(__cil_tmp206, tmp___16);
29649#line 663
29650    __cil_tmp207 = (enum debuglevel )32;
29651#line 663
29652    __cil_tmp208 = & iif->hcmsg;
29653#line 663
29654    dump_cmsg(__cil_tmp207, "gigaset_isdn_icall", __cil_tmp208);
29655#line 666
29656    __cil_tmp209 = & bcs->aplock;
29657#line 666
29658    tmp___17 = spinlock_check(__cil_tmp209);
29659#line 666
29660    flags = _raw_spin_lock_irqsave(tmp___17);
29661#line 667
29662    __cil_tmp210 = bcs->ap;
29663#line 667
29664    ap->bcnext = (struct gigaset_capi_appl *)__cil_tmp210;
29665#line 668
29666    bcs->ap = (void *)ap;
29667#line 669
29668    __cil_tmp211 = bcs->chstate;
29669#line 669
29670    bcs->chstate = __cil_tmp211 | 4U;
29671#line 670
29672    bcs->apconnstate = 1;
29673#line 671
29674    __cil_tmp212 = & bcs->aplock;
29675#line 671
29676    spin_unlock_irqrestore(__cil_tmp212, flags);
29677#line 674
29678    __cil_tmp213 = & iif->ctr;
29679#line 674
29680    __cil_tmp214 = ap->id;
29681#line 674
29682    __cil_tmp215 = (int )__cil_tmp214;
29683#line 674
29684    __cil_tmp216 = (u16 )__cil_tmp215;
29685#line 674
29686    capi_ctr_handle_message(__cil_tmp213, __cil_tmp216, skb);
29687    }
29688  } else {
29689
29690  }
29691  }
29692#line 650
29693  __cil_tmp217 = ap->ctrlist.next;
29694#line 650
29695  __mptr___0 = (struct list_head  const  *)__cil_tmp217;
29696#line 650
29697  ap = (struct gigaset_capi_appl *)__mptr___0;
29698  ldv_35361: ;
29699  {
29700#line 650
29701  __cil_tmp218 = & iif->appls;
29702#line 650
29703  __cil_tmp219 = (unsigned long )__cil_tmp218;
29704#line 650
29705  __cil_tmp220 = & ap->ctrlist;
29706#line 650
29707  __cil_tmp221 = (unsigned long )__cil_tmp220;
29708#line 650
29709  if (__cil_tmp221 != __cil_tmp219) {
29710#line 651
29711    goto ldv_35360;
29712  } else {
29713#line 653
29714    goto ldv_35356;
29715  }
29716  }
29717  ldv_35356: ;
29718  {
29719#line 682
29720  __cil_tmp222 = (void *)0;
29721#line 682
29722  __cil_tmp223 = (unsigned long )__cil_tmp222;
29723#line 682
29724  __cil_tmp224 = bcs->ap;
29725#line 682
29726  __cil_tmp225 = (unsigned long )__cil_tmp224;
29727#line 682
29728  if (__cil_tmp225 != __cil_tmp223) {
29729#line 682
29730    tmp___18 = 1;
29731  } else {
29732#line 682
29733    tmp___18 = 2;
29734  }
29735  }
29736#line 682
29737  return (tmp___18);
29738}
29739}
29740#line 689 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
29741static void send_disconnect_ind(struct bc_state *bcs , struct gigaset_capi_appl *ap ,
29742                                u16 reason ) 
29743{ struct cardstate *cs ;
29744  struct gigaset_capi_ctr *iif ;
29745  struct sk_buff *skb ;
29746  u16 tmp ;
29747  unsigned char *tmp___0 ;
29748  void *__cil_tmp9 ;
29749  int __cil_tmp10 ;
29750  u16 __cil_tmp11 ;
29751  int __cil_tmp12 ;
29752  int __cil_tmp13 ;
29753  _cmsg *__cil_tmp14 ;
29754  u16 __cil_tmp15 ;
29755  int __cil_tmp16 ;
29756  __u16 __cil_tmp17 ;
29757  __u8 __cil_tmp18 ;
29758  __u8 __cil_tmp19 ;
29759  int __cil_tmp20 ;
29760  int __cil_tmp21 ;
29761  int __cil_tmp22 ;
29762  int __cil_tmp23 ;
29763  int __cil_tmp24 ;
29764  __u32 __cil_tmp25 ;
29765  struct sk_buff *__cil_tmp26 ;
29766  unsigned long __cil_tmp27 ;
29767  unsigned long __cil_tmp28 ;
29768  struct device *__cil_tmp29 ;
29769  struct device  const  *__cil_tmp30 ;
29770  _cmsg *__cil_tmp31 ;
29771  enum debuglevel __cil_tmp32 ;
29772  _cmsg *__cil_tmp33 ;
29773  struct capi_ctr *__cil_tmp34 ;
29774  u16 __cil_tmp35 ;
29775  int __cil_tmp36 ;
29776  u16 __cil_tmp37 ;
29777
29778  {
29779#line 692
29780  cs = bcs->cs;
29781#line 693
29782  __cil_tmp9 = cs->iif;
29783#line 693
29784  iif = (struct gigaset_capi_ctr *)__cil_tmp9;
29785  {
29786#line 696
29787  __cil_tmp10 = bcs->apconnstate;
29788#line 696
29789  if (__cil_tmp10 == 0) {
29790#line 697
29791    return;
29792  } else {
29793
29794  }
29795  }
29796  {
29797#line 699
29798  tmp = ap->nextMessageNumber;
29799#line 699
29800  __cil_tmp11 = ap->nextMessageNumber;
29801#line 699
29802  __cil_tmp12 = (int )__cil_tmp11;
29803#line 699
29804  __cil_tmp13 = __cil_tmp12 + 1;
29805#line 699
29806  ap->nextMessageNumber = (u16 )__cil_tmp13;
29807#line 699
29808  __cil_tmp14 = & iif->hcmsg;
29809#line 699
29810  __cil_tmp15 = ap->id;
29811#line 699
29812  __cil_tmp16 = (int )__cil_tmp15;
29813#line 699
29814  __cil_tmp17 = (__u16 )__cil_tmp16;
29815#line 699
29816  __cil_tmp18 = (__u8 )4;
29817#line 699
29818  __cil_tmp19 = (__u8 )130;
29819#line 699
29820  __cil_tmp20 = bcs->channel;
29821#line 699
29822  __cil_tmp21 = __cil_tmp20 + 1;
29823#line 699
29824  __cil_tmp22 = __cil_tmp21 << 8;
29825#line 699
29826  __cil_tmp23 = iif->ctr.cnr;
29827#line 699
29828  __cil_tmp24 = __cil_tmp23 | __cil_tmp22;
29829#line 699
29830  __cil_tmp25 = (__u32 )__cil_tmp24;
29831#line 699
29832  capi_cmsg_header(__cil_tmp14, __cil_tmp17, __cil_tmp18, __cil_tmp19, tmp, __cil_tmp25);
29833#line 702
29834  iif->hcmsg.Reason = reason;
29835#line 703
29836  skb = alloc_skb(14U, 32U);
29837  }
29838  {
29839#line 704
29840  __cil_tmp26 = (struct sk_buff *)0;
29841#line 704
29842  __cil_tmp27 = (unsigned long )__cil_tmp26;
29843#line 704
29844  __cil_tmp28 = (unsigned long )skb;
29845#line 704
29846  if (__cil_tmp28 == __cil_tmp27) {
29847    {
29848#line 705
29849    __cil_tmp29 = cs->dev;
29850#line 705
29851    __cil_tmp30 = (struct device  const  *)__cil_tmp29;
29852#line 705
29853    dev_err(__cil_tmp30, "%s: out of memory\n", "send_disconnect_ind");
29854    }
29855#line 706
29856    return;
29857  } else {
29858
29859  }
29860  }
29861  {
29862#line 708
29863  tmp___0 = __skb_put(skb, 14U);
29864#line 708
29865  __cil_tmp31 = & iif->hcmsg;
29866#line 708
29867  capi_cmsg2message(__cil_tmp31, tmp___0);
29868#line 709
29869  __cil_tmp32 = (enum debuglevel )32;
29870#line 709
29871  __cil_tmp33 = & iif->hcmsg;
29872#line 709
29873  dump_cmsg(__cil_tmp32, "send_disconnect_ind", __cil_tmp33);
29874#line 710
29875  __cil_tmp34 = & iif->ctr;
29876#line 710
29877  __cil_tmp35 = ap->id;
29878#line 710
29879  __cil_tmp36 = (int )__cil_tmp35;
29880#line 710
29881  __cil_tmp37 = (u16 )__cil_tmp36;
29882#line 710
29883  capi_ctr_handle_message(__cil_tmp34, __cil_tmp37, skb);
29884  }
29885#line 711
29886  return;
29887}
29888}
29889#line 718 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
29890static void send_disconnect_b3_ind(struct bc_state *bcs , struct gigaset_capi_appl *ap ) 
29891{ struct cardstate *cs ;
29892  struct gigaset_capi_ctr *iif ;
29893  struct sk_buff *skb ;
29894  u16 tmp ;
29895  unsigned char *tmp___0 ;
29896  void *__cil_tmp8 ;
29897  int __cil_tmp9 ;
29898  u16 __cil_tmp10 ;
29899  int __cil_tmp11 ;
29900  int __cil_tmp12 ;
29901  _cmsg *__cil_tmp13 ;
29902  u16 __cil_tmp14 ;
29903  int __cil_tmp15 ;
29904  __u16 __cil_tmp16 ;
29905  __u8 __cil_tmp17 ;
29906  __u8 __cil_tmp18 ;
29907  int __cil_tmp19 ;
29908  int __cil_tmp20 ;
29909  int __cil_tmp21 ;
29910  int __cil_tmp22 ;
29911  int __cil_tmp23 ;
29912  int __cil_tmp24 ;
29913  __u32 __cil_tmp25 ;
29914  struct sk_buff *__cil_tmp26 ;
29915  unsigned long __cil_tmp27 ;
29916  unsigned long __cil_tmp28 ;
29917  struct device *__cil_tmp29 ;
29918  struct device  const  *__cil_tmp30 ;
29919  _cmsg *__cil_tmp31 ;
29920  enum debuglevel __cil_tmp32 ;
29921  _cmsg *__cil_tmp33 ;
29922  struct capi_ctr *__cil_tmp34 ;
29923  u16 __cil_tmp35 ;
29924  int __cil_tmp36 ;
29925  u16 __cil_tmp37 ;
29926
29927  {
29928#line 721
29929  cs = bcs->cs;
29930#line 722
29931  __cil_tmp8 = cs->iif;
29932#line 722
29933  iif = (struct gigaset_capi_ctr *)__cil_tmp8;
29934  {
29935#line 726
29936  __cil_tmp9 = bcs->apconnstate;
29937#line 726
29938  if (__cil_tmp9 <= 1) {
29939#line 727
29940    return;
29941  } else {
29942
29943  }
29944  }
29945  {
29946#line 728
29947  bcs->apconnstate = 1;
29948#line 730
29949  tmp = ap->nextMessageNumber;
29950#line 730
29951  __cil_tmp10 = ap->nextMessageNumber;
29952#line 730
29953  __cil_tmp11 = (int )__cil_tmp10;
29954#line 730
29955  __cil_tmp12 = __cil_tmp11 + 1;
29956#line 730
29957  ap->nextMessageNumber = (u16 )__cil_tmp12;
29958#line 730
29959  __cil_tmp13 = & iif->hcmsg;
29960#line 730
29961  __cil_tmp14 = ap->id;
29962#line 730
29963  __cil_tmp15 = (int )__cil_tmp14;
29964#line 730
29965  __cil_tmp16 = (__u16 )__cil_tmp15;
29966#line 730
29967  __cil_tmp17 = (__u8 )132;
29968#line 730
29969  __cil_tmp18 = (__u8 )130;
29970#line 730
29971  __cil_tmp19 = bcs->channel;
29972#line 730
29973  __cil_tmp20 = __cil_tmp19 + 1;
29974#line 730
29975  __cil_tmp21 = __cil_tmp20 << 8;
29976#line 730
29977  __cil_tmp22 = iif->ctr.cnr;
29978#line 730
29979  __cil_tmp23 = __cil_tmp22 | __cil_tmp21;
29980#line 730
29981  __cil_tmp24 = __cil_tmp23 | 65536;
29982#line 730
29983  __cil_tmp25 = (__u32 )__cil_tmp24;
29984#line 730
29985  capi_cmsg_header(__cil_tmp13, __cil_tmp16, __cil_tmp17, __cil_tmp18, tmp, __cil_tmp25);
29986#line 733
29987  skb = alloc_skb(15U, 32U);
29988  }
29989  {
29990#line 734
29991  __cil_tmp26 = (struct sk_buff *)0;
29992#line 734
29993  __cil_tmp27 = (unsigned long )__cil_tmp26;
29994#line 734
29995  __cil_tmp28 = (unsigned long )skb;
29996#line 734
29997  if (__cil_tmp28 == __cil_tmp27) {
29998    {
29999#line 735
30000    __cil_tmp29 = cs->dev;
30001#line 735
30002    __cil_tmp30 = (struct device  const  *)__cil_tmp29;
30003#line 735
30004    dev_err(__cil_tmp30, "%s: out of memory\n", "send_disconnect_b3_ind");
30005    }
30006#line 736
30007    return;
30008  } else {
30009
30010  }
30011  }
30012  {
30013#line 738
30014  tmp___0 = __skb_put(skb, 15U);
30015#line 738
30016  __cil_tmp31 = & iif->hcmsg;
30017#line 738
30018  capi_cmsg2message(__cil_tmp31, tmp___0);
30019#line 740
30020  __cil_tmp32 = (enum debuglevel )32;
30021#line 740
30022  __cil_tmp33 = & iif->hcmsg;
30023#line 740
30024  dump_cmsg(__cil_tmp32, "send_disconnect_b3_ind", __cil_tmp33);
30025#line 741
30026  __cil_tmp34 = & iif->ctr;
30027#line 741
30028  __cil_tmp35 = ap->id;
30029#line 741
30030  __cil_tmp36 = (int )__cil_tmp35;
30031#line 741
30032  __cil_tmp37 = (u16 )__cil_tmp36;
30033#line 741
30034  capi_ctr_handle_message(__cil_tmp34, __cil_tmp37, skb);
30035  }
30036#line 742
30037  return;
30038}
30039}
30040#line 751 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30041void gigaset_isdn_connD(struct bc_state *bcs ) 
30042{ struct cardstate *cs ;
30043  struct gigaset_capi_ctr *iif ;
30044  struct gigaset_capi_appl *ap ;
30045  struct sk_buff *skb ;
30046  unsigned int msgsize ;
30047  unsigned long flags ;
30048  raw_spinlock_t *tmp ;
30049  long tmp___0 ;
30050  u16 tmp___1 ;
30051  unsigned char *tmp___2 ;
30052  void *__cil_tmp12 ;
30053  spinlock_t *__cil_tmp13 ;
30054  void *__cil_tmp14 ;
30055  struct gigaset_capi_appl *__cil_tmp15 ;
30056  unsigned long __cil_tmp16 ;
30057  unsigned long __cil_tmp17 ;
30058  spinlock_t *__cil_tmp18 ;
30059  unsigned int __cil_tmp19 ;
30060  unsigned int __cil_tmp20 ;
30061  int __cil_tmp21 ;
30062  long __cil_tmp22 ;
30063  int __cil_tmp23 ;
30064  spinlock_t *__cil_tmp24 ;
30065  struct device *__cil_tmp25 ;
30066  struct device  const  *__cil_tmp26 ;
30067  u16 __cil_tmp27 ;
30068  int __cil_tmp28 ;
30069  spinlock_t *__cil_tmp29 ;
30070  struct device *__cil_tmp30 ;
30071  struct device  const  *__cil_tmp31 ;
30072  struct gigaset_capi_appl *__cil_tmp32 ;
30073  u16 __cil_tmp33 ;
30074  int __cil_tmp34 ;
30075  struct gigaset_capi_appl *__cil_tmp35 ;
30076  u16 __cil_tmp36 ;
30077  struct gigaset_capi_appl *__cil_tmp37 ;
30078  struct gigaset_capi_appl *__cil_tmp38 ;
30079  unsigned long __cil_tmp39 ;
30080  struct gigaset_capi_appl *__cil_tmp40 ;
30081  unsigned long __cil_tmp41 ;
30082  u16 __cil_tmp42 ;
30083  int __cil_tmp43 ;
30084  int __cil_tmp44 ;
30085  _cmsg *__cil_tmp45 ;
30086  u16 __cil_tmp46 ;
30087  int __cil_tmp47 ;
30088  __u16 __cil_tmp48 ;
30089  __u8 __cil_tmp49 ;
30090  __u8 __cil_tmp50 ;
30091  int __cil_tmp51 ;
30092  int __cil_tmp52 ;
30093  int __cil_tmp53 ;
30094  int __cil_tmp54 ;
30095  int __cil_tmp55 ;
30096  __u32 __cil_tmp56 ;
30097  struct sk_buff *__cil_tmp57 ;
30098  unsigned long __cil_tmp58 ;
30099  unsigned long __cil_tmp59 ;
30100  struct device *__cil_tmp60 ;
30101  struct device  const  *__cil_tmp61 ;
30102  _cmsg *__cil_tmp62 ;
30103  enum debuglevel __cil_tmp63 ;
30104  _cmsg *__cil_tmp64 ;
30105  struct capi_ctr *__cil_tmp65 ;
30106  u16 __cil_tmp66 ;
30107  int __cil_tmp67 ;
30108  u16 __cil_tmp68 ;
30109
30110  {
30111  {
30112#line 753
30113  cs = bcs->cs;
30114#line 754
30115  __cil_tmp12 = cs->iif;
30116#line 754
30117  iif = (struct gigaset_capi_ctr *)__cil_tmp12;
30118#line 760
30119  __cil_tmp13 = & bcs->aplock;
30120#line 760
30121  tmp = spinlock_check(__cil_tmp13);
30122#line 760
30123  flags = _raw_spin_lock_irqsave(tmp);
30124#line 761
30125  __cil_tmp14 = bcs->ap;
30126#line 761
30127  ap = (struct gigaset_capi_appl *)__cil_tmp14;
30128  }
30129  {
30130#line 762
30131  __cil_tmp15 = (struct gigaset_capi_appl *)0;
30132#line 762
30133  __cil_tmp16 = (unsigned long )__cil_tmp15;
30134#line 762
30135  __cil_tmp17 = (unsigned long )ap;
30136#line 762
30137  if (__cil_tmp17 == __cil_tmp16) {
30138    {
30139#line 763
30140    __cil_tmp18 = & bcs->aplock;
30141#line 763
30142    spin_unlock_irqrestore(__cil_tmp18, flags);
30143#line 764
30144    __cil_tmp19 = (unsigned int )gigaset_debuglevel;
30145#line 764
30146    __cil_tmp20 = __cil_tmp19 & 32U;
30147#line 764
30148    __cil_tmp21 = __cil_tmp20 != 0U;
30149#line 764
30150    __cil_tmp22 = (long )__cil_tmp21;
30151#line 764
30152    tmp___0 = __builtin_expect(__cil_tmp22, 0L);
30153    }
30154#line 764
30155    if (tmp___0 != 0L) {
30156      {
30157#line 764
30158      printk("<7>gigaset: %s: application gone\n", "gigaset_isdn_connD");
30159      }
30160    } else {
30161
30162    }
30163#line 765
30164    return;
30165  } else {
30166
30167  }
30168  }
30169  {
30170#line 767
30171  __cil_tmp23 = bcs->apconnstate;
30172#line 767
30173  if (__cil_tmp23 == 0) {
30174    {
30175#line 768
30176    __cil_tmp24 = & bcs->aplock;
30177#line 768
30178    spin_unlock_irqrestore(__cil_tmp24, flags);
30179#line 769
30180    __cil_tmp25 = cs->dev;
30181#line 769
30182    __cil_tmp26 = (struct device  const  *)__cil_tmp25;
30183#line 769
30184    __cil_tmp27 = ap->id;
30185#line 769
30186    __cil_tmp28 = (int )__cil_tmp27;
30187#line 769
30188    dev_warn(__cil_tmp26, "%s: application %u not connected\n", "gigaset_isdn_connD",
30189             __cil_tmp28);
30190    }
30191#line 771
30192    return;
30193  } else {
30194
30195  }
30196  }
30197  {
30198#line 773
30199  __cil_tmp29 = & bcs->aplock;
30200#line 773
30201  spin_unlock_irqrestore(__cil_tmp29, flags);
30202  }
30203#line 774
30204  goto ldv_35393;
30205  ldv_35392: 
30206  {
30207#line 776
30208  __cil_tmp30 = cs->dev;
30209#line 776
30210  __cil_tmp31 = (struct device  const  *)__cil_tmp30;
30211#line 776
30212  __cil_tmp32 = ap->bcnext;
30213#line 776
30214  __cil_tmp33 = __cil_tmp32->id;
30215#line 776
30216  __cil_tmp34 = (int )__cil_tmp33;
30217#line 776
30218  dev_warn(__cil_tmp31, "%s: dropping extra application %u\n", "gigaset_isdn_connD",
30219           __cil_tmp34);
30220#line 778
30221  __cil_tmp35 = ap->bcnext;
30222#line 778
30223  __cil_tmp36 = (u16 )13060;
30224#line 778
30225  send_disconnect_ind(bcs, __cil_tmp35, __cil_tmp36);
30226#line 780
30227  __cil_tmp37 = ap->bcnext;
30228#line 780
30229  ap->bcnext = __cil_tmp37->bcnext;
30230  }
30231  ldv_35393: ;
30232  {
30233#line 774
30234  __cil_tmp38 = (struct gigaset_capi_appl *)0;
30235#line 774
30236  __cil_tmp39 = (unsigned long )__cil_tmp38;
30237#line 774
30238  __cil_tmp40 = ap->bcnext;
30239#line 774
30240  __cil_tmp41 = (unsigned long )__cil_tmp40;
30241#line 774
30242  if (__cil_tmp41 != __cil_tmp39) {
30243#line 775
30244    goto ldv_35392;
30245  } else {
30246#line 777
30247    goto ldv_35394;
30248  }
30249  }
30250  ldv_35394: 
30251  {
30252#line 786
30253  tmp___1 = ap->nextMessageNumber;
30254#line 786
30255  __cil_tmp42 = ap->nextMessageNumber;
30256#line 786
30257  __cil_tmp43 = (int )__cil_tmp42;
30258#line 786
30259  __cil_tmp44 = __cil_tmp43 + 1;
30260#line 786
30261  ap->nextMessageNumber = (u16 )__cil_tmp44;
30262#line 786
30263  __cil_tmp45 = & iif->hcmsg;
30264#line 786
30265  __cil_tmp46 = ap->id;
30266#line 786
30267  __cil_tmp47 = (int )__cil_tmp46;
30268#line 786
30269  __cil_tmp48 = (__u16 )__cil_tmp47;
30270#line 786
30271  __cil_tmp49 = (__u8 )3;
30272#line 786
30273  __cil_tmp50 = (__u8 )130;
30274#line 786
30275  __cil_tmp51 = bcs->channel;
30276#line 786
30277  __cil_tmp52 = __cil_tmp51 + 1;
30278#line 786
30279  __cil_tmp53 = __cil_tmp52 << 8;
30280#line 786
30281  __cil_tmp54 = iif->ctr.cnr;
30282#line 786
30283  __cil_tmp55 = __cil_tmp54 | __cil_tmp53;
30284#line 786
30285  __cil_tmp56 = (__u32 )__cil_tmp55;
30286#line 786
30287  capi_cmsg_header(__cil_tmp45, __cil_tmp48, __cil_tmp49, __cil_tmp50, tmp___1, __cil_tmp56);
30288#line 791
30289  msgsize = 15U;
30290#line 799
30291  skb = alloc_skb(msgsize, 32U);
30292  }
30293  {
30294#line 800
30295  __cil_tmp57 = (struct sk_buff *)0;
30296#line 800
30297  __cil_tmp58 = (unsigned long )__cil_tmp57;
30298#line 800
30299  __cil_tmp59 = (unsigned long )skb;
30300#line 800
30301  if (__cil_tmp59 == __cil_tmp58) {
30302    {
30303#line 801
30304    __cil_tmp60 = cs->dev;
30305#line 801
30306    __cil_tmp61 = (struct device  const  *)__cil_tmp60;
30307#line 801
30308    dev_err(__cil_tmp61, "%s: out of memory\n", "gigaset_isdn_connD");
30309    }
30310#line 802
30311    return;
30312  } else {
30313
30314  }
30315  }
30316  {
30317#line 804
30318  tmp___2 = __skb_put(skb, msgsize);
30319#line 804
30320  __cil_tmp62 = & iif->hcmsg;
30321#line 804
30322  capi_cmsg2message(__cil_tmp62, tmp___2);
30323#line 805
30324  __cil_tmp63 = (enum debuglevel )32;
30325#line 805
30326  __cil_tmp64 = & iif->hcmsg;
30327#line 805
30328  dump_cmsg(__cil_tmp63, "gigaset_isdn_connD", __cil_tmp64);
30329#line 806
30330  __cil_tmp65 = & iif->ctr;
30331#line 806
30332  __cil_tmp66 = ap->id;
30333#line 806
30334  __cil_tmp67 = (int )__cil_tmp66;
30335#line 806
30336  __cil_tmp68 = (u16 )__cil_tmp67;
30337#line 806
30338  capi_ctr_handle_message(__cil_tmp65, __cil_tmp68, skb);
30339  }
30340#line 807
30341  return;
30342}
30343}
30344#line 816 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30345void gigaset_isdn_hupD(struct bc_state *bcs ) 
30346{ struct gigaset_capi_appl *ap ;
30347  unsigned long flags ;
30348  raw_spinlock_t *tmp ;
30349  raw_spinlock_t *tmp___0 ;
30350  spinlock_t *__cil_tmp6 ;
30351  void *__cil_tmp7 ;
30352  struct gigaset_capi_appl *__cil_tmp8 ;
30353  spinlock_t *__cil_tmp9 ;
30354  u16 __cil_tmp10 ;
30355  spinlock_t *__cil_tmp11 ;
30356  void *__cil_tmp12 ;
30357  unsigned long __cil_tmp13 ;
30358  void *__cil_tmp14 ;
30359  unsigned long __cil_tmp15 ;
30360  spinlock_t *__cil_tmp16 ;
30361
30362  {
30363  {
30364#line 826
30365  __cil_tmp6 = & bcs->aplock;
30366#line 826
30367  tmp = spinlock_check(__cil_tmp6);
30368#line 826
30369  flags = _raw_spin_lock_irqsave(tmp);
30370  }
30371#line 827
30372  goto ldv_35407;
30373  ldv_35406: 
30374  {
30375#line 828
30376  __cil_tmp7 = bcs->ap;
30377#line 828
30378  ap = (struct gigaset_capi_appl *)__cil_tmp7;
30379#line 829
30380  __cil_tmp8 = ap->bcnext;
30381#line 829
30382  bcs->ap = (void *)__cil_tmp8;
30383#line 830
30384  __cil_tmp9 = & bcs->aplock;
30385#line 830
30386  spin_unlock_irqrestore(__cil_tmp9, flags);
30387#line 831
30388  send_disconnect_b3_ind(bcs, ap);
30389#line 832
30390  __cil_tmp10 = (u16 )0;
30391#line 832
30392  send_disconnect_ind(bcs, ap, __cil_tmp10);
30393#line 833
30394  __cil_tmp11 = & bcs->aplock;
30395#line 833
30396  tmp___0 = spinlock_check(__cil_tmp11);
30397#line 833
30398  flags = _raw_spin_lock_irqsave(tmp___0);
30399  }
30400  ldv_35407: ;
30401  {
30402#line 827
30403  __cil_tmp12 = (void *)0;
30404#line 827
30405  __cil_tmp13 = (unsigned long )__cil_tmp12;
30406#line 827
30407  __cil_tmp14 = bcs->ap;
30408#line 827
30409  __cil_tmp15 = (unsigned long )__cil_tmp14;
30410#line 827
30411  if (__cil_tmp15 != __cil_tmp13) {
30412#line 828
30413    goto ldv_35406;
30414  } else {
30415#line 830
30416    goto ldv_35408;
30417  }
30418  }
30419  ldv_35408: 
30420  {
30421#line 835
30422  bcs->apconnstate = 0;
30423#line 836
30424  __cil_tmp16 = & bcs->aplock;
30425#line 836
30426  spin_unlock_irqrestore(__cil_tmp16, flags);
30427  }
30428#line 837
30429  return;
30430}
30431}
30432#line 846 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30433void gigaset_isdn_connB(struct bc_state *bcs ) 
30434{ struct cardstate *cs ;
30435  struct gigaset_capi_ctr *iif ;
30436  struct gigaset_capi_appl *ap ;
30437  struct sk_buff *skb ;
30438  unsigned long flags ;
30439  unsigned int msgsize ;
30440  u8 command ;
30441  raw_spinlock_t *tmp ;
30442  long tmp___0 ;
30443  u16 tmp___1 ;
30444  unsigned char *tmp___2 ;
30445  void *__cil_tmp13 ;
30446  spinlock_t *__cil_tmp14 ;
30447  void *__cil_tmp15 ;
30448  struct gigaset_capi_appl *__cil_tmp16 ;
30449  unsigned long __cil_tmp17 ;
30450  unsigned long __cil_tmp18 ;
30451  spinlock_t *__cil_tmp19 ;
30452  unsigned int __cil_tmp20 ;
30453  unsigned int __cil_tmp21 ;
30454  int __cil_tmp22 ;
30455  long __cil_tmp23 ;
30456  int __cil_tmp24 ;
30457  spinlock_t *__cil_tmp25 ;
30458  struct device *__cil_tmp26 ;
30459  struct device  const  *__cil_tmp27 ;
30460  u16 __cil_tmp28 ;
30461  int __cil_tmp29 ;
30462  int __cil_tmp30 ;
30463  spinlock_t *__cil_tmp31 ;
30464  struct device *__cil_tmp32 ;
30465  struct device  const  *__cil_tmp33 ;
30466  struct gigaset_capi_appl *__cil_tmp34 ;
30467  u16 __cil_tmp35 ;
30468  int __cil_tmp36 ;
30469  struct gigaset_capi_appl *__cil_tmp37 ;
30470  u16 __cil_tmp38 ;
30471  struct gigaset_capi_appl *__cil_tmp39 ;
30472  struct gigaset_capi_appl *__cil_tmp40 ;
30473  unsigned long __cil_tmp41 ;
30474  struct gigaset_capi_appl *__cil_tmp42 ;
30475  unsigned long __cil_tmp43 ;
30476  u16 __cil_tmp44 ;
30477  int __cil_tmp45 ;
30478  int __cil_tmp46 ;
30479  _cmsg *__cil_tmp47 ;
30480  u16 __cil_tmp48 ;
30481  int __cil_tmp49 ;
30482  __u16 __cil_tmp50 ;
30483  int __cil_tmp51 ;
30484  __u8 __cil_tmp52 ;
30485  __u8 __cil_tmp53 ;
30486  int __cil_tmp54 ;
30487  int __cil_tmp55 ;
30488  int __cil_tmp56 ;
30489  int __cil_tmp57 ;
30490  int __cil_tmp58 ;
30491  int __cil_tmp59 ;
30492  __u32 __cil_tmp60 ;
30493  struct sk_buff *__cil_tmp61 ;
30494  unsigned long __cil_tmp62 ;
30495  unsigned long __cil_tmp63 ;
30496  struct device *__cil_tmp64 ;
30497  struct device  const  *__cil_tmp65 ;
30498  _cmsg *__cil_tmp66 ;
30499  enum debuglevel __cil_tmp67 ;
30500  _cmsg *__cil_tmp68 ;
30501  struct capi_ctr *__cil_tmp69 ;
30502  u16 __cil_tmp70 ;
30503  int __cil_tmp71 ;
30504  u16 __cil_tmp72 ;
30505
30506  {
30507  {
30508#line 848
30509  cs = bcs->cs;
30510#line 849
30511  __cil_tmp13 = cs->iif;
30512#line 849
30513  iif = (struct gigaset_capi_ctr *)__cil_tmp13;
30514#line 856
30515  __cil_tmp14 = & bcs->aplock;
30516#line 856
30517  tmp = spinlock_check(__cil_tmp14);
30518#line 856
30519  flags = _raw_spin_lock_irqsave(tmp);
30520#line 857
30521  __cil_tmp15 = bcs->ap;
30522#line 857
30523  ap = (struct gigaset_capi_appl *)__cil_tmp15;
30524  }
30525  {
30526#line 858
30527  __cil_tmp16 = (struct gigaset_capi_appl *)0;
30528#line 858
30529  __cil_tmp17 = (unsigned long )__cil_tmp16;
30530#line 858
30531  __cil_tmp18 = (unsigned long )ap;
30532#line 858
30533  if (__cil_tmp18 == __cil_tmp17) {
30534    {
30535#line 859
30536    __cil_tmp19 = & bcs->aplock;
30537#line 859
30538    spin_unlock_irqrestore(__cil_tmp19, flags);
30539#line 860
30540    __cil_tmp20 = (unsigned int )gigaset_debuglevel;
30541#line 860
30542    __cil_tmp21 = __cil_tmp20 & 32U;
30543#line 860
30544    __cil_tmp22 = __cil_tmp21 != 0U;
30545#line 860
30546    __cil_tmp23 = (long )__cil_tmp22;
30547#line 860
30548    tmp___0 = __builtin_expect(__cil_tmp23, 0L);
30549    }
30550#line 860
30551    if (tmp___0 != 0L) {
30552      {
30553#line 860
30554      printk("<7>gigaset: %s: application gone\n", "gigaset_isdn_connB");
30555      }
30556    } else {
30557
30558    }
30559#line 861
30560    return;
30561  } else {
30562
30563  }
30564  }
30565  {
30566#line 863
30567  __cil_tmp24 = bcs->apconnstate;
30568#line 863
30569  if (__cil_tmp24 == 0) {
30570    {
30571#line 864
30572    __cil_tmp25 = & bcs->aplock;
30573#line 864
30574    spin_unlock_irqrestore(__cil_tmp25, flags);
30575#line 865
30576    __cil_tmp26 = cs->dev;
30577#line 865
30578    __cil_tmp27 = (struct device  const  *)__cil_tmp26;
30579#line 865
30580    __cil_tmp28 = ap->id;
30581#line 865
30582    __cil_tmp29 = (int )__cil_tmp28;
30583#line 865
30584    dev_warn(__cil_tmp27, "%s: application %u not connected\n", "gigaset_isdn_connB",
30585             __cil_tmp29);
30586    }
30587#line 867
30588    return;
30589  } else {
30590
30591  }
30592  }
30593  {
30594#line 876
30595  __cil_tmp30 = bcs->apconnstate;
30596#line 876
30597  if (__cil_tmp30 > 1) {
30598#line 877
30599    command = (u8 )131U;
30600#line 878
30601    msgsize = 13U;
30602  } else {
30603#line 880
30604    command = (u8 )130U;
30605#line 881
30606    msgsize = 13U;
30607  }
30608  }
30609  {
30610#line 883
30611  bcs->apconnstate = 2;
30612#line 885
30613  __cil_tmp31 = & bcs->aplock;
30614#line 885
30615  spin_unlock_irqrestore(__cil_tmp31, flags);
30616  }
30617#line 887
30618  goto ldv_35424;
30619  ldv_35423: 
30620  {
30621#line 889
30622  __cil_tmp32 = cs->dev;
30623#line 889
30624  __cil_tmp33 = (struct device  const  *)__cil_tmp32;
30625#line 889
30626  __cil_tmp34 = ap->bcnext;
30627#line 889
30628  __cil_tmp35 = __cil_tmp34->id;
30629#line 889
30630  __cil_tmp36 = (int )__cil_tmp35;
30631#line 889
30632  dev_warn(__cil_tmp33, "%s: dropping extra application %u\n", "gigaset_isdn_connB",
30633           __cil_tmp36);
30634#line 891
30635  __cil_tmp37 = ap->bcnext;
30636#line 891
30637  __cil_tmp38 = (u16 )13060;
30638#line 891
30639  send_disconnect_ind(bcs, __cil_tmp37, __cil_tmp38);
30640#line 893
30641  __cil_tmp39 = ap->bcnext;
30642#line 893
30643  ap->bcnext = __cil_tmp39->bcnext;
30644  }
30645  ldv_35424: ;
30646  {
30647#line 887
30648  __cil_tmp40 = (struct gigaset_capi_appl *)0;
30649#line 887
30650  __cil_tmp41 = (unsigned long )__cil_tmp40;
30651#line 887
30652  __cil_tmp42 = ap->bcnext;
30653#line 887
30654  __cil_tmp43 = (unsigned long )__cil_tmp42;
30655#line 887
30656  if (__cil_tmp43 != __cil_tmp41) {
30657#line 888
30658    goto ldv_35423;
30659  } else {
30660#line 890
30661    goto ldv_35425;
30662  }
30663  }
30664  ldv_35425: 
30665  {
30666#line 896
30667  tmp___1 = ap->nextMessageNumber;
30668#line 896
30669  __cil_tmp44 = ap->nextMessageNumber;
30670#line 896
30671  __cil_tmp45 = (int )__cil_tmp44;
30672#line 896
30673  __cil_tmp46 = __cil_tmp45 + 1;
30674#line 896
30675  ap->nextMessageNumber = (u16 )__cil_tmp46;
30676#line 896
30677  __cil_tmp47 = & iif->hcmsg;
30678#line 896
30679  __cil_tmp48 = ap->id;
30680#line 896
30681  __cil_tmp49 = (int )__cil_tmp48;
30682#line 896
30683  __cil_tmp50 = (__u16 )__cil_tmp49;
30684#line 896
30685  __cil_tmp51 = (int )command;
30686#line 896
30687  __cil_tmp52 = (__u8 )__cil_tmp51;
30688#line 896
30689  __cil_tmp53 = (__u8 )130;
30690#line 896
30691  __cil_tmp54 = bcs->channel;
30692#line 896
30693  __cil_tmp55 = __cil_tmp54 + 1;
30694#line 896
30695  __cil_tmp56 = __cil_tmp55 << 8;
30696#line 896
30697  __cil_tmp57 = iif->ctr.cnr;
30698#line 896
30699  __cil_tmp58 = __cil_tmp57 | __cil_tmp56;
30700#line 896
30701  __cil_tmp59 = __cil_tmp58 | 65536;
30702#line 896
30703  __cil_tmp60 = (__u32 )__cil_tmp59;
30704#line 896
30705  capi_cmsg_header(__cil_tmp47, __cil_tmp50, __cil_tmp52, __cil_tmp53, tmp___1, __cil_tmp60);
30706#line 899
30707  skb = alloc_skb(msgsize, 32U);
30708  }
30709  {
30710#line 900
30711  __cil_tmp61 = (struct sk_buff *)0;
30712#line 900
30713  __cil_tmp62 = (unsigned long )__cil_tmp61;
30714#line 900
30715  __cil_tmp63 = (unsigned long )skb;
30716#line 900
30717  if (__cil_tmp63 == __cil_tmp62) {
30718    {
30719#line 901
30720    __cil_tmp64 = cs->dev;
30721#line 901
30722    __cil_tmp65 = (struct device  const  *)__cil_tmp64;
30723#line 901
30724    dev_err(__cil_tmp65, "%s: out of memory\n", "gigaset_isdn_connB");
30725    }
30726#line 902
30727    return;
30728  } else {
30729
30730  }
30731  }
30732  {
30733#line 904
30734  tmp___2 = __skb_put(skb, msgsize);
30735#line 904
30736  __cil_tmp66 = & iif->hcmsg;
30737#line 904
30738  capi_cmsg2message(__cil_tmp66, tmp___2);
30739#line 905
30740  __cil_tmp67 = (enum debuglevel )32;
30741#line 905
30742  __cil_tmp68 = & iif->hcmsg;
30743#line 905
30744  dump_cmsg(__cil_tmp67, "gigaset_isdn_connB", __cil_tmp68);
30745#line 906
30746  __cil_tmp69 = & iif->ctr;
30747#line 906
30748  __cil_tmp70 = ap->id;
30749#line 906
30750  __cil_tmp71 = (int )__cil_tmp70;
30751#line 906
30752  __cil_tmp72 = (u16 )__cil_tmp71;
30753#line 906
30754  capi_ctr_handle_message(__cil_tmp69, __cil_tmp72, skb);
30755  }
30756#line 907
30757  return;
30758}
30759}
30760#line 916 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30761void gigaset_isdn_hupB(struct bc_state *bcs ) 
30762{ struct gigaset_capi_appl *ap ;
30763  long tmp ;
30764  void *__cil_tmp4 ;
30765  struct gigaset_capi_appl *__cil_tmp5 ;
30766  unsigned long __cil_tmp6 ;
30767  unsigned long __cil_tmp7 ;
30768  unsigned int __cil_tmp8 ;
30769  unsigned int __cil_tmp9 ;
30770  int __cil_tmp10 ;
30771  long __cil_tmp11 ;
30772
30773  {
30774#line 918
30775  __cil_tmp4 = bcs->ap;
30776#line 918
30777  ap = (struct gigaset_capi_appl *)__cil_tmp4;
30778  {
30779#line 922
30780  __cil_tmp5 = (struct gigaset_capi_appl *)0;
30781#line 922
30782  __cil_tmp6 = (unsigned long )__cil_tmp5;
30783#line 922
30784  __cil_tmp7 = (unsigned long )ap;
30785#line 922
30786  if (__cil_tmp7 == __cil_tmp6) {
30787    {
30788#line 923
30789    __cil_tmp8 = (unsigned int )gigaset_debuglevel;
30790#line 923
30791    __cil_tmp9 = __cil_tmp8 & 32U;
30792#line 923
30793    __cil_tmp10 = __cil_tmp9 != 0U;
30794#line 923
30795    __cil_tmp11 = (long )__cil_tmp10;
30796#line 923
30797    tmp = __builtin_expect(__cil_tmp11, 0L);
30798    }
30799#line 923
30800    if (tmp != 0L) {
30801      {
30802#line 923
30803      printk("<7>gigaset: %s: application gone\n", "gigaset_isdn_hupB");
30804      }
30805    } else {
30806
30807    }
30808#line 924
30809    return;
30810  } else {
30811
30812  }
30813  }
30814  {
30815#line 927
30816  send_disconnect_b3_ind(bcs, ap);
30817  }
30818#line 928
30819  return;
30820}
30821}
30822#line 937 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30823void gigaset_isdn_start(struct cardstate *cs ) 
30824{ struct gigaset_capi_ctr *iif ;
30825  void *__cil_tmp3 ;
30826  u8 (*__cil_tmp4)[64U] ;
30827  char *__cil_tmp5 ;
30828  int __cil_tmp6 ;
30829  u8 (*__cil_tmp7)[8U] ;
30830  char *__cil_tmp8 ;
30831  struct capi_ctr *__cil_tmp9 ;
30832
30833  {
30834  {
30835#line 939
30836  __cil_tmp3 = cs->iif;
30837#line 939
30838  iif = (struct gigaset_capi_ctr *)__cil_tmp3;
30839#line 942
30840  __cil_tmp4 = & iif->ctr.manu;
30841#line 942
30842  __cil_tmp5 = (char *)__cil_tmp4;
30843#line 942
30844  strcpy(__cil_tmp5, "Siemens");
30845#line 944
30846  iif->ctr.version.majorversion = 2U;
30847#line 945
30848  iif->ctr.version.minorversion = 0U;
30849#line 947
30850  iif->ctr.version.majormanuversion = cs->fwver[0];
30851#line 948
30852  iif->ctr.version.minormanuversion = cs->fwver[1];
30853#line 950
30854  __cil_tmp6 = cs->channels;
30855#line 950
30856  iif->ctr.profile.nbchannel = (__u16 )__cil_tmp6;
30857#line 952
30858  iif->ctr.profile.goptions = 17U;
30859#line 954
30860  iif->ctr.profile.support1 = 3U;
30861#line 957
30862  iif->ctr.profile.support2 = 2U;
30863#line 959
30864  iif->ctr.profile.support3 = 1U;
30865#line 961
30866  __cil_tmp7 = & iif->ctr.serial;
30867#line 961
30868  __cil_tmp8 = (char *)__cil_tmp7;
30869#line 961
30870  strcpy(__cil_tmp8, "0");
30871#line 962
30872  __cil_tmp9 = & iif->ctr;
30873#line 962
30874  capi_ctr_ready(__cil_tmp9);
30875  }
30876#line 963
30877  return;
30878}
30879}
30880#line 972 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30881void gigaset_isdn_stop(struct cardstate *cs ) 
30882{ struct gigaset_capi_ctr *iif ;
30883  void *__cil_tmp3 ;
30884  struct capi_ctr *__cil_tmp4 ;
30885
30886  {
30887  {
30888#line 974
30889  __cil_tmp3 = cs->iif;
30890#line 974
30891  iif = (struct gigaset_capi_ctr *)__cil_tmp3;
30892#line 975
30893  __cil_tmp4 = & iif->ctr;
30894#line 975
30895  capi_ctr_down(__cil_tmp4);
30896  }
30897#line 976
30898  return;
30899}
30900}
30901#line 986 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
30902static void gigaset_register_appl(struct capi_ctr *ctr , u16 appl , capi_register_params *rp ) 
30903{ struct gigaset_capi_ctr *iif ;
30904  struct capi_ctr  const  *__mptr ;
30905  struct cardstate *cs ;
30906  struct gigaset_capi_appl *ap ;
30907  long tmp ;
30908  struct list_head  const  *__mptr___0 ;
30909  struct list_head  const  *__mptr___1 ;
30910  void *tmp___0 ;
30911  void *__cil_tmp12 ;
30912  unsigned int __cil_tmp13 ;
30913  unsigned int __cil_tmp14 ;
30914  int __cil_tmp15 ;
30915  long __cil_tmp16 ;
30916  int __cil_tmp17 ;
30917  __u32 __cil_tmp18 ;
30918  __u32 __cil_tmp19 ;
30919  __u32 __cil_tmp20 ;
30920  struct list_head *__cil_tmp21 ;
30921  int __cil_tmp22 ;
30922  u16 __cil_tmp23 ;
30923  int __cil_tmp24 ;
30924  struct device *__cil_tmp25 ;
30925  struct device  const  *__cil_tmp26 ;
30926  int __cil_tmp27 ;
30927  struct list_head *__cil_tmp28 ;
30928  struct list_head *__cil_tmp29 ;
30929  unsigned long __cil_tmp30 ;
30930  struct list_head *__cil_tmp31 ;
30931  unsigned long __cil_tmp32 ;
30932  struct gigaset_capi_appl *__cil_tmp33 ;
30933  unsigned long __cil_tmp34 ;
30934  unsigned long __cil_tmp35 ;
30935  struct device *__cil_tmp36 ;
30936  struct device  const  *__cil_tmp37 ;
30937  struct list_head *__cil_tmp38 ;
30938  struct list_head *__cil_tmp39 ;
30939  struct device *__cil_tmp40 ;
30940  struct device  const  *__cil_tmp41 ;
30941  u16 __cil_tmp42 ;
30942  int __cil_tmp43 ;
30943
30944  {
30945  {
30946#line 990
30947  __mptr = (struct capi_ctr  const  *)ctr;
30948#line 990
30949  iif = (struct gigaset_capi_ctr *)__mptr;
30950#line 991
30951  __cil_tmp12 = ctr->driverdata;
30952#line 991
30953  cs = (struct cardstate *)__cil_tmp12;
30954#line 994
30955  __cil_tmp13 = (unsigned int )gigaset_debuglevel;
30956#line 994
30957  __cil_tmp14 = __cil_tmp13 & 32U;
30958#line 994
30959  __cil_tmp15 = __cil_tmp14 != 0U;
30960#line 994
30961  __cil_tmp16 = (long )__cil_tmp15;
30962#line 994
30963  tmp = __builtin_expect(__cil_tmp16, 0L);
30964  }
30965#line 994
30966  if (tmp != 0L) {
30967    {
30968#line 994
30969    __cil_tmp17 = (int )appl;
30970#line 994
30971    __cil_tmp18 = rp->level3cnt;
30972#line 994
30973    __cil_tmp19 = rp->datablkcnt;
30974#line 994
30975    __cil_tmp20 = rp->datablklen;
30976#line 994
30977    printk("<7>gigaset: %s [%u] l3cnt=%u blkcnt=%u blklen=%u\n", "gigaset_register_appl",
30978           __cil_tmp17, __cil_tmp18, __cil_tmp19, __cil_tmp20);
30979    }
30980  } else {
30981
30982  }
30983#line 997
30984  __cil_tmp21 = iif->appls.next;
30985#line 997
30986  __mptr___0 = (struct list_head  const  *)__cil_tmp21;
30987#line 997
30988  ap = (struct gigaset_capi_appl *)__mptr___0;
30989#line 997
30990  goto ldv_35455;
30991  ldv_35454: ;
30992  {
30993#line 998
30994  __cil_tmp22 = (int )appl;
30995#line 998
30996  __cil_tmp23 = ap->id;
30997#line 998
30998  __cil_tmp24 = (int )__cil_tmp23;
30999#line 998
31000  if (__cil_tmp24 == __cil_tmp22) {
31001    {
31002#line 999
31003    __cil_tmp25 = cs->dev;
31004#line 999
31005    __cil_tmp26 = (struct device  const  *)__cil_tmp25;
31006#line 999
31007    __cil_tmp27 = (int )appl;
31008#line 999
31009    dev_notice(__cil_tmp26, "application %u already registered\n", __cil_tmp27);
31010    }
31011#line 1001
31012    return;
31013  } else {
31014
31015  }
31016  }
31017#line 997
31018  __cil_tmp28 = ap->ctrlist.next;
31019#line 997
31020  __mptr___1 = (struct list_head  const  *)__cil_tmp28;
31021#line 997
31022  ap = (struct gigaset_capi_appl *)__mptr___1;
31023  ldv_35455: ;
31024  {
31025#line 997
31026  __cil_tmp29 = & iif->appls;
31027#line 997
31028  __cil_tmp30 = (unsigned long )__cil_tmp29;
31029#line 997
31030  __cil_tmp31 = & ap->ctrlist;
31031#line 997
31032  __cil_tmp32 = (unsigned long )__cil_tmp31;
31033#line 997
31034  if (__cil_tmp32 != __cil_tmp30) {
31035#line 998
31036    goto ldv_35454;
31037  } else {
31038#line 1000
31039    goto ldv_35456;
31040  }
31041  }
31042  ldv_35456: 
31043  {
31044#line 1004
31045  tmp___0 = kzalloc(56UL, 208U);
31046#line 1004
31047  ap = (struct gigaset_capi_appl *)tmp___0;
31048  }
31049  {
31050#line 1005
31051  __cil_tmp33 = (struct gigaset_capi_appl *)0;
31052#line 1005
31053  __cil_tmp34 = (unsigned long )__cil_tmp33;
31054#line 1005
31055  __cil_tmp35 = (unsigned long )ap;
31056#line 1005
31057  if (__cil_tmp35 == __cil_tmp34) {
31058    {
31059#line 1006
31060    __cil_tmp36 = cs->dev;
31061#line 1006
31062    __cil_tmp37 = (struct device  const  *)__cil_tmp36;
31063#line 1006
31064    dev_err(__cil_tmp37, "%s: out of memory\n", "gigaset_register_appl");
31065    }
31066#line 1007
31067    return;
31068  } else {
31069
31070  }
31071  }
31072  {
31073#line 1009
31074  ap->id = appl;
31075#line 1010
31076  ap->rp = *rp;
31077#line 1012
31078  __cil_tmp38 = & ap->ctrlist;
31079#line 1012
31080  __cil_tmp39 = & iif->appls;
31081#line 1012
31082  list_add(__cil_tmp38, __cil_tmp39);
31083#line 1013
31084  __cil_tmp40 = cs->dev;
31085#line 1013
31086  __cil_tmp41 = (struct device  const  *)__cil_tmp40;
31087#line 1013
31088  __cil_tmp42 = ap->id;
31089#line 1013
31090  __cil_tmp43 = (int )__cil_tmp42;
31091#line 1013
31092  _dev_info(__cil_tmp41, "application %u registered\n", __cil_tmp43);
31093  }
31094#line 1014
31095  return;
31096}
31097}
31098#line 1021 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
31099__inline static void remove_appl_from_channel(struct bc_state *bcs , struct gigaset_capi_appl *ap ) 
31100{ struct cardstate *cs ;
31101  struct gigaset_capi_appl *bcap ;
31102  unsigned long flags ;
31103  int prevconnstate ;
31104  raw_spinlock_t *tmp ;
31105  spinlock_t *__cil_tmp8 ;
31106  void *__cil_tmp9 ;
31107  struct gigaset_capi_appl *__cil_tmp10 ;
31108  unsigned long __cil_tmp11 ;
31109  unsigned long __cil_tmp12 ;
31110  spinlock_t *__cil_tmp13 ;
31111  unsigned long __cil_tmp14 ;
31112  unsigned long __cil_tmp15 ;
31113  struct gigaset_capi_appl *__cil_tmp16 ;
31114  void *__cil_tmp17 ;
31115  unsigned long __cil_tmp18 ;
31116  void *__cil_tmp19 ;
31117  unsigned long __cil_tmp20 ;
31118  spinlock_t *__cil_tmp21 ;
31119  spinlock_t *__cil_tmp22 ;
31120  struct device *__cil_tmp23 ;
31121  struct device  const  *__cil_tmp24 ;
31122  int __cil_tmp25 ;
31123  struct at_state_t *__cil_tmp26 ;
31124  void *__cil_tmp27 ;
31125  void *__cil_tmp28 ;
31126  unsigned long __cil_tmp29 ;
31127  struct gigaset_capi_appl *__cil_tmp30 ;
31128  unsigned long __cil_tmp31 ;
31129  struct gigaset_capi_appl *__cil_tmp32 ;
31130  spinlock_t *__cil_tmp33 ;
31131  struct gigaset_capi_appl *__cil_tmp34 ;
31132  unsigned long __cil_tmp35 ;
31133  unsigned long __cil_tmp36 ;
31134  spinlock_t *__cil_tmp37 ;
31135
31136  {
31137  {
31138#line 1024
31139  cs = bcs->cs;
31140#line 1029
31141  __cil_tmp8 = & bcs->aplock;
31142#line 1029
31143  tmp = spinlock_check(__cil_tmp8);
31144#line 1029
31145  flags = _raw_spin_lock_irqsave(tmp);
31146#line 1030
31147  __cil_tmp9 = bcs->ap;
31148#line 1030
31149  bcap = (struct gigaset_capi_appl *)__cil_tmp9;
31150  }
31151  {
31152#line 1031
31153  __cil_tmp10 = (struct gigaset_capi_appl *)0;
31154#line 1031
31155  __cil_tmp11 = (unsigned long )__cil_tmp10;
31156#line 1031
31157  __cil_tmp12 = (unsigned long )bcap;
31158#line 1031
31159  if (__cil_tmp12 == __cil_tmp11) {
31160    {
31161#line 1032
31162    __cil_tmp13 = & bcs->aplock;
31163#line 1032
31164    spin_unlock_irqrestore(__cil_tmp13, flags);
31165    }
31166#line 1033
31167    return;
31168  } else {
31169
31170  }
31171  }
31172  {
31173#line 1037
31174  __cil_tmp14 = (unsigned long )ap;
31175#line 1037
31176  __cil_tmp15 = (unsigned long )bcap;
31177#line 1037
31178  if (__cil_tmp15 == __cil_tmp14) {
31179#line 1038
31180    __cil_tmp16 = ap->bcnext;
31181#line 1038
31182    bcs->ap = (void *)__cil_tmp16;
31183    {
31184#line 1039
31185    __cil_tmp17 = (void *)0;
31186#line 1039
31187    __cil_tmp18 = (unsigned long )__cil_tmp17;
31188#line 1039
31189    __cil_tmp19 = bcs->ap;
31190#line 1039
31191    __cil_tmp20 = (unsigned long )__cil_tmp19;
31192#line 1039
31193    if (__cil_tmp20 != __cil_tmp18) {
31194      {
31195#line 1040
31196      __cil_tmp21 = & bcs->aplock;
31197#line 1040
31198      spin_unlock_irqrestore(__cil_tmp21, flags);
31199      }
31200#line 1041
31201      return;
31202    } else {
31203
31204    }
31205    }
31206    {
31207#line 1045
31208    prevconnstate = bcs->apconnstate;
31209#line 1046
31210    bcs->apconnstate = 0;
31211#line 1047
31212    __cil_tmp22 = & bcs->aplock;
31213#line 1047
31214    spin_unlock_irqrestore(__cil_tmp22, flags);
31215    }
31216#line 1049
31217    if (prevconnstate == 2) {
31218      {
31219#line 1050
31220      __cil_tmp23 = cs->dev;
31221#line 1050
31222      __cil_tmp24 = (struct device  const  *)__cil_tmp23;
31223#line 1050
31224      __cil_tmp25 = bcs->channel;
31225#line 1050
31226      dev_notice(__cil_tmp24, "%s: hanging up channel %u\n", "remove_appl_from_channel",
31227                 __cil_tmp25);
31228#line 1052
31229      __cil_tmp26 = & bcs->at_state;
31230#line 1052
31231      __cil_tmp27 = (void *)0;
31232#line 1052
31233      __cil_tmp28 = (void *)0;
31234#line 1052
31235      gigaset_add_event(cs, __cil_tmp26, -116, __cil_tmp27, 0, __cil_tmp28);
31236#line 1054
31237      gigaset_schedule_event(cs);
31238      }
31239    } else {
31240
31241    }
31242#line 1056
31243    return;
31244  } else {
31245
31246  }
31247  }
31248  ldv_35469: ;
31249  {
31250#line 1061
31251  __cil_tmp29 = (unsigned long )ap;
31252#line 1061
31253  __cil_tmp30 = bcap->bcnext;
31254#line 1061
31255  __cil_tmp31 = (unsigned long )__cil_tmp30;
31256#line 1061
31257  if (__cil_tmp31 == __cil_tmp29) {
31258    {
31259#line 1062
31260    __cil_tmp32 = bcap->bcnext;
31261#line 1062
31262    bcap->bcnext = __cil_tmp32->bcnext;
31263#line 1063
31264    __cil_tmp33 = & bcs->aplock;
31265#line 1063
31266    spin_unlock_irqrestore(__cil_tmp33, flags);
31267    }
31268#line 1064
31269    return;
31270  } else {
31271
31272  }
31273  }
31274#line 1066
31275  bcap = bcap->bcnext;
31276  {
31277#line 1067
31278  __cil_tmp34 = (struct gigaset_capi_appl *)0;
31279#line 1067
31280  __cil_tmp35 = (unsigned long )__cil_tmp34;
31281#line 1067
31282  __cil_tmp36 = (unsigned long )bcap;
31283#line 1067
31284  if (__cil_tmp36 != __cil_tmp35) {
31285#line 1068
31286    goto ldv_35469;
31287  } else {
31288#line 1070
31289    goto ldv_35470;
31290  }
31291  }
31292  ldv_35470: 
31293  {
31294#line 1068
31295  __cil_tmp37 = & bcs->aplock;
31296#line 1068
31297  spin_unlock_irqrestore(__cil_tmp37, flags);
31298  }
31299#line 1069
31300  return;
31301}
31302}
31303#line 1074 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
31304static void gigaset_release_appl(struct capi_ctr *ctr , u16 appl ) 
31305{ struct gigaset_capi_ctr *iif ;
31306  struct capi_ctr  const  *__mptr ;
31307  struct cardstate *cs ;
31308  struct gigaset_capi_appl *ap ;
31309  struct gigaset_capi_appl *tmp ;
31310  unsigned int ch ;
31311  long tmp___0 ;
31312  struct list_head  const  *__mptr___0 ;
31313  struct list_head  const  *__mptr___1 ;
31314  struct list_head  const  *__mptr___2 ;
31315  void *__cil_tmp13 ;
31316  unsigned int __cil_tmp14 ;
31317  unsigned int __cil_tmp15 ;
31318  int __cil_tmp16 ;
31319  long __cil_tmp17 ;
31320  int __cil_tmp18 ;
31321  struct list_head *__cil_tmp19 ;
31322  struct list_head *__cil_tmp20 ;
31323  int __cil_tmp21 ;
31324  u16 __cil_tmp22 ;
31325  int __cil_tmp23 ;
31326  unsigned long __cil_tmp24 ;
31327  struct bc_state *__cil_tmp25 ;
31328  struct bc_state *__cil_tmp26 ;
31329  int __cil_tmp27 ;
31330  unsigned int __cil_tmp28 ;
31331  struct list_head *__cil_tmp29 ;
31332  void const   *__cil_tmp30 ;
31333  struct device *__cil_tmp31 ;
31334  struct device  const  *__cil_tmp32 ;
31335  int __cil_tmp33 ;
31336  struct list_head *__cil_tmp34 ;
31337  struct list_head *__cil_tmp35 ;
31338  unsigned long __cil_tmp36 ;
31339  struct list_head *__cil_tmp37 ;
31340  unsigned long __cil_tmp38 ;
31341
31342  {
31343  {
31344#line 1077
31345  __mptr = (struct capi_ctr  const  *)ctr;
31346#line 1077
31347  iif = (struct gigaset_capi_ctr *)__mptr;
31348#line 1078
31349  __cil_tmp13 = iif->ctr.driverdata;
31350#line 1078
31351  cs = (struct cardstate *)__cil_tmp13;
31352#line 1082
31353  __cil_tmp14 = (unsigned int )gigaset_debuglevel;
31354#line 1082
31355  __cil_tmp15 = __cil_tmp14 & 32U;
31356#line 1082
31357  __cil_tmp16 = __cil_tmp15 != 0U;
31358#line 1082
31359  __cil_tmp17 = (long )__cil_tmp16;
31360#line 1082
31361  tmp___0 = __builtin_expect(__cil_tmp17, 0L);
31362  }
31363#line 1082
31364  if (tmp___0 != 0L) {
31365    {
31366#line 1082
31367    __cil_tmp18 = (int )appl;
31368#line 1082
31369    printk("<7>gigaset: %s [%u]\n", "gigaset_release_appl", __cil_tmp18);
31370    }
31371  } else {
31372
31373  }
31374#line 1084
31375  __cil_tmp19 = iif->appls.next;
31376#line 1084
31377  __mptr___0 = (struct list_head  const  *)__cil_tmp19;
31378#line 1084
31379  ap = (struct gigaset_capi_appl *)__mptr___0;
31380#line 1084
31381  __cil_tmp20 = ap->ctrlist.next;
31382#line 1084
31383  __mptr___1 = (struct list_head  const  *)__cil_tmp20;
31384#line 1084
31385  tmp = (struct gigaset_capi_appl *)__mptr___1;
31386#line 1084
31387  goto ldv_35493;
31388  ldv_35492: ;
31389  {
31390#line 1085
31391  __cil_tmp21 = (int )appl;
31392#line 1085
31393  __cil_tmp22 = ap->id;
31394#line 1085
31395  __cil_tmp23 = (int )__cil_tmp22;
31396#line 1085
31397  if (__cil_tmp23 == __cil_tmp21) {
31398#line 1087
31399    ch = 0U;
31400#line 1087
31401    goto ldv_35490;
31402    ldv_35489: 
31403    {
31404#line 1088
31405    __cil_tmp24 = (unsigned long )ch;
31406#line 1088
31407    __cil_tmp25 = cs->bcs;
31408#line 1088
31409    __cil_tmp26 = __cil_tmp25 + __cil_tmp24;
31410#line 1088
31411    remove_appl_from_channel(__cil_tmp26, ap);
31412#line 1087
31413    ch = ch + 1U;
31414    }
31415    ldv_35490: ;
31416    {
31417#line 1087
31418    __cil_tmp27 = cs->channels;
31419#line 1087
31420    __cil_tmp28 = (unsigned int )__cil_tmp27;
31421#line 1087
31422    if (__cil_tmp28 > ch) {
31423#line 1088
31424      goto ldv_35489;
31425    } else {
31426#line 1090
31427      goto ldv_35491;
31428    }
31429    }
31430    ldv_35491: 
31431    {
31432#line 1091
31433    __cil_tmp29 = & ap->ctrlist;
31434#line 1091
31435    list_del(__cil_tmp29);
31436#line 1092
31437    __cil_tmp30 = (void const   *)ap;
31438#line 1092
31439    kfree(__cil_tmp30);
31440#line 1093
31441    __cil_tmp31 = cs->dev;
31442#line 1093
31443    __cil_tmp32 = (struct device  const  *)__cil_tmp31;
31444#line 1093
31445    __cil_tmp33 = (int )appl;
31446#line 1093
31447    _dev_info(__cil_tmp32, "application %u released\n", __cil_tmp33);
31448    }
31449  } else {
31450
31451  }
31452  }
31453#line 1084
31454  ap = tmp;
31455#line 1084
31456  __cil_tmp34 = tmp->ctrlist.next;
31457#line 1084
31458  __mptr___2 = (struct list_head  const  *)__cil_tmp34;
31459#line 1084
31460  tmp = (struct gigaset_capi_appl *)__mptr___2;
31461  ldv_35493: ;
31462  {
31463#line 1084
31464  __cil_tmp35 = & iif->appls;
31465#line 1084
31466  __cil_tmp36 = (unsigned long )__cil_tmp35;
31467#line 1084
31468  __cil_tmp37 = & ap->ctrlist;
31469#line 1084
31470  __cil_tmp38 = (unsigned long )__cil_tmp37;
31471#line 1084
31472  if (__cil_tmp38 != __cil_tmp36) {
31473#line 1085
31474    goto ldv_35492;
31475  } else {
31476#line 1087
31477    goto ldv_35494;
31478  }
31479  }
31480  ldv_35494: ;
31481#line 1089
31482  return;
31483}
31484}
31485#line 1106 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
31486static void send_conf(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
31487                      struct sk_buff *skb , u16 info ) 
31488{ _cmsg *__cil_tmp5 ;
31489  _cmsg *__cil_tmp6 ;
31490  unsigned char *__cil_tmp7 ;
31491  enum debuglevel __cil_tmp8 ;
31492  _cmsg *__cil_tmp9 ;
31493  struct capi_ctr *__cil_tmp10 ;
31494  u16 __cil_tmp11 ;
31495  int __cil_tmp12 ;
31496  u16 __cil_tmp13 ;
31497
31498  {
31499  {
31500#line 1115
31501  __cil_tmp5 = & iif->acmsg;
31502#line 1115
31503  capi_cmsg_answer(__cil_tmp5);
31504#line 1116
31505  iif->acmsg.Info = info;
31506#line 1117
31507  __cil_tmp6 = & iif->acmsg;
31508#line 1117
31509  __cil_tmp7 = skb->data;
31510#line 1117
31511  capi_cmsg2message(__cil_tmp6, __cil_tmp7);
31512#line 1118
31513  __skb_trim(skb, 14U);
31514#line 1119
31515  __cil_tmp8 = (enum debuglevel )32;
31516#line 1119
31517  __cil_tmp9 = & iif->acmsg;
31518#line 1119
31519  dump_cmsg(__cil_tmp8, "send_conf", __cil_tmp9);
31520#line 1120
31521  __cil_tmp10 = & iif->ctr;
31522#line 1120
31523  __cil_tmp11 = ap->id;
31524#line 1120
31525  __cil_tmp12 = (int )__cil_tmp11;
31526#line 1120
31527  __cil_tmp13 = (u16 )__cil_tmp12;
31528#line 1120
31529  capi_ctr_handle_message(__cil_tmp10, __cil_tmp13, skb);
31530  }
31531#line 1121
31532  return;
31533}
31534}
31535#line 1126 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
31536static void do_facility_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
31537                            struct sk_buff *skb ) 
31538{ struct cardstate *cs ;
31539  _cmsg *cmsg ;
31540  struct sk_buff *cskb ;
31541  u8 *pparam ;
31542  unsigned int msgsize ;
31543  u16 function ;
31544  u16 info ;
31545  u8 confparam[10U] ;
31546  unsigned char *tmp ;
31547  void *__cil_tmp13 ;
31548  unsigned char *__cil_tmp14 ;
31549  enum debuglevel __cil_tmp15 ;
31550  __u16 __cil_tmp16 ;
31551  int __cil_tmp17 ;
31552  __u16 __cil_tmp18 ;
31553  int __cil_tmp19 ;
31554  __u16 __cil_tmp20 ;
31555  int __cil_tmp21 ;
31556  __u16 __cil_tmp22 ;
31557  int __cil_tmp23 ;
31558  void *__cil_tmp24 ;
31559  __u16 __cil_tmp25 ;
31560  void *__cil_tmp26 ;
31561  __u16 __cil_tmp27 ;
31562  u8 *__cil_tmp28 ;
31563  unsigned long __cil_tmp29 ;
31564  unsigned long __cil_tmp30 ;
31565  struct device *__cil_tmp31 ;
31566  struct device  const  *__cil_tmp32 ;
31567  char *__cil_tmp33 ;
31568  char *__cil_tmp34 ;
31569  u16 __cil_tmp35 ;
31570  u8 __cil_tmp36 ;
31571  unsigned int __cil_tmp37 ;
31572  struct device *__cil_tmp38 ;
31573  struct device  const  *__cil_tmp39 ;
31574  char *__cil_tmp40 ;
31575  char *__cil_tmp41 ;
31576  u16 __cil_tmp42 ;
31577  u8 *__cil_tmp43 ;
31578  u8 __cil_tmp44 ;
31579  int __cil_tmp45 ;
31580  int __cil_tmp46 ;
31581  short __cil_tmp47 ;
31582  int __cil_tmp48 ;
31583  u8 *__cil_tmp49 ;
31584  u8 __cil_tmp50 ;
31585  short __cil_tmp51 ;
31586  int __cil_tmp52 ;
31587  int __cil_tmp53 ;
31588  int __cil_tmp54 ;
31589  int __cil_tmp55 ;
31590  void *__cil_tmp56 ;
31591  __u16 __cil_tmp57 ;
31592  void *__cil_tmp58 ;
31593  u8 __cil_tmp59 ;
31594  unsigned int __cil_tmp60 ;
31595  struct device *__cil_tmp61 ;
31596  struct device  const  *__cil_tmp62 ;
31597  char *__cil_tmp63 ;
31598  char *__cil_tmp64 ;
31599  u16 __cil_tmp65 ;
31600  u8 *__cil_tmp66 ;
31601  u8 __cil_tmp67 ;
31602  unsigned int __cil_tmp68 ;
31603  struct device *__cil_tmp69 ;
31604  struct device  const  *__cil_tmp70 ;
31605  char *__cil_tmp71 ;
31606  char *__cil_tmp72 ;
31607  u16 __cil_tmp73 ;
31608  u8 *__cil_tmp74 ;
31609  u8 __cil_tmp75 ;
31610  int __cil_tmp76 ;
31611  int __cil_tmp77 ;
31612  u8 *__cil_tmp78 ;
31613  u8 __cil_tmp79 ;
31614  int __cil_tmp80 ;
31615  int __cil_tmp81 ;
31616  u8 *__cil_tmp82 ;
31617  u8 __cil_tmp83 ;
31618  int __cil_tmp84 ;
31619  int __cil_tmp85 ;
31620  u8 *__cil_tmp86 ;
31621  u8 __cil_tmp87 ;
31622  int __cil_tmp88 ;
31623  int __cil_tmp89 ;
31624  int __cil_tmp90 ;
31625  int __cil_tmp91 ;
31626  struct device *__cil_tmp92 ;
31627  struct device  const  *__cil_tmp93 ;
31628  char *__cil_tmp94 ;
31629  u8 *__cil_tmp95 ;
31630  u8 __cil_tmp96 ;
31631  int __cil_tmp97 ;
31632  int __cil_tmp98 ;
31633  u8 *__cil_tmp99 ;
31634  u8 __cil_tmp100 ;
31635  int __cil_tmp101 ;
31636  int __cil_tmp102 ;
31637  u8 *__cil_tmp103 ;
31638  u8 __cil_tmp104 ;
31639  int __cil_tmp105 ;
31640  int __cil_tmp106 ;
31641  u8 *__cil_tmp107 ;
31642  u8 __cil_tmp108 ;
31643  int __cil_tmp109 ;
31644  int __cil_tmp110 ;
31645  int __cil_tmp111 ;
31646  int __cil_tmp112 ;
31647  void *__cil_tmp113 ;
31648  __u16 __cil_tmp114 ;
31649  void *__cil_tmp115 ;
31650  __u16 __cil_tmp116 ;
31651  struct device *__cil_tmp117 ;
31652  struct device  const  *__cil_tmp118 ;
31653  char *__cil_tmp119 ;
31654  int __cil_tmp120 ;
31655  void *__cil_tmp121 ;
31656  __u16 __cil_tmp122 ;
31657  unsigned int __cil_tmp123 ;
31658  unsigned int __cil_tmp124 ;
31659  void *__cil_tmp125 ;
31660  int __cil_tmp126 ;
31661  __u16 __cil_tmp127 ;
31662  void *__cil_tmp128 ;
31663  __u16 __cil_tmp129 ;
31664  unsigned int __cil_tmp130 ;
31665  struct sk_buff *__cil_tmp131 ;
31666  unsigned long __cil_tmp132 ;
31667  unsigned long __cil_tmp133 ;
31668  struct device *__cil_tmp134 ;
31669  struct device  const  *__cil_tmp135 ;
31670  enum debuglevel __cil_tmp136 ;
31671  struct capi_ctr *__cil_tmp137 ;
31672  u16 __cil_tmp138 ;
31673  int __cil_tmp139 ;
31674  u16 __cil_tmp140 ;
31675
31676  {
31677  {
31678#line 1130
31679  __cil_tmp13 = iif->ctr.driverdata;
31680#line 1130
31681  cs = (struct cardstate *)__cil_tmp13;
31682#line 1131
31683  cmsg = & iif->acmsg;
31684#line 1134
31685  msgsize = 17U;
31686#line 1139
31687  __cil_tmp14 = skb->data;
31688#line 1139
31689  capi_message2cmsg(cmsg, __cil_tmp14);
31690#line 1140
31691  __cil_tmp15 = (enum debuglevel )32;
31692#line 1140
31693  dump_cmsg(__cil_tmp15, "do_facility_req", cmsg);
31694  }
31695  {
31696#line 1147
31697  __cil_tmp16 = cmsg->FacilitySelector;
31698#line 1147
31699  __cil_tmp17 = (int )__cil_tmp16;
31700#line 1147
31701  if (__cil_tmp17 == 1) {
31702#line 1147
31703    goto case_1;
31704  } else {
31705    {
31706#line 1154
31707    __cil_tmp18 = cmsg->FacilitySelector;
31708#line 1154
31709    __cil_tmp19 = (int )__cil_tmp18;
31710#line 1154
31711    if (__cil_tmp19 == 2) {
31712#line 1154
31713      goto case_2;
31714    } else {
31715      {
31716#line 1161
31717      __cil_tmp20 = cmsg->FacilitySelector;
31718#line 1161
31719      __cil_tmp21 = (int )__cil_tmp20;
31720#line 1161
31721      if (__cil_tmp21 == 3) {
31722#line 1161
31723        goto case_3;
31724      } else {
31725        {
31726#line 1222
31727        __cil_tmp22 = cmsg->FacilitySelector;
31728#line 1222
31729        __cil_tmp23 = (int )__cil_tmp22;
31730#line 1222
31731        if (__cil_tmp23 == 4) {
31732#line 1222
31733          goto case_4;
31734        } else {
31735#line 1229
31736          goto switch_default___0;
31737#line 1146
31738          if (0) {
31739            case_1: 
31740            {
31741#line 1148
31742            info = (u16 )12299U;
31743#line 1149
31744            confparam[0] = (u8 )2U;
31745#line 1151
31746            __cil_tmp24 = (void *)(& confparam);
31747#line 1151
31748            __cil_tmp25 = (__u16 )2;
31749#line 1151
31750            capimsg_setu16(__cil_tmp24, 1, __cil_tmp25);
31751            }
31752#line 1152
31753            goto ldv_35517;
31754            case_2: 
31755            {
31756#line 1155
31757            info = (u16 )12299U;
31758#line 1156
31759            confparam[0] = (u8 )2U;
31760#line 1158
31761            __cil_tmp26 = (void *)(& confparam);
31762#line 1158
31763            __cil_tmp27 = (__u16 )1;
31764#line 1158
31765            capimsg_setu16(__cil_tmp26, 1, __cil_tmp27);
31766            }
31767#line 1159
31768            goto ldv_35517;
31769            case_3: 
31770#line 1163
31771            pparam = cmsg->FacilityRequestParameter;
31772            {
31773#line 1164
31774            __cil_tmp28 = (u8 *)0;
31775#line 1164
31776            __cil_tmp29 = (unsigned long )__cil_tmp28;
31777#line 1164
31778            __cil_tmp30 = (unsigned long )pparam;
31779#line 1164
31780            if (__cil_tmp30 == __cil_tmp29) {
31781              {
31782#line 1165
31783              __cil_tmp31 = cs->dev;
31784#line 1165
31785              __cil_tmp32 = (struct device  const  *)__cil_tmp31;
31786#line 1165
31787              __cil_tmp33 = (char *)"FACILITY_REQ";
31788#line 1165
31789              __cil_tmp34 = (char *)"Facility Request Parameter";
31790#line 1165
31791              dev_notice(__cil_tmp32, "%s: %s missing\n", __cil_tmp33, __cil_tmp34);
31792#line 1167
31793              __cil_tmp35 = (u16 )8199;
31794#line 1167
31795              send_conf(iif, ap, skb, __cil_tmp35);
31796              }
31797#line 1168
31798              return;
31799            } else {
31800              {
31801#line 1164
31802              __cil_tmp36 = *pparam;
31803#line 1164
31804              __cil_tmp37 = (unsigned int )__cil_tmp36;
31805#line 1164
31806              if (__cil_tmp37 <= 1U) {
31807                {
31808#line 1165
31809                __cil_tmp38 = cs->dev;
31810#line 1165
31811                __cil_tmp39 = (struct device  const  *)__cil_tmp38;
31812#line 1165
31813                __cil_tmp40 = (char *)"FACILITY_REQ";
31814#line 1165
31815                __cil_tmp41 = (char *)"Facility Request Parameter";
31816#line 1165
31817                dev_notice(__cil_tmp39, "%s: %s missing\n", __cil_tmp40, __cil_tmp41);
31818#line 1167
31819                __cil_tmp42 = (u16 )8199;
31820#line 1167
31821                send_conf(iif, ap, skb, __cil_tmp42);
31822                }
31823#line 1168
31824                return;
31825              } else {
31826
31827              }
31828              }
31829            }
31830            }
31831#line 1170
31832            __cil_tmp43 = pparam + 2UL;
31833#line 1170
31834            __cil_tmp44 = *__cil_tmp43;
31835#line 1170
31836            __cil_tmp45 = (int )__cil_tmp44;
31837#line 1170
31838            __cil_tmp46 = __cil_tmp45 << 8;
31839#line 1170
31840            __cil_tmp47 = (short )__cil_tmp46;
31841#line 1170
31842            __cil_tmp48 = (int )__cil_tmp47;
31843#line 1170
31844            __cil_tmp49 = pparam + 1UL;
31845#line 1170
31846            __cil_tmp50 = *__cil_tmp49;
31847#line 1170
31848            __cil_tmp51 = (short )__cil_tmp50;
31849#line 1170
31850            __cil_tmp52 = (int )__cil_tmp51;
31851#line 1170
31852            __cil_tmp53 = __cil_tmp52 | __cil_tmp48;
31853#line 1170
31854            function = (u16 )__cil_tmp53;
31855            {
31856#line 1172
31857            __cil_tmp54 = (int )function;
31858#line 1172
31859            if (__cil_tmp54 == 0) {
31860#line 1172
31861              goto case_0;
31862            } else {
31863              {
31864#line 1181
31865              __cil_tmp55 = (int )function;
31866#line 1181
31867              if (__cil_tmp55 == 1) {
31868#line 1181
31869                goto case_1___0;
31870              } else {
31871#line 1203
31872                goto switch_default;
31873#line 1171
31874                if (0) {
31875                  case_0: 
31876                  {
31877#line 1173
31878                  info = (u16 )0U;
31879#line 1175
31880                  confparam[3] = (u8 )6U;
31881#line 1177
31882                  __cil_tmp56 = (void *)(& confparam);
31883#line 1177
31884                  __cil_tmp57 = (__u16 )0;
31885#line 1177
31886                  capimsg_setu16(__cil_tmp56, 4, __cil_tmp57);
31887#line 1179
31888                  __cil_tmp58 = (void *)(& confparam);
31889#line 1179
31890                  capimsg_setu32(__cil_tmp58, 6, 0U);
31891                  }
31892#line 1180
31893                  goto ldv_35521;
31894                  case_1___0: ;
31895                  {
31896#line 1182
31897                  __cil_tmp59 = *pparam;
31898#line 1182
31899                  __cil_tmp60 = (unsigned int )__cil_tmp59;
31900#line 1182
31901                  if (__cil_tmp60 <= 6U) {
31902                    {
31903#line 1183
31904                    __cil_tmp61 = cs->dev;
31905#line 1183
31906                    __cil_tmp62 = (struct device  const  *)__cil_tmp61;
31907#line 1183
31908                    __cil_tmp63 = (char *)"FACILITY_REQ";
31909#line 1183
31910                    __cil_tmp64 = (char *)"Notification Mask";
31911#line 1183
31912                    dev_notice(__cil_tmp62, "%s: %s missing\n", __cil_tmp63, __cil_tmp64);
31913#line 1185
31914                    __cil_tmp65 = (u16 )8199;
31915#line 1185
31916                    send_conf(iif, ap, skb, __cil_tmp65);
31917                    }
31918#line 1187
31919                    return;
31920                  } else {
31921                    {
31922#line 1182
31923                    __cil_tmp66 = pparam + 3UL;
31924#line 1182
31925                    __cil_tmp67 = *__cil_tmp66;
31926#line 1182
31927                    __cil_tmp68 = (unsigned int )__cil_tmp67;
31928#line 1182
31929                    if (__cil_tmp68 <= 3U) {
31930                      {
31931#line 1183
31932                      __cil_tmp69 = cs->dev;
31933#line 1183
31934                      __cil_tmp70 = (struct device  const  *)__cil_tmp69;
31935#line 1183
31936                      __cil_tmp71 = (char *)"FACILITY_REQ";
31937#line 1183
31938                      __cil_tmp72 = (char *)"Notification Mask";
31939#line 1183
31940                      dev_notice(__cil_tmp70, "%s: %s missing\n", __cil_tmp71, __cil_tmp72);
31941#line 1185
31942                      __cil_tmp73 = (u16 )8199;
31943#line 1185
31944                      send_conf(iif, ap, skb, __cil_tmp73);
31945                      }
31946#line 1187
31947                      return;
31948                    } else {
31949
31950                    }
31951                    }
31952                  }
31953                  }
31954                  {
31955#line 1189
31956                  __cil_tmp74 = pparam + 7UL;
31957#line 1189
31958                  __cil_tmp75 = *__cil_tmp74;
31959#line 1189
31960                  __cil_tmp76 = (int )__cil_tmp75;
31961#line 1189
31962                  __cil_tmp77 = __cil_tmp76 << 24;
31963#line 1189
31964                  __cil_tmp78 = pparam + 6UL;
31965#line 1189
31966                  __cil_tmp79 = *__cil_tmp78;
31967#line 1189
31968                  __cil_tmp80 = (int )__cil_tmp79;
31969#line 1189
31970                  __cil_tmp81 = __cil_tmp80 << 16;
31971#line 1189
31972                  __cil_tmp82 = pparam + 5UL;
31973#line 1189
31974                  __cil_tmp83 = *__cil_tmp82;
31975#line 1189
31976                  __cil_tmp84 = (int )__cil_tmp83;
31977#line 1189
31978                  __cil_tmp85 = __cil_tmp84 << 8;
31979#line 1189
31980                  __cil_tmp86 = pparam + 4UL;
31981#line 1189
31982                  __cil_tmp87 = *__cil_tmp86;
31983#line 1189
31984                  __cil_tmp88 = (int )__cil_tmp87;
31985#line 1189
31986                  __cil_tmp89 = __cil_tmp88 | __cil_tmp85;
31987#line 1189
31988                  __cil_tmp90 = __cil_tmp89 | __cil_tmp81;
31989#line 1189
31990                  __cil_tmp91 = __cil_tmp90 | __cil_tmp77;
31991#line 1189
31992                  if (__cil_tmp91 != 0) {
31993                    {
31994#line 1190
31995                    __cil_tmp92 = cs->dev;
31996#line 1190
31997                    __cil_tmp93 = (struct device  const  *)__cil_tmp92;
31998#line 1190
31999                    __cil_tmp94 = (char *)"FACILITY_REQ";
32000#line 1190
32001                    __cil_tmp95 = pparam + 7UL;
32002#line 1190
32003                    __cil_tmp96 = *__cil_tmp95;
32004#line 1190
32005                    __cil_tmp97 = (int )__cil_tmp96;
32006#line 1190
32007                    __cil_tmp98 = __cil_tmp97 << 24;
32008#line 1190
32009                    __cil_tmp99 = pparam + 6UL;
32010#line 1190
32011                    __cil_tmp100 = *__cil_tmp99;
32012#line 1190
32013                    __cil_tmp101 = (int )__cil_tmp100;
32014#line 1190
32015                    __cil_tmp102 = __cil_tmp101 << 16;
32016#line 1190
32017                    __cil_tmp103 = pparam + 5UL;
32018#line 1190
32019                    __cil_tmp104 = *__cil_tmp103;
32020#line 1190
32021                    __cil_tmp105 = (int )__cil_tmp104;
32022#line 1190
32023                    __cil_tmp106 = __cil_tmp105 << 8;
32024#line 1190
32025                    __cil_tmp107 = pparam + 4UL;
32026#line 1190
32027                    __cil_tmp108 = *__cil_tmp107;
32028#line 1190
32029                    __cil_tmp109 = (int )__cil_tmp108;
32030#line 1190
32031                    __cil_tmp110 = __cil_tmp109 | __cil_tmp106;
32032#line 1190
32033                    __cil_tmp111 = __cil_tmp110 | __cil_tmp102;
32034#line 1190
32035                    __cil_tmp112 = __cil_tmp111 | __cil_tmp98;
32036#line 1190
32037                    dev_notice(__cil_tmp93, "%s: unsupported supplementary service notification mask 0x%x\n",
32038                               __cil_tmp94, __cil_tmp112);
32039#line 1193
32040                    info = (u16 )12305U;
32041#line 1194
32042                    confparam[3] = (u8 )2U;
32043#line 1195
32044                    __cil_tmp113 = (void *)(& confparam);
32045#line 1195
32046                    __cil_tmp114 = (__u16 )12302;
32047#line 1195
32048                    capimsg_setu16(__cil_tmp113, 4, __cil_tmp114);
32049                    }
32050                  } else {
32051
32052                  }
32053                  }
32054                  {
32055#line 1198
32056                  info = (u16 )0U;
32057#line 1199
32058                  confparam[3] = (u8 )2U;
32059#line 1200
32060                  __cil_tmp115 = (void *)(& confparam);
32061#line 1200
32062                  __cil_tmp116 = (__u16 )0;
32063#line 1200
32064                  capimsg_setu16(__cil_tmp115, 4, __cil_tmp116);
32065                  }
32066#line 1201
32067                  goto ldv_35521;
32068                  switch_default: 
32069                  {
32070#line 1204
32071                  __cil_tmp117 = cs->dev;
32072#line 1204
32073                  __cil_tmp118 = (struct device  const  *)__cil_tmp117;
32074#line 1204
32075                  __cil_tmp119 = (char *)"FACILITY_REQ";
32076#line 1204
32077                  __cil_tmp120 = (int )function;
32078#line 1204
32079                  dev_notice(__cil_tmp118, "%s: unsupported supplementary service function 0x%04x\n",
32080                             __cil_tmp119, __cil_tmp120);
32081#line 1207
32082                  info = (u16 )12305U;
32083#line 1209
32084                  confparam[3] = (u8 )2U;
32085#line 1211
32086                  __cil_tmp121 = (void *)(& confparam);
32087#line 1211
32088                  __cil_tmp122 = (__u16 )12302;
32089#line 1211
32090                  capimsg_setu16(__cil_tmp121, 4, __cil_tmp122);
32091                  }
32092                } else {
32093
32094                }
32095              }
32096              }
32097            }
32098            }
32099            ldv_35521: 
32100            {
32101#line 1216
32102            __cil_tmp123 = (unsigned int )confparam[3];
32103#line 1216
32104            __cil_tmp124 = __cil_tmp123 + 3U;
32105#line 1216
32106            confparam[0] = (u8 )__cil_tmp124;
32107#line 1218
32108            __cil_tmp125 = (void *)(& confparam);
32109#line 1218
32110            __cil_tmp126 = (int )function;
32111#line 1218
32112            __cil_tmp127 = (__u16 )__cil_tmp126;
32113#line 1218
32114            capimsg_setu16(__cil_tmp125, 1, __cil_tmp127);
32115            }
32116#line 1220
32117            goto ldv_35517;
32118            case_4: 
32119            {
32120#line 1223
32121            info = (u16 )12299U;
32122#line 1224
32123            confparam[0] = (u8 )2U;
32124#line 1226
32125            __cil_tmp128 = (void *)(& confparam);
32126#line 1226
32127            __cil_tmp129 = (__u16 )0;
32128#line 1226
32129            capimsg_setu16(__cil_tmp128, 1, __cil_tmp129);
32130            }
32131#line 1227
32132            goto ldv_35517;
32133            switch_default___0: 
32134#line 1230
32135            info = (u16 )12299U;
32136#line 1231
32137            confparam[0] = (u8 )0U;
32138          } else {
32139
32140          }
32141        }
32142        }
32143      }
32144      }
32145    }
32146    }
32147  }
32148  }
32149  ldv_35517: 
32150  {
32151#line 1235
32152  capi_cmsg_answer(cmsg);
32153#line 1236
32154  cmsg->Info = info;
32155#line 1237
32156  cmsg->FacilityConfirmationParameter = (_cstruct )(& confparam);
32157#line 1238
32158  __cil_tmp130 = (unsigned int )confparam[0];
32159#line 1238
32160  msgsize = __cil_tmp130 + msgsize;
32161#line 1239
32162  cskb = alloc_skb(msgsize, 32U);
32163  }
32164  {
32165#line 1240
32166  __cil_tmp131 = (struct sk_buff *)0;
32167#line 1240
32168  __cil_tmp132 = (unsigned long )__cil_tmp131;
32169#line 1240
32170  __cil_tmp133 = (unsigned long )cskb;
32171#line 1240
32172  if (__cil_tmp133 == __cil_tmp132) {
32173    {
32174#line 1241
32175    __cil_tmp134 = cs->dev;
32176#line 1241
32177    __cil_tmp135 = (struct device  const  *)__cil_tmp134;
32178#line 1241
32179    dev_err(__cil_tmp135, "%s: out of memory\n", "do_facility_req");
32180    }
32181#line 1242
32182    return;
32183  } else {
32184
32185  }
32186  }
32187  {
32188#line 1244
32189  tmp = __skb_put(cskb, msgsize);
32190#line 1244
32191  capi_cmsg2message(cmsg, tmp);
32192#line 1245
32193  __cil_tmp136 = (enum debuglevel )32;
32194#line 1245
32195  dump_cmsg(__cil_tmp136, "do_facility_req", cmsg);
32196#line 1246
32197  __cil_tmp137 = & iif->ctr;
32198#line 1246
32199  __cil_tmp138 = ap->id;
32200#line 1246
32201  __cil_tmp139 = (int )__cil_tmp138;
32202#line 1246
32203  __cil_tmp140 = (u16 )__cil_tmp139;
32204#line 1246
32205  capi_ctr_handle_message(__cil_tmp137, __cil_tmp140, cskb);
32206  }
32207#line 1247
32208  return;
32209}
32210}
32211#line 1254 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
32212static void do_listen_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
32213                          struct sk_buff *skb ) 
32214{ _cmsg *__cil_tmp4 ;
32215  unsigned char *__cil_tmp5 ;
32216  enum debuglevel __cil_tmp6 ;
32217  _cmsg *__cil_tmp7 ;
32218  u16 __cil_tmp8 ;
32219
32220  {
32221  {
32222#line 1259
32223  __cil_tmp4 = & iif->acmsg;
32224#line 1259
32225  __cil_tmp5 = skb->data;
32226#line 1259
32227  capi_message2cmsg(__cil_tmp4, __cil_tmp5);
32228#line 1260
32229  __cil_tmp6 = (enum debuglevel )32;
32230#line 1260
32231  __cil_tmp7 = & iif->acmsg;
32232#line 1260
32233  dump_cmsg(__cil_tmp6, "do_listen_req", __cil_tmp7);
32234#line 1263
32235  ap->listenInfoMask = iif->acmsg.InfoMask;
32236#line 1264
32237  ap->listenCIPmask = iif->acmsg.CIPmask;
32238#line 1265
32239  __cil_tmp8 = (u16 )0;
32240#line 1265
32241  send_conf(iif, ap, skb, __cil_tmp8);
32242  }
32243#line 1266
32244  return;
32245}
32246}
32247#line 1272 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
32248static void do_alert_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
32249                         struct sk_buff *skb ) 
32250{ _cmsg *__cil_tmp4 ;
32251  unsigned char *__cil_tmp5 ;
32252  enum debuglevel __cil_tmp6 ;
32253  _cmsg *__cil_tmp7 ;
32254  u16 __cil_tmp8 ;
32255
32256  {
32257  {
32258#line 1277
32259  __cil_tmp4 = & iif->acmsg;
32260#line 1277
32261  __cil_tmp5 = skb->data;
32262#line 1277
32263  capi_message2cmsg(__cil_tmp4, __cil_tmp5);
32264#line 1278
32265  __cil_tmp6 = (enum debuglevel )32;
32266#line 1278
32267  __cil_tmp7 = & iif->acmsg;
32268#line 1278
32269  dump_cmsg(__cil_tmp6, "do_alert_req", __cil_tmp7);
32270#line 1279
32271  __cil_tmp8 = (u16 )3;
32272#line 1279
32273  send_conf(iif, ap, skb, __cil_tmp8);
32274  }
32275#line 1280
32276  return;
32277}
32278}
32279#line 1287 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
32280static void do_connect_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
32281                           struct sk_buff *skb ) 
32282{ struct cardstate *cs ;
32283  _cmsg *cmsg ;
32284  struct bc_state *bcs ;
32285  char **commands ;
32286  char *s ;
32287  u8 *pp ;
32288  unsigned long flags ;
32289  int i ;
32290  int l ;
32291  int lbc ;
32292  int lhlc ;
32293  u16 info ;
32294  raw_spinlock_t *tmp ;
32295  void *tmp___0 ;
32296  u8 *tmp___1 ;
32297  void *tmp___2 ;
32298  u8 *tmp___3 ;
32299  void *tmp___4 ;
32300  size_t tmp___5 ;
32301  size_t tmp___6 ;
32302  void *tmp___7 ;
32303  void *tmp___8 ;
32304  void *tmp___9 ;
32305  struct event_t *tmp___10 ;
32306  void *__cil_tmp28 ;
32307  unsigned char *__cil_tmp29 ;
32308  enum debuglevel __cil_tmp30 ;
32309  struct bc_state *__cil_tmp31 ;
32310  unsigned long __cil_tmp32 ;
32311  unsigned long __cil_tmp33 ;
32312  struct device *__cil_tmp34 ;
32313  struct device  const  *__cil_tmp35 ;
32314  char *__cil_tmp36 ;
32315  u16 __cil_tmp37 ;
32316  spinlock_t *__cil_tmp38 ;
32317  void *__cil_tmp39 ;
32318  unsigned long __cil_tmp40 ;
32319  void *__cil_tmp41 ;
32320  unsigned long __cil_tmp42 ;
32321  struct device *__cil_tmp43 ;
32322  struct device  const  *__cil_tmp44 ;
32323  void *__cil_tmp45 ;
32324  int __cil_tmp46 ;
32325  int __cil_tmp47 ;
32326  struct device *__cil_tmp48 ;
32327  struct device  const  *__cil_tmp49 ;
32328  void *__cil_tmp50 ;
32329  int __cil_tmp51 ;
32330  spinlock_t *__cil_tmp52 ;
32331  struct sk_buff *__cil_tmp53 ;
32332  int __cil_tmp54 ;
32333  int __cil_tmp55 ;
32334  int __cil_tmp56 ;
32335  __u32 __cil_tmp57 ;
32336  __u32 __cil_tmp58 ;
32337  char **__cil_tmp59 ;
32338  unsigned long __cil_tmp60 ;
32339  unsigned long __cil_tmp61 ;
32340  u8 *__cil_tmp62 ;
32341  unsigned long __cil_tmp63 ;
32342  unsigned long __cil_tmp64 ;
32343  struct device *__cil_tmp65 ;
32344  struct device  const  *__cil_tmp66 ;
32345  char *__cil_tmp67 ;
32346  char *__cil_tmp68 ;
32347  u8 __cil_tmp69 ;
32348  unsigned int __cil_tmp70 ;
32349  struct device *__cil_tmp71 ;
32350  struct device  const  *__cil_tmp72 ;
32351  char *__cil_tmp73 ;
32352  char *__cil_tmp74 ;
32353  u8 __cil_tmp75 ;
32354  u8 __cil_tmp76 ;
32355  int __cil_tmp77 ;
32356  u8 __cil_tmp78 ;
32357  int __cil_tmp79 ;
32358  struct device *__cil_tmp80 ;
32359  struct device  const  *__cil_tmp81 ;
32360  char *__cil_tmp82 ;
32361  char *__cil_tmp83 ;
32362  u8 __cil_tmp84 ;
32363  int __cil_tmp85 ;
32364  u8 __cil_tmp86 ;
32365  unsigned int __cil_tmp87 ;
32366  u8 *__cil_tmp88 ;
32367  u8 __cil_tmp89 ;
32368  unsigned int __cil_tmp90 ;
32369  char **__cil_tmp91 ;
32370  char const   *__cil_tmp92 ;
32371  char *__cil_tmp93 ;
32372  unsigned long __cil_tmp94 ;
32373  char **__cil_tmp95 ;
32374  char *__cil_tmp96 ;
32375  unsigned long __cil_tmp97 ;
32376  int __cil_tmp98 ;
32377  size_t __cil_tmp99 ;
32378  char **__cil_tmp100 ;
32379  char *__cil_tmp101 ;
32380  unsigned long __cil_tmp102 ;
32381  char **__cil_tmp103 ;
32382  char *__cil_tmp104 ;
32383  unsigned long __cil_tmp105 ;
32384  char **__cil_tmp106 ;
32385  char *__cil_tmp107 ;
32386  int __cil_tmp108 ;
32387  size_t __cil_tmp109 ;
32388  u8 *__cil_tmp110 ;
32389  unsigned long __cil_tmp111 ;
32390  unsigned long __cil_tmp112 ;
32391  u8 __cil_tmp113 ;
32392  unsigned int __cil_tmp114 ;
32393  u8 __cil_tmp115 ;
32394  u8 __cil_tmp116 ;
32395  int __cil_tmp117 ;
32396  u8 __cil_tmp118 ;
32397  int __cil_tmp119 ;
32398  struct device *__cil_tmp120 ;
32399  struct device  const  *__cil_tmp121 ;
32400  char *__cil_tmp122 ;
32401  char *__cil_tmp123 ;
32402  u8 __cil_tmp124 ;
32403  int __cil_tmp125 ;
32404  struct device *__cil_tmp126 ;
32405  struct device  const  *__cil_tmp127 ;
32406  char *__cil_tmp128 ;
32407  char *__cil_tmp129 ;
32408  u8 __cil_tmp130 ;
32409  int __cil_tmp131 ;
32410  int __cil_tmp132 ;
32411  u8 __cil_tmp133 ;
32412  int __cil_tmp134 ;
32413  int __cil_tmp135 ;
32414  struct device *__cil_tmp136 ;
32415  struct device  const  *__cil_tmp137 ;
32416  char *__cil_tmp138 ;
32417  char *__cil_tmp139 ;
32418  u8 __cil_tmp140 ;
32419  int __cil_tmp141 ;
32420  char **__cil_tmp142 ;
32421  char const   *__cil_tmp143 ;
32422  char *__cil_tmp144 ;
32423  unsigned long __cil_tmp145 ;
32424  char **__cil_tmp146 ;
32425  char *__cil_tmp147 ;
32426  unsigned long __cil_tmp148 ;
32427  int __cil_tmp149 ;
32428  size_t __cil_tmp150 ;
32429  char **__cil_tmp151 ;
32430  char *__cil_tmp152 ;
32431  unsigned long __cil_tmp153 ;
32432  char **__cil_tmp154 ;
32433  char *__cil_tmp155 ;
32434  unsigned long __cil_tmp156 ;
32435  char **__cil_tmp157 ;
32436  char *__cil_tmp158 ;
32437  int __cil_tmp159 ;
32438  size_t __cil_tmp160 ;
32439  __u16 __cil_tmp161 ;
32440  unsigned int __cil_tmp162 ;
32441  struct device *__cil_tmp163 ;
32442  struct device  const  *__cil_tmp164 ;
32443  char *__cil_tmp165 ;
32444  __u16 __cil_tmp166 ;
32445  int __cil_tmp167 ;
32446  __u16 __cil_tmp168 ;
32447  unsigned int __cil_tmp169 ;
32448  u8 *__cil_tmp170 ;
32449  unsigned long __cil_tmp171 ;
32450  unsigned long __cil_tmp172 ;
32451  struct device *__cil_tmp173 ;
32452  struct device  const  *__cil_tmp174 ;
32453  char *__cil_tmp175 ;
32454  __u16 __cil_tmp176 ;
32455  int __cil_tmp177 ;
32456  _cstruct __cil_tmp178 ;
32457  unsigned long __cil_tmp179 ;
32458  _cstruct __cil_tmp180 ;
32459  unsigned long __cil_tmp181 ;
32460  _cstruct __cil_tmp182 ;
32461  __u8 __cil_tmp183 ;
32462  unsigned int __cil_tmp184 ;
32463  _cstruct __cil_tmp185 ;
32464  __u8 __cil_tmp186 ;
32465  int __cil_tmp187 ;
32466  u8 *__cil_tmp188 ;
32467  unsigned long __cil_tmp189 ;
32468  unsigned long __cil_tmp190 ;
32469  char const   *__cil_tmp191 ;
32470  _cstruct __cil_tmp192 ;
32471  unsigned long __cil_tmp193 ;
32472  _cstruct __cil_tmp194 ;
32473  unsigned long __cil_tmp195 ;
32474  _cstruct __cil_tmp196 ;
32475  __u8 __cil_tmp197 ;
32476  unsigned int __cil_tmp198 ;
32477  _cstruct __cil_tmp199 ;
32478  __u8 __cil_tmp200 ;
32479  int __cil_tmp201 ;
32480  u8 *__cil_tmp202 ;
32481  unsigned long __cil_tmp203 ;
32482  unsigned long __cil_tmp204 ;
32483  char const   *__cil_tmp205 ;
32484  int __cil_tmp206 ;
32485  size_t __cil_tmp207 ;
32486  char **__cil_tmp208 ;
32487  char *__cil_tmp209 ;
32488  unsigned long __cil_tmp210 ;
32489  char **__cil_tmp211 ;
32490  char *__cil_tmp212 ;
32491  unsigned long __cil_tmp213 ;
32492  char **__cil_tmp214 ;
32493  char *__cil_tmp215 ;
32494  _cstruct __cil_tmp216 ;
32495  unsigned long __cil_tmp217 ;
32496  _cstruct __cil_tmp218 ;
32497  unsigned long __cil_tmp219 ;
32498  _cstruct __cil_tmp220 ;
32499  __u8 __cil_tmp221 ;
32500  unsigned int __cil_tmp222 ;
32501  _cstruct __cil_tmp223 ;
32502  char **__cil_tmp224 ;
32503  char *__cil_tmp225 ;
32504  char *__cil_tmp226 ;
32505  char **__cil_tmp227 ;
32506  char *__cil_tmp228 ;
32507  char *__cil_tmp229 ;
32508  char const   *__cil_tmp230 ;
32509  char **__cil_tmp231 ;
32510  char *__cil_tmp232 ;
32511  char *__cil_tmp233 ;
32512  char const   *__cil_tmp234 ;
32513  unsigned long __cil_tmp235 ;
32514  unsigned long __cil_tmp236 ;
32515  char **__cil_tmp237 ;
32516  char *__cil_tmp238 ;
32517  char *__cil_tmp239 ;
32518  _cstruct __cil_tmp240 ;
32519  unsigned long __cil_tmp241 ;
32520  _cstruct __cil_tmp242 ;
32521  unsigned long __cil_tmp243 ;
32522  _cstruct __cil_tmp244 ;
32523  __u8 __cil_tmp245 ;
32524  unsigned int __cil_tmp246 ;
32525  _cstruct __cil_tmp247 ;
32526  unsigned long __cil_tmp248 ;
32527  unsigned long __cil_tmp249 ;
32528  char **__cil_tmp250 ;
32529  char *__cil_tmp251 ;
32530  char *__cil_tmp252 ;
32531  unsigned long __cil_tmp253 ;
32532  unsigned long __cil_tmp254 ;
32533  char **__cil_tmp255 ;
32534  char *__cil_tmp256 ;
32535  char *__cil_tmp257 ;
32536  char const   *__cil_tmp258 ;
32537  unsigned long __cil_tmp259 ;
32538  unsigned long __cil_tmp260 ;
32539  char **__cil_tmp261 ;
32540  char *__cil_tmp262 ;
32541  char *__cil_tmp263 ;
32542  char const   *__cil_tmp264 ;
32543  unsigned long __cil_tmp265 ;
32544  unsigned long __cil_tmp266 ;
32545  char **__cil_tmp267 ;
32546  char *__cil_tmp268 ;
32547  char *__cil_tmp269 ;
32548  struct device *__cil_tmp270 ;
32549  struct device  const  *__cil_tmp271 ;
32550  char *__cil_tmp272 ;
32551  _cmstruct __cil_tmp273 ;
32552  unsigned int __cil_tmp274 ;
32553  struct device *__cil_tmp275 ;
32554  struct device  const  *__cil_tmp276 ;
32555  __u16 __cil_tmp277 ;
32556  int __cil_tmp278 ;
32557  __u16 __cil_tmp279 ;
32558  int __cil_tmp280 ;
32559  struct device *__cil_tmp281 ;
32560  struct device  const  *__cil_tmp282 ;
32561  __u16 __cil_tmp283 ;
32562  int __cil_tmp284 ;
32563  __u16 __cil_tmp285 ;
32564  unsigned int __cil_tmp286 ;
32565  struct device *__cil_tmp287 ;
32566  struct device  const  *__cil_tmp288 ;
32567  __u16 __cil_tmp289 ;
32568  int __cil_tmp290 ;
32569  __u16 __cil_tmp291 ;
32570  unsigned int __cil_tmp292 ;
32571  struct device *__cil_tmp293 ;
32572  struct device  const  *__cil_tmp294 ;
32573  __u16 __cil_tmp295 ;
32574  int __cil_tmp296 ;
32575  _cstruct __cil_tmp297 ;
32576  char *__cil_tmp298 ;
32577  char *__cil_tmp299 ;
32578  _cstruct __cil_tmp300 ;
32579  char *__cil_tmp301 ;
32580  char *__cil_tmp302 ;
32581  _cstruct __cil_tmp303 ;
32582  char *__cil_tmp304 ;
32583  char *__cil_tmp305 ;
32584  char **__cil_tmp306 ;
32585  char *__cil_tmp307 ;
32586  unsigned long __cil_tmp308 ;
32587  char **__cil_tmp309 ;
32588  char *__cil_tmp310 ;
32589  unsigned long __cil_tmp311 ;
32590  char **__cil_tmp312 ;
32591  char *__cil_tmp313 ;
32592  unsigned int __cil_tmp314 ;
32593  _cstruct __cil_tmp315 ;
32594  char *__cil_tmp316 ;
32595  char *__cil_tmp317 ;
32596  _cstruct __cil_tmp318 ;
32597  char *__cil_tmp319 ;
32598  char *__cil_tmp320 ;
32599  _cstruct __cil_tmp321 ;
32600  char *__cil_tmp322 ;
32601  char *__cil_tmp323 ;
32602  _cmstruct __cil_tmp324 ;
32603  unsigned int __cil_tmp325 ;
32604  _cstruct __cil_tmp326 ;
32605  char *__cil_tmp327 ;
32606  char *__cil_tmp328 ;
32607  _cstruct __cil_tmp329 ;
32608  char *__cil_tmp330 ;
32609  char *__cil_tmp331 ;
32610  _cstruct __cil_tmp332 ;
32611  char *__cil_tmp333 ;
32612  char *__cil_tmp334 ;
32613  _cstruct __cil_tmp335 ;
32614  char *__cil_tmp336 ;
32615  char *__cil_tmp337 ;
32616  char *__cil_tmp338 ;
32617  unsigned long __cil_tmp339 ;
32618  char *__cil_tmp340 ;
32619  unsigned long __cil_tmp341 ;
32620  char *__cil_tmp342 ;
32621  int __cil_tmp343 ;
32622  unsigned int __cil_tmp344 ;
32623  unsigned int __cil_tmp345 ;
32624  struct at_state_t *__cil_tmp346 ;
32625  void *__cil_tmp347 ;
32626  unsigned int __cil_tmp348 ;
32627  int __cil_tmp349 ;
32628  void *__cil_tmp350 ;
32629  struct event_t *__cil_tmp351 ;
32630  unsigned long __cil_tmp352 ;
32631  unsigned long __cil_tmp353 ;
32632  u16 __cil_tmp354 ;
32633  struct device *__cil_tmp355 ;
32634  struct device  const  *__cil_tmp356 ;
32635  char **__cil_tmp357 ;
32636  unsigned long __cil_tmp358 ;
32637  unsigned long __cil_tmp359 ;
32638  unsigned long __cil_tmp360 ;
32639  char **__cil_tmp361 ;
32640  char *__cil_tmp362 ;
32641  void const   *__cil_tmp363 ;
32642  void const   *__cil_tmp364 ;
32643  int __cil_tmp365 ;
32644  u16 __cil_tmp366 ;
32645
32646  {
32647  {
32648#line 1291
32649  __cil_tmp28 = iif->ctr.driverdata;
32650#line 1291
32651  cs = (struct cardstate *)__cil_tmp28;
32652#line 1292
32653  cmsg = & iif->acmsg;
32654#line 1302
32655  __cil_tmp29 = skb->data;
32656#line 1302
32657  capi_message2cmsg(cmsg, __cil_tmp29);
32658#line 1303
32659  __cil_tmp30 = (enum debuglevel )32;
32660#line 1303
32661  dump_cmsg(__cil_tmp30, "do_connect_req", cmsg);
32662#line 1306
32663  bcs = gigaset_get_free_channel(cs);
32664  }
32665  {
32666#line 1307
32667  __cil_tmp31 = (struct bc_state *)0;
32668#line 1307
32669  __cil_tmp32 = (unsigned long )__cil_tmp31;
32670#line 1307
32671  __cil_tmp33 = (unsigned long )bcs;
32672#line 1307
32673  if (__cil_tmp33 == __cil_tmp32) {
32674    {
32675#line 1308
32676    __cil_tmp34 = cs->dev;
32677#line 1308
32678    __cil_tmp35 = (struct device  const  *)__cil_tmp34;
32679#line 1308
32680    __cil_tmp36 = (char *)"CONNECT_REQ";
32681#line 1308
32682    dev_notice(__cil_tmp35, "%s: no B channel available\n", __cil_tmp36);
32683#line 1310
32684    __cil_tmp37 = (u16 )8195;
32685#line 1310
32686    send_conf(iif, ap, skb, __cil_tmp37);
32687    }
32688#line 1311
32689    return;
32690  } else {
32691
32692  }
32693  }
32694  {
32695#line 1313
32696  __cil_tmp38 = & bcs->aplock;
32697#line 1313
32698  tmp = spinlock_check(__cil_tmp38);
32699#line 1313
32700  flags = _raw_spin_lock_irqsave(tmp);
32701  }
32702  {
32703#line 1314
32704  __cil_tmp39 = (void *)0;
32705#line 1314
32706  __cil_tmp40 = (unsigned long )__cil_tmp39;
32707#line 1314
32708  __cil_tmp41 = bcs->ap;
32709#line 1314
32710  __cil_tmp42 = (unsigned long )__cil_tmp41;
32711#line 1314
32712  if (__cil_tmp42 != __cil_tmp40) {
32713    {
32714#line 1315
32715    __cil_tmp43 = cs->dev;
32716#line 1315
32717    __cil_tmp44 = (struct device  const  *)__cil_tmp43;
32718#line 1315
32719    __cil_tmp45 = bcs->ap;
32720#line 1315
32721    __cil_tmp46 = bcs->apconnstate;
32722#line 1315
32723    dev_warn(__cil_tmp44, "%s: channel not properly cleared (%p/%d)\n", "do_connect_req",
32724             __cil_tmp45, __cil_tmp46);
32725    }
32726  } else {
32727    {
32728#line 1314
32729    __cil_tmp47 = bcs->apconnstate;
32730#line 1314
32731    if (__cil_tmp47 != 0) {
32732      {
32733#line 1315
32734      __cil_tmp48 = cs->dev;
32735#line 1315
32736      __cil_tmp49 = (struct device  const  *)__cil_tmp48;
32737#line 1315
32738      __cil_tmp50 = bcs->ap;
32739#line 1315
32740      __cil_tmp51 = bcs->apconnstate;
32741#line 1315
32742      dev_warn(__cil_tmp49, "%s: channel not properly cleared (%p/%d)\n", "do_connect_req",
32743               __cil_tmp50, __cil_tmp51);
32744      }
32745    } else {
32746
32747    }
32748    }
32749  }
32750  }
32751  {
32752#line 1317
32753  ap->bcnext = (struct gigaset_capi_appl *)0;
32754#line 1318
32755  bcs->ap = (void *)ap;
32756#line 1319
32757  bcs->apconnstate = 1;
32758#line 1320
32759  __cil_tmp52 = & bcs->aplock;
32760#line 1320
32761  spin_unlock_irqrestore(__cil_tmp52, flags);
32762#line 1322
32763  bcs->rx_bufsize = ap->rp.datablklen;
32764#line 1323
32765  __cil_tmp53 = bcs->rx_skb;
32766#line 1323
32767  consume_skb(__cil_tmp53);
32768#line 1324
32769  gigaset_new_rx_skb(bcs);
32770#line 1325
32771  __cil_tmp54 = bcs->channel;
32772#line 1325
32773  __cil_tmp55 = __cil_tmp54 + 1;
32774#line 1325
32775  __cil_tmp56 = __cil_tmp55 << 8;
32776#line 1325
32777  __cil_tmp57 = (__u32 )__cil_tmp56;
32778#line 1325
32779  __cil_tmp58 = cmsg->adr.adrPLCI;
32780#line 1325
32781  cmsg->adr.adrPLCI = __cil_tmp58 | __cil_tmp57;
32782#line 1328
32783  tmp___0 = kzalloc(56UL, 208U);
32784#line 1328
32785  commands = (char **)tmp___0;
32786  }
32787  {
32788#line 1329
32789  __cil_tmp59 = (char **)0;
32790#line 1329
32791  __cil_tmp60 = (unsigned long )__cil_tmp59;
32792#line 1329
32793  __cil_tmp61 = (unsigned long )commands;
32794#line 1329
32795  if (__cil_tmp61 == __cil_tmp60) {
32796#line 1330
32797    goto oom;
32798  } else {
32799
32800  }
32801  }
32802#line 1333
32803  pp = cmsg->CalledPartyNumber;
32804  {
32805#line 1334
32806  __cil_tmp62 = (u8 *)0;
32807#line 1334
32808  __cil_tmp63 = (unsigned long )__cil_tmp62;
32809#line 1334
32810  __cil_tmp64 = (unsigned long )pp;
32811#line 1334
32812  if (__cil_tmp64 == __cil_tmp63) {
32813    {
32814#line 1335
32815    __cil_tmp65 = cs->dev;
32816#line 1335
32817    __cil_tmp66 = (struct device  const  *)__cil_tmp65;
32818#line 1335
32819    __cil_tmp67 = (char *)"CONNECT_REQ";
32820#line 1335
32821    __cil_tmp68 = (char *)"Called party number";
32822#line 1335
32823    dev_notice(__cil_tmp66, "%s: %s missing\n", __cil_tmp67, __cil_tmp68);
32824#line 1337
32825    info = (u16 )8199U;
32826    }
32827#line 1338
32828    goto error;
32829  } else {
32830    {
32831#line 1334
32832    __cil_tmp69 = *pp;
32833#line 1334
32834    __cil_tmp70 = (unsigned int )__cil_tmp69;
32835#line 1334
32836    if (__cil_tmp70 == 0U) {
32837      {
32838#line 1335
32839      __cil_tmp71 = cs->dev;
32840#line 1335
32841      __cil_tmp72 = (struct device  const  *)__cil_tmp71;
32842#line 1335
32843      __cil_tmp73 = (char *)"CONNECT_REQ";
32844#line 1335
32845      __cil_tmp74 = (char *)"Called party number";
32846#line 1335
32847      dev_notice(__cil_tmp72, "%s: %s missing\n", __cil_tmp73, __cil_tmp74);
32848#line 1337
32849      info = (u16 )8199U;
32850      }
32851#line 1338
32852      goto error;
32853    } else {
32854
32855    }
32856    }
32857  }
32858  }
32859#line 1340
32860  tmp___1 = pp;
32861#line 1340
32862  pp = pp + 1;
32863#line 1340
32864  __cil_tmp75 = *tmp___1;
32865#line 1340
32866  l = (int )__cil_tmp75;
32867  {
32868#line 1343
32869  __cil_tmp76 = *pp;
32870#line 1343
32871  __cil_tmp77 = (int )__cil_tmp76;
32872#line 1343
32873  if (__cil_tmp77 == 128) {
32874#line 1343
32875    goto case_128;
32876  } else {
32877    {
32878#line 1344
32879    __cil_tmp78 = *pp;
32880#line 1344
32881    __cil_tmp79 = (int )__cil_tmp78;
32882#line 1344
32883    if (__cil_tmp79 == 129) {
32884#line 1344
32885      goto case_129;
32886    } else {
32887#line 1346
32888      goto switch_default;
32889#line 1342
32890      if (0) {
32891        case_128: ;
32892        case_129: ;
32893#line 1345
32894        goto ldv_35563;
32895        switch_default: 
32896        {
32897#line 1347
32898        __cil_tmp80 = cs->dev;
32899#line 1347
32900        __cil_tmp81 = (struct device  const  *)__cil_tmp80;
32901#line 1347
32902        __cil_tmp82 = (char *)"CONNECT_REQ";
32903#line 1347
32904        __cil_tmp83 = (char *)"Called party number";
32905#line 1347
32906        __cil_tmp84 = *pp;
32907#line 1347
32908        __cil_tmp85 = (int )__cil_tmp84;
32909#line 1347
32910        dev_notice(__cil_tmp81, "%s: %s type/plan 0x%02x unsupported\n", __cil_tmp82,
32911                   __cil_tmp83, __cil_tmp85);
32912        }
32913      } else {
32914
32915      }
32916    }
32917    }
32918  }
32919  }
32920  ldv_35563: 
32921#line 1350
32922  pp = pp + 1;
32923#line 1351
32924  l = l - 1;
32925#line 1353
32926  if (l > 1) {
32927    {
32928#line 1353
32929    __cil_tmp86 = *pp;
32930#line 1353
32931    __cil_tmp87 = (unsigned int )__cil_tmp86;
32932#line 1353
32933    if (__cil_tmp87 == 42U) {
32934      {
32935#line 1353
32936      __cil_tmp88 = pp + 1UL;
32937#line 1353
32938      __cil_tmp89 = *__cil_tmp88;
32939#line 1353
32940      __cil_tmp90 = (unsigned int )__cil_tmp89;
32941#line 1353
32942      if (__cil_tmp90 == 42U) {
32943#line 1354
32944        s = (char *)"^SCTP=0\r";
32945#line 1355
32946        pp = pp + 2UL;
32947#line 1356
32948        l = l + -2;
32949      } else {
32950#line 1358
32951        s = (char *)"^SCTP=1\r";
32952      }
32953      }
32954    } else {
32955#line 1358
32956      s = (char *)"^SCTP=1\r";
32957    }
32958    }
32959  } else {
32960#line 1358
32961    s = (char *)"^SCTP=1\r";
32962  }
32963  {
32964#line 1360
32965  __cil_tmp91 = commands + 5UL;
32966#line 1360
32967  __cil_tmp92 = (char const   *)s;
32968#line 1360
32969  *__cil_tmp91 = kstrdup(__cil_tmp92, 208U);
32970  }
32971  {
32972#line 1361
32973  __cil_tmp93 = (char *)0;
32974#line 1361
32975  __cil_tmp94 = (unsigned long )__cil_tmp93;
32976#line 1361
32977  __cil_tmp95 = commands + 5UL;
32978#line 1361
32979  __cil_tmp96 = *__cil_tmp95;
32980#line 1361
32981  __cil_tmp97 = (unsigned long )__cil_tmp96;
32982#line 1361
32983  if (__cil_tmp97 == __cil_tmp94) {
32984#line 1362
32985    goto oom;
32986  } else {
32987
32988  }
32989  }
32990  {
32991#line 1363
32992  __cil_tmp98 = l + 3;
32993#line 1363
32994  __cil_tmp99 = (size_t )__cil_tmp98;
32995#line 1363
32996  tmp___2 = kmalloc(__cil_tmp99, 208U);
32997#line 1363
32998  __cil_tmp100 = commands + 1UL;
32999#line 1363
33000  *__cil_tmp100 = (char *)tmp___2;
33001  }
33002  {
33003#line 1364
33004  __cil_tmp101 = (char *)0;
33005#line 1364
33006  __cil_tmp102 = (unsigned long )__cil_tmp101;
33007#line 1364
33008  __cil_tmp103 = commands + 1UL;
33009#line 1364
33010  __cil_tmp104 = *__cil_tmp103;
33011#line 1364
33012  __cil_tmp105 = (unsigned long )__cil_tmp104;
33013#line 1364
33014  if (__cil_tmp105 == __cil_tmp102) {
33015#line 1365
33016    goto oom;
33017  } else {
33018
33019  }
33020  }
33021  {
33022#line 1366
33023  __cil_tmp106 = commands + 1UL;
33024#line 1366
33025  __cil_tmp107 = *__cil_tmp106;
33026#line 1366
33027  __cil_tmp108 = l + 3;
33028#line 1366
33029  __cil_tmp109 = (size_t )__cil_tmp108;
33030#line 1366
33031  snprintf(__cil_tmp107, __cil_tmp109, "D%.*s\r", l, pp);
33032#line 1369
33033  pp = cmsg->CallingPartyNumber;
33034  }
33035  {
33036#line 1370
33037  __cil_tmp110 = (u8 *)0;
33038#line 1370
33039  __cil_tmp111 = (unsigned long )__cil_tmp110;
33040#line 1370
33041  __cil_tmp112 = (unsigned long )pp;
33042#line 1370
33043  if (__cil_tmp112 != __cil_tmp111) {
33044    {
33045#line 1370
33046    __cil_tmp113 = *pp;
33047#line 1370
33048    __cil_tmp114 = (unsigned int )__cil_tmp113;
33049#line 1370
33050    if (__cil_tmp114 != 0U) {
33051#line 1371
33052      tmp___3 = pp;
33053#line 1371
33054      pp = pp + 1;
33055#line 1371
33056      __cil_tmp115 = *tmp___3;
33057#line 1371
33058      l = (int )__cil_tmp115;
33059      {
33060#line 1376
33061      __cil_tmp116 = *pp;
33062#line 1376
33063      __cil_tmp117 = (int )__cil_tmp116;
33064#line 1376
33065      if (__cil_tmp117 == 0) {
33066#line 1376
33067        goto case_0;
33068      } else {
33069        {
33070#line 1377
33071        __cil_tmp118 = *pp;
33072#line 1377
33073        __cil_tmp119 = (int )__cil_tmp118;
33074#line 1377
33075        if (__cil_tmp119 == 1) {
33076#line 1377
33077          goto case_1;
33078        } else {
33079#line 1379
33080          goto switch_default___0;
33081#line 1375
33082          if (0) {
33083            case_0: ;
33084            case_1: ;
33085#line 1378
33086            goto ldv_35567;
33087            switch_default___0: 
33088            {
33089#line 1380
33090            __cil_tmp120 = cs->dev;
33091#line 1380
33092            __cil_tmp121 = (struct device  const  *)__cil_tmp120;
33093#line 1380
33094            __cil_tmp122 = (char *)"CONNECT_REQ";
33095#line 1380
33096            __cil_tmp123 = (char *)"Calling party number";
33097#line 1380
33098            __cil_tmp124 = *pp;
33099#line 1380
33100            __cil_tmp125 = (int )__cil_tmp124;
33101#line 1380
33102            dev_notice(__cil_tmp121, "%s: %s type/plan 0x%02x unsupported\n", __cil_tmp122,
33103                       __cil_tmp123, __cil_tmp125);
33104            }
33105          } else {
33106
33107          }
33108        }
33109        }
33110      }
33111      }
33112      ldv_35567: 
33113#line 1384
33114      pp = pp + 1;
33115#line 1385
33116      l = l - 1;
33117#line 1388
33118      if (l == 0) {
33119        {
33120#line 1389
33121        __cil_tmp126 = cs->dev;
33122#line 1389
33123        __cil_tmp127 = (struct device  const  *)__cil_tmp126;
33124#line 1389
33125        __cil_tmp128 = (char *)"CONNECT_REQ";
33126#line 1389
33127        __cil_tmp129 = (char *)"Calling party number";
33128#line 1389
33129        dev_notice(__cil_tmp127, "%s: %s IE truncated\n", __cil_tmp128, __cil_tmp129);
33130#line 1391
33131        info = (u16 )8199U;
33132        }
33133#line 1392
33134        goto error;
33135      } else {
33136
33137      }
33138      {
33139#line 1395
33140      __cil_tmp130 = *pp;
33141#line 1395
33142      __cil_tmp131 = (int )__cil_tmp130;
33143#line 1395
33144      __cil_tmp132 = __cil_tmp131 & 252;
33145#line 1395
33146      if (__cil_tmp132 == 128) {
33147#line 1395
33148        goto case_128___0;
33149      } else {
33150        {
33151#line 1398
33152        __cil_tmp133 = *pp;
33153#line 1398
33154        __cil_tmp134 = (int )__cil_tmp133;
33155#line 1398
33156        __cil_tmp135 = __cil_tmp134 & 252;
33157#line 1398
33158        if (__cil_tmp135 == 160) {
33159#line 1398
33160          goto case_160;
33161        } else {
33162#line 1401
33163          goto switch_default___1;
33164#line 1394
33165          if (0) {
33166            case_128___0: 
33167#line 1396
33168            s = (char *)"^SCLIP=1\r";
33169#line 1397
33170            goto ldv_35570;
33171            case_160: 
33172#line 1399
33173            s = (char *)"^SCLIP=0\r";
33174#line 1400
33175            goto ldv_35570;
33176            switch_default___1: 
33177            {
33178#line 1402
33179            __cil_tmp136 = cs->dev;
33180#line 1402
33181            __cil_tmp137 = (struct device  const  *)__cil_tmp136;
33182#line 1402
33183            __cil_tmp138 = (char *)"CONNECT_REQ";
33184#line 1402
33185            __cil_tmp139 = (char *)"Presentation/Screening indicator";
33186#line 1402
33187            __cil_tmp140 = *pp;
33188#line 1402
33189            __cil_tmp141 = (int )__cil_tmp140;
33190#line 1402
33191            dev_notice(__cil_tmp137, "%s: invalid %s 0x%02x\n", __cil_tmp138, __cil_tmp139,
33192                       __cil_tmp141);
33193#line 1406
33194            s = (char *)"^SCLIP=1\r";
33195            }
33196          } else {
33197
33198          }
33199        }
33200        }
33201      }
33202      }
33203      ldv_35570: 
33204      {
33205#line 1408
33206      __cil_tmp142 = commands + 6UL;
33207#line 1408
33208      __cil_tmp143 = (char const   *)s;
33209#line 1408
33210      *__cil_tmp142 = kstrdup(__cil_tmp143, 208U);
33211      }
33212      {
33213#line 1409
33214      __cil_tmp144 = (char *)0;
33215#line 1409
33216      __cil_tmp145 = (unsigned long )__cil_tmp144;
33217#line 1409
33218      __cil_tmp146 = commands + 6UL;
33219#line 1409
33220      __cil_tmp147 = *__cil_tmp146;
33221#line 1409
33222      __cil_tmp148 = (unsigned long )__cil_tmp147;
33223#line 1409
33224      if (__cil_tmp148 == __cil_tmp145) {
33225#line 1410
33226        goto oom;
33227      } else {
33228
33229      }
33230      }
33231#line 1411
33232      pp = pp + 1;
33233#line 1412
33234      l = l - 1;
33235#line 1414
33236      if (l != 0) {
33237        {
33238#line 1416
33239        __cil_tmp149 = l + 8;
33240#line 1416
33241        __cil_tmp150 = (size_t )__cil_tmp149;
33242#line 1416
33243        tmp___4 = kmalloc(__cil_tmp150, 208U);
33244#line 1416
33245        __cil_tmp151 = commands + 2UL;
33246#line 1416
33247        *__cil_tmp151 = (char *)tmp___4;
33248        }
33249        {
33250#line 1417
33251        __cil_tmp152 = (char *)0;
33252#line 1417
33253        __cil_tmp153 = (unsigned long )__cil_tmp152;
33254#line 1417
33255        __cil_tmp154 = commands + 2UL;
33256#line 1417
33257        __cil_tmp155 = *__cil_tmp154;
33258#line 1417
33259        __cil_tmp156 = (unsigned long )__cil_tmp155;
33260#line 1417
33261        if (__cil_tmp156 == __cil_tmp153) {
33262#line 1418
33263          goto oom;
33264        } else {
33265
33266        }
33267        }
33268        {
33269#line 1419
33270        __cil_tmp157 = commands + 2UL;
33271#line 1419
33272        __cil_tmp158 = *__cil_tmp157;
33273#line 1419
33274        __cil_tmp159 = l + 8;
33275#line 1419
33276        __cil_tmp160 = (size_t )__cil_tmp159;
33277#line 1419
33278        snprintf(__cil_tmp158, __cil_tmp160, "^SMSN=%*s\r", l, pp);
33279        }
33280      } else {
33281
33282      }
33283    } else {
33284
33285    }
33286    }
33287  } else {
33288
33289  }
33290  }
33291  {
33292#line 1424
33293  __cil_tmp161 = cmsg->CIPValue;
33294#line 1424
33295  __cil_tmp162 = (unsigned int )__cil_tmp161;
33296#line 1424
33297  if (__cil_tmp162 > 28U) {
33298    {
33299#line 1426
33300    __cil_tmp163 = cs->dev;
33301#line 1426
33302    __cil_tmp164 = (struct device  const  *)__cil_tmp163;
33303#line 1426
33304    __cil_tmp165 = (char *)"CONNECT_REQ";
33305#line 1426
33306    __cil_tmp166 = cmsg->CIPValue;
33307#line 1426
33308    __cil_tmp167 = (int )__cil_tmp166;
33309#line 1426
33310    dev_notice(__cil_tmp164, "%s: unknown CIP value %d\n", __cil_tmp165, __cil_tmp167);
33311#line 1428
33312    info = (u16 )12297U;
33313    }
33314#line 1429
33315    goto error;
33316  } else {
33317    {
33318#line 1424
33319    __cil_tmp168 = cmsg->CIPValue;
33320#line 1424
33321    __cil_tmp169 = (unsigned int )__cil_tmp168;
33322#line 1424
33323    if (__cil_tmp169 != 0U) {
33324      {
33325#line 1424
33326      __cil_tmp170 = (u8 *)0;
33327#line 1424
33328      __cil_tmp171 = (unsigned long )__cil_tmp170;
33329#line 1424
33330      __cil_tmp172 = (unsigned long )cip2bchlc[(int )cmsg->CIPValue].bc;
33331#line 1424
33332      if (__cil_tmp172 == __cil_tmp171) {
33333        {
33334#line 1426
33335        __cil_tmp173 = cs->dev;
33336#line 1426
33337        __cil_tmp174 = (struct device  const  *)__cil_tmp173;
33338#line 1426
33339        __cil_tmp175 = (char *)"CONNECT_REQ";
33340#line 1426
33341        __cil_tmp176 = cmsg->CIPValue;
33342#line 1426
33343        __cil_tmp177 = (int )__cil_tmp176;
33344#line 1426
33345        dev_notice(__cil_tmp174, "%s: unknown CIP value %d\n", __cil_tmp175, __cil_tmp177);
33346#line 1428
33347        info = (u16 )12297U;
33348        }
33349#line 1429
33350        goto error;
33351      } else {
33352
33353      }
33354      }
33355    } else {
33356
33357    }
33358    }
33359  }
33360  }
33361  {
33362#line 1439
33363  __cil_tmp178 = (_cstruct )0;
33364#line 1439
33365  __cil_tmp179 = (unsigned long )__cil_tmp178;
33366#line 1439
33367  __cil_tmp180 = cmsg->BC;
33368#line 1439
33369  __cil_tmp181 = (unsigned long )__cil_tmp180;
33370#line 1439
33371  if (__cil_tmp181 != __cil_tmp179) {
33372    {
33373#line 1439
33374    __cil_tmp182 = cmsg->BC;
33375#line 1439
33376    __cil_tmp183 = *__cil_tmp182;
33377#line 1439
33378    __cil_tmp184 = (unsigned int )__cil_tmp183;
33379#line 1439
33380    if (__cil_tmp184 != 0U) {
33381#line 1440
33382      __cil_tmp185 = cmsg->BC;
33383#line 1440
33384      __cil_tmp186 = *__cil_tmp185;
33385#line 1440
33386      __cil_tmp187 = (int )__cil_tmp186;
33387#line 1440
33388      lbc = __cil_tmp187 * 2;
33389    } else {
33390#line 1439
33391      goto _L;
33392    }
33393    }
33394  } else {
33395    _L: 
33396    {
33397#line 1441
33398    __cil_tmp188 = (u8 *)0;
33399#line 1441
33400    __cil_tmp189 = (unsigned long )__cil_tmp188;
33401#line 1441
33402    __cil_tmp190 = (unsigned long )cip2bchlc[(int )cmsg->CIPValue].bc;
33403#line 1441
33404    if (__cil_tmp190 != __cil_tmp189) {
33405      {
33406#line 1442
33407      __cil_tmp191 = (char const   *)cip2bchlc[(int )cmsg->CIPValue].bc;
33408#line 1442
33409      tmp___5 = strlen(__cil_tmp191);
33410#line 1442
33411      lbc = (int )tmp___5;
33412      }
33413    } else {
33414#line 1444
33415      lbc = 0;
33416    }
33417    }
33418  }
33419  }
33420  {
33421#line 1445
33422  __cil_tmp192 = (_cstruct )0;
33423#line 1445
33424  __cil_tmp193 = (unsigned long )__cil_tmp192;
33425#line 1445
33426  __cil_tmp194 = cmsg->HLC;
33427#line 1445
33428  __cil_tmp195 = (unsigned long )__cil_tmp194;
33429#line 1445
33430  if (__cil_tmp195 != __cil_tmp193) {
33431    {
33432#line 1445
33433    __cil_tmp196 = cmsg->HLC;
33434#line 1445
33435    __cil_tmp197 = *__cil_tmp196;
33436#line 1445
33437    __cil_tmp198 = (unsigned int )__cil_tmp197;
33438#line 1445
33439    if (__cil_tmp198 != 0U) {
33440#line 1446
33441      __cil_tmp199 = cmsg->HLC;
33442#line 1446
33443      __cil_tmp200 = *__cil_tmp199;
33444#line 1446
33445      __cil_tmp201 = (int )__cil_tmp200;
33446#line 1446
33447      lhlc = __cil_tmp201 * 2;
33448    } else {
33449#line 1445
33450      goto _L___0;
33451    }
33452    }
33453  } else {
33454    _L___0: 
33455    {
33456#line 1447
33457    __cil_tmp202 = (u8 *)0;
33458#line 1447
33459    __cil_tmp203 = (unsigned long )__cil_tmp202;
33460#line 1447
33461    __cil_tmp204 = (unsigned long )cip2bchlc[(int )cmsg->CIPValue].hlc;
33462#line 1447
33463    if (__cil_tmp204 != __cil_tmp203) {
33464      {
33465#line 1448
33466      __cil_tmp205 = (char const   *)cip2bchlc[(int )cmsg->CIPValue].hlc;
33467#line 1448
33468      tmp___6 = strlen(__cil_tmp205);
33469#line 1448
33470      lhlc = (int )tmp___6;
33471      }
33472    } else {
33473#line 1450
33474      lhlc = 0;
33475    }
33476    }
33477  }
33478  }
33479#line 1452
33480  if (lbc != 0) {
33481#line 1454
33482    l = lbc + 7;
33483#line 1455
33484    if (lhlc != 0) {
33485#line 1456
33486      __cil_tmp206 = lhlc + 7;
33487#line 1456
33488      l = __cil_tmp206 + l;
33489    } else {
33490
33491    }
33492    {
33493#line 1457
33494    __cil_tmp207 = (size_t )l;
33495#line 1457
33496    tmp___7 = kmalloc(__cil_tmp207, 208U);
33497#line 1457
33498    __cil_tmp208 = commands + 3UL;
33499#line 1457
33500    *__cil_tmp208 = (char *)tmp___7;
33501    }
33502    {
33503#line 1458
33504    __cil_tmp209 = (char *)0;
33505#line 1458
33506    __cil_tmp210 = (unsigned long )__cil_tmp209;
33507#line 1458
33508    __cil_tmp211 = commands + 3UL;
33509#line 1458
33510    __cil_tmp212 = *__cil_tmp211;
33511#line 1458
33512    __cil_tmp213 = (unsigned long )__cil_tmp212;
33513#line 1458
33514    if (__cil_tmp213 == __cil_tmp210) {
33515#line 1459
33516      goto oom;
33517    } else {
33518
33519    }
33520    }
33521    {
33522#line 1460
33523    __cil_tmp214 = commands + 3UL;
33524#line 1460
33525    __cil_tmp215 = *__cil_tmp214;
33526#line 1460
33527    strcpy(__cil_tmp215, "^SBC=");
33528    }
33529    {
33530#line 1461
33531    __cil_tmp216 = (_cstruct )0;
33532#line 1461
33533    __cil_tmp217 = (unsigned long )__cil_tmp216;
33534#line 1461
33535    __cil_tmp218 = cmsg->BC;
33536#line 1461
33537    __cil_tmp219 = (unsigned long )__cil_tmp218;
33538#line 1461
33539    if (__cil_tmp219 != __cil_tmp217) {
33540      {
33541#line 1461
33542      __cil_tmp220 = cmsg->BC;
33543#line 1461
33544      __cil_tmp221 = *__cil_tmp220;
33545#line 1461
33546      __cil_tmp222 = (unsigned int )__cil_tmp221;
33547#line 1461
33548      if (__cil_tmp222 != 0U) {
33549        {
33550#line 1462
33551        __cil_tmp223 = cmsg->BC;
33552#line 1462
33553        __cil_tmp224 = commands + 3UL;
33554#line 1462
33555        __cil_tmp225 = *__cil_tmp224;
33556#line 1462
33557        __cil_tmp226 = __cil_tmp225 + 5UL;
33558#line 1462
33559        decode_ie(__cil_tmp223, __cil_tmp226);
33560        }
33561      } else {
33562        {
33563#line 1464
33564        __cil_tmp227 = commands + 3UL;
33565#line 1464
33566        __cil_tmp228 = *__cil_tmp227;
33567#line 1464
33568        __cil_tmp229 = __cil_tmp228 + 5UL;
33569#line 1464
33570        __cil_tmp230 = (char const   *)cip2bchlc[(int )cmsg->CIPValue].bc;
33571#line 1464
33572        strcpy(__cil_tmp229, __cil_tmp230);
33573        }
33574      }
33575      }
33576    } else {
33577      {
33578#line 1464
33579      __cil_tmp231 = commands + 3UL;
33580#line 1464
33581      __cil_tmp232 = *__cil_tmp231;
33582#line 1464
33583      __cil_tmp233 = __cil_tmp232 + 5UL;
33584#line 1464
33585      __cil_tmp234 = (char const   *)cip2bchlc[(int )cmsg->CIPValue].bc;
33586#line 1464
33587      strcpy(__cil_tmp233, __cil_tmp234);
33588      }
33589    }
33590    }
33591#line 1466
33592    if (lhlc != 0) {
33593      {
33594#line 1467
33595      __cil_tmp235 = (unsigned long )lbc;
33596#line 1467
33597      __cil_tmp236 = __cil_tmp235 + 5UL;
33598#line 1467
33599      __cil_tmp237 = commands + 3UL;
33600#line 1467
33601      __cil_tmp238 = *__cil_tmp237;
33602#line 1467
33603      __cil_tmp239 = __cil_tmp238 + __cil_tmp236;
33604#line 1467
33605      strcpy(__cil_tmp239, ";^SHLC=");
33606      }
33607      {
33608#line 1468
33609      __cil_tmp240 = (_cstruct )0;
33610#line 1468
33611      __cil_tmp241 = (unsigned long )__cil_tmp240;
33612#line 1468
33613      __cil_tmp242 = cmsg->HLC;
33614#line 1468
33615      __cil_tmp243 = (unsigned long )__cil_tmp242;
33616#line 1468
33617      if (__cil_tmp243 != __cil_tmp241) {
33618        {
33619#line 1468
33620        __cil_tmp244 = cmsg->HLC;
33621#line 1468
33622        __cil_tmp245 = *__cil_tmp244;
33623#line 1468
33624        __cil_tmp246 = (unsigned int )__cil_tmp245;
33625#line 1468
33626        if (__cil_tmp246 != 0U) {
33627          {
33628#line 1470
33629          __cil_tmp247 = cmsg->HLC;
33630#line 1470
33631          __cil_tmp248 = (unsigned long )lbc;
33632#line 1470
33633          __cil_tmp249 = __cil_tmp248 + 12UL;
33634#line 1470
33635          __cil_tmp250 = commands + 3UL;
33636#line 1470
33637          __cil_tmp251 = *__cil_tmp250;
33638#line 1470
33639          __cil_tmp252 = __cil_tmp251 + __cil_tmp249;
33640#line 1470
33641          decode_ie(__cil_tmp247, __cil_tmp252);
33642          }
33643        } else {
33644          {
33645#line 1473
33646          __cil_tmp253 = (unsigned long )lbc;
33647#line 1473
33648          __cil_tmp254 = __cil_tmp253 + 12UL;
33649#line 1473
33650          __cil_tmp255 = commands + 3UL;
33651#line 1473
33652          __cil_tmp256 = *__cil_tmp255;
33653#line 1473
33654          __cil_tmp257 = __cil_tmp256 + __cil_tmp254;
33655#line 1473
33656          __cil_tmp258 = (char const   *)cip2bchlc[(int )cmsg->CIPValue].hlc;
33657#line 1473
33658          strcpy(__cil_tmp257, __cil_tmp258);
33659          }
33660        }
33661        }
33662      } else {
33663        {
33664#line 1473
33665        __cil_tmp259 = (unsigned long )lbc;
33666#line 1473
33667        __cil_tmp260 = __cil_tmp259 + 12UL;
33668#line 1473
33669        __cil_tmp261 = commands + 3UL;
33670#line 1473
33671        __cil_tmp262 = *__cil_tmp261;
33672#line 1473
33673        __cil_tmp263 = __cil_tmp262 + __cil_tmp260;
33674#line 1473
33675        __cil_tmp264 = (char const   *)cip2bchlc[(int )cmsg->CIPValue].hlc;
33676#line 1473
33677        strcpy(__cil_tmp263, __cil_tmp264);
33678        }
33679      }
33680      }
33681    } else {
33682
33683    }
33684    {
33685#line 1476
33686    __cil_tmp265 = (unsigned long )l;
33687#line 1476
33688    __cil_tmp266 = __cil_tmp265 + 1152921504606846974UL;
33689#line 1476
33690    __cil_tmp267 = commands + 3UL;
33691#line 1476
33692    __cil_tmp268 = *__cil_tmp267;
33693#line 1476
33694    __cil_tmp269 = __cil_tmp268 + __cil_tmp266;
33695#line 1476
33696    strcpy(__cil_tmp269, "\r");
33697    }
33698  } else
33699#line 1479
33700  if (lhlc != 0) {
33701    {
33702#line 1480
33703    __cil_tmp270 = cs->dev;
33704#line 1480
33705    __cil_tmp271 = (struct device  const  *)__cil_tmp270;
33706#line 1480
33707    __cil_tmp272 = (char *)"CONNECT_REQ";
33708#line 1480
33709    dev_notice(__cil_tmp271, "%s: cannot set HLC without BC\n", __cil_tmp272);
33710#line 1482
33711    info = (u16 )8199U;
33712    }
33713#line 1483
33714    goto error;
33715  } else {
33716
33717  }
33718  {
33719#line 1488
33720  __cil_tmp273 = cmsg->BProtocol;
33721#line 1488
33722  __cil_tmp274 = (unsigned int )__cil_tmp273;
33723#line 1488
33724  if (__cil_tmp274 == 1U) {
33725    {
33726#line 1489
33727    bcs->proto2 = 1U;
33728#line 1490
33729    __cil_tmp275 = cs->dev;
33730#line 1490
33731    __cil_tmp276 = (struct device  const  *)__cil_tmp275;
33732#line 1490
33733    dev_warn(__cil_tmp276, "B2 Protocol X.75 SLP unsupported, using Transparent\n");
33734    }
33735  } else {
33736    {
33737#line 1494
33738    __cil_tmp277 = cmsg->B1protocol;
33739#line 1494
33740    __cil_tmp278 = (int )__cil_tmp277;
33741#line 1494
33742    if (__cil_tmp278 == 0) {
33743#line 1494
33744      goto case_0___0;
33745    } else {
33746      {
33747#line 1497
33748      __cil_tmp279 = cmsg->B1protocol;
33749#line 1497
33750      __cil_tmp280 = (int )__cil_tmp279;
33751#line 1497
33752      if (__cil_tmp280 == 1) {
33753#line 1497
33754        goto case_1___0;
33755      } else {
33756#line 1500
33757        goto switch_default___2;
33758#line 1493
33759        if (0) {
33760          case_0___0: 
33761#line 1495
33762          bcs->proto2 = 1U;
33763#line 1496
33764          goto ldv_35576;
33765          case_1___0: 
33766#line 1498
33767          bcs->proto2 = 2U;
33768#line 1499
33769          goto ldv_35576;
33770          switch_default___2: 
33771          {
33772#line 1501
33773          __cil_tmp281 = cs->dev;
33774#line 1501
33775          __cil_tmp282 = (struct device  const  *)__cil_tmp281;
33776#line 1501
33777          __cil_tmp283 = cmsg->B1protocol;
33778#line 1501
33779          __cil_tmp284 = (int )__cil_tmp283;
33780#line 1501
33781          dev_warn(__cil_tmp282, "B1 Protocol %u unsupported, using Transparent\n",
33782                   __cil_tmp284);
33783#line 1504
33784          bcs->proto2 = 2U;
33785          }
33786        } else {
33787
33788        }
33789      }
33790      }
33791    }
33792    }
33793    ldv_35576: ;
33794    {
33795#line 1506
33796    __cil_tmp285 = cmsg->B2protocol;
33797#line 1506
33798    __cil_tmp286 = (unsigned int )__cil_tmp285;
33799#line 1506
33800    if (__cil_tmp286 != 1U) {
33801      {
33802#line 1507
33803      __cil_tmp287 = cs->dev;
33804#line 1507
33805      __cil_tmp288 = (struct device  const  *)__cil_tmp287;
33806#line 1507
33807      __cil_tmp289 = cmsg->B2protocol;
33808#line 1507
33809      __cil_tmp290 = (int )__cil_tmp289;
33810#line 1507
33811      dev_warn(__cil_tmp288, "B2 Protocol %u unsupported, using Transparent\n", __cil_tmp290);
33812      }
33813    } else {
33814
33815    }
33816    }
33817    {
33818#line 1510
33819    __cil_tmp291 = cmsg->B3protocol;
33820#line 1510
33821    __cil_tmp292 = (unsigned int )__cil_tmp291;
33822#line 1510
33823    if (__cil_tmp292 != 0U) {
33824      {
33825#line 1511
33826      __cil_tmp293 = cs->dev;
33827#line 1511
33828      __cil_tmp294 = (struct device  const  *)__cil_tmp293;
33829#line 1511
33830      __cil_tmp295 = cmsg->B3protocol;
33831#line 1511
33832      __cil_tmp296 = (int )__cil_tmp295;
33833#line 1511
33834      dev_warn(__cil_tmp294, "B3 Protocol %u unsupported, using Transparent\n", __cil_tmp296);
33835      }
33836    } else {
33837
33838    }
33839    }
33840    {
33841#line 1514
33842    __cil_tmp297 = cmsg->B1configuration;
33843#line 1514
33844    __cil_tmp298 = (char *)"CONNECT_REQ";
33845#line 1514
33846    __cil_tmp299 = (char *)"B1 Configuration";
33847#line 1514
33848    ignore_cstruct_param(cs, __cil_tmp297, __cil_tmp298, __cil_tmp299);
33849#line 1516
33850    __cil_tmp300 = cmsg->B2configuration;
33851#line 1516
33852    __cil_tmp301 = (char *)"CONNECT_REQ";
33853#line 1516
33854    __cil_tmp302 = (char *)"B2 Configuration";
33855#line 1516
33856    ignore_cstruct_param(cs, __cil_tmp300, __cil_tmp301, __cil_tmp302);
33857#line 1518
33858    __cil_tmp303 = cmsg->B3configuration;
33859#line 1518
33860    __cil_tmp304 = (char *)"CONNECT_REQ";
33861#line 1518
33862    __cil_tmp305 = (char *)"B3 Configuration";
33863#line 1518
33864    ignore_cstruct_param(cs, __cil_tmp303, __cil_tmp304, __cil_tmp305);
33865    }
33866  }
33867  }
33868  {
33869#line 1521
33870  tmp___8 = kmalloc(9UL, 208U);
33871#line 1521
33872  __cil_tmp306 = commands + 4UL;
33873#line 1521
33874  *__cil_tmp306 = (char *)tmp___8;
33875  }
33876  {
33877#line 1522
33878  __cil_tmp307 = (char *)0;
33879#line 1522
33880  __cil_tmp308 = (unsigned long )__cil_tmp307;
33881#line 1522
33882  __cil_tmp309 = commands + 4UL;
33883#line 1522
33884  __cil_tmp310 = *__cil_tmp309;
33885#line 1522
33886  __cil_tmp311 = (unsigned long )__cil_tmp310;
33887#line 1522
33888  if (__cil_tmp311 == __cil_tmp308) {
33889#line 1523
33890    goto oom;
33891  } else {
33892
33893  }
33894  }
33895  {
33896#line 1524
33897  __cil_tmp312 = commands + 4UL;
33898#line 1524
33899  __cil_tmp313 = *__cil_tmp312;
33900#line 1524
33901  __cil_tmp314 = bcs->proto2;
33902#line 1524
33903  snprintf(__cil_tmp313, 9UL, "^SBPR=%u\r", __cil_tmp314);
33904#line 1527
33905  __cil_tmp315 = cmsg->CalledPartySubaddress;
33906#line 1527
33907  __cil_tmp316 = (char *)"CONNECT_REQ";
33908#line 1527
33909  __cil_tmp317 = (char *)"Called pty subaddr";
33910#line 1527
33911  ignore_cstruct_param(cs, __cil_tmp315, __cil_tmp316, __cil_tmp317);
33912#line 1529
33913  __cil_tmp318 = cmsg->CallingPartySubaddress;
33914#line 1529
33915  __cil_tmp319 = (char *)"CONNECT_REQ";
33916#line 1529
33917  __cil_tmp320 = (char *)"Calling pty subaddr";
33918#line 1529
33919  ignore_cstruct_param(cs, __cil_tmp318, __cil_tmp319, __cil_tmp320);
33920#line 1531
33921  __cil_tmp321 = cmsg->LLC;
33922#line 1531
33923  __cil_tmp322 = (char *)"CONNECT_REQ";
33924#line 1531
33925  __cil_tmp323 = (char *)"LLC";
33926#line 1531
33927  ignore_cstruct_param(cs, __cil_tmp321, __cil_tmp322, __cil_tmp323);
33928  }
33929  {
33930#line 1533
33931  __cil_tmp324 = cmsg->AdditionalInfo;
33932#line 1533
33933  __cil_tmp325 = (unsigned int )__cil_tmp324;
33934#line 1533
33935  if (__cil_tmp325 != 1U) {
33936    {
33937#line 1534
33938    __cil_tmp326 = cmsg->BChannelinformation;
33939#line 1534
33940    __cil_tmp327 = (char *)"CONNECT_REQ";
33941#line 1534
33942    __cil_tmp328 = (char *)"B Channel Information";
33943#line 1534
33944    ignore_cstruct_param(cs, __cil_tmp326, __cil_tmp327, __cil_tmp328);
33945#line 1536
33946    __cil_tmp329 = cmsg->Keypadfacility;
33947#line 1536
33948    __cil_tmp330 = (char *)"CONNECT_REQ";
33949#line 1536
33950    __cil_tmp331 = (char *)"Keypad Facility";
33951#line 1536
33952    ignore_cstruct_param(cs, __cil_tmp329, __cil_tmp330, __cil_tmp331);
33953#line 1538
33954    __cil_tmp332 = cmsg->Useruserdata;
33955#line 1538
33956    __cil_tmp333 = (char *)"CONNECT_REQ";
33957#line 1538
33958    __cil_tmp334 = (char *)"User-User Data";
33959#line 1538
33960    ignore_cstruct_param(cs, __cil_tmp332, __cil_tmp333, __cil_tmp334);
33961#line 1540
33962    __cil_tmp335 = cmsg->Facilitydataarray;
33963#line 1540
33964    __cil_tmp336 = (char *)"CONNECT_REQ";
33965#line 1540
33966    __cil_tmp337 = (char *)"Facility Data Array";
33967#line 1540
33968    ignore_cstruct_param(cs, __cil_tmp335, __cil_tmp336, __cil_tmp337);
33969    }
33970  } else {
33971
33972  }
33973  }
33974  {
33975#line 1545
33976  tmp___9 = kmalloc(9UL, 208U);
33977#line 1545
33978  *commands = (char *)tmp___9;
33979  }
33980  {
33981#line 1546
33982  __cil_tmp338 = (char *)0;
33983#line 1546
33984  __cil_tmp339 = (unsigned long )__cil_tmp338;
33985#line 1546
33986  __cil_tmp340 = *commands;
33987#line 1546
33988  __cil_tmp341 = (unsigned long )__cil_tmp340;
33989#line 1546
33990  if (__cil_tmp341 == __cil_tmp339) {
33991#line 1547
33992    goto oom;
33993  } else {
33994
33995  }
33996  }
33997  {
33998#line 1548
33999  __cil_tmp342 = *commands;
34000#line 1548
34001  __cil_tmp343 = bcs->channel;
34002#line 1548
34003  __cil_tmp344 = (unsigned int )__cil_tmp343;
34004#line 1548
34005  __cil_tmp345 = __cil_tmp344 + 1U;
34006#line 1548
34007  snprintf(__cil_tmp342, 9UL, "^SISO=%u\r", __cil_tmp345);
34008#line 1552
34009  __cil_tmp346 = & bcs->at_state;
34010#line 1552
34011  __cil_tmp347 = (void *)commands;
34012#line 1552
34013  __cil_tmp348 = bcs->at_state.seq_index;
34014#line 1552
34015  __cil_tmp349 = (int )__cil_tmp348;
34016#line 1552
34017  __cil_tmp350 = (void *)0;
34018#line 1552
34019  tmp___10 = gigaset_add_event(cs, __cil_tmp346, -115, __cil_tmp347, __cil_tmp349,
34020                               __cil_tmp350);
34021  }
34022  {
34023#line 1552
34024  __cil_tmp351 = (struct event_t *)0;
34025#line 1552
34026  __cil_tmp352 = (unsigned long )__cil_tmp351;
34027#line 1552
34028  __cil_tmp353 = (unsigned long )tmp___10;
34029#line 1552
34030  if (__cil_tmp353 == __cil_tmp352) {
34031#line 1554
34032    info = (u16 )4360U;
34033#line 1555
34034    goto error;
34035  } else {
34036
34037  }
34038  }
34039  {
34040#line 1557
34041  gigaset_schedule_event(cs);
34042#line 1558
34043  __cil_tmp354 = (u16 )0;
34044#line 1558
34045  send_conf(iif, ap, skb, __cil_tmp354);
34046  }
34047#line 1559
34048  return;
34049  oom: 
34050  {
34051#line 1562
34052  __cil_tmp355 = cs->dev;
34053#line 1562
34054  __cil_tmp356 = (struct device  const  *)__cil_tmp355;
34055#line 1562
34056  dev_err(__cil_tmp356, "%s: out of memory\n", "do_connect_req");
34057#line 1563
34058  info = (u16 )4360U;
34059  }
34060  error: ;
34061  {
34062#line 1565
34063  __cil_tmp357 = (char **)0;
34064#line 1565
34065  __cil_tmp358 = (unsigned long )__cil_tmp357;
34066#line 1565
34067  __cil_tmp359 = (unsigned long )commands;
34068#line 1565
34069  if (__cil_tmp359 != __cil_tmp358) {
34070#line 1566
34071    i = 0;
34072#line 1566
34073    goto ldv_35580;
34074    ldv_35579: 
34075    {
34076#line 1567
34077    __cil_tmp360 = (unsigned long )i;
34078#line 1567
34079    __cil_tmp361 = commands + __cil_tmp360;
34080#line 1567
34081    __cil_tmp362 = *__cil_tmp361;
34082#line 1567
34083    __cil_tmp363 = (void const   *)__cil_tmp362;
34084#line 1567
34085    kfree(__cil_tmp363);
34086#line 1566
34087    i = i + 1;
34088    }
34089    ldv_35580: ;
34090#line 1566
34091    if (i <= 6) {
34092#line 1567
34093      goto ldv_35579;
34094    } else {
34095#line 1569
34096      goto ldv_35581;
34097    }
34098    ldv_35581: ;
34099  } else {
34100
34101  }
34102  }
34103  {
34104#line 1568
34105  __cil_tmp364 = (void const   *)commands;
34106#line 1568
34107  kfree(__cil_tmp364);
34108#line 1569
34109  gigaset_free_channel(bcs);
34110#line 1570
34111  __cil_tmp365 = (int )info;
34112#line 1570
34113  __cil_tmp366 = (u16 )__cil_tmp365;
34114#line 1570
34115  send_conf(iif, ap, skb, __cil_tmp366);
34116  }
34117#line 1571
34118  return;
34119}
34120}
34121#line 1577 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
34122static void do_connect_resp(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
34123                            struct sk_buff *skb ) 
34124{ struct cardstate *cs ;
34125  _cmsg *cmsg ;
34126  struct bc_state *bcs ;
34127  struct gigaset_capi_appl *oap ;
34128  unsigned long flags ;
34129  int channel ;
34130  raw_spinlock_t *tmp ;
34131  raw_spinlock_t *tmp___0 ;
34132  struct event_t *tmp___1 ;
34133  raw_spinlock_t *tmp___2 ;
34134  raw_spinlock_t *tmp___3 ;
34135  raw_spinlock_t *tmp___4 ;
34136  struct event_t *tmp___5 ;
34137  void *__cil_tmp17 ;
34138  unsigned char *__cil_tmp18 ;
34139  enum debuglevel __cil_tmp19 ;
34140  __u32 __cil_tmp20 ;
34141  __u32 __cil_tmp21 ;
34142  int __cil_tmp22 ;
34143  struct device *__cil_tmp23 ;
34144  struct device  const  *__cil_tmp24 ;
34145  char *__cil_tmp25 ;
34146  char *__cil_tmp26 ;
34147  __u32 __cil_tmp27 ;
34148  int __cil_tmp28 ;
34149  struct device *__cil_tmp29 ;
34150  struct device  const  *__cil_tmp30 ;
34151  char *__cil_tmp31 ;
34152  char *__cil_tmp32 ;
34153  __u32 __cil_tmp33 ;
34154  unsigned long __cil_tmp34 ;
34155  unsigned long __cil_tmp35 ;
34156  struct bc_state *__cil_tmp36 ;
34157  __u16 __cil_tmp37 ;
34158  int __cil_tmp38 ;
34159  __u16 __cil_tmp39 ;
34160  int __cil_tmp40 ;
34161  spinlock_t *__cil_tmp41 ;
34162  void *__cil_tmp42 ;
34163  struct gigaset_capi_appl *__cil_tmp43 ;
34164  unsigned long __cil_tmp44 ;
34165  unsigned long __cil_tmp45 ;
34166  spinlock_t *__cil_tmp46 ;
34167  u16 __cil_tmp47 ;
34168  spinlock_t *__cil_tmp48 ;
34169  void *__cil_tmp49 ;
34170  unsigned long __cil_tmp50 ;
34171  void *__cil_tmp51 ;
34172  unsigned long __cil_tmp52 ;
34173  spinlock_t *__cil_tmp53 ;
34174  struct sk_buff *__cil_tmp54 ;
34175  unsigned int __cil_tmp55 ;
34176  _cmstruct __cil_tmp56 ;
34177  unsigned int __cil_tmp57 ;
34178  struct device *__cil_tmp58 ;
34179  struct device  const  *__cil_tmp59 ;
34180  __u16 __cil_tmp60 ;
34181  int __cil_tmp61 ;
34182  __u16 __cil_tmp62 ;
34183  int __cil_tmp63 ;
34184  struct device *__cil_tmp64 ;
34185  struct device  const  *__cil_tmp65 ;
34186  __u16 __cil_tmp66 ;
34187  int __cil_tmp67 ;
34188  __u16 __cil_tmp68 ;
34189  unsigned int __cil_tmp69 ;
34190  struct device *__cil_tmp70 ;
34191  struct device  const  *__cil_tmp71 ;
34192  __u16 __cil_tmp72 ;
34193  int __cil_tmp73 ;
34194  __u16 __cil_tmp74 ;
34195  unsigned int __cil_tmp75 ;
34196  struct device *__cil_tmp76 ;
34197  struct device  const  *__cil_tmp77 ;
34198  __u16 __cil_tmp78 ;
34199  int __cil_tmp79 ;
34200  _cstruct __cil_tmp80 ;
34201  char *__cil_tmp81 ;
34202  char *__cil_tmp82 ;
34203  _cstruct __cil_tmp83 ;
34204  char *__cil_tmp84 ;
34205  char *__cil_tmp85 ;
34206  _cstruct __cil_tmp86 ;
34207  char *__cil_tmp87 ;
34208  char *__cil_tmp88 ;
34209  _cstruct __cil_tmp89 ;
34210  char *__cil_tmp90 ;
34211  char *__cil_tmp91 ;
34212  _cstruct __cil_tmp92 ;
34213  char *__cil_tmp93 ;
34214  char *__cil_tmp94 ;
34215  _cstruct __cil_tmp95 ;
34216  char *__cil_tmp96 ;
34217  char *__cil_tmp97 ;
34218  _cmstruct __cil_tmp98 ;
34219  unsigned int __cil_tmp99 ;
34220  _cstruct __cil_tmp100 ;
34221  char *__cil_tmp101 ;
34222  char *__cil_tmp102 ;
34223  _cstruct __cil_tmp103 ;
34224  char *__cil_tmp104 ;
34225  char *__cil_tmp105 ;
34226  _cstruct __cil_tmp106 ;
34227  char *__cil_tmp107 ;
34228  char *__cil_tmp108 ;
34229  _cstruct __cil_tmp109 ;
34230  char *__cil_tmp110 ;
34231  char *__cil_tmp111 ;
34232  unsigned long __cil_tmp112 ;
34233  unsigned long __cil_tmp113 ;
34234  struct bc_state *__cil_tmp114 ;
34235  struct bc_state *__cil_tmp115 ;
34236  struct at_state_t *__cil_tmp116 ;
34237  void *__cil_tmp117 ;
34238  void *__cil_tmp118 ;
34239  struct event_t *__cil_tmp119 ;
34240  unsigned long __cil_tmp120 ;
34241  unsigned long __cil_tmp121 ;
34242  u16 __cil_tmp122 ;
34243  spinlock_t *__cil_tmp123 ;
34244  void *__cil_tmp124 ;
34245  unsigned long __cil_tmp125 ;
34246  void *__cil_tmp126 ;
34247  unsigned long __cil_tmp127 ;
34248  struct gigaset_capi_appl *__cil_tmp128 ;
34249  void *__cil_tmp129 ;
34250  unsigned long __cil_tmp130 ;
34251  void *__cil_tmp131 ;
34252  unsigned long __cil_tmp132 ;
34253  unsigned int __cil_tmp133 ;
34254  spinlock_t *__cil_tmp134 ;
34255  void *__cil_tmp135 ;
34256  unsigned long __cil_tmp136 ;
34257  struct gigaset_capi_appl *__cil_tmp137 ;
34258  unsigned long __cil_tmp138 ;
34259  struct gigaset_capi_appl *__cil_tmp139 ;
34260  spinlock_t *__cil_tmp140 ;
34261  struct gigaset_capi_appl *__cil_tmp141 ;
34262  unsigned long __cil_tmp142 ;
34263  unsigned long __cil_tmp143 ;
34264  spinlock_t *__cil_tmp144 ;
34265  struct device *__cil_tmp145 ;
34266  struct device  const  *__cil_tmp146 ;
34267  u16 __cil_tmp147 ;
34268  int __cil_tmp148 ;
34269  spinlock_t *__cil_tmp149 ;
34270  void *__cil_tmp150 ;
34271  struct gigaset_capi_appl *__cil_tmp151 ;
34272  unsigned long __cil_tmp152 ;
34273  unsigned long __cil_tmp153 ;
34274  spinlock_t *__cil_tmp154 ;
34275  u16 __cil_tmp155 ;
34276  spinlock_t *__cil_tmp156 ;
34277  void *__cil_tmp157 ;
34278  unsigned long __cil_tmp158 ;
34279  void *__cil_tmp159 ;
34280  unsigned long __cil_tmp160 ;
34281  spinlock_t *__cil_tmp161 ;
34282  struct device *__cil_tmp162 ;
34283  struct device  const  *__cil_tmp163 ;
34284  char *__cil_tmp164 ;
34285  __u16 __cil_tmp165 ;
34286  int __cil_tmp166 ;
34287  unsigned long __cil_tmp167 ;
34288  unsigned long __cil_tmp168 ;
34289  struct bc_state *__cil_tmp169 ;
34290  struct bc_state *__cil_tmp170 ;
34291  struct at_state_t *__cil_tmp171 ;
34292  void *__cil_tmp172 ;
34293  void *__cil_tmp173 ;
34294  struct event_t *__cil_tmp174 ;
34295  unsigned long __cil_tmp175 ;
34296  unsigned long __cil_tmp176 ;
34297
34298  {
34299  {
34300#line 1581
34301  __cil_tmp17 = iif->ctr.driverdata;
34302#line 1581
34303  cs = (struct cardstate *)__cil_tmp17;
34304#line 1582
34305  cmsg = & iif->acmsg;
34306#line 1589
34307  __cil_tmp18 = skb->data;
34308#line 1589
34309  capi_message2cmsg(cmsg, __cil_tmp18);
34310#line 1590
34311  __cil_tmp19 = (enum debuglevel )32;
34312#line 1590
34313  dump_cmsg(__cil_tmp19, "do_connect_resp", cmsg);
34314#line 1591
34315  dev_kfree_skb_any(skb);
34316#line 1594
34317  __cil_tmp20 = cmsg->adr.adrPLCI;
34318#line 1594
34319  __cil_tmp21 = __cil_tmp20 >> 8;
34320#line 1594
34321  __cil_tmp22 = (int )__cil_tmp21;
34322#line 1594
34323  channel = __cil_tmp22 & 255;
34324  }
34325#line 1595
34326  if (channel == 0) {
34327    {
34328#line 1596
34329    __cil_tmp23 = cs->dev;
34330#line 1596
34331    __cil_tmp24 = (struct device  const  *)__cil_tmp23;
34332#line 1596
34333    __cil_tmp25 = (char *)"CONNECT_RESP";
34334#line 1596
34335    __cil_tmp26 = (char *)"PLCI";
34336#line 1596
34337    __cil_tmp27 = cmsg->adr.adrPLCI;
34338#line 1596
34339    dev_notice(__cil_tmp24, "%s: invalid %s 0x%02x\n", __cil_tmp25, __cil_tmp26, __cil_tmp27);
34340    }
34341#line 1598
34342    return;
34343  } else {
34344    {
34345#line 1595
34346    __cil_tmp28 = cs->channels;
34347#line 1595
34348    if (__cil_tmp28 < channel) {
34349      {
34350#line 1596
34351      __cil_tmp29 = cs->dev;
34352#line 1596
34353      __cil_tmp30 = (struct device  const  *)__cil_tmp29;
34354#line 1596
34355      __cil_tmp31 = (char *)"CONNECT_RESP";
34356#line 1596
34357      __cil_tmp32 = (char *)"PLCI";
34358#line 1596
34359      __cil_tmp33 = cmsg->adr.adrPLCI;
34360#line 1596
34361      dev_notice(__cil_tmp30, "%s: invalid %s 0x%02x\n", __cil_tmp31, __cil_tmp32,
34362                 __cil_tmp33);
34363      }
34364#line 1598
34365      return;
34366    } else {
34367
34368    }
34369    }
34370  }
34371#line 1600
34372  __cil_tmp34 = (unsigned long )channel;
34373#line 1600
34374  __cil_tmp35 = __cil_tmp34 + 1152921504606846975UL;
34375#line 1600
34376  __cil_tmp36 = cs->bcs;
34377#line 1600
34378  bcs = __cil_tmp36 + __cil_tmp35;
34379  {
34380#line 1603
34381  __cil_tmp37 = cmsg->Reject;
34382#line 1603
34383  __cil_tmp38 = (int )__cil_tmp37;
34384#line 1603
34385  if (__cil_tmp38 == 0) {
34386#line 1603
34387    goto case_0;
34388  } else {
34389    {
34390#line 1685
34391    __cil_tmp39 = cmsg->Reject;
34392#line 1685
34393    __cil_tmp40 = (int )__cil_tmp39;
34394#line 1685
34395    if (__cil_tmp40 == 1) {
34396#line 1685
34397      goto case_1___0;
34398    } else {
34399#line 1713
34400      goto switch_default___0;
34401#line 1602
34402      if (0) {
34403        case_0: 
34404        {
34405#line 1605
34406        __cil_tmp41 = & bcs->aplock;
34407#line 1605
34408        tmp = spinlock_check(__cil_tmp41);
34409#line 1605
34410        flags = _raw_spin_lock_irqsave(tmp);
34411        }
34412#line 1606
34413        goto ldv_35602;
34414        ldv_35601: 
34415#line 1607
34416        __cil_tmp42 = bcs->ap;
34417#line 1607
34418        oap = (struct gigaset_capi_appl *)__cil_tmp42;
34419#line 1608
34420        __cil_tmp43 = oap->bcnext;
34421#line 1608
34422        bcs->ap = (void *)__cil_tmp43;
34423        {
34424#line 1609
34425        __cil_tmp44 = (unsigned long )ap;
34426#line 1609
34427        __cil_tmp45 = (unsigned long )oap;
34428#line 1609
34429        if (__cil_tmp45 != __cil_tmp44) {
34430          {
34431#line 1610
34432          __cil_tmp46 = & bcs->aplock;
34433#line 1610
34434          spin_unlock_irqrestore(__cil_tmp46, flags);
34435#line 1611
34436          __cil_tmp47 = (u16 )13060;
34437#line 1611
34438          send_disconnect_ind(bcs, oap, __cil_tmp47);
34439#line 1613
34440          __cil_tmp48 = & bcs->aplock;
34441#line 1613
34442          tmp___0 = spinlock_check(__cil_tmp48);
34443#line 1613
34444          flags = _raw_spin_lock_irqsave(tmp___0);
34445          }
34446        } else {
34447
34448        }
34449        }
34450        ldv_35602: ;
34451        {
34452#line 1606
34453        __cil_tmp49 = (void *)0;
34454#line 1606
34455        __cil_tmp50 = (unsigned long )__cil_tmp49;
34456#line 1606
34457        __cil_tmp51 = bcs->ap;
34458#line 1606
34459        __cil_tmp52 = (unsigned long )__cil_tmp51;
34460#line 1606
34461        if (__cil_tmp52 != __cil_tmp50) {
34462#line 1607
34463          goto ldv_35601;
34464        } else {
34465#line 1609
34466          goto ldv_35603;
34467        }
34468        }
34469        ldv_35603: 
34470        {
34471#line 1616
34472        ap->bcnext = (struct gigaset_capi_appl *)0;
34473#line 1617
34474        bcs->ap = (void *)ap;
34475#line 1618
34476        __cil_tmp53 = & bcs->aplock;
34477#line 1618
34478        spin_unlock_irqrestore(__cil_tmp53, flags);
34479#line 1620
34480        bcs->rx_bufsize = ap->rp.datablklen;
34481#line 1621
34482        __cil_tmp54 = bcs->rx_skb;
34483#line 1621
34484        consume_skb(__cil_tmp54);
34485#line 1622
34486        gigaset_new_rx_skb(bcs);
34487#line 1623
34488        __cil_tmp55 = bcs->chstate;
34489#line 1623
34490        bcs->chstate = __cil_tmp55 | 4U;
34491        }
34492        {
34493#line 1626
34494        __cil_tmp56 = cmsg->BProtocol;
34495#line 1626
34496        __cil_tmp57 = (unsigned int )__cil_tmp56;
34497#line 1626
34498        if (__cil_tmp57 == 1U) {
34499          {
34500#line 1627
34501          bcs->proto2 = 1U;
34502#line 1628
34503          __cil_tmp58 = cs->dev;
34504#line 1628
34505          __cil_tmp59 = (struct device  const  *)__cil_tmp58;
34506#line 1628
34507          dev_warn(__cil_tmp59, "B2 Protocol X.75 SLP unsupported, using Transparent\n");
34508          }
34509        } else {
34510          {
34511#line 1632
34512          __cil_tmp60 = cmsg->B1protocol;
34513#line 1632
34514          __cil_tmp61 = (int )__cil_tmp60;
34515#line 1632
34516          if (__cil_tmp61 == 0) {
34517#line 1632
34518            goto case_0___0;
34519          } else {
34520            {
34521#line 1635
34522            __cil_tmp62 = cmsg->B1protocol;
34523#line 1635
34524            __cil_tmp63 = (int )__cil_tmp62;
34525#line 1635
34526            if (__cil_tmp63 == 1) {
34527#line 1635
34528              goto case_1;
34529            } else {
34530#line 1638
34531              goto switch_default;
34532#line 1631
34533              if (0) {
34534                case_0___0: 
34535#line 1633
34536                bcs->proto2 = 1U;
34537#line 1634
34538                goto ldv_35605;
34539                case_1: 
34540#line 1636
34541                bcs->proto2 = 2U;
34542#line 1637
34543                goto ldv_35605;
34544                switch_default: 
34545                {
34546#line 1639
34547                __cil_tmp64 = cs->dev;
34548#line 1639
34549                __cil_tmp65 = (struct device  const  *)__cil_tmp64;
34550#line 1639
34551                __cil_tmp66 = cmsg->B1protocol;
34552#line 1639
34553                __cil_tmp67 = (int )__cil_tmp66;
34554#line 1639
34555                dev_warn(__cil_tmp65, "B1 Protocol %u unsupported, using Transparent\n",
34556                         __cil_tmp67);
34557#line 1642
34558                bcs->proto2 = 2U;
34559                }
34560              } else {
34561
34562              }
34563            }
34564            }
34565          }
34566          }
34567          ldv_35605: ;
34568          {
34569#line 1644
34570          __cil_tmp68 = cmsg->B2protocol;
34571#line 1644
34572          __cil_tmp69 = (unsigned int )__cil_tmp68;
34573#line 1644
34574          if (__cil_tmp69 != 1U) {
34575            {
34576#line 1645
34577            __cil_tmp70 = cs->dev;
34578#line 1645
34579            __cil_tmp71 = (struct device  const  *)__cil_tmp70;
34580#line 1645
34581            __cil_tmp72 = cmsg->B2protocol;
34582#line 1645
34583            __cil_tmp73 = (int )__cil_tmp72;
34584#line 1645
34585            dev_warn(__cil_tmp71, "B2 Protocol %u unsupported, using Transparent\n",
34586                     __cil_tmp73);
34587            }
34588          } else {
34589
34590          }
34591          }
34592          {
34593#line 1648
34594          __cil_tmp74 = cmsg->B3protocol;
34595#line 1648
34596          __cil_tmp75 = (unsigned int )__cil_tmp74;
34597#line 1648
34598          if (__cil_tmp75 != 0U) {
34599            {
34600#line 1649
34601            __cil_tmp76 = cs->dev;
34602#line 1649
34603            __cil_tmp77 = (struct device  const  *)__cil_tmp76;
34604#line 1649
34605            __cil_tmp78 = cmsg->B3protocol;
34606#line 1649
34607            __cil_tmp79 = (int )__cil_tmp78;
34608#line 1649
34609            dev_warn(__cil_tmp77, "B3 Protocol %u unsupported, using Transparent\n",
34610                     __cil_tmp79);
34611            }
34612          } else {
34613
34614          }
34615          }
34616          {
34617#line 1652
34618          __cil_tmp80 = cmsg->B1configuration;
34619#line 1652
34620          __cil_tmp81 = (char *)"CONNECT_RESP";
34621#line 1652
34622          __cil_tmp82 = (char *)"B1 Configuration";
34623#line 1652
34624          ignore_cstruct_param(cs, __cil_tmp80, __cil_tmp81, __cil_tmp82);
34625#line 1654
34626          __cil_tmp83 = cmsg->B2configuration;
34627#line 1654
34628          __cil_tmp84 = (char *)"CONNECT_RESP";
34629#line 1654
34630          __cil_tmp85 = (char *)"B2 Configuration";
34631#line 1654
34632          ignore_cstruct_param(cs, __cil_tmp83, __cil_tmp84, __cil_tmp85);
34633#line 1656
34634          __cil_tmp86 = cmsg->B3configuration;
34635#line 1656
34636          __cil_tmp87 = (char *)"CONNECT_RESP";
34637#line 1656
34638          __cil_tmp88 = (char *)"B3 Configuration";
34639#line 1656
34640          ignore_cstruct_param(cs, __cil_tmp86, __cil_tmp87, __cil_tmp88);
34641          }
34642        }
34643        }
34644        {
34645#line 1661
34646        __cil_tmp89 = cmsg->ConnectedNumber;
34647#line 1661
34648        __cil_tmp90 = (char *)"CONNECT_RESP";
34649#line 1661
34650        __cil_tmp91 = (char *)"Connected Number";
34651#line 1661
34652        ignore_cstruct_param(cs, __cil_tmp89, __cil_tmp90, __cil_tmp91);
34653#line 1663
34654        __cil_tmp92 = cmsg->ConnectedSubaddress;
34655#line 1663
34656        __cil_tmp93 = (char *)"CONNECT_RESP";
34657#line 1663
34658        __cil_tmp94 = (char *)"Connected Subaddress";
34659#line 1663
34660        ignore_cstruct_param(cs, __cil_tmp92, __cil_tmp93, __cil_tmp94);
34661#line 1665
34662        __cil_tmp95 = cmsg->LLC;
34663#line 1665
34664        __cil_tmp96 = (char *)"CONNECT_RESP";
34665#line 1665
34666        __cil_tmp97 = (char *)"LLC";
34667#line 1665
34668        ignore_cstruct_param(cs, __cil_tmp95, __cil_tmp96, __cil_tmp97);
34669        }
34670        {
34671#line 1667
34672        __cil_tmp98 = cmsg->AdditionalInfo;
34673#line 1667
34674        __cil_tmp99 = (unsigned int )__cil_tmp98;
34675#line 1667
34676        if (__cil_tmp99 != 1U) {
34677          {
34678#line 1668
34679          __cil_tmp100 = cmsg->BChannelinformation;
34680#line 1668
34681          __cil_tmp101 = (char *)"CONNECT_RESP";
34682#line 1668
34683          __cil_tmp102 = (char *)"BChannel Information";
34684#line 1668
34685          ignore_cstruct_param(cs, __cil_tmp100, __cil_tmp101, __cil_tmp102);
34686#line 1670
34687          __cil_tmp103 = cmsg->Keypadfacility;
34688#line 1670
34689          __cil_tmp104 = (char *)"CONNECT_RESP";
34690#line 1670
34691          __cil_tmp105 = (char *)"Keypad Facility";
34692#line 1670
34693          ignore_cstruct_param(cs, __cil_tmp103, __cil_tmp104, __cil_tmp105);
34694#line 1672
34695          __cil_tmp106 = cmsg->Useruserdata;
34696#line 1672
34697          __cil_tmp107 = (char *)"CONNECT_RESP";
34698#line 1672
34699          __cil_tmp108 = (char *)"User-User Data";
34700#line 1672
34701          ignore_cstruct_param(cs, __cil_tmp106, __cil_tmp107, __cil_tmp108);
34702#line 1674
34703          __cil_tmp109 = cmsg->Facilitydataarray;
34704#line 1674
34705          __cil_tmp110 = (char *)"CONNECT_RESP";
34706#line 1674
34707          __cil_tmp111 = (char *)"Facility Data Array";
34708#line 1674
34709          ignore_cstruct_param(cs, __cil_tmp109, __cil_tmp110, __cil_tmp111);
34710          }
34711        } else {
34712
34713        }
34714        }
34715        {
34716#line 1679
34717        __cil_tmp112 = (unsigned long )channel;
34718#line 1679
34719        __cil_tmp113 = __cil_tmp112 + 1152921504606846975UL;
34720#line 1679
34721        __cil_tmp114 = cs->bcs;
34722#line 1679
34723        __cil_tmp115 = __cil_tmp114 + __cil_tmp113;
34724#line 1679
34725        __cil_tmp116 = & __cil_tmp115->at_state;
34726#line 1679
34727        __cil_tmp117 = (void *)0;
34728#line 1679
34729        __cil_tmp118 = (void *)0;
34730#line 1679
34731        tmp___1 = gigaset_add_event(cs, __cil_tmp116, -114, __cil_tmp117, 0, __cil_tmp118);
34732        }
34733        {
34734#line 1679
34735        __cil_tmp119 = (struct event_t *)0;
34736#line 1679
34737        __cil_tmp120 = (unsigned long )__cil_tmp119;
34738#line 1679
34739        __cil_tmp121 = (unsigned long )tmp___1;
34740#line 1679
34741        if (__cil_tmp121 == __cil_tmp120) {
34742#line 1681
34743          return;
34744        } else {
34745
34746        }
34747        }
34748        {
34749#line 1682
34750        gigaset_schedule_event(cs);
34751        }
34752#line 1683
34753        return;
34754        case_1___0: 
34755        {
34756#line 1687
34757        __cil_tmp122 = (u16 )0;
34758#line 1687
34759        send_disconnect_ind(bcs, ap, __cil_tmp122);
34760#line 1690
34761        __cil_tmp123 = & bcs->aplock;
34762#line 1690
34763        tmp___2 = spinlock_check(__cil_tmp123);
34764#line 1690
34765        flags = _raw_spin_lock_irqsave(tmp___2);
34766        }
34767        {
34768#line 1691
34769        __cil_tmp124 = (void *)ap;
34770#line 1691
34771        __cil_tmp125 = (unsigned long )__cil_tmp124;
34772#line 1691
34773        __cil_tmp126 = bcs->ap;
34774#line 1691
34775        __cil_tmp127 = (unsigned long )__cil_tmp126;
34776#line 1691
34777        if (__cil_tmp127 == __cil_tmp125) {
34778#line 1692
34779          __cil_tmp128 = ap->bcnext;
34780#line 1692
34781          bcs->ap = (void *)__cil_tmp128;
34782          {
34783#line 1693
34784          __cil_tmp129 = (void *)0;
34785#line 1693
34786          __cil_tmp130 = (unsigned long )__cil_tmp129;
34787#line 1693
34788          __cil_tmp131 = bcs->ap;
34789#line 1693
34790          __cil_tmp132 = (unsigned long )__cil_tmp131;
34791#line 1693
34792          if (__cil_tmp132 == __cil_tmp130) {
34793#line 1695
34794            bcs->apconnstate = 0;
34795#line 1696
34796            __cil_tmp133 = bcs->chstate;
34797#line 1696
34798            bcs->chstate = __cil_tmp133 & 4294967291U;
34799          } else {
34800
34801          }
34802          }
34803          {
34804#line 1698
34805          __cil_tmp134 = & bcs->aplock;
34806#line 1698
34807          spin_unlock_irqrestore(__cil_tmp134, flags);
34808          }
34809#line 1699
34810          return;
34811        } else {
34812
34813        }
34814        }
34815#line 1701
34816        __cil_tmp135 = bcs->ap;
34817#line 1701
34818        oap = (struct gigaset_capi_appl *)__cil_tmp135;
34819#line 1701
34820        goto ldv_35613;
34821        ldv_35612: ;
34822        {
34823#line 1702
34824        __cil_tmp136 = (unsigned long )ap;
34825#line 1702
34826        __cil_tmp137 = oap->bcnext;
34827#line 1702
34828        __cil_tmp138 = (unsigned long )__cil_tmp137;
34829#line 1702
34830        if (__cil_tmp138 == __cil_tmp136) {
34831          {
34832#line 1703
34833          __cil_tmp139 = oap->bcnext;
34834#line 1703
34835          oap->bcnext = __cil_tmp139->bcnext;
34836#line 1704
34837          __cil_tmp140 = & bcs->aplock;
34838#line 1704
34839          spin_unlock_irqrestore(__cil_tmp140, flags);
34840          }
34841#line 1705
34842          return;
34843        } else {
34844
34845        }
34846        }
34847#line 1701
34848        oap = oap->bcnext;
34849        ldv_35613: ;
34850        {
34851#line 1701
34852        __cil_tmp141 = (struct gigaset_capi_appl *)0;
34853#line 1701
34854        __cil_tmp142 = (unsigned long )__cil_tmp141;
34855#line 1701
34856        __cil_tmp143 = (unsigned long )oap;
34857#line 1701
34858        if (__cil_tmp143 != __cil_tmp142) {
34859#line 1702
34860          goto ldv_35612;
34861        } else {
34862#line 1704
34863          goto ldv_35614;
34864        }
34865        }
34866        ldv_35614: 
34867        {
34868#line 1708
34869        __cil_tmp144 = & bcs->aplock;
34870#line 1708
34871        spin_unlock_irqrestore(__cil_tmp144, flags);
34872#line 1709
34873        __cil_tmp145 = cs->dev;
34874#line 1709
34875        __cil_tmp146 = (struct device  const  *)__cil_tmp145;
34876#line 1709
34877        __cil_tmp147 = ap->id;
34878#line 1709
34879        __cil_tmp148 = (int )__cil_tmp147;
34880#line 1709
34881        dev_err(__cil_tmp146, "%s: application %u not found\n", "do_connect_resp",
34882                __cil_tmp148);
34883        }
34884#line 1711
34885        return;
34886        switch_default___0: 
34887        {
34888#line 1715
34889        __cil_tmp149 = & bcs->aplock;
34890#line 1715
34891        tmp___3 = spinlock_check(__cil_tmp149);
34892#line 1715
34893        flags = _raw_spin_lock_irqsave(tmp___3);
34894        }
34895#line 1716
34896        goto ldv_35623;
34897        ldv_35622: 
34898#line 1717
34899        __cil_tmp150 = bcs->ap;
34900#line 1717
34901        oap = (struct gigaset_capi_appl *)__cil_tmp150;
34902#line 1718
34903        __cil_tmp151 = oap->bcnext;
34904#line 1718
34905        bcs->ap = (void *)__cil_tmp151;
34906        {
34907#line 1719
34908        __cil_tmp152 = (unsigned long )ap;
34909#line 1719
34910        __cil_tmp153 = (unsigned long )oap;
34911#line 1719
34912        if (__cil_tmp153 != __cil_tmp152) {
34913          {
34914#line 1720
34915          __cil_tmp154 = & bcs->aplock;
34916#line 1720
34917          spin_unlock_irqrestore(__cil_tmp154, flags);
34918#line 1721
34919          __cil_tmp155 = (u16 )13060;
34920#line 1721
34921          send_disconnect_ind(bcs, oap, __cil_tmp155);
34922#line 1723
34923          __cil_tmp156 = & bcs->aplock;
34924#line 1723
34925          tmp___4 = spinlock_check(__cil_tmp156);
34926#line 1723
34927          flags = _raw_spin_lock_irqsave(tmp___4);
34928          }
34929        } else {
34930
34931        }
34932        }
34933        ldv_35623: ;
34934        {
34935#line 1716
34936        __cil_tmp157 = (void *)0;
34937#line 1716
34938        __cil_tmp158 = (unsigned long )__cil_tmp157;
34939#line 1716
34940        __cil_tmp159 = bcs->ap;
34941#line 1716
34942        __cil_tmp160 = (unsigned long )__cil_tmp159;
34943#line 1716
34944        if (__cil_tmp160 != __cil_tmp158) {
34945#line 1717
34946          goto ldv_35622;
34947        } else {
34948#line 1719
34949          goto ldv_35624;
34950        }
34951        }
34952        ldv_35624: 
34953        {
34954#line 1726
34955        ap->bcnext = (struct gigaset_capi_appl *)0;
34956#line 1727
34957        bcs->ap = (void *)ap;
34958#line 1728
34959        __cil_tmp161 = & bcs->aplock;
34960#line 1728
34961        spin_unlock_irqrestore(__cil_tmp161, flags);
34962#line 1731
34963        __cil_tmp162 = cs->dev;
34964#line 1731
34965        __cil_tmp163 = (struct device  const  *)__cil_tmp162;
34966#line 1731
34967        __cil_tmp164 = (char *)"CONNECT_RESP";
34968#line 1731
34969        __cil_tmp165 = cmsg->Reject;
34970#line 1731
34971        __cil_tmp166 = (int )__cil_tmp165;
34972#line 1731
34973        _dev_info(__cil_tmp163, "%s: Reject=%x\n", __cil_tmp164, __cil_tmp166);
34974#line 1733
34975        __cil_tmp167 = (unsigned long )channel;
34976#line 1733
34977        __cil_tmp168 = __cil_tmp167 + 1152921504606846975UL;
34978#line 1733
34979        __cil_tmp169 = cs->bcs;
34980#line 1733
34981        __cil_tmp170 = __cil_tmp169 + __cil_tmp168;
34982#line 1733
34983        __cil_tmp171 = & __cil_tmp170->at_state;
34984#line 1733
34985        __cil_tmp172 = (void *)0;
34986#line 1733
34987        __cil_tmp173 = (void *)0;
34988#line 1733
34989        tmp___5 = gigaset_add_event(cs, __cil_tmp171, -116, __cil_tmp172, 0, __cil_tmp173);
34990        }
34991        {
34992#line 1733
34993        __cil_tmp174 = (struct event_t *)0;
34994#line 1733
34995        __cil_tmp175 = (unsigned long )__cil_tmp174;
34996#line 1733
34997        __cil_tmp176 = (unsigned long )tmp___5;
34998#line 1733
34999        if (__cil_tmp176 == __cil_tmp175) {
35000#line 1735
35001          return;
35002        } else {
35003
35004        }
35005        }
35006        {
35007#line 1736
35008        gigaset_schedule_event(cs);
35009        }
35010#line 1737
35011        return;
35012      } else {
35013
35014      }
35015    }
35016    }
35017  }
35018  }
35019}
35020}
35021#line 1745 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
35022static void do_connect_b3_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
35023                              struct sk_buff *skb ) 
35024{ struct cardstate *cs ;
35025  _cmsg *cmsg ;
35026  struct bc_state *bcs ;
35027  int channel ;
35028  int tmp ;
35029  void *__cil_tmp9 ;
35030  unsigned char *__cil_tmp10 ;
35031  enum debuglevel __cil_tmp11 ;
35032  __u32 __cil_tmp12 ;
35033  __u32 __cil_tmp13 ;
35034  int __cil_tmp14 ;
35035  struct device *__cil_tmp15 ;
35036  struct device  const  *__cil_tmp16 ;
35037  char *__cil_tmp17 ;
35038  char *__cil_tmp18 ;
35039  __u32 __cil_tmp19 ;
35040  u16 __cil_tmp20 ;
35041  int __cil_tmp21 ;
35042  struct device *__cil_tmp22 ;
35043  struct device  const  *__cil_tmp23 ;
35044  char *__cil_tmp24 ;
35045  char *__cil_tmp25 ;
35046  __u32 __cil_tmp26 ;
35047  u16 __cil_tmp27 ;
35048  unsigned long __cil_tmp28 ;
35049  unsigned long __cil_tmp29 ;
35050  struct bc_state *__cil_tmp30 ;
35051  __u32 __cil_tmp31 ;
35052  _cstruct __cil_tmp32 ;
35053  char *__cil_tmp33 ;
35054  char *__cil_tmp34 ;
35055  _cstruct __cil_tmp35 ;
35056  unsigned long __cil_tmp36 ;
35057  _cstruct __cil_tmp37 ;
35058  unsigned long __cil_tmp38 ;
35059  _cstruct __cil_tmp39 ;
35060  __u8 __cil_tmp40 ;
35061  unsigned int __cil_tmp41 ;
35062  u16 __cil_tmp42 ;
35063  int __cil_tmp43 ;
35064  u16 __cil_tmp44 ;
35065
35066  {
35067  {
35068#line 1749
35069  __cil_tmp9 = iif->ctr.driverdata;
35070#line 1749
35071  cs = (struct cardstate *)__cil_tmp9;
35072#line 1750
35073  cmsg = & iif->acmsg;
35074#line 1755
35075  __cil_tmp10 = skb->data;
35076#line 1755
35077  capi_message2cmsg(cmsg, __cil_tmp10);
35078#line 1756
35079  __cil_tmp11 = (enum debuglevel )32;
35080#line 1756
35081  dump_cmsg(__cil_tmp11, "do_connect_b3_req", cmsg);
35082#line 1759
35083  __cil_tmp12 = cmsg->adr.adrPLCI;
35084#line 1759
35085  __cil_tmp13 = __cil_tmp12 >> 8;
35086#line 1759
35087  __cil_tmp14 = (int )__cil_tmp13;
35088#line 1759
35089  channel = __cil_tmp14 & 255;
35090  }
35091#line 1760
35092  if (channel == 0) {
35093    {
35094#line 1761
35095    __cil_tmp15 = cs->dev;
35096#line 1761
35097    __cil_tmp16 = (struct device  const  *)__cil_tmp15;
35098#line 1761
35099    __cil_tmp17 = (char *)"CONNECT_B3_REQ";
35100#line 1761
35101    __cil_tmp18 = (char *)"PLCI";
35102#line 1761
35103    __cil_tmp19 = cmsg->adr.adrPLCI;
35104#line 1761
35105    dev_notice(__cil_tmp16, "%s: invalid %s 0x%02x\n", __cil_tmp17, __cil_tmp18, __cil_tmp19);
35106#line 1763
35107    __cil_tmp20 = (u16 )8194;
35108#line 1763
35109    send_conf(iif, ap, skb, __cil_tmp20);
35110    }
35111#line 1764
35112    return;
35113  } else {
35114    {
35115#line 1760
35116    __cil_tmp21 = cs->channels;
35117#line 1760
35118    if (__cil_tmp21 < channel) {
35119      {
35120#line 1761
35121      __cil_tmp22 = cs->dev;
35122#line 1761
35123      __cil_tmp23 = (struct device  const  *)__cil_tmp22;
35124#line 1761
35125      __cil_tmp24 = (char *)"CONNECT_B3_REQ";
35126#line 1761
35127      __cil_tmp25 = (char *)"PLCI";
35128#line 1761
35129      __cil_tmp26 = cmsg->adr.adrPLCI;
35130#line 1761
35131      dev_notice(__cil_tmp23, "%s: invalid %s 0x%02x\n", __cil_tmp24, __cil_tmp25,
35132                 __cil_tmp26);
35133#line 1763
35134      __cil_tmp27 = (u16 )8194;
35135#line 1763
35136      send_conf(iif, ap, skb, __cil_tmp27);
35137      }
35138#line 1764
35139      return;
35140    } else {
35141
35142    }
35143    }
35144  }
35145  {
35146#line 1766
35147  __cil_tmp28 = (unsigned long )channel;
35148#line 1766
35149  __cil_tmp29 = __cil_tmp28 + 1152921504606846975UL;
35150#line 1766
35151  __cil_tmp30 = cs->bcs;
35152#line 1766
35153  bcs = __cil_tmp30 + __cil_tmp29;
35154#line 1769
35155  bcs->apconnstate = 2;
35156#line 1772
35157  __cil_tmp31 = cmsg->adr.adrNCCI;
35158#line 1772
35159  cmsg->adr.adrNCCI = __cil_tmp31 | 65536U;
35160#line 1775
35161  __cil_tmp32 = cmsg->NCPI;
35162#line 1775
35163  __cil_tmp33 = (char *)"CONNECT_B3_REQ";
35164#line 1775
35165  __cil_tmp34 = (char *)"NCPI";
35166#line 1775
35167  ignore_cstruct_param(cs, __cil_tmp32, __cil_tmp33, __cil_tmp34);
35168  }
35169  {
35170#line 1776
35171  __cil_tmp35 = (_cstruct )0;
35172#line 1776
35173  __cil_tmp36 = (unsigned long )__cil_tmp35;
35174#line 1776
35175  __cil_tmp37 = cmsg->NCPI;
35176#line 1776
35177  __cil_tmp38 = (unsigned long )__cil_tmp37;
35178#line 1776
35179  if (__cil_tmp38 != __cil_tmp36) {
35180    {
35181#line 1776
35182    __cil_tmp39 = cmsg->NCPI;
35183#line 1776
35184    __cil_tmp40 = *__cil_tmp39;
35185#line 1776
35186    __cil_tmp41 = (unsigned int )__cil_tmp40;
35187#line 1776
35188    if (__cil_tmp41 != 0U) {
35189#line 1776
35190      tmp = 1;
35191    } else {
35192#line 1776
35193      tmp = 0;
35194    }
35195    }
35196  } else {
35197#line 1776
35198    tmp = 0;
35199  }
35200  }
35201  {
35202#line 1776
35203  __cil_tmp42 = (u16 )tmp;
35204#line 1776
35205  __cil_tmp43 = (int )__cil_tmp42;
35206#line 1776
35207  __cil_tmp44 = (u16 )__cil_tmp43;
35208#line 1776
35209  send_conf(iif, ap, skb, __cil_tmp44);
35210  }
35211#line 1777
35212  return;
35213}
35214}
35215#line 1787 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
35216static void do_connect_b3_resp(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
35217                               struct sk_buff *skb ) 
35218{ struct cardstate *cs ;
35219  _cmsg *cmsg ;
35220  struct bc_state *bcs ;
35221  int channel ;
35222  unsigned int msgsize ;
35223  u8 command ;
35224  struct event_t *tmp ;
35225  u16 tmp___0 ;
35226  void *__cil_tmp12 ;
35227  unsigned char *__cil_tmp13 ;
35228  enum debuglevel __cil_tmp14 ;
35229  __u32 __cil_tmp15 ;
35230  __u32 __cil_tmp16 ;
35231  int __cil_tmp17 ;
35232  struct device *__cil_tmp18 ;
35233  struct device  const  *__cil_tmp19 ;
35234  char *__cil_tmp20 ;
35235  char *__cil_tmp21 ;
35236  __u32 __cil_tmp22 ;
35237  int __cil_tmp23 ;
35238  struct device *__cil_tmp24 ;
35239  struct device  const  *__cil_tmp25 ;
35240  char *__cil_tmp26 ;
35241  char *__cil_tmp27 ;
35242  __u32 __cil_tmp28 ;
35243  __u32 __cil_tmp29 ;
35244  __u32 __cil_tmp30 ;
35245  struct device *__cil_tmp31 ;
35246  struct device  const  *__cil_tmp32 ;
35247  char *__cil_tmp33 ;
35248  char *__cil_tmp34 ;
35249  __u32 __cil_tmp35 ;
35250  unsigned long __cil_tmp36 ;
35251  unsigned long __cil_tmp37 ;
35252  struct bc_state *__cil_tmp38 ;
35253  __u16 __cil_tmp39 ;
35254  unsigned int __cil_tmp40 ;
35255  struct at_state_t *__cil_tmp41 ;
35256  void *__cil_tmp42 ;
35257  void *__cil_tmp43 ;
35258  struct event_t *__cil_tmp44 ;
35259  unsigned long __cil_tmp45 ;
35260  unsigned long __cil_tmp46 ;
35261  u16 __cil_tmp47 ;
35262  int __cil_tmp48 ;
35263  int __cil_tmp49 ;
35264  u16 __cil_tmp50 ;
35265  int __cil_tmp51 ;
35266  __u16 __cil_tmp52 ;
35267  int __cil_tmp53 ;
35268  __u8 __cil_tmp54 ;
35269  __u8 __cil_tmp55 ;
35270  __u32 __cil_tmp56 ;
35271  unsigned char *__cil_tmp57 ;
35272  enum debuglevel __cil_tmp58 ;
35273  struct capi_ctr *__cil_tmp59 ;
35274  u16 __cil_tmp60 ;
35275  int __cil_tmp61 ;
35276  u16 __cil_tmp62 ;
35277
35278  {
35279  {
35280#line 1791
35281  __cil_tmp12 = iif->ctr.driverdata;
35282#line 1791
35283  cs = (struct cardstate *)__cil_tmp12;
35284#line 1792
35285  cmsg = & iif->acmsg;
35286#line 1799
35287  __cil_tmp13 = skb->data;
35288#line 1799
35289  capi_message2cmsg(cmsg, __cil_tmp13);
35290#line 1800
35291  __cil_tmp14 = (enum debuglevel )32;
35292#line 1800
35293  dump_cmsg(__cil_tmp14, "do_connect_b3_resp", cmsg);
35294#line 1803
35295  __cil_tmp15 = cmsg->adr.adrNCCI;
35296#line 1803
35297  __cil_tmp16 = __cil_tmp15 >> 8;
35298#line 1803
35299  __cil_tmp17 = (int )__cil_tmp16;
35300#line 1803
35301  channel = __cil_tmp17 & 255;
35302  }
35303#line 1804
35304  if (channel == 0) {
35305    {
35306#line 1806
35307    __cil_tmp18 = cs->dev;
35308#line 1806
35309    __cil_tmp19 = (struct device  const  *)__cil_tmp18;
35310#line 1806
35311    __cil_tmp20 = (char *)"CONNECT_B3_RESP";
35312#line 1806
35313    __cil_tmp21 = (char *)"NCCI";
35314#line 1806
35315    __cil_tmp22 = cmsg->adr.adrNCCI;
35316#line 1806
35317    dev_notice(__cil_tmp19, "%s: invalid %s 0x%02x\n", __cil_tmp20, __cil_tmp21, __cil_tmp22);
35318#line 1808
35319    dev_kfree_skb_any(skb);
35320    }
35321#line 1809
35322    return;
35323  } else {
35324    {
35325#line 1804
35326    __cil_tmp23 = cs->channels;
35327#line 1804
35328    if (__cil_tmp23 < channel) {
35329      {
35330#line 1806
35331      __cil_tmp24 = cs->dev;
35332#line 1806
35333      __cil_tmp25 = (struct device  const  *)__cil_tmp24;
35334#line 1806
35335      __cil_tmp26 = (char *)"CONNECT_B3_RESP";
35336#line 1806
35337      __cil_tmp27 = (char *)"NCCI";
35338#line 1806
35339      __cil_tmp28 = cmsg->adr.adrNCCI;
35340#line 1806
35341      dev_notice(__cil_tmp25, "%s: invalid %s 0x%02x\n", __cil_tmp26, __cil_tmp27,
35342                 __cil_tmp28);
35343#line 1808
35344      dev_kfree_skb_any(skb);
35345      }
35346#line 1809
35347      return;
35348    } else {
35349      {
35350#line 1804
35351      __cil_tmp29 = cmsg->adr.adrNCCI;
35352#line 1804
35353      __cil_tmp30 = __cil_tmp29 >> 16;
35354#line 1804
35355      if (__cil_tmp30 != 1U) {
35356        {
35357#line 1806
35358        __cil_tmp31 = cs->dev;
35359#line 1806
35360        __cil_tmp32 = (struct device  const  *)__cil_tmp31;
35361#line 1806
35362        __cil_tmp33 = (char *)"CONNECT_B3_RESP";
35363#line 1806
35364        __cil_tmp34 = (char *)"NCCI";
35365#line 1806
35366        __cil_tmp35 = cmsg->adr.adrNCCI;
35367#line 1806
35368        dev_notice(__cil_tmp32, "%s: invalid %s 0x%02x\n", __cil_tmp33, __cil_tmp34,
35369                   __cil_tmp35);
35370#line 1808
35371        dev_kfree_skb_any(skb);
35372        }
35373#line 1809
35374        return;
35375      } else {
35376
35377      }
35378      }
35379    }
35380    }
35381  }
35382#line 1811
35383  __cil_tmp36 = (unsigned long )channel;
35384#line 1811
35385  __cil_tmp37 = __cil_tmp36 + 1152921504606846975UL;
35386#line 1811
35387  __cil_tmp38 = cs->bcs;
35388#line 1811
35389  bcs = __cil_tmp38 + __cil_tmp37;
35390  {
35391#line 1813
35392  __cil_tmp39 = cmsg->Reject;
35393#line 1813
35394  __cil_tmp40 = (unsigned int )__cil_tmp39;
35395#line 1813
35396  if (__cil_tmp40 != 0U) {
35397    {
35398#line 1815
35399    bcs->apconnstate = 1;
35400#line 1818
35401    __cil_tmp41 = & bcs->at_state;
35402#line 1818
35403    __cil_tmp42 = (void *)0;
35404#line 1818
35405    __cil_tmp43 = (void *)0;
35406#line 1818
35407    tmp = gigaset_add_event(cs, __cil_tmp41, -116, __cil_tmp42, 0, __cil_tmp43);
35408    }
35409    {
35410#line 1818
35411    __cil_tmp44 = (struct event_t *)0;
35412#line 1818
35413    __cil_tmp45 = (unsigned long )__cil_tmp44;
35414#line 1818
35415    __cil_tmp46 = (unsigned long )tmp;
35416#line 1818
35417    if (__cil_tmp46 == __cil_tmp45) {
35418      {
35419#line 1820
35420      dev_kfree_skb_any(skb);
35421      }
35422#line 1821
35423      return;
35424    } else {
35425
35426    }
35427    }
35428    {
35429#line 1823
35430    gigaset_schedule_event(cs);
35431#line 1826
35432    command = (u8 )132U;
35433#line 1827
35434    msgsize = 15U;
35435    }
35436  } else {
35437#line 1833
35438    command = (u8 )131U;
35439#line 1834
35440    msgsize = 13U;
35441  }
35442  }
35443  {
35444#line 1836
35445  tmp___0 = ap->nextMessageNumber;
35446#line 1836
35447  __cil_tmp47 = ap->nextMessageNumber;
35448#line 1836
35449  __cil_tmp48 = (int )__cil_tmp47;
35450#line 1836
35451  __cil_tmp49 = __cil_tmp48 + 1;
35452#line 1836
35453  ap->nextMessageNumber = (u16 )__cil_tmp49;
35454#line 1836
35455  __cil_tmp50 = ap->id;
35456#line 1836
35457  __cil_tmp51 = (int )__cil_tmp50;
35458#line 1836
35459  __cil_tmp52 = (__u16 )__cil_tmp51;
35460#line 1836
35461  __cil_tmp53 = (int )command;
35462#line 1836
35463  __cil_tmp54 = (__u8 )__cil_tmp53;
35464#line 1836
35465  __cil_tmp55 = (__u8 )130;
35466#line 1836
35467  __cil_tmp56 = cmsg->adr.adrNCCI;
35468#line 1836
35469  capi_cmsg_header(cmsg, __cil_tmp52, __cil_tmp54, __cil_tmp55, tmp___0, __cil_tmp56);
35470#line 1838
35471  __skb_trim(skb, msgsize);
35472#line 1839
35473  __cil_tmp57 = skb->data;
35474#line 1839
35475  capi_cmsg2message(cmsg, __cil_tmp57);
35476#line 1840
35477  __cil_tmp58 = (enum debuglevel )32;
35478#line 1840
35479  dump_cmsg(__cil_tmp58, "do_connect_b3_resp", cmsg);
35480#line 1841
35481  __cil_tmp59 = & iif->ctr;
35482#line 1841
35483  __cil_tmp60 = ap->id;
35484#line 1841
35485  __cil_tmp61 = (int )__cil_tmp60;
35486#line 1841
35487  __cil_tmp62 = (u16 )__cil_tmp61;
35488#line 1841
35489  capi_ctr_handle_message(__cil_tmp59, __cil_tmp62, skb);
35490  }
35491#line 1842
35492  return;
35493}
35494}
35495#line 1849 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
35496static void do_disconnect_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
35497                              struct sk_buff *skb ) 
35498{ struct cardstate *cs ;
35499  _cmsg *cmsg ;
35500  struct bc_state *bcs ;
35501  _cmsg *b3cmsg ;
35502  struct sk_buff *b3skb ;
35503  int channel ;
35504  void *tmp ;
35505  u16 tmp___0 ;
35506  unsigned char *tmp___1 ;
35507  struct event_t *tmp___2 ;
35508  void *__cil_tmp14 ;
35509  unsigned char *__cil_tmp15 ;
35510  enum debuglevel __cil_tmp16 ;
35511  __u32 __cil_tmp17 ;
35512  __u32 __cil_tmp18 ;
35513  int __cil_tmp19 ;
35514  struct device *__cil_tmp20 ;
35515  struct device  const  *__cil_tmp21 ;
35516  char *__cil_tmp22 ;
35517  char *__cil_tmp23 ;
35518  __u32 __cil_tmp24 ;
35519  u16 __cil_tmp25 ;
35520  int __cil_tmp26 ;
35521  struct device *__cil_tmp27 ;
35522  struct device  const  *__cil_tmp28 ;
35523  char *__cil_tmp29 ;
35524  char *__cil_tmp30 ;
35525  __u32 __cil_tmp31 ;
35526  u16 __cil_tmp32 ;
35527  unsigned long __cil_tmp33 ;
35528  unsigned long __cil_tmp34 ;
35529  struct bc_state *__cil_tmp35 ;
35530  _cmstruct __cil_tmp36 ;
35531  unsigned int __cil_tmp37 ;
35532  _cstruct __cil_tmp38 ;
35533  char *__cil_tmp39 ;
35534  char *__cil_tmp40 ;
35535  _cstruct __cil_tmp41 ;
35536  char *__cil_tmp42 ;
35537  char *__cil_tmp43 ;
35538  _cstruct __cil_tmp44 ;
35539  char *__cil_tmp45 ;
35540  char *__cil_tmp46 ;
35541  _cstruct __cil_tmp47 ;
35542  char *__cil_tmp48 ;
35543  char *__cil_tmp49 ;
35544  int __cil_tmp50 ;
35545  int __cil_tmp51 ;
35546  _cmsg *__cil_tmp52 ;
35547  unsigned long __cil_tmp53 ;
35548  unsigned long __cil_tmp54 ;
35549  struct device *__cil_tmp55 ;
35550  struct device  const  *__cil_tmp56 ;
35551  u16 __cil_tmp57 ;
35552  u16 __cil_tmp58 ;
35553  int __cil_tmp59 ;
35554  int __cil_tmp60 ;
35555  u16 __cil_tmp61 ;
35556  int __cil_tmp62 ;
35557  __u16 __cil_tmp63 ;
35558  __u8 __cil_tmp64 ;
35559  __u8 __cil_tmp65 ;
35560  __u32 __cil_tmp66 ;
35561  unsigned int __cil_tmp67 ;
35562  struct sk_buff *__cil_tmp68 ;
35563  unsigned long __cil_tmp69 ;
35564  unsigned long __cil_tmp70 ;
35565  struct device *__cil_tmp71 ;
35566  struct device  const  *__cil_tmp72 ;
35567  u16 __cil_tmp73 ;
35568  void const   *__cil_tmp74 ;
35569  void const   *__cil_tmp75 ;
35570  struct capi_ctr *__cil_tmp76 ;
35571  u16 __cil_tmp77 ;
35572  int __cil_tmp78 ;
35573  u16 __cil_tmp79 ;
35574  struct at_state_t *__cil_tmp80 ;
35575  void *__cil_tmp81 ;
35576  void *__cil_tmp82 ;
35577  struct event_t *__cil_tmp83 ;
35578  unsigned long __cil_tmp84 ;
35579  unsigned long __cil_tmp85 ;
35580  u16 __cil_tmp86 ;
35581  u16 __cil_tmp87 ;
35582
35583  {
35584  {
35585#line 1853
35586  __cil_tmp14 = iif->ctr.driverdata;
35587#line 1853
35588  cs = (struct cardstate *)__cil_tmp14;
35589#line 1854
35590  cmsg = & iif->acmsg;
35591#line 1861
35592  __cil_tmp15 = skb->data;
35593#line 1861
35594  capi_message2cmsg(cmsg, __cil_tmp15);
35595#line 1862
35596  __cil_tmp16 = (enum debuglevel )32;
35597#line 1862
35598  dump_cmsg(__cil_tmp16, "do_disconnect_req", cmsg);
35599#line 1865
35600  __cil_tmp17 = cmsg->adr.adrPLCI;
35601#line 1865
35602  __cil_tmp18 = __cil_tmp17 >> 8;
35603#line 1865
35604  __cil_tmp19 = (int )__cil_tmp18;
35605#line 1865
35606  channel = __cil_tmp19 & 255;
35607  }
35608#line 1866
35609  if (channel == 0) {
35610    {
35611#line 1867
35612    __cil_tmp20 = cs->dev;
35613#line 1867
35614    __cil_tmp21 = (struct device  const  *)__cil_tmp20;
35615#line 1867
35616    __cil_tmp22 = (char *)"DISCONNECT_REQ";
35617#line 1867
35618    __cil_tmp23 = (char *)"PLCI";
35619#line 1867
35620    __cil_tmp24 = cmsg->adr.adrPLCI;
35621#line 1867
35622    dev_notice(__cil_tmp21, "%s: invalid %s 0x%02x\n", __cil_tmp22, __cil_tmp23, __cil_tmp24);
35623#line 1869
35624    __cil_tmp25 = (u16 )8194;
35625#line 1869
35626    send_conf(iif, ap, skb, __cil_tmp25);
35627    }
35628#line 1870
35629    return;
35630  } else {
35631    {
35632#line 1866
35633    __cil_tmp26 = cs->channels;
35634#line 1866
35635    if (__cil_tmp26 < channel) {
35636      {
35637#line 1867
35638      __cil_tmp27 = cs->dev;
35639#line 1867
35640      __cil_tmp28 = (struct device  const  *)__cil_tmp27;
35641#line 1867
35642      __cil_tmp29 = (char *)"DISCONNECT_REQ";
35643#line 1867
35644      __cil_tmp30 = (char *)"PLCI";
35645#line 1867
35646      __cil_tmp31 = cmsg->adr.adrPLCI;
35647#line 1867
35648      dev_notice(__cil_tmp28, "%s: invalid %s 0x%02x\n", __cil_tmp29, __cil_tmp30,
35649                 __cil_tmp31);
35650#line 1869
35651      __cil_tmp32 = (u16 )8194;
35652#line 1869
35653      send_conf(iif, ap, skb, __cil_tmp32);
35654      }
35655#line 1870
35656      return;
35657    } else {
35658
35659    }
35660    }
35661  }
35662#line 1872
35663  __cil_tmp33 = (unsigned long )channel;
35664#line 1872
35665  __cil_tmp34 = __cil_tmp33 + 1152921504606846975UL;
35666#line 1872
35667  __cil_tmp35 = cs->bcs;
35668#line 1872
35669  bcs = __cil_tmp35 + __cil_tmp34;
35670  {
35671#line 1875
35672  __cil_tmp36 = cmsg->AdditionalInfo;
35673#line 1875
35674  __cil_tmp37 = (unsigned int )__cil_tmp36;
35675#line 1875
35676  if (__cil_tmp37 != 1U) {
35677    {
35678#line 1876
35679    __cil_tmp38 = cmsg->BChannelinformation;
35680#line 1876
35681    __cil_tmp39 = (char *)"DISCONNECT_REQ";
35682#line 1876
35683    __cil_tmp40 = (char *)"B Channel Information";
35684#line 1876
35685    ignore_cstruct_param(cs, __cil_tmp38, __cil_tmp39, __cil_tmp40);
35686#line 1878
35687    __cil_tmp41 = cmsg->Keypadfacility;
35688#line 1878
35689    __cil_tmp42 = (char *)"DISCONNECT_REQ";
35690#line 1878
35691    __cil_tmp43 = (char *)"Keypad Facility";
35692#line 1878
35693    ignore_cstruct_param(cs, __cil_tmp41, __cil_tmp42, __cil_tmp43);
35694#line 1880
35695    __cil_tmp44 = cmsg->Useruserdata;
35696#line 1880
35697    __cil_tmp45 = (char *)"DISCONNECT_REQ";
35698#line 1880
35699    __cil_tmp46 = (char *)"User-User Data";
35700#line 1880
35701    ignore_cstruct_param(cs, __cil_tmp44, __cil_tmp45, __cil_tmp46);
35702#line 1882
35703    __cil_tmp47 = cmsg->Facilitydataarray;
35704#line 1882
35705    __cil_tmp48 = (char *)"DISCONNECT_REQ";
35706#line 1882
35707    __cil_tmp49 = (char *)"Facility Data Array";
35708#line 1882
35709    ignore_cstruct_param(cs, __cil_tmp47, __cil_tmp48, __cil_tmp49);
35710    }
35711  } else {
35712
35713  }
35714  }
35715  {
35716#line 1887
35717  __cil_tmp50 = bcs->apconnstate;
35718#line 1887
35719  if (__cil_tmp50 == 0) {
35720#line 1888
35721    return;
35722  } else {
35723
35724  }
35725  }
35726  {
35727#line 1891
35728  __cil_tmp51 = bcs->apconnstate;
35729#line 1891
35730  if (__cil_tmp51 > 1) {
35731    {
35732#line 1897
35733    tmp = kmalloc(496UL, 208U);
35734#line 1897
35735    b3cmsg = (_cmsg *)tmp;
35736    }
35737    {
35738#line 1898
35739    __cil_tmp52 = (_cmsg *)0;
35740#line 1898
35741    __cil_tmp53 = (unsigned long )__cil_tmp52;
35742#line 1898
35743    __cil_tmp54 = (unsigned long )b3cmsg;
35744#line 1898
35745    if (__cil_tmp54 == __cil_tmp53) {
35746      {
35747#line 1899
35748      __cil_tmp55 = cs->dev;
35749#line 1899
35750      __cil_tmp56 = (struct device  const  *)__cil_tmp55;
35751#line 1899
35752      dev_err(__cil_tmp56, "%s: out of memory\n", "do_disconnect_req");
35753#line 1900
35754      __cil_tmp57 = (u16 )4360;
35755#line 1900
35756      send_conf(iif, ap, skb, __cil_tmp57);
35757      }
35758#line 1901
35759      return;
35760    } else {
35761
35762    }
35763    }
35764    {
35765#line 1903
35766    tmp___0 = ap->nextMessageNumber;
35767#line 1903
35768    __cil_tmp58 = ap->nextMessageNumber;
35769#line 1903
35770    __cil_tmp59 = (int )__cil_tmp58;
35771#line 1903
35772    __cil_tmp60 = __cil_tmp59 + 1;
35773#line 1903
35774    ap->nextMessageNumber = (u16 )__cil_tmp60;
35775#line 1903
35776    __cil_tmp61 = ap->id;
35777#line 1903
35778    __cil_tmp62 = (int )__cil_tmp61;
35779#line 1903
35780    __cil_tmp63 = (__u16 )__cil_tmp62;
35781#line 1903
35782    __cil_tmp64 = (__u8 )132;
35783#line 1903
35784    __cil_tmp65 = (__u8 )130;
35785#line 1903
35786    __cil_tmp66 = cmsg->adr.adrPLCI;
35787#line 1903
35788    __cil_tmp67 = __cil_tmp66 | 65536U;
35789#line 1903
35790    capi_cmsg_header(b3cmsg, __cil_tmp63, __cil_tmp64, __cil_tmp65, tmp___0, __cil_tmp67);
35791#line 1906
35792    b3cmsg->Reason_B3 = (__u16 )13057U;
35793#line 1907
35794    b3skb = alloc_skb(15U, 208U);
35795    }
35796    {
35797#line 1908
35798    __cil_tmp68 = (struct sk_buff *)0;
35799#line 1908
35800    __cil_tmp69 = (unsigned long )__cil_tmp68;
35801#line 1908
35802    __cil_tmp70 = (unsigned long )b3skb;
35803#line 1908
35804    if (__cil_tmp70 == __cil_tmp69) {
35805      {
35806#line 1909
35807      __cil_tmp71 = cs->dev;
35808#line 1909
35809      __cil_tmp72 = (struct device  const  *)__cil_tmp71;
35810#line 1909
35811      dev_err(__cil_tmp72, "%s: out of memory\n", "do_disconnect_req");
35812#line 1910
35813      __cil_tmp73 = (u16 )4360;
35814#line 1910
35815      send_conf(iif, ap, skb, __cil_tmp73);
35816#line 1911
35817      __cil_tmp74 = (void const   *)b3cmsg;
35818#line 1911
35819      kfree(__cil_tmp74);
35820      }
35821#line 1912
35822      return;
35823    } else {
35824
35825    }
35826    }
35827    {
35828#line 1914
35829    tmp___1 = __skb_put(b3skb, 15U);
35830#line 1914
35831    capi_cmsg2message(b3cmsg, tmp___1);
35832#line 1916
35833    __cil_tmp75 = (void const   *)b3cmsg;
35834#line 1916
35835    kfree(__cil_tmp75);
35836#line 1917
35837    __cil_tmp76 = & iif->ctr;
35838#line 1917
35839    __cil_tmp77 = ap->id;
35840#line 1917
35841    __cil_tmp78 = (int )__cil_tmp77;
35842#line 1917
35843    __cil_tmp79 = (u16 )__cil_tmp78;
35844#line 1917
35845    capi_ctr_handle_message(__cil_tmp76, __cil_tmp79, b3skb);
35846    }
35847  } else {
35848
35849  }
35850  }
35851  {
35852#line 1921
35853  __cil_tmp80 = & bcs->at_state;
35854#line 1921
35855  __cil_tmp81 = (void *)0;
35856#line 1921
35857  __cil_tmp82 = (void *)0;
35858#line 1921
35859  tmp___2 = gigaset_add_event(cs, __cil_tmp80, -116, __cil_tmp81, 0, __cil_tmp82);
35860  }
35861  {
35862#line 1921
35863  __cil_tmp83 = (struct event_t *)0;
35864#line 1921
35865  __cil_tmp84 = (unsigned long )__cil_tmp83;
35866#line 1921
35867  __cil_tmp85 = (unsigned long )tmp___2;
35868#line 1921
35869  if (__cil_tmp85 == __cil_tmp84) {
35870    {
35871#line 1922
35872    __cil_tmp86 = (u16 )4360;
35873#line 1922
35874    send_conf(iif, ap, skb, __cil_tmp86);
35875    }
35876#line 1923
35877    return;
35878  } else {
35879
35880  }
35881  }
35882  {
35883#line 1925
35884  gigaset_schedule_event(cs);
35885#line 1928
35886  __cil_tmp87 = (u16 )0;
35887#line 1928
35888  send_conf(iif, ap, skb, __cil_tmp87);
35889  }
35890#line 1929
35891  return;
35892}
35893}
35894#line 1935 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
35895static void do_disconnect_b3_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
35896                                 struct sk_buff *skb ) 
35897{ struct cardstate *cs ;
35898  _cmsg *cmsg ;
35899  struct bc_state *bcs ;
35900  int channel ;
35901  struct event_t *tmp ;
35902  int tmp___0 ;
35903  void *__cil_tmp10 ;
35904  unsigned char *__cil_tmp11 ;
35905  enum debuglevel __cil_tmp12 ;
35906  __u32 __cil_tmp13 ;
35907  __u32 __cil_tmp14 ;
35908  int __cil_tmp15 ;
35909  struct device *__cil_tmp16 ;
35910  struct device  const  *__cil_tmp17 ;
35911  char *__cil_tmp18 ;
35912  char *__cil_tmp19 ;
35913  __u32 __cil_tmp20 ;
35914  u16 __cil_tmp21 ;
35915  int __cil_tmp22 ;
35916  struct device *__cil_tmp23 ;
35917  struct device  const  *__cil_tmp24 ;
35918  char *__cil_tmp25 ;
35919  char *__cil_tmp26 ;
35920  __u32 __cil_tmp27 ;
35921  u16 __cil_tmp28 ;
35922  __u32 __cil_tmp29 ;
35923  __u32 __cil_tmp30 ;
35924  struct device *__cil_tmp31 ;
35925  struct device  const  *__cil_tmp32 ;
35926  char *__cil_tmp33 ;
35927  char *__cil_tmp34 ;
35928  __u32 __cil_tmp35 ;
35929  u16 __cil_tmp36 ;
35930  unsigned long __cil_tmp37 ;
35931  unsigned long __cil_tmp38 ;
35932  struct bc_state *__cil_tmp39 ;
35933  int __cil_tmp40 ;
35934  u16 __cil_tmp41 ;
35935  struct at_state_t *__cil_tmp42 ;
35936  void *__cil_tmp43 ;
35937  void *__cil_tmp44 ;
35938  struct event_t *__cil_tmp45 ;
35939  unsigned long __cil_tmp46 ;
35940  unsigned long __cil_tmp47 ;
35941  u16 __cil_tmp48 ;
35942  _cstruct __cil_tmp49 ;
35943  char *__cil_tmp50 ;
35944  char *__cil_tmp51 ;
35945  _cstruct __cil_tmp52 ;
35946  unsigned long __cil_tmp53 ;
35947  _cstruct __cil_tmp54 ;
35948  unsigned long __cil_tmp55 ;
35949  _cstruct __cil_tmp56 ;
35950  __u8 __cil_tmp57 ;
35951  unsigned int __cil_tmp58 ;
35952  u16 __cil_tmp59 ;
35953  int __cil_tmp60 ;
35954  u16 __cil_tmp61 ;
35955
35956  {
35957  {
35958#line 1939
35959  __cil_tmp10 = iif->ctr.driverdata;
35960#line 1939
35961  cs = (struct cardstate *)__cil_tmp10;
35962#line 1940
35963  cmsg = & iif->acmsg;
35964#line 1945
35965  __cil_tmp11 = skb->data;
35966#line 1945
35967  capi_message2cmsg(cmsg, __cil_tmp11);
35968#line 1946
35969  __cil_tmp12 = (enum debuglevel )32;
35970#line 1946
35971  dump_cmsg(__cil_tmp12, "do_disconnect_b3_req", cmsg);
35972#line 1949
35973  __cil_tmp13 = cmsg->adr.adrNCCI;
35974#line 1949
35975  __cil_tmp14 = __cil_tmp13 >> 8;
35976#line 1949
35977  __cil_tmp15 = (int )__cil_tmp14;
35978#line 1949
35979  channel = __cil_tmp15 & 255;
35980  }
35981#line 1950
35982  if (channel == 0) {
35983    {
35984#line 1952
35985    __cil_tmp16 = cs->dev;
35986#line 1952
35987    __cil_tmp17 = (struct device  const  *)__cil_tmp16;
35988#line 1952
35989    __cil_tmp18 = (char *)"DISCONNECT_B3_REQ";
35990#line 1952
35991    __cil_tmp19 = (char *)"NCCI";
35992#line 1952
35993    __cil_tmp20 = cmsg->adr.adrNCCI;
35994#line 1952
35995    dev_notice(__cil_tmp17, "%s: invalid %s 0x%02x\n", __cil_tmp18, __cil_tmp19, __cil_tmp20);
35996#line 1954
35997    __cil_tmp21 = (u16 )8194;
35998#line 1954
35999    send_conf(iif, ap, skb, __cil_tmp21);
36000    }
36001#line 1955
36002    return;
36003  } else {
36004    {
36005#line 1950
36006    __cil_tmp22 = cs->channels;
36007#line 1950
36008    if (__cil_tmp22 < channel) {
36009      {
36010#line 1952
36011      __cil_tmp23 = cs->dev;
36012#line 1952
36013      __cil_tmp24 = (struct device  const  *)__cil_tmp23;
36014#line 1952
36015      __cil_tmp25 = (char *)"DISCONNECT_B3_REQ";
36016#line 1952
36017      __cil_tmp26 = (char *)"NCCI";
36018#line 1952
36019      __cil_tmp27 = cmsg->adr.adrNCCI;
36020#line 1952
36021      dev_notice(__cil_tmp24, "%s: invalid %s 0x%02x\n", __cil_tmp25, __cil_tmp26,
36022                 __cil_tmp27);
36023#line 1954
36024      __cil_tmp28 = (u16 )8194;
36025#line 1954
36026      send_conf(iif, ap, skb, __cil_tmp28);
36027      }
36028#line 1955
36029      return;
36030    } else {
36031      {
36032#line 1950
36033      __cil_tmp29 = cmsg->adr.adrNCCI;
36034#line 1950
36035      __cil_tmp30 = __cil_tmp29 >> 16;
36036#line 1950
36037      if (__cil_tmp30 != 1U) {
36038        {
36039#line 1952
36040        __cil_tmp31 = cs->dev;
36041#line 1952
36042        __cil_tmp32 = (struct device  const  *)__cil_tmp31;
36043#line 1952
36044        __cil_tmp33 = (char *)"DISCONNECT_B3_REQ";
36045#line 1952
36046        __cil_tmp34 = (char *)"NCCI";
36047#line 1952
36048        __cil_tmp35 = cmsg->adr.adrNCCI;
36049#line 1952
36050        dev_notice(__cil_tmp32, "%s: invalid %s 0x%02x\n", __cil_tmp33, __cil_tmp34,
36051                   __cil_tmp35);
36052#line 1954
36053        __cil_tmp36 = (u16 )8194;
36054#line 1954
36055        send_conf(iif, ap, skb, __cil_tmp36);
36056        }
36057#line 1955
36058        return;
36059      } else {
36060
36061      }
36062      }
36063    }
36064    }
36065  }
36066#line 1957
36067  __cil_tmp37 = (unsigned long )channel;
36068#line 1957
36069  __cil_tmp38 = __cil_tmp37 + 1152921504606846975UL;
36070#line 1957
36071  __cil_tmp39 = cs->bcs;
36072#line 1957
36073  bcs = __cil_tmp39 + __cil_tmp38;
36074  {
36075#line 1960
36076  __cil_tmp40 = bcs->apconnstate;
36077#line 1960
36078  if (__cil_tmp40 <= 1) {
36079    {
36080#line 1961
36081    __cil_tmp41 = (u16 )8193;
36082#line 1961
36083    send_conf(iif, ap, skb, __cil_tmp41);
36084    }
36085#line 1963
36086    return;
36087  } else {
36088
36089  }
36090  }
36091  {
36092#line 1967
36093  __cil_tmp42 = & bcs->at_state;
36094#line 1967
36095  __cil_tmp43 = (void *)0;
36096#line 1967
36097  __cil_tmp44 = (void *)0;
36098#line 1967
36099  tmp = gigaset_add_event(cs, __cil_tmp42, -116, __cil_tmp43, 0, __cil_tmp44);
36100  }
36101  {
36102#line 1967
36103  __cil_tmp45 = (struct event_t *)0;
36104#line 1967
36105  __cil_tmp46 = (unsigned long )__cil_tmp45;
36106#line 1967
36107  __cil_tmp47 = (unsigned long )tmp;
36108#line 1967
36109  if (__cil_tmp47 == __cil_tmp46) {
36110    {
36111#line 1968
36112    __cil_tmp48 = (u16 )4360;
36113#line 1968
36114    send_conf(iif, ap, skb, __cil_tmp48);
36115    }
36116#line 1969
36117    return;
36118  } else {
36119
36120  }
36121  }
36122  {
36123#line 1971
36124  gigaset_schedule_event(cs);
36125#line 1974
36126  __cil_tmp49 = cmsg->NCPI;
36127#line 1974
36128  __cil_tmp50 = (char *)"DISCONNECT_B3_REQ";
36129#line 1974
36130  __cil_tmp51 = (char *)"NCPI";
36131#line 1974
36132  ignore_cstruct_param(cs, __cil_tmp49, __cil_tmp50, __cil_tmp51);
36133  }
36134  {
36135#line 1976
36136  __cil_tmp52 = (_cstruct )0;
36137#line 1976
36138  __cil_tmp53 = (unsigned long )__cil_tmp52;
36139#line 1976
36140  __cil_tmp54 = cmsg->NCPI;
36141#line 1976
36142  __cil_tmp55 = (unsigned long )__cil_tmp54;
36143#line 1976
36144  if (__cil_tmp55 != __cil_tmp53) {
36145    {
36146#line 1976
36147    __cil_tmp56 = cmsg->NCPI;
36148#line 1976
36149    __cil_tmp57 = *__cil_tmp56;
36150#line 1976
36151    __cil_tmp58 = (unsigned int )__cil_tmp57;
36152#line 1976
36153    if (__cil_tmp58 != 0U) {
36154#line 1976
36155      tmp___0 = 1;
36156    } else {
36157#line 1976
36158      tmp___0 = 0;
36159    }
36160    }
36161  } else {
36162#line 1976
36163    tmp___0 = 0;
36164  }
36165  }
36166  {
36167#line 1976
36168  __cil_tmp59 = (u16 )tmp___0;
36169#line 1976
36170  __cil_tmp60 = (int )__cil_tmp59;
36171#line 1976
36172  __cil_tmp61 = (u16 )__cil_tmp60;
36173#line 1976
36174  send_conf(iif, ap, skb, __cil_tmp61);
36175  }
36176#line 1977
36177  return;
36178}
36179}
36180#line 1983 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
36181static void do_data_b3_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
36182                           struct sk_buff *skb ) 
36183{ struct cardstate *cs ;
36184  struct bc_state *bcs ;
36185  int channel ;
36186  u16 ncci ;
36187  u16 msglen ;
36188  u16 datalen ;
36189  u16 flags ;
36190  u16 msgid ;
36191  u16 handle ;
36192  int tmp ;
36193  int tmp___0 ;
36194  void *__cil_tmp15 ;
36195  unsigned char *__cil_tmp16 ;
36196  unsigned char *__cil_tmp17 ;
36197  unsigned char __cil_tmp18 ;
36198  unsigned char *__cil_tmp19 ;
36199  unsigned char *__cil_tmp20 ;
36200  unsigned char __cil_tmp21 ;
36201  int __cil_tmp22 ;
36202  int __cil_tmp23 ;
36203  short __cil_tmp24 ;
36204  int __cil_tmp25 ;
36205  unsigned char *__cil_tmp26 ;
36206  unsigned char *__cil_tmp27 ;
36207  unsigned char __cil_tmp28 ;
36208  short __cil_tmp29 ;
36209  int __cil_tmp30 ;
36210  int __cil_tmp31 ;
36211  unsigned char *__cil_tmp32 ;
36212  unsigned char *__cil_tmp33 ;
36213  unsigned char __cil_tmp34 ;
36214  int __cil_tmp35 ;
36215  int __cil_tmp36 ;
36216  short __cil_tmp37 ;
36217  int __cil_tmp38 ;
36218  unsigned char *__cil_tmp39 ;
36219  unsigned char __cil_tmp40 ;
36220  short __cil_tmp41 ;
36221  int __cil_tmp42 ;
36222  int __cil_tmp43 ;
36223  unsigned char *__cil_tmp44 ;
36224  unsigned char *__cil_tmp45 ;
36225  unsigned char __cil_tmp46 ;
36226  int __cil_tmp47 ;
36227  int __cil_tmp48 ;
36228  short __cil_tmp49 ;
36229  int __cil_tmp50 ;
36230  unsigned char *__cil_tmp51 ;
36231  unsigned char *__cil_tmp52 ;
36232  unsigned char __cil_tmp53 ;
36233  short __cil_tmp54 ;
36234  int __cil_tmp55 ;
36235  int __cil_tmp56 ;
36236  unsigned char *__cil_tmp57 ;
36237  unsigned char *__cil_tmp58 ;
36238  unsigned char __cil_tmp59 ;
36239  int __cil_tmp60 ;
36240  int __cil_tmp61 ;
36241  short __cil_tmp62 ;
36242  int __cil_tmp63 ;
36243  unsigned char *__cil_tmp64 ;
36244  unsigned char *__cil_tmp65 ;
36245  unsigned char __cil_tmp66 ;
36246  short __cil_tmp67 ;
36247  int __cil_tmp68 ;
36248  int __cil_tmp69 ;
36249  unsigned char *__cil_tmp70 ;
36250  unsigned char *__cil_tmp71 ;
36251  unsigned char __cil_tmp72 ;
36252  int __cil_tmp73 ;
36253  int __cil_tmp74 ;
36254  short __cil_tmp75 ;
36255  int __cil_tmp76 ;
36256  unsigned char *__cil_tmp77 ;
36257  unsigned char *__cil_tmp78 ;
36258  unsigned char __cil_tmp79 ;
36259  short __cil_tmp80 ;
36260  int __cil_tmp81 ;
36261  int __cil_tmp82 ;
36262  unsigned char *__cil_tmp83 ;
36263  unsigned char *__cil_tmp84 ;
36264  unsigned char __cil_tmp85 ;
36265  int __cil_tmp86 ;
36266  int __cil_tmp87 ;
36267  short __cil_tmp88 ;
36268  int __cil_tmp89 ;
36269  unsigned char *__cil_tmp90 ;
36270  unsigned char *__cil_tmp91 ;
36271  unsigned char __cil_tmp92 ;
36272  short __cil_tmp93 ;
36273  int __cil_tmp94 ;
36274  int __cil_tmp95 ;
36275  enum debuglevel __cil_tmp96 ;
36276  unsigned char *__cil_tmp97 ;
36277  struct device *__cil_tmp98 ;
36278  struct device  const  *__cil_tmp99 ;
36279  char *__cil_tmp100 ;
36280  char *__cil_tmp101 ;
36281  unsigned char *__cil_tmp102 ;
36282  unsigned char *__cil_tmp103 ;
36283  unsigned char __cil_tmp104 ;
36284  int __cil_tmp105 ;
36285  int __cil_tmp106 ;
36286  unsigned char *__cil_tmp107 ;
36287  unsigned char *__cil_tmp108 ;
36288  unsigned char __cil_tmp109 ;
36289  int __cil_tmp110 ;
36290  int __cil_tmp111 ;
36291  unsigned char *__cil_tmp112 ;
36292  unsigned char *__cil_tmp113 ;
36293  unsigned char __cil_tmp114 ;
36294  int __cil_tmp115 ;
36295  int __cil_tmp116 ;
36296  unsigned char *__cil_tmp117 ;
36297  unsigned char *__cil_tmp118 ;
36298  unsigned char __cil_tmp119 ;
36299  int __cil_tmp120 ;
36300  int __cil_tmp121 ;
36301  int __cil_tmp122 ;
36302  int __cil_tmp123 ;
36303  u16 __cil_tmp124 ;
36304  int __cil_tmp125 ;
36305  struct device *__cil_tmp126 ;
36306  struct device  const  *__cil_tmp127 ;
36307  char *__cil_tmp128 ;
36308  char *__cil_tmp129 ;
36309  unsigned char *__cil_tmp130 ;
36310  unsigned char *__cil_tmp131 ;
36311  unsigned char __cil_tmp132 ;
36312  int __cil_tmp133 ;
36313  int __cil_tmp134 ;
36314  unsigned char *__cil_tmp135 ;
36315  unsigned char *__cil_tmp136 ;
36316  unsigned char __cil_tmp137 ;
36317  int __cil_tmp138 ;
36318  int __cil_tmp139 ;
36319  unsigned char *__cil_tmp140 ;
36320  unsigned char *__cil_tmp141 ;
36321  unsigned char __cil_tmp142 ;
36322  int __cil_tmp143 ;
36323  int __cil_tmp144 ;
36324  unsigned char *__cil_tmp145 ;
36325  unsigned char *__cil_tmp146 ;
36326  unsigned char __cil_tmp147 ;
36327  int __cil_tmp148 ;
36328  int __cil_tmp149 ;
36329  int __cil_tmp150 ;
36330  int __cil_tmp151 ;
36331  u16 __cil_tmp152 ;
36332  unsigned int __cil_tmp153 ;
36333  struct device *__cil_tmp154 ;
36334  struct device  const  *__cil_tmp155 ;
36335  char *__cil_tmp156 ;
36336  char *__cil_tmp157 ;
36337  unsigned char *__cil_tmp158 ;
36338  unsigned char *__cil_tmp159 ;
36339  unsigned char __cil_tmp160 ;
36340  int __cil_tmp161 ;
36341  int __cil_tmp162 ;
36342  unsigned char *__cil_tmp163 ;
36343  unsigned char *__cil_tmp164 ;
36344  unsigned char __cil_tmp165 ;
36345  int __cil_tmp166 ;
36346  int __cil_tmp167 ;
36347  unsigned char *__cil_tmp168 ;
36348  unsigned char *__cil_tmp169 ;
36349  unsigned char __cil_tmp170 ;
36350  int __cil_tmp171 ;
36351  int __cil_tmp172 ;
36352  unsigned char *__cil_tmp173 ;
36353  unsigned char *__cil_tmp174 ;
36354  unsigned char __cil_tmp175 ;
36355  int __cil_tmp176 ;
36356  int __cil_tmp177 ;
36357  int __cil_tmp178 ;
36358  int __cil_tmp179 ;
36359  u16 __cil_tmp180 ;
36360  unsigned long __cil_tmp181 ;
36361  unsigned long __cil_tmp182 ;
36362  struct bc_state *__cil_tmp183 ;
36363  unsigned int __cil_tmp184 ;
36364  unsigned int __cil_tmp185 ;
36365  struct device *__cil_tmp186 ;
36366  struct device  const  *__cil_tmp187 ;
36367  char *__cil_tmp188 ;
36368  int __cil_tmp189 ;
36369  unsigned int __cil_tmp190 ;
36370  int __cil_tmp191 ;
36371  int __cil_tmp192 ;
36372  int __cil_tmp193 ;
36373  unsigned int __cil_tmp194 ;
36374  struct device *__cil_tmp195 ;
36375  struct device  const  *__cil_tmp196 ;
36376  char *__cil_tmp197 ;
36377  int __cil_tmp198 ;
36378  int __cil_tmp199 ;
36379  unsigned int __cil_tmp200 ;
36380  unsigned int __cil_tmp201 ;
36381  int __cil_tmp202 ;
36382  int __cil_tmp203 ;
36383  int __cil_tmp204 ;
36384  unsigned int __cil_tmp205 ;
36385  u16 __cil_tmp206 ;
36386  int __cil_tmp207 ;
36387  int __cil_tmp208 ;
36388  struct device *__cil_tmp209 ;
36389  struct device  const  *__cil_tmp210 ;
36390  char *__cil_tmp211 ;
36391  int __cil_tmp212 ;
36392  u16 __cil_tmp213 ;
36393  int __cil_tmp214 ;
36394  u16 __cil_tmp215 ;
36395  unsigned int __cil_tmp216 ;
36396  struct gigaset_ops  const  *__cil_tmp217 ;
36397  int (*__cil_tmp218)(struct bc_state * , struct sk_buff * ) ;
36398  u16 __cil_tmp219 ;
36399  int __cil_tmp220 ;
36400  int __cil_tmp221 ;
36401  unsigned int __cil_tmp222 ;
36402  struct capi_ctr *__cil_tmp223 ;
36403  u16 __cil_tmp224 ;
36404  int __cil_tmp225 ;
36405  u16 __cil_tmp226 ;
36406  int __cil_tmp227 ;
36407  u16 __cil_tmp228 ;
36408  int __cil_tmp229 ;
36409  u16 __cil_tmp230 ;
36410  u16 __cil_tmp231 ;
36411
36412  {
36413  {
36414#line 1987
36415  __cil_tmp15 = iif->ctr.driverdata;
36416#line 1987
36417  cs = (struct cardstate *)__cil_tmp15;
36418#line 1989
36419  __cil_tmp16 = skb->data;
36420#line 1989
36421  __cil_tmp17 = __cil_tmp16 + 9UL;
36422#line 1989
36423  __cil_tmp18 = *__cil_tmp17;
36424#line 1989
36425  channel = (int )__cil_tmp18;
36426#line 1990
36427  __cil_tmp19 = skb->data;
36428#line 1990
36429  __cil_tmp20 = __cil_tmp19 + 11UL;
36430#line 1990
36431  __cil_tmp21 = *__cil_tmp20;
36432#line 1990
36433  __cil_tmp22 = (int )__cil_tmp21;
36434#line 1990
36435  __cil_tmp23 = __cil_tmp22 << 8;
36436#line 1990
36437  __cil_tmp24 = (short )__cil_tmp23;
36438#line 1990
36439  __cil_tmp25 = (int )__cil_tmp24;
36440#line 1990
36441  __cil_tmp26 = skb->data;
36442#line 1990
36443  __cil_tmp27 = __cil_tmp26 + 10UL;
36444#line 1990
36445  __cil_tmp28 = *__cil_tmp27;
36446#line 1990
36447  __cil_tmp29 = (short )__cil_tmp28;
36448#line 1990
36449  __cil_tmp30 = (int )__cil_tmp29;
36450#line 1990
36451  __cil_tmp31 = __cil_tmp30 | __cil_tmp25;
36452#line 1990
36453  ncci = (u16 )__cil_tmp31;
36454#line 1991
36455  __cil_tmp32 = skb->data;
36456#line 1991
36457  __cil_tmp33 = __cil_tmp32 + 1UL;
36458#line 1991
36459  __cil_tmp34 = *__cil_tmp33;
36460#line 1991
36461  __cil_tmp35 = (int )__cil_tmp34;
36462#line 1991
36463  __cil_tmp36 = __cil_tmp35 << 8;
36464#line 1991
36465  __cil_tmp37 = (short )__cil_tmp36;
36466#line 1991
36467  __cil_tmp38 = (int )__cil_tmp37;
36468#line 1991
36469  __cil_tmp39 = skb->data;
36470#line 1991
36471  __cil_tmp40 = *__cil_tmp39;
36472#line 1991
36473  __cil_tmp41 = (short )__cil_tmp40;
36474#line 1991
36475  __cil_tmp42 = (int )__cil_tmp41;
36476#line 1991
36477  __cil_tmp43 = __cil_tmp42 | __cil_tmp38;
36478#line 1991
36479  msglen = (u16 )__cil_tmp43;
36480#line 1992
36481  __cil_tmp44 = skb->data;
36482#line 1992
36483  __cil_tmp45 = __cil_tmp44 + 17UL;
36484#line 1992
36485  __cil_tmp46 = *__cil_tmp45;
36486#line 1992
36487  __cil_tmp47 = (int )__cil_tmp46;
36488#line 1992
36489  __cil_tmp48 = __cil_tmp47 << 8;
36490#line 1992
36491  __cil_tmp49 = (short )__cil_tmp48;
36492#line 1992
36493  __cil_tmp50 = (int )__cil_tmp49;
36494#line 1992
36495  __cil_tmp51 = skb->data;
36496#line 1992
36497  __cil_tmp52 = __cil_tmp51 + 16UL;
36498#line 1992
36499  __cil_tmp53 = *__cil_tmp52;
36500#line 1992
36501  __cil_tmp54 = (short )__cil_tmp53;
36502#line 1992
36503  __cil_tmp55 = (int )__cil_tmp54;
36504#line 1992
36505  __cil_tmp56 = __cil_tmp55 | __cil_tmp50;
36506#line 1992
36507  datalen = (u16 )__cil_tmp56;
36508#line 1993
36509  __cil_tmp57 = skb->data;
36510#line 1993
36511  __cil_tmp58 = __cil_tmp57 + 21UL;
36512#line 1993
36513  __cil_tmp59 = *__cil_tmp58;
36514#line 1993
36515  __cil_tmp60 = (int )__cil_tmp59;
36516#line 1993
36517  __cil_tmp61 = __cil_tmp60 << 8;
36518#line 1993
36519  __cil_tmp62 = (short )__cil_tmp61;
36520#line 1993
36521  __cil_tmp63 = (int )__cil_tmp62;
36522#line 1993
36523  __cil_tmp64 = skb->data;
36524#line 1993
36525  __cil_tmp65 = __cil_tmp64 + 20UL;
36526#line 1993
36527  __cil_tmp66 = *__cil_tmp65;
36528#line 1993
36529  __cil_tmp67 = (short )__cil_tmp66;
36530#line 1993
36531  __cil_tmp68 = (int )__cil_tmp67;
36532#line 1993
36533  __cil_tmp69 = __cil_tmp68 | __cil_tmp63;
36534#line 1993
36535  flags = (u16 )__cil_tmp69;
36536#line 1994
36537  __cil_tmp70 = skb->data;
36538#line 1994
36539  __cil_tmp71 = __cil_tmp70 + 7UL;
36540#line 1994
36541  __cil_tmp72 = *__cil_tmp71;
36542#line 1994
36543  __cil_tmp73 = (int )__cil_tmp72;
36544#line 1994
36545  __cil_tmp74 = __cil_tmp73 << 8;
36546#line 1994
36547  __cil_tmp75 = (short )__cil_tmp74;
36548#line 1994
36549  __cil_tmp76 = (int )__cil_tmp75;
36550#line 1994
36551  __cil_tmp77 = skb->data;
36552#line 1994
36553  __cil_tmp78 = __cil_tmp77 + 6UL;
36554#line 1994
36555  __cil_tmp79 = *__cil_tmp78;
36556#line 1994
36557  __cil_tmp80 = (short )__cil_tmp79;
36558#line 1994
36559  __cil_tmp81 = (int )__cil_tmp80;
36560#line 1994
36561  __cil_tmp82 = __cil_tmp81 | __cil_tmp76;
36562#line 1994
36563  msgid = (u16 )__cil_tmp82;
36564#line 1995
36565  __cil_tmp83 = skb->data;
36566#line 1995
36567  __cil_tmp84 = __cil_tmp83 + 19UL;
36568#line 1995
36569  __cil_tmp85 = *__cil_tmp84;
36570#line 1995
36571  __cil_tmp86 = (int )__cil_tmp85;
36572#line 1995
36573  __cil_tmp87 = __cil_tmp86 << 8;
36574#line 1995
36575  __cil_tmp88 = (short )__cil_tmp87;
36576#line 1995
36577  __cil_tmp89 = (int )__cil_tmp88;
36578#line 1995
36579  __cil_tmp90 = skb->data;
36580#line 1995
36581  __cil_tmp91 = __cil_tmp90 + 18UL;
36582#line 1995
36583  __cil_tmp92 = *__cil_tmp91;
36584#line 1995
36585  __cil_tmp93 = (short )__cil_tmp92;
36586#line 1995
36587  __cil_tmp94 = (int )__cil_tmp93;
36588#line 1995
36589  __cil_tmp95 = __cil_tmp94 | __cil_tmp89;
36590#line 1995
36591  handle = (u16 )__cil_tmp95;
36592#line 1998
36593  __cil_tmp96 = (enum debuglevel )16384;
36594#line 1998
36595  __cil_tmp97 = skb->data;
36596#line 1998
36597  dump_rawmsg(__cil_tmp96, "do_data_b3_req", __cil_tmp97);
36598  }
36599#line 2001
36600  if (channel == 0) {
36601    {
36602#line 2002
36603    __cil_tmp98 = cs->dev;
36604#line 2002
36605    __cil_tmp99 = (struct device  const  *)__cil_tmp98;
36606#line 2002
36607    __cil_tmp100 = (char *)"DATA_B3_REQ";
36608#line 2002
36609    __cil_tmp101 = (char *)"NCCI";
36610#line 2002
36611    __cil_tmp102 = skb->data;
36612#line 2002
36613    __cil_tmp103 = __cil_tmp102 + 11UL;
36614#line 2002
36615    __cil_tmp104 = *__cil_tmp103;
36616#line 2002
36617    __cil_tmp105 = (int )__cil_tmp104;
36618#line 2002
36619    __cil_tmp106 = __cil_tmp105 << 24;
36620#line 2002
36621    __cil_tmp107 = skb->data;
36622#line 2002
36623    __cil_tmp108 = __cil_tmp107 + 10UL;
36624#line 2002
36625    __cil_tmp109 = *__cil_tmp108;
36626#line 2002
36627    __cil_tmp110 = (int )__cil_tmp109;
36628#line 2002
36629    __cil_tmp111 = __cil_tmp110 << 16;
36630#line 2002
36631    __cil_tmp112 = skb->data;
36632#line 2002
36633    __cil_tmp113 = __cil_tmp112 + 9UL;
36634#line 2002
36635    __cil_tmp114 = *__cil_tmp113;
36636#line 2002
36637    __cil_tmp115 = (int )__cil_tmp114;
36638#line 2002
36639    __cil_tmp116 = __cil_tmp115 << 8;
36640#line 2002
36641    __cil_tmp117 = skb->data;
36642#line 2002
36643    __cil_tmp118 = __cil_tmp117 + 8UL;
36644#line 2002
36645    __cil_tmp119 = *__cil_tmp118;
36646#line 2002
36647    __cil_tmp120 = (int )__cil_tmp119;
36648#line 2002
36649    __cil_tmp121 = __cil_tmp120 | __cil_tmp116;
36650#line 2002
36651    __cil_tmp122 = __cil_tmp121 | __cil_tmp111;
36652#line 2002
36653    __cil_tmp123 = __cil_tmp122 | __cil_tmp106;
36654#line 2002
36655    dev_notice(__cil_tmp99, "%s: invalid %s 0x%02x\n", __cil_tmp100, __cil_tmp101,
36656               __cil_tmp123);
36657#line 2004
36658    __cil_tmp124 = (u16 )8194;
36659#line 2004
36660    send_conf(iif, ap, skb, __cil_tmp124);
36661    }
36662#line 2005
36663    return;
36664  } else {
36665    {
36666#line 2001
36667    __cil_tmp125 = cs->channels;
36668#line 2001
36669    if (__cil_tmp125 < channel) {
36670      {
36671#line 2002
36672      __cil_tmp126 = cs->dev;
36673#line 2002
36674      __cil_tmp127 = (struct device  const  *)__cil_tmp126;
36675#line 2002
36676      __cil_tmp128 = (char *)"DATA_B3_REQ";
36677#line 2002
36678      __cil_tmp129 = (char *)"NCCI";
36679#line 2002
36680      __cil_tmp130 = skb->data;
36681#line 2002
36682      __cil_tmp131 = __cil_tmp130 + 11UL;
36683#line 2002
36684      __cil_tmp132 = *__cil_tmp131;
36685#line 2002
36686      __cil_tmp133 = (int )__cil_tmp132;
36687#line 2002
36688      __cil_tmp134 = __cil_tmp133 << 24;
36689#line 2002
36690      __cil_tmp135 = skb->data;
36691#line 2002
36692      __cil_tmp136 = __cil_tmp135 + 10UL;
36693#line 2002
36694      __cil_tmp137 = *__cil_tmp136;
36695#line 2002
36696      __cil_tmp138 = (int )__cil_tmp137;
36697#line 2002
36698      __cil_tmp139 = __cil_tmp138 << 16;
36699#line 2002
36700      __cil_tmp140 = skb->data;
36701#line 2002
36702      __cil_tmp141 = __cil_tmp140 + 9UL;
36703#line 2002
36704      __cil_tmp142 = *__cil_tmp141;
36705#line 2002
36706      __cil_tmp143 = (int )__cil_tmp142;
36707#line 2002
36708      __cil_tmp144 = __cil_tmp143 << 8;
36709#line 2002
36710      __cil_tmp145 = skb->data;
36711#line 2002
36712      __cil_tmp146 = __cil_tmp145 + 8UL;
36713#line 2002
36714      __cil_tmp147 = *__cil_tmp146;
36715#line 2002
36716      __cil_tmp148 = (int )__cil_tmp147;
36717#line 2002
36718      __cil_tmp149 = __cil_tmp148 | __cil_tmp144;
36719#line 2002
36720      __cil_tmp150 = __cil_tmp149 | __cil_tmp139;
36721#line 2002
36722      __cil_tmp151 = __cil_tmp150 | __cil_tmp134;
36723#line 2002
36724      dev_notice(__cil_tmp127, "%s: invalid %s 0x%02x\n", __cil_tmp128, __cil_tmp129,
36725                 __cil_tmp151);
36726#line 2004
36727      __cil_tmp152 = (u16 )8194;
36728#line 2004
36729      send_conf(iif, ap, skb, __cil_tmp152);
36730      }
36731#line 2005
36732      return;
36733    } else {
36734      {
36735#line 2001
36736      __cil_tmp153 = (unsigned int )ncci;
36737#line 2001
36738      if (__cil_tmp153 != 1U) {
36739        {
36740#line 2002
36741        __cil_tmp154 = cs->dev;
36742#line 2002
36743        __cil_tmp155 = (struct device  const  *)__cil_tmp154;
36744#line 2002
36745        __cil_tmp156 = (char *)"DATA_B3_REQ";
36746#line 2002
36747        __cil_tmp157 = (char *)"NCCI";
36748#line 2002
36749        __cil_tmp158 = skb->data;
36750#line 2002
36751        __cil_tmp159 = __cil_tmp158 + 11UL;
36752#line 2002
36753        __cil_tmp160 = *__cil_tmp159;
36754#line 2002
36755        __cil_tmp161 = (int )__cil_tmp160;
36756#line 2002
36757        __cil_tmp162 = __cil_tmp161 << 24;
36758#line 2002
36759        __cil_tmp163 = skb->data;
36760#line 2002
36761        __cil_tmp164 = __cil_tmp163 + 10UL;
36762#line 2002
36763        __cil_tmp165 = *__cil_tmp164;
36764#line 2002
36765        __cil_tmp166 = (int )__cil_tmp165;
36766#line 2002
36767        __cil_tmp167 = __cil_tmp166 << 16;
36768#line 2002
36769        __cil_tmp168 = skb->data;
36770#line 2002
36771        __cil_tmp169 = __cil_tmp168 + 9UL;
36772#line 2002
36773        __cil_tmp170 = *__cil_tmp169;
36774#line 2002
36775        __cil_tmp171 = (int )__cil_tmp170;
36776#line 2002
36777        __cil_tmp172 = __cil_tmp171 << 8;
36778#line 2002
36779        __cil_tmp173 = skb->data;
36780#line 2002
36781        __cil_tmp174 = __cil_tmp173 + 8UL;
36782#line 2002
36783        __cil_tmp175 = *__cil_tmp174;
36784#line 2002
36785        __cil_tmp176 = (int )__cil_tmp175;
36786#line 2002
36787        __cil_tmp177 = __cil_tmp176 | __cil_tmp172;
36788#line 2002
36789        __cil_tmp178 = __cil_tmp177 | __cil_tmp167;
36790#line 2002
36791        __cil_tmp179 = __cil_tmp178 | __cil_tmp162;
36792#line 2002
36793        dev_notice(__cil_tmp155, "%s: invalid %s 0x%02x\n", __cil_tmp156, __cil_tmp157,
36794                   __cil_tmp179);
36795#line 2004
36796        __cil_tmp180 = (u16 )8194;
36797#line 2004
36798        send_conf(iif, ap, skb, __cil_tmp180);
36799        }
36800#line 2005
36801        return;
36802      } else {
36803
36804      }
36805      }
36806    }
36807    }
36808  }
36809#line 2007
36810  __cil_tmp181 = (unsigned long )channel;
36811#line 2007
36812  __cil_tmp182 = __cil_tmp181 + 1152921504606846975UL;
36813#line 2007
36814  __cil_tmp183 = cs->bcs;
36815#line 2007
36816  bcs = __cil_tmp183 + __cil_tmp182;
36817  {
36818#line 2008
36819  __cil_tmp184 = (unsigned int )msglen;
36820#line 2008
36821  if (__cil_tmp184 != 22U) {
36822    {
36823#line 2008
36824    __cil_tmp185 = (unsigned int )msglen;
36825#line 2008
36826    if (__cil_tmp185 != 30U) {
36827      {
36828#line 2009
36829      __cil_tmp186 = cs->dev;
36830#line 2009
36831      __cil_tmp187 = (struct device  const  *)__cil_tmp186;
36832#line 2009
36833      __cil_tmp188 = (char *)"DATA_B3_REQ";
36834#line 2009
36835      __cil_tmp189 = (int )msglen;
36836#line 2009
36837      dev_notice(__cil_tmp187, "%s: unexpected length %d\n", __cil_tmp188, __cil_tmp189);
36838      }
36839    } else {
36840
36841    }
36842    }
36843  } else {
36844
36845  }
36846  }
36847  {
36848#line 2011
36849  __cil_tmp190 = skb->len;
36850#line 2011
36851  __cil_tmp191 = (int )datalen;
36852#line 2011
36853  __cil_tmp192 = (int )msglen;
36854#line 2011
36855  __cil_tmp193 = __cil_tmp192 + __cil_tmp191;
36856#line 2011
36857  __cil_tmp194 = (unsigned int )__cil_tmp193;
36858#line 2011
36859  if (__cil_tmp194 != __cil_tmp190) {
36860    {
36861#line 2012
36862    __cil_tmp195 = cs->dev;
36863#line 2012
36864    __cil_tmp196 = (struct device  const  *)__cil_tmp195;
36865#line 2012
36866    __cil_tmp197 = (char *)"DATA_B3_REQ";
36867#line 2012
36868    __cil_tmp198 = (int )msglen;
36869#line 2012
36870    __cil_tmp199 = (int )datalen;
36871#line 2012
36872    __cil_tmp200 = skb->len;
36873#line 2012
36874    dev_notice(__cil_tmp196, "%s: length mismatch (%d+%d!=%d)\n", __cil_tmp197, __cil_tmp198,
36875               __cil_tmp199, __cil_tmp200);
36876    }
36877  } else {
36878
36879  }
36880  }
36881  {
36882#line 2014
36883  __cil_tmp201 = skb->len;
36884#line 2014
36885  __cil_tmp202 = (int )datalen;
36886#line 2014
36887  __cil_tmp203 = (int )msglen;
36888#line 2014
36889  __cil_tmp204 = __cil_tmp203 + __cil_tmp202;
36890#line 2014
36891  __cil_tmp205 = (unsigned int )__cil_tmp204;
36892#line 2014
36893  if (__cil_tmp205 > __cil_tmp201) {
36894    {
36895#line 2016
36896    __cil_tmp206 = (u16 )8199;
36897#line 2016
36898    send_conf(iif, ap, skb, __cil_tmp206);
36899    }
36900#line 2017
36901    return;
36902  } else {
36903
36904  }
36905  }
36906  {
36907#line 2019
36908  __cil_tmp207 = (int )flags;
36909#line 2019
36910  __cil_tmp208 = __cil_tmp207 & -32;
36911#line 2019
36912  if (__cil_tmp208 != 0) {
36913    {
36914#line 2020
36915    __cil_tmp209 = cs->dev;
36916#line 2020
36917    __cil_tmp210 = (struct device  const  *)__cil_tmp209;
36918#line 2020
36919    __cil_tmp211 = (char *)"DATA_B3_REQ";
36920#line 2020
36921    __cil_tmp212 = (int )flags;
36922#line 2020
36923    dev_notice(__cil_tmp210, "%s: reserved flags set (%x)\n", __cil_tmp211, __cil_tmp212);
36924#line 2022
36925    __cil_tmp213 = (u16 )8199;
36926#line 2022
36927    send_conf(iif, ap, skb, __cil_tmp213);
36928    }
36929#line 2023
36930    return;
36931  } else {
36932
36933  }
36934  }
36935  {
36936#line 2027
36937  __cil_tmp214 = bcs->apconnstate;
36938#line 2027
36939  if (__cil_tmp214 <= 1) {
36940    {
36941#line 2028
36942    __cil_tmp215 = (u16 )8193;
36943#line 2028
36944    send_conf(iif, ap, skb, __cil_tmp215);
36945    }
36946#line 2029
36947    return;
36948  } else {
36949
36950  }
36951  }
36952  {
36953#line 2033
36954  skb_reset_mac_header(skb);
36955#line 2034
36956  skb->mac_len = msglen;
36957#line 2035
36958  __cil_tmp216 = (unsigned int )msglen;
36959#line 2035
36960  skb_pull(skb, __cil_tmp216);
36961#line 2038
36962  __cil_tmp217 = cs->ops;
36963#line 2038
36964  __cil_tmp218 = __cil_tmp217->send_skb;
36965#line 2038
36966  tmp = (*__cil_tmp218)(bcs, skb);
36967  }
36968#line 2038
36969  if (tmp < 0) {
36970    {
36971#line 2039
36972    __cil_tmp219 = (u16 )4360;
36973#line 2039
36974    send_conf(iif, ap, skb, __cil_tmp219);
36975    }
36976#line 2040
36977    return;
36978  } else {
36979
36980  }
36981  {
36982#line 2047
36983  __cil_tmp220 = (int )flags;
36984#line 2047
36985  __cil_tmp221 = __cil_tmp220 & 4;
36986#line 2047
36987  if (__cil_tmp221 == 0) {
36988    {
36989#line 2048
36990    __cil_tmp222 = (unsigned int )flags;
36991#line 2048
36992    if (__cil_tmp222 != 0U) {
36993#line 2048
36994      tmp___0 = 2;
36995    } else {
36996#line 2048
36997      tmp___0 = 0;
36998    }
36999    }
37000    {
37001#line 2048
37002    __cil_tmp223 = & iif->ctr;
37003#line 2048
37004    __cil_tmp224 = ap->id;
37005#line 2048
37006    __cil_tmp225 = (int )__cil_tmp224;
37007#line 2048
37008    __cil_tmp226 = (u16 )__cil_tmp225;
37009#line 2048
37010    __cil_tmp227 = (int )msgid;
37011#line 2048
37012    __cil_tmp228 = (u16 )__cil_tmp227;
37013#line 2048
37014    __cil_tmp229 = (int )handle;
37015#line 2048
37016    __cil_tmp230 = (u16 )__cil_tmp229;
37017#line 2048
37018    __cil_tmp231 = (u16 )tmp___0;
37019#line 2048
37020    send_data_b3_conf(cs, __cil_tmp223, __cil_tmp226, __cil_tmp228, channel, __cil_tmp230,
37021                      __cil_tmp231);
37022    }
37023  } else {
37024
37025  }
37026  }
37027#line 2050
37028  return;
37029}
37030}
37031#line 2057 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37032static void do_reset_b3_req(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
37033                            struct sk_buff *skb ) 
37034{ _cmsg *__cil_tmp4 ;
37035  unsigned char *__cil_tmp5 ;
37036  enum debuglevel __cil_tmp6 ;
37037  _cmsg *__cil_tmp7 ;
37038  u16 __cil_tmp8 ;
37039
37040  {
37041  {
37042#line 2062
37043  __cil_tmp4 = & iif->acmsg;
37044#line 2062
37045  __cil_tmp5 = skb->data;
37046#line 2062
37047  capi_message2cmsg(__cil_tmp4, __cil_tmp5);
37048#line 2063
37049  __cil_tmp6 = (enum debuglevel )32;
37050#line 2063
37051  __cil_tmp7 = & iif->acmsg;
37052#line 2063
37053  dump_cmsg(__cil_tmp6, "do_reset_b3_req", __cil_tmp7);
37054#line 2064
37055  __cil_tmp8 = (u16 )12301;
37056#line 2064
37057  send_conf(iif, ap, skb, __cil_tmp8);
37058  }
37059#line 2065
37060  return;
37061}
37062}
37063#line 2072 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37064static unsigned long ignored_msg_dump_time  ;
37065#line 2077 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37066static void do_unsupported(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
37067                           struct sk_buff *skb ) 
37068{ bool tmp ;
37069  _cmsg *__cil_tmp5 ;
37070  unsigned char *__cil_tmp6 ;
37071  enum debuglevel __cil_tmp7 ;
37072  _cmsg *__cil_tmp8 ;
37073  u16 __cil_tmp9 ;
37074
37075  {
37076  {
37077#line 2082
37078  __cil_tmp5 = & iif->acmsg;
37079#line 2082
37080  __cil_tmp6 = skb->data;
37081#line 2082
37082  capi_message2cmsg(__cil_tmp5, __cil_tmp6);
37083#line 2083
37084  tmp = printk_timed_ratelimit(& ignored_msg_dump_time, 30000U);
37085  }
37086#line 2083
37087  if ((int )tmp) {
37088    {
37089#line 2084
37090    __cil_tmp7 = (enum debuglevel )32;
37091#line 2084
37092    __cil_tmp8 = & iif->acmsg;
37093#line 2084
37094    dump_cmsg(__cil_tmp7, "do_unsupported", __cil_tmp8);
37095    }
37096  } else {
37097
37098  }
37099  {
37100#line 2085
37101  __cil_tmp9 = (u16 )8193;
37102#line 2085
37103  send_conf(iif, ap, skb, __cil_tmp9);
37104  }
37105#line 2086
37106  return;
37107}
37108}
37109#line 2091 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37110static void do_nothing(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
37111                       struct sk_buff *skb ) 
37112{ bool tmp ;
37113  _cmsg *__cil_tmp5 ;
37114  unsigned char *__cil_tmp6 ;
37115  enum debuglevel __cil_tmp7 ;
37116  _cmsg *__cil_tmp8 ;
37117
37118  {
37119  {
37120#line 2095
37121  tmp = printk_timed_ratelimit(& ignored_msg_dump_time, 30000U);
37122  }
37123#line 2095
37124  if ((int )tmp) {
37125    {
37126#line 2097
37127    __cil_tmp5 = & iif->acmsg;
37128#line 2097
37129    __cil_tmp6 = skb->data;
37130#line 2097
37131    capi_message2cmsg(__cil_tmp5, __cil_tmp6);
37132#line 2098
37133    __cil_tmp7 = (enum debuglevel )32;
37134#line 2098
37135    __cil_tmp8 = & iif->acmsg;
37136#line 2098
37137    dump_cmsg(__cil_tmp7, "do_nothing", __cil_tmp8);
37138    }
37139  } else {
37140
37141  }
37142  {
37143#line 2100
37144  dev_kfree_skb_any(skb);
37145  }
37146#line 2101
37147  return;
37148}
37149}
37150#line 2103 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37151static void do_data_b3_resp(struct gigaset_capi_ctr *iif , struct gigaset_capi_appl *ap ,
37152                            struct sk_buff *skb ) 
37153{ enum debuglevel __cil_tmp4 ;
37154  unsigned char *__cil_tmp5 ;
37155
37156  {
37157  {
37158#line 2107
37159  __cil_tmp4 = (enum debuglevel )16384;
37160#line 2107
37161  __cil_tmp5 = skb->data;
37162#line 2107
37163  dump_rawmsg(__cil_tmp4, "do_data_b3_resp", __cil_tmp5);
37164#line 2108
37165  dev_kfree_skb_any(skb);
37166  }
37167#line 2109
37168  return;
37169}
37170}
37171#line 2119 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37172static struct __anonstruct_capi_send_handler_table_202 capi_send_handler_table[24U]  = 
37173#line 2119
37174  {      {(u16 )34432U, & do_data_b3_req}, 
37175        {(u16 )34435U, & do_data_b3_resp}, 
37176        {(u16 )384U, & do_alert_req}, 
37177        {(u16 )899U, & do_nothing}, 
37178        {(u16 )33667U, & do_nothing}, 
37179        {(u16 )33408U, & do_connect_b3_req}, 
37180        {(u16 )33411U, & do_connect_b3_resp}, 
37181        {(u16 )34947U, & do_nothing}, 
37182        {(u16 )640U, & do_connect_req}, 
37183        {(u16 )643U, & do_connect_resp}, 
37184        {(u16 )33920U, & do_disconnect_b3_req}, 
37185        {(u16 )33923U, & do_nothing}, 
37186        {(u16 )1152U, & do_disconnect_req}, 
37187        {(u16 )1155U, & do_nothing}, 
37188        {(u16 )32896U, & do_facility_req}, 
37189        {(u16 )32899U, & do_nothing}, 
37190        {(u16 )1408U, & do_listen_req}, 
37191        {(u16 )16768U, & do_unsupported}, 
37192        {(u16 )34688U, & do_reset_b3_req}, 
37193        {(u16 )34691U, & do_nothing}, 
37194        {(u16 )2176U, & do_unsupported}, 
37195        {(u16 )2179U, & do_nothing}, 
37196        {(u16 )65408U, & do_nothing}, 
37197        {(u16 )65411U, & do_nothing}};
37198#line 2158 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37199__inline static capi_send_handler_t lookup_capi_send_handler(u16 cmd ) 
37200{ size_t i ;
37201  int __cil_tmp3 ;
37202  int __cil_tmp4 ;
37203
37204  {
37205#line 2162
37206  i = 0UL;
37207#line 2162
37208  goto ldv_35724;
37209  ldv_35723: ;
37210  {
37211#line 2163
37212  __cil_tmp3 = (int )cmd;
37213#line 2163
37214  __cil_tmp4 = (int )capi_send_handler_table[i].cmd;
37215#line 2163
37216  if (__cil_tmp4 == __cil_tmp3) {
37217#line 2164
37218    return (capi_send_handler_table[i].handler);
37219  } else {
37220
37221  }
37222  }
37223#line 2162
37224  i = i + 1UL;
37225  ldv_35724: ;
37226#line 2162
37227  if (i <= 23UL) {
37228#line 2163
37229    goto ldv_35723;
37230  } else {
37231#line 2165
37232    goto ldv_35725;
37233  }
37234  ldv_35725: ;
37235#line 2165
37236  return ((void (*)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * , struct sk_buff * ))0);
37237}
37238}
37239#line 2178 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37240static u16 gigaset_send_message(struct capi_ctr *ctr , struct sk_buff *skb ) 
37241{ struct gigaset_capi_ctr *iif ;
37242  struct capi_ctr  const  *__mptr ;
37243  struct cardstate *cs ;
37244  struct gigaset_capi_appl *ap ;
37245  void (*handler)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * , struct sk_buff * ) ;
37246  int tmp ;
37247  int tmp___0 ;
37248  int tmp___1 ;
37249  int tmp___2 ;
37250  void *__cil_tmp12 ;
37251  struct device *__cil_tmp13 ;
37252  struct device  const  *__cil_tmp14 ;
37253  unsigned char *__cil_tmp15 ;
37254  unsigned char *__cil_tmp16 ;
37255  unsigned char __cil_tmp17 ;
37256  int __cil_tmp18 ;
37257  int __cil_tmp19 ;
37258  short __cil_tmp20 ;
37259  int __cil_tmp21 ;
37260  unsigned char *__cil_tmp22 ;
37261  unsigned char *__cil_tmp23 ;
37262  unsigned char __cil_tmp24 ;
37263  short __cil_tmp25 ;
37264  int __cil_tmp26 ;
37265  int __cil_tmp27 ;
37266  u16 __cil_tmp28 ;
37267  int __cil_tmp29 ;
37268  u16 __cil_tmp30 ;
37269  struct gigaset_capi_appl *__cil_tmp31 ;
37270  unsigned long __cil_tmp32 ;
37271  unsigned long __cil_tmp33 ;
37272  struct device *__cil_tmp34 ;
37273  struct device  const  *__cil_tmp35 ;
37274  unsigned char *__cil_tmp36 ;
37275  unsigned char *__cil_tmp37 ;
37276  unsigned char __cil_tmp38 ;
37277  int __cil_tmp39 ;
37278  int __cil_tmp40 ;
37279  unsigned char *__cil_tmp41 ;
37280  unsigned char *__cil_tmp42 ;
37281  unsigned char __cil_tmp43 ;
37282  int __cil_tmp44 ;
37283  int __cil_tmp45 ;
37284  unsigned char *__cil_tmp46 ;
37285  unsigned char *__cil_tmp47 ;
37286  unsigned char __cil_tmp48 ;
37287  short __cil_tmp49 ;
37288  int __cil_tmp50 ;
37289  unsigned char *__cil_tmp51 ;
37290  unsigned char *__cil_tmp52 ;
37291  unsigned char __cil_tmp53 ;
37292  int __cil_tmp54 ;
37293  int __cil_tmp55 ;
37294  short __cil_tmp56 ;
37295  int __cil_tmp57 ;
37296  int __cil_tmp58 ;
37297  u16 __cil_tmp59 ;
37298  int __cil_tmp60 ;
37299  u16 __cil_tmp61 ;
37300  u16 __cil_tmp62 ;
37301  void (*__cil_tmp63)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * , struct sk_buff * ) ;
37302  unsigned long __cil_tmp64 ;
37303  unsigned long __cil_tmp65 ;
37304  struct device *__cil_tmp66 ;
37305  struct device  const  *__cil_tmp67 ;
37306  unsigned char *__cil_tmp68 ;
37307  unsigned char *__cil_tmp69 ;
37308  unsigned char __cil_tmp70 ;
37309  int __cil_tmp71 ;
37310  unsigned char *__cil_tmp72 ;
37311  unsigned char *__cil_tmp73 ;
37312  unsigned char __cil_tmp74 ;
37313  int __cil_tmp75 ;
37314  int __cil_tmp76 ;
37315  int __cil_tmp77 ;
37316  atomic_t *__cil_tmp78 ;
37317  struct sk_buff_head *__cil_tmp79 ;
37318  struct sk_buff_head *__cil_tmp80 ;
37319  struct sk_buff *__cil_tmp81 ;
37320  unsigned long __cil_tmp82 ;
37321  unsigned long __cil_tmp83 ;
37322  struct device *__cil_tmp84 ;
37323  struct device  const  *__cil_tmp85 ;
37324  unsigned char *__cil_tmp86 ;
37325  unsigned char *__cil_tmp87 ;
37326  unsigned char __cil_tmp88 ;
37327  int __cil_tmp89 ;
37328  int __cil_tmp90 ;
37329  short __cil_tmp91 ;
37330  int __cil_tmp92 ;
37331  unsigned char *__cil_tmp93 ;
37332  unsigned char *__cil_tmp94 ;
37333  unsigned char __cil_tmp95 ;
37334  short __cil_tmp96 ;
37335  int __cil_tmp97 ;
37336  int __cil_tmp98 ;
37337  u16 __cil_tmp99 ;
37338  int __cil_tmp100 ;
37339  u16 __cil_tmp101 ;
37340  struct gigaset_capi_appl *__cil_tmp102 ;
37341  unsigned long __cil_tmp103 ;
37342  unsigned long __cil_tmp104 ;
37343  struct device *__cil_tmp105 ;
37344  struct device  const  *__cil_tmp106 ;
37345  unsigned char *__cil_tmp107 ;
37346  unsigned char *__cil_tmp108 ;
37347  unsigned char __cil_tmp109 ;
37348  int __cil_tmp110 ;
37349  int __cil_tmp111 ;
37350  unsigned char *__cil_tmp112 ;
37351  unsigned char *__cil_tmp113 ;
37352  unsigned char __cil_tmp114 ;
37353  int __cil_tmp115 ;
37354  int __cil_tmp116 ;
37355  unsigned char *__cil_tmp117 ;
37356  unsigned char *__cil_tmp118 ;
37357  unsigned char __cil_tmp119 ;
37358  short __cil_tmp120 ;
37359  int __cil_tmp121 ;
37360  unsigned char *__cil_tmp122 ;
37361  unsigned char *__cil_tmp123 ;
37362  unsigned char __cil_tmp124 ;
37363  int __cil_tmp125 ;
37364  int __cil_tmp126 ;
37365  short __cil_tmp127 ;
37366  int __cil_tmp128 ;
37367  int __cil_tmp129 ;
37368  u16 __cil_tmp130 ;
37369  int __cil_tmp131 ;
37370  u16 __cil_tmp132 ;
37371  u16 __cil_tmp133 ;
37372  void (*__cil_tmp134)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * , struct sk_buff * ) ;
37373  unsigned long __cil_tmp135 ;
37374  unsigned long __cil_tmp136 ;
37375  struct device *__cil_tmp137 ;
37376  struct device  const  *__cil_tmp138 ;
37377  unsigned char *__cil_tmp139 ;
37378  unsigned char *__cil_tmp140 ;
37379  unsigned char __cil_tmp141 ;
37380  int __cil_tmp142 ;
37381  unsigned char *__cil_tmp143 ;
37382  unsigned char *__cil_tmp144 ;
37383  unsigned char __cil_tmp145 ;
37384  int __cil_tmp146 ;
37385  int __cil_tmp147 ;
37386  int __cil_tmp148 ;
37387  atomic_t *__cil_tmp149 ;
37388
37389  {
37390  {
37391#line 2181
37392  __mptr = (struct capi_ctr  const  *)ctr;
37393#line 2181
37394  iif = (struct gigaset_capi_ctr *)__mptr;
37395#line 2182
37396  __cil_tmp12 = ctr->driverdata;
37397#line 2182
37398  cs = (struct cardstate *)__cil_tmp12;
37399#line 2187
37400  tmp = skb_linearize(skb);
37401  }
37402#line 2187
37403  if (tmp < 0) {
37404    {
37405#line 2188
37406    __cil_tmp13 = cs->dev;
37407#line 2188
37408    __cil_tmp14 = (struct device  const  *)__cil_tmp13;
37409#line 2188
37410    dev_warn(__cil_tmp14, "%s: skb_linearize failed\n", "gigaset_send_message");
37411    }
37412#line 2189
37413    return ((u16 )4360U);
37414  } else {
37415
37416  }
37417  {
37418#line 2193
37419  __cil_tmp15 = skb->data;
37420#line 2193
37421  __cil_tmp16 = __cil_tmp15 + 3UL;
37422#line 2193
37423  __cil_tmp17 = *__cil_tmp16;
37424#line 2193
37425  __cil_tmp18 = (int )__cil_tmp17;
37426#line 2193
37427  __cil_tmp19 = __cil_tmp18 << 8;
37428#line 2193
37429  __cil_tmp20 = (short )__cil_tmp19;
37430#line 2193
37431  __cil_tmp21 = (int )__cil_tmp20;
37432#line 2193
37433  __cil_tmp22 = skb->data;
37434#line 2193
37435  __cil_tmp23 = __cil_tmp22 + 2UL;
37436#line 2193
37437  __cil_tmp24 = *__cil_tmp23;
37438#line 2193
37439  __cil_tmp25 = (short )__cil_tmp24;
37440#line 2193
37441  __cil_tmp26 = (int )__cil_tmp25;
37442#line 2193
37443  __cil_tmp27 = __cil_tmp26 | __cil_tmp21;
37444#line 2193
37445  __cil_tmp28 = (u16 )__cil_tmp27;
37446#line 2193
37447  __cil_tmp29 = (int )__cil_tmp28;
37448#line 2193
37449  __cil_tmp30 = (u16 )__cil_tmp29;
37450#line 2193
37451  ap = get_appl(iif, __cil_tmp30);
37452  }
37453  {
37454#line 2194
37455  __cil_tmp31 = (struct gigaset_capi_appl *)0;
37456#line 2194
37457  __cil_tmp32 = (unsigned long )__cil_tmp31;
37458#line 2194
37459  __cil_tmp33 = (unsigned long )ap;
37460#line 2194
37461  if (__cil_tmp33 == __cil_tmp32) {
37462    {
37463#line 2195
37464    __cil_tmp34 = cs->dev;
37465#line 2195
37466    __cil_tmp35 = (struct device  const  *)__cil_tmp34;
37467#line 2195
37468    __cil_tmp36 = skb->data;
37469#line 2195
37470    __cil_tmp37 = __cil_tmp36 + 3UL;
37471#line 2195
37472    __cil_tmp38 = *__cil_tmp37;
37473#line 2195
37474    __cil_tmp39 = (int )__cil_tmp38;
37475#line 2195
37476    __cil_tmp40 = __cil_tmp39 << 8;
37477#line 2195
37478    __cil_tmp41 = skb->data;
37479#line 2195
37480    __cil_tmp42 = __cil_tmp41 + 2UL;
37481#line 2195
37482    __cil_tmp43 = *__cil_tmp42;
37483#line 2195
37484    __cil_tmp44 = (int )__cil_tmp43;
37485#line 2195
37486    __cil_tmp45 = __cil_tmp44 | __cil_tmp40;
37487#line 2195
37488    dev_notice(__cil_tmp35, "%s: application %u not registered\n", "gigaset_send_message",
37489               __cil_tmp45);
37490    }
37491#line 2197
37492    return ((u16 )4353U);
37493  } else {
37494
37495  }
37496  }
37497  {
37498#line 2201
37499  __cil_tmp46 = skb->data;
37500#line 2201
37501  __cil_tmp47 = __cil_tmp46 + 5UL;
37502#line 2201
37503  __cil_tmp48 = *__cil_tmp47;
37504#line 2201
37505  __cil_tmp49 = (short )__cil_tmp48;
37506#line 2201
37507  __cil_tmp50 = (int )__cil_tmp49;
37508#line 2201
37509  __cil_tmp51 = skb->data;
37510#line 2201
37511  __cil_tmp52 = __cil_tmp51 + 4UL;
37512#line 2201
37513  __cil_tmp53 = *__cil_tmp52;
37514#line 2201
37515  __cil_tmp54 = (int )__cil_tmp53;
37516#line 2201
37517  __cil_tmp55 = __cil_tmp54 << 8;
37518#line 2201
37519  __cil_tmp56 = (short )__cil_tmp55;
37520#line 2201
37521  __cil_tmp57 = (int )__cil_tmp56;
37522#line 2201
37523  __cil_tmp58 = __cil_tmp57 | __cil_tmp50;
37524#line 2201
37525  __cil_tmp59 = (u16 const   )__cil_tmp58;
37526#line 2201
37527  __cil_tmp60 = (int )__cil_tmp59;
37528#line 2201
37529  __cil_tmp61 = (u16 const   )__cil_tmp60;
37530#line 2201
37531  __cil_tmp62 = (u16 )__cil_tmp61;
37532#line 2201
37533  handler = lookup_capi_send_handler(__cil_tmp62);
37534  }
37535  {
37536#line 2202
37537  __cil_tmp63 = (void (*)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * ,
37538                          struct sk_buff * ))0;
37539#line 2202
37540  __cil_tmp64 = (unsigned long )__cil_tmp63;
37541#line 2202
37542  __cil_tmp65 = (unsigned long )handler;
37543#line 2202
37544  if (__cil_tmp65 == __cil_tmp64) {
37545    {
37546#line 2204
37547    tmp___0 = __printk_ratelimit("gigaset_send_message");
37548    }
37549#line 2204
37550    if (tmp___0 != 0) {
37551      {
37552#line 2205
37553      __cil_tmp66 = cs->dev;
37554#line 2205
37555      __cil_tmp67 = (struct device  const  *)__cil_tmp66;
37556#line 2205
37557      __cil_tmp68 = skb->data;
37558#line 2205
37559      __cil_tmp69 = __cil_tmp68 + 5UL;
37560#line 2205
37561      __cil_tmp70 = *__cil_tmp69;
37562#line 2205
37563      __cil_tmp71 = (int )__cil_tmp70;
37564#line 2205
37565      __cil_tmp72 = skb->data;
37566#line 2205
37567      __cil_tmp73 = __cil_tmp72 + 4UL;
37568#line 2205
37569      __cil_tmp74 = *__cil_tmp73;
37570#line 2205
37571      __cil_tmp75 = (int )__cil_tmp74;
37572#line 2205
37573      __cil_tmp76 = __cil_tmp75 << 8;
37574#line 2205
37575      __cil_tmp77 = __cil_tmp76 | __cil_tmp71;
37576#line 2205
37577      dev_notice(__cil_tmp67, "%s: unsupported message %u\n", "gigaset_send_message",
37578                 __cil_tmp77);
37579      }
37580    } else {
37581
37582    }
37583#line 2207
37584    return ((u16 )4354U);
37585  } else {
37586
37587  }
37588  }
37589  {
37590#line 2211
37591  __cil_tmp78 = & iif->sendqlen;
37592#line 2211
37593  tmp___1 = atomic_add_return(1, __cil_tmp78);
37594  }
37595#line 2211
37596  if (tmp___1 > 1) {
37597    {
37598#line 2213
37599    __cil_tmp79 = & iif->sendqueue;
37600#line 2213
37601    skb_queue_tail(__cil_tmp79, skb);
37602    }
37603#line 2214
37604    return ((u16 )0U);
37605  } else {
37606
37607  }
37608  {
37609#line 2218
37610  (*handler)(iif, ap, skb);
37611  }
37612#line 2221
37613  goto ldv_35737;
37614  ldv_35738: 
37615  {
37616#line 2222
37617  __cil_tmp80 = & iif->sendqueue;
37618#line 2222
37619  skb = skb_dequeue(__cil_tmp80);
37620  }
37621  {
37622#line 2223
37623  __cil_tmp81 = (struct sk_buff *)0;
37624#line 2223
37625  __cil_tmp82 = (unsigned long )__cil_tmp81;
37626#line 2223
37627  __cil_tmp83 = (unsigned long )skb;
37628#line 2223
37629  if (__cil_tmp83 == __cil_tmp82) {
37630    {
37631#line 2225
37632    __cil_tmp84 = cs->dev;
37633#line 2225
37634    __cil_tmp85 = (struct device  const  *)__cil_tmp84;
37635#line 2225
37636    dev_err(__cil_tmp85, "%s: send queue empty\n", "gigaset_send_message");
37637    }
37638#line 2226
37639    goto ldv_35737;
37640  } else {
37641
37642  }
37643  }
37644  {
37645#line 2228
37646  __cil_tmp86 = skb->data;
37647#line 2228
37648  __cil_tmp87 = __cil_tmp86 + 3UL;
37649#line 2228
37650  __cil_tmp88 = *__cil_tmp87;
37651#line 2228
37652  __cil_tmp89 = (int )__cil_tmp88;
37653#line 2228
37654  __cil_tmp90 = __cil_tmp89 << 8;
37655#line 2228
37656  __cil_tmp91 = (short )__cil_tmp90;
37657#line 2228
37658  __cil_tmp92 = (int )__cil_tmp91;
37659#line 2228
37660  __cil_tmp93 = skb->data;
37661#line 2228
37662  __cil_tmp94 = __cil_tmp93 + 2UL;
37663#line 2228
37664  __cil_tmp95 = *__cil_tmp94;
37665#line 2228
37666  __cil_tmp96 = (short )__cil_tmp95;
37667#line 2228
37668  __cil_tmp97 = (int )__cil_tmp96;
37669#line 2228
37670  __cil_tmp98 = __cil_tmp97 | __cil_tmp92;
37671#line 2228
37672  __cil_tmp99 = (u16 )__cil_tmp98;
37673#line 2228
37674  __cil_tmp100 = (int )__cil_tmp99;
37675#line 2228
37676  __cil_tmp101 = (u16 )__cil_tmp100;
37677#line 2228
37678  ap = get_appl(iif, __cil_tmp101);
37679  }
37680  {
37681#line 2229
37682  __cil_tmp102 = (struct gigaset_capi_appl *)0;
37683#line 2229
37684  __cil_tmp103 = (unsigned long )__cil_tmp102;
37685#line 2229
37686  __cil_tmp104 = (unsigned long )ap;
37687#line 2229
37688  if (__cil_tmp104 == __cil_tmp103) {
37689    {
37690#line 2231
37691    __cil_tmp105 = cs->dev;
37692#line 2231
37693    __cil_tmp106 = (struct device  const  *)__cil_tmp105;
37694#line 2231
37695    __cil_tmp107 = skb->data;
37696#line 2231
37697    __cil_tmp108 = __cil_tmp107 + 3UL;
37698#line 2231
37699    __cil_tmp109 = *__cil_tmp108;
37700#line 2231
37701    __cil_tmp110 = (int )__cil_tmp109;
37702#line 2231
37703    __cil_tmp111 = __cil_tmp110 << 8;
37704#line 2231
37705    __cil_tmp112 = skb->data;
37706#line 2231
37707    __cil_tmp113 = __cil_tmp112 + 2UL;
37708#line 2231
37709    __cil_tmp114 = *__cil_tmp113;
37710#line 2231
37711    __cil_tmp115 = (int )__cil_tmp114;
37712#line 2231
37713    __cil_tmp116 = __cil_tmp115 | __cil_tmp111;
37714#line 2231
37715    dev_warn(__cil_tmp106, "%s: application %u vanished\n", "gigaset_send_message",
37716             __cil_tmp116);
37717    }
37718#line 2233
37719    goto ldv_35737;
37720  } else {
37721
37722  }
37723  }
37724  {
37725#line 2235
37726  __cil_tmp117 = skb->data;
37727#line 2235
37728  __cil_tmp118 = __cil_tmp117 + 5UL;
37729#line 2235
37730  __cil_tmp119 = *__cil_tmp118;
37731#line 2235
37732  __cil_tmp120 = (short )__cil_tmp119;
37733#line 2235
37734  __cil_tmp121 = (int )__cil_tmp120;
37735#line 2235
37736  __cil_tmp122 = skb->data;
37737#line 2235
37738  __cil_tmp123 = __cil_tmp122 + 4UL;
37739#line 2235
37740  __cil_tmp124 = *__cil_tmp123;
37741#line 2235
37742  __cil_tmp125 = (int )__cil_tmp124;
37743#line 2235
37744  __cil_tmp126 = __cil_tmp125 << 8;
37745#line 2235
37746  __cil_tmp127 = (short )__cil_tmp126;
37747#line 2235
37748  __cil_tmp128 = (int )__cil_tmp127;
37749#line 2235
37750  __cil_tmp129 = __cil_tmp128 | __cil_tmp121;
37751#line 2235
37752  __cil_tmp130 = (u16 const   )__cil_tmp129;
37753#line 2235
37754  __cil_tmp131 = (int )__cil_tmp130;
37755#line 2235
37756  __cil_tmp132 = (u16 const   )__cil_tmp131;
37757#line 2235
37758  __cil_tmp133 = (u16 )__cil_tmp132;
37759#line 2235
37760  handler = lookup_capi_send_handler(__cil_tmp133);
37761  }
37762  {
37763#line 2236
37764  __cil_tmp134 = (void (*)(struct gigaset_capi_ctr * , struct gigaset_capi_appl * ,
37765                           struct sk_buff * ))0;
37766#line 2236
37767  __cil_tmp135 = (unsigned long )__cil_tmp134;
37768#line 2236
37769  __cil_tmp136 = (unsigned long )handler;
37770#line 2236
37771  if (__cil_tmp136 == __cil_tmp135) {
37772    {
37773#line 2238
37774    __cil_tmp137 = cs->dev;
37775#line 2238
37776    __cil_tmp138 = (struct device  const  *)__cil_tmp137;
37777#line 2238
37778    __cil_tmp139 = skb->data;
37779#line 2238
37780    __cil_tmp140 = __cil_tmp139 + 5UL;
37781#line 2238
37782    __cil_tmp141 = *__cil_tmp140;
37783#line 2238
37784    __cil_tmp142 = (int )__cil_tmp141;
37785#line 2238
37786    __cil_tmp143 = skb->data;
37787#line 2238
37788    __cil_tmp144 = __cil_tmp143 + 4UL;
37789#line 2238
37790    __cil_tmp145 = *__cil_tmp144;
37791#line 2238
37792    __cil_tmp146 = (int )__cil_tmp145;
37793#line 2238
37794    __cil_tmp147 = __cil_tmp146 << 8;
37795#line 2238
37796    __cil_tmp148 = __cil_tmp147 | __cil_tmp142;
37797#line 2238
37798    dev_err(__cil_tmp138, "%s: handler %x vanished\n", "gigaset_send_message", __cil_tmp148);
37799    }
37800#line 2240
37801    goto ldv_35737;
37802  } else {
37803
37804  }
37805  }
37806  {
37807#line 2242
37808  (*handler)(iif, ap, skb);
37809  }
37810  ldv_35737: 
37811  {
37812#line 2221
37813  __cil_tmp149 = & iif->sendqlen;
37814#line 2221
37815  tmp___2 = atomic_sub_return(1, __cil_tmp149);
37816  }
37817#line 2221
37818  if (tmp___2 > 0) {
37819#line 2222
37820    goto ldv_35738;
37821  } else {
37822#line 2224
37823    goto ldv_35739;
37824  }
37825  ldv_35739: ;
37826#line 2245
37827  return ((u16 )0U);
37828}
37829}
37830#line 2254 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37831static char *gigaset_procinfo(struct capi_ctr *ctr ) 
37832{ char (*__cil_tmp2)[32U] ;
37833
37834  {
37835  {
37836#line 2256
37837  __cil_tmp2 = & ctr->name;
37838#line 2256
37839  return ((char *)__cil_tmp2);
37840  }
37841}
37842}
37843#line 2259 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
37844static int gigaset_proc_show(struct seq_file *m , void *v ) 
37845{ struct capi_ctr *ctr ;
37846  struct cardstate *cs ;
37847  char *s ;
37848  int i ;
37849  char const   *tmp ;
37850  char const   *tmp___0 ;
37851  char *tmp___1 ;
37852  char *tmp___2 ;
37853  char *tmp___3 ;
37854  char *tmp___4 ;
37855  char *tmp___5 ;
37856  void *__cil_tmp14 ;
37857  void *__cil_tmp15 ;
37858  char *__cil_tmp16 ;
37859  char (*__cil_tmp17)[32U] ;
37860  char *__cil_tmp18 ;
37861  struct device *__cil_tmp19 ;
37862  struct device  const  *__cil_tmp20 ;
37863  struct device *__cil_tmp21 ;
37864  struct device  const  *__cil_tmp22 ;
37865  char *__cil_tmp23 ;
37866  char *__cil_tmp24 ;
37867  int __cil_tmp25 ;
37868  int __cil_tmp26 ;
37869  char *__cil_tmp27 ;
37870  unsigned int __cil_tmp28 ;
37871  unsigned int __cil_tmp29 ;
37872  unsigned int __cil_tmp30 ;
37873  unsigned int __cil_tmp31 ;
37874  char *__cil_tmp32 ;
37875  int __cil_tmp33 ;
37876  int __cil_tmp34 ;
37877  char *__cil_tmp35 ;
37878  int __cil_tmp36 ;
37879  int __cil_tmp37 ;
37880  int __cil_tmp38 ;
37881  int __cil_tmp39 ;
37882  char *__cil_tmp40 ;
37883  int __cil_tmp41 ;
37884  int __cil_tmp42 ;
37885  int __cil_tmp43 ;
37886  int __cil_tmp44 ;
37887  int __cil_tmp45 ;
37888  int __cil_tmp46 ;
37889  char *__cil_tmp47 ;
37890  unsigned int __cil_tmp48 ;
37891  char *__cil_tmp49 ;
37892  unsigned int __cil_tmp50 ;
37893  char *__cil_tmp51 ;
37894  unsigned int __cil_tmp52 ;
37895  char *__cil_tmp53 ;
37896  unsigned int __cil_tmp54 ;
37897  char *__cil_tmp55 ;
37898  char *__cil_tmp56 ;
37899  unsigned long __cil_tmp57 ;
37900  struct bc_state *__cil_tmp58 ;
37901  struct bc_state *__cil_tmp59 ;
37902  int __cil_tmp60 ;
37903  char *__cil_tmp61 ;
37904  unsigned long __cil_tmp62 ;
37905  struct bc_state *__cil_tmp63 ;
37906  struct bc_state *__cil_tmp64 ;
37907  int __cil_tmp65 ;
37908  char *__cil_tmp66 ;
37909  unsigned long __cil_tmp67 ;
37910  struct bc_state *__cil_tmp68 ;
37911  struct bc_state *__cil_tmp69 ;
37912  int __cil_tmp70 ;
37913  char *__cil_tmp71 ;
37914  unsigned long __cil_tmp72 ;
37915  struct bc_state *__cil_tmp73 ;
37916  struct bc_state *__cil_tmp74 ;
37917  unsigned int __cil_tmp75 ;
37918  unsigned long __cil_tmp76 ;
37919  struct bc_state *__cil_tmp77 ;
37920  struct bc_state *__cil_tmp78 ;
37921  unsigned int __cil_tmp79 ;
37922  int __cil_tmp80 ;
37923  unsigned long __cil_tmp81 ;
37924  struct bc_state *__cil_tmp82 ;
37925  struct bc_state *__cil_tmp83 ;
37926  unsigned int __cil_tmp84 ;
37927  int __cil_tmp85 ;
37928  unsigned long __cil_tmp86 ;
37929  struct bc_state *__cil_tmp87 ;
37930  struct bc_state *__cil_tmp88 ;
37931  unsigned int __cil_tmp89 ;
37932  int __cil_tmp90 ;
37933  char *__cil_tmp91 ;
37934  int __cil_tmp92 ;
37935
37936  {
37937  {
37938#line 2261
37939  __cil_tmp14 = m->private;
37940#line 2261
37941  ctr = (struct capi_ctr *)__cil_tmp14;
37942#line 2262
37943  __cil_tmp15 = ctr->driverdata;
37944#line 2262
37945  cs = (struct cardstate *)__cil_tmp15;
37946#line 2266
37947  __cil_tmp16 = (char *)"name";
37948#line 2266
37949  __cil_tmp17 = & ctr->name;
37950#line 2266
37951  __cil_tmp18 = (char *)__cil_tmp17;
37952#line 2266
37953  seq_printf(m, "%-16s %s\n", __cil_tmp16, __cil_tmp18);
37954#line 2267
37955  __cil_tmp19 = cs->dev;
37956#line 2267
37957  __cil_tmp20 = (struct device  const  *)__cil_tmp19;
37958#line 2267
37959  tmp = dev_name(__cil_tmp20);
37960#line 2267
37961  __cil_tmp21 = cs->dev;
37962#line 2267
37963  __cil_tmp22 = (struct device  const  *)__cil_tmp21;
37964#line 2267
37965  tmp___0 = dev_driver_string(__cil_tmp22);
37966#line 2267
37967  __cil_tmp23 = (char *)"dev";
37968#line 2267
37969  seq_printf(m, "%-16s %s %s\n", __cil_tmp23, tmp___0, tmp);
37970#line 2269
37971  __cil_tmp24 = (char *)"id";
37972#line 2269
37973  __cil_tmp25 = cs->myid;
37974#line 2269
37975  seq_printf(m, "%-16s %d\n", __cil_tmp24, __cil_tmp25);
37976  }
37977  {
37978#line 2270
37979  __cil_tmp26 = cs->gotfwver;
37980#line 2270
37981  if (__cil_tmp26 != 0) {
37982    {
37983#line 2271
37984    __cil_tmp27 = (char *)"firmware";
37985#line 2271
37986    __cil_tmp28 = cs->fwver[0];
37987#line 2271
37988    __cil_tmp29 = cs->fwver[1];
37989#line 2271
37990    __cil_tmp30 = cs->fwver[2];
37991#line 2271
37992    __cil_tmp31 = cs->fwver[3];
37993#line 2271
37994    seq_printf(m, "%-16s %d.%d.%d.%d\n", __cil_tmp27, __cil_tmp28, __cil_tmp29, __cil_tmp30,
37995               __cil_tmp31);
37996    }
37997  } else {
37998
37999  }
38000  }
38001  {
38002#line 2273
38003  __cil_tmp32 = (char *)"channels";
38004#line 2273
38005  __cil_tmp33 = cs->channels;
38006#line 2273
38007  seq_printf(m, "%-16s %d\n", __cil_tmp32, __cil_tmp33);
38008  }
38009  {
38010#line 2274
38011  __cil_tmp34 = cs->onechannel;
38012#line 2274
38013  if (__cil_tmp34 != 0) {
38014#line 2274
38015    tmp___1 = (char *)"yes";
38016  } else {
38017#line 2274
38018    tmp___1 = (char *)"no";
38019  }
38020  }
38021  {
38022#line 2274
38023  __cil_tmp35 = (char *)"onechannel";
38024#line 2274
38025  seq_printf(m, "%-16s %s\n", __cil_tmp35, tmp___1);
38026  }
38027  {
38028#line 2277
38029  __cil_tmp36 = cs->mode;
38030#line 2277
38031  if (__cil_tmp36 == 0) {
38032#line 2277
38033    goto case_0;
38034  } else {
38035    {
38036#line 2280
38037    __cil_tmp37 = cs->mode;
38038#line 2280
38039    if (__cil_tmp37 == 1) {
38040#line 2280
38041      goto case_1;
38042    } else {
38043      {
38044#line 2283
38045      __cil_tmp38 = cs->mode;
38046#line 2283
38047      if (__cil_tmp38 == 2) {
38048#line 2283
38049        goto case_2;
38050      } else {
38051        {
38052#line 2286
38053        __cil_tmp39 = cs->mode;
38054#line 2286
38055        if (__cil_tmp39 == 3) {
38056#line 2286
38057          goto case_3;
38058        } else {
38059#line 2289
38060          goto switch_default;
38061#line 2276
38062          if (0) {
38063            case_0: 
38064#line 2278
38065            s = (char *)"unknown";
38066#line 2279
38067            goto ldv_35752;
38068            case_1: 
38069#line 2281
38070            s = (char *)"config";
38071#line 2282
38072            goto ldv_35752;
38073            case_2: 
38074#line 2284
38075            s = (char *)"Unimodem";
38076#line 2285
38077            goto ldv_35752;
38078            case_3: 
38079#line 2287
38080            s = (char *)"CID";
38081#line 2288
38082            goto ldv_35752;
38083            switch_default: 
38084#line 2290
38085            s = (char *)"??";
38086          } else {
38087
38088          }
38089        }
38090        }
38091      }
38092      }
38093    }
38094    }
38095  }
38096  }
38097  ldv_35752: 
38098  {
38099#line 2292
38100  __cil_tmp40 = (char *)"mode";
38101#line 2292
38102  seq_printf(m, "%-16s %s\n", __cil_tmp40, s);
38103  }
38104  {
38105#line 2295
38106  __cil_tmp41 = cs->mstate;
38107#line 2295
38108  if (__cil_tmp41 == 0) {
38109#line 2295
38110    goto case_0___0;
38111  } else {
38112    {
38113#line 2298
38114    __cil_tmp42 = cs->mstate;
38115#line 2298
38116    if (__cil_tmp42 == 1) {
38117#line 2298
38118      goto case_1___0;
38119    } else {
38120      {
38121#line 2301
38122      __cil_tmp43 = cs->mstate;
38123#line 2301
38124      if (__cil_tmp43 == 2) {
38125#line 2301
38126        goto case_2___0;
38127      } else {
38128        {
38129#line 2304
38130        __cil_tmp44 = cs->mstate;
38131#line 2304
38132        if (__cil_tmp44 == 3) {
38133#line 2304
38134          goto case_3___0;
38135        } else {
38136          {
38137#line 2307
38138          __cil_tmp45 = cs->mstate;
38139#line 2307
38140          if (__cil_tmp45 == 4) {
38141#line 2307
38142            goto case_4;
38143          } else {
38144            {
38145#line 2310
38146            __cil_tmp46 = cs->mstate;
38147#line 2310
38148            if (__cil_tmp46 == 5) {
38149#line 2310
38150              goto case_5;
38151            } else {
38152#line 2313
38153              goto switch_default___0;
38154#line 2294
38155              if (0) {
38156                case_0___0: 
38157#line 2296
38158                s = (char *)"uninitialized";
38159#line 2297
38160                goto ldv_35758;
38161                case_1___0: 
38162#line 2299
38163                s = (char *)"init";
38164#line 2300
38165                goto ldv_35758;
38166                case_2___0: 
38167#line 2302
38168                s = (char *)"locked";
38169#line 2303
38170                goto ldv_35758;
38171                case_3___0: 
38172#line 2305
38173                s = (char *)"shutdown";
38174#line 2306
38175                goto ldv_35758;
38176                case_4: 
38177#line 2308
38178                s = (char *)"recover";
38179#line 2309
38180                goto ldv_35758;
38181                case_5: 
38182#line 2311
38183                s = (char *)"ready";
38184#line 2312
38185                goto ldv_35758;
38186                switch_default___0: 
38187#line 2314
38188                s = (char *)"??";
38189              } else {
38190
38191              }
38192            }
38193            }
38194          }
38195          }
38196        }
38197        }
38198      }
38199      }
38200    }
38201    }
38202  }
38203  }
38204  ldv_35758: 
38205  {
38206#line 2316
38207  __cil_tmp47 = (char *)"mstate";
38208#line 2316
38209  seq_printf(m, "%-16s %s\n", __cil_tmp47, s);
38210  }
38211  {
38212#line 2318
38213  __cil_tmp48 = cs->running;
38214#line 2318
38215  if (__cil_tmp48 != 0U) {
38216#line 2318
38217    tmp___2 = (char *)"yes";
38218  } else {
38219#line 2318
38220    tmp___2 = (char *)"no";
38221  }
38222  }
38223  {
38224#line 2318
38225  __cil_tmp49 = (char *)"running";
38226#line 2318
38227  seq_printf(m, "%-16s %s\n", __cil_tmp49, tmp___2);
38228  }
38229  {
38230#line 2319
38231  __cil_tmp50 = cs->connected;
38232#line 2319
38233  if (__cil_tmp50 != 0U) {
38234#line 2319
38235    tmp___3 = (char *)"yes";
38236  } else {
38237#line 2319
38238    tmp___3 = (char *)"no";
38239  }
38240  }
38241  {
38242#line 2319
38243  __cil_tmp51 = (char *)"connected";
38244#line 2319
38245  seq_printf(m, "%-16s %s\n", __cil_tmp51, tmp___3);
38246  }
38247  {
38248#line 2320
38249  __cil_tmp52 = cs->isdn_up;
38250#line 2320
38251  if (__cil_tmp52 != 0U) {
38252#line 2320
38253    tmp___4 = (char *)"yes";
38254  } else {
38255#line 2320
38256    tmp___4 = (char *)"no";
38257  }
38258  }
38259  {
38260#line 2320
38261  __cil_tmp53 = (char *)"isdn_up";
38262#line 2320
38263  seq_printf(m, "%-16s %s\n", __cil_tmp53, tmp___4);
38264  }
38265  {
38266#line 2321
38267  __cil_tmp54 = cs->cidmode;
38268#line 2321
38269  if (__cil_tmp54 != 0U) {
38270#line 2321
38271    tmp___5 = (char *)"yes";
38272  } else {
38273#line 2321
38274    tmp___5 = (char *)"no";
38275  }
38276  }
38277  {
38278#line 2321
38279  __cil_tmp55 = (char *)"cidmode";
38280#line 2321
38281  seq_printf(m, "%-16s %s\n", __cil_tmp55, tmp___5);
38282#line 2323
38283  i = 0;
38284  }
38285#line 2323
38286  goto ldv_35771;
38287  ldv_35770: 
38288  {
38289#line 2324
38290  __cil_tmp56 = (char *)"corrupted";
38291#line 2324
38292  __cil_tmp57 = (unsigned long )i;
38293#line 2324
38294  __cil_tmp58 = cs->bcs;
38295#line 2324
38296  __cil_tmp59 = __cil_tmp58 + __cil_tmp57;
38297#line 2324
38298  __cil_tmp60 = __cil_tmp59->corrupted;
38299#line 2324
38300  seq_printf(m, "[%d]%-13s %d\n", i, __cil_tmp56, __cil_tmp60);
38301#line 2326
38302  __cil_tmp61 = (char *)"trans_down";
38303#line 2326
38304  __cil_tmp62 = (unsigned long )i;
38305#line 2326
38306  __cil_tmp63 = cs->bcs;
38307#line 2326
38308  __cil_tmp64 = __cil_tmp63 + __cil_tmp62;
38309#line 2326
38310  __cil_tmp65 = __cil_tmp64->trans_down;
38311#line 2326
38312  seq_printf(m, "[%d]%-13s %d\n", i, __cil_tmp61, __cil_tmp65);
38313#line 2328
38314  __cil_tmp66 = (char *)"trans_up";
38315#line 2328
38316  __cil_tmp67 = (unsigned long )i;
38317#line 2328
38318  __cil_tmp68 = cs->bcs;
38319#line 2328
38320  __cil_tmp69 = __cil_tmp68 + __cil_tmp67;
38321#line 2328
38322  __cil_tmp70 = __cil_tmp69->trans_up;
38323#line 2328
38324  seq_printf(m, "[%d]%-13s %d\n", i, __cil_tmp66, __cil_tmp70);
38325#line 2330
38326  __cil_tmp71 = (char *)"chstate";
38327#line 2330
38328  __cil_tmp72 = (unsigned long )i;
38329#line 2330
38330  __cil_tmp73 = cs->bcs;
38331#line 2330
38332  __cil_tmp74 = __cil_tmp73 + __cil_tmp72;
38333#line 2330
38334  __cil_tmp75 = __cil_tmp74->chstate;
38335#line 2330
38336  seq_printf(m, "[%d]%-13s %d\n", i, __cil_tmp71, __cil_tmp75);
38337  }
38338  {
38339#line 2333
38340  __cil_tmp76 = (unsigned long )i;
38341#line 2333
38342  __cil_tmp77 = cs->bcs;
38343#line 2333
38344  __cil_tmp78 = __cil_tmp77 + __cil_tmp76;
38345#line 2333
38346  __cil_tmp79 = __cil_tmp78->proto2;
38347#line 2333
38348  __cil_tmp80 = (int )__cil_tmp79;
38349#line 2333
38350  if (__cil_tmp80 == 0) {
38351#line 2333
38352    goto case_0___1;
38353  } else {
38354    {
38355#line 2336
38356    __cil_tmp81 = (unsigned long )i;
38357#line 2336
38358    __cil_tmp82 = cs->bcs;
38359#line 2336
38360    __cil_tmp83 = __cil_tmp82 + __cil_tmp81;
38361#line 2336
38362    __cil_tmp84 = __cil_tmp83->proto2;
38363#line 2336
38364    __cil_tmp85 = (int )__cil_tmp84;
38365#line 2336
38366    if (__cil_tmp85 == 1) {
38367#line 2336
38368      goto case_1___1;
38369    } else {
38370      {
38371#line 2339
38372      __cil_tmp86 = (unsigned long )i;
38373#line 2339
38374      __cil_tmp87 = cs->bcs;
38375#line 2339
38376      __cil_tmp88 = __cil_tmp87 + __cil_tmp86;
38377#line 2339
38378      __cil_tmp89 = __cil_tmp88->proto2;
38379#line 2339
38380      __cil_tmp90 = (int )__cil_tmp89;
38381#line 2339
38382      if (__cil_tmp90 == 2) {
38383#line 2339
38384        goto case_2___1;
38385      } else {
38386#line 2342
38387        goto switch_default___1;
38388#line 2332
38389        if (0) {
38390          case_0___1: 
38391#line 2334
38392          s = (char *)"bitsync";
38393#line 2335
38394          goto ldv_35766;
38395          case_1___1: 
38396#line 2337
38397          s = (char *)"HDLC";
38398#line 2338
38399          goto ldv_35766;
38400          case_2___1: 
38401#line 2340
38402          s = (char *)"voice";
38403#line 2341
38404          goto ldv_35766;
38405          switch_default___1: 
38406#line 2343
38407          s = (char *)"??";
38408        } else {
38409
38410        }
38411      }
38412      }
38413    }
38414    }
38415  }
38416  }
38417  ldv_35766: 
38418  {
38419#line 2345
38420  __cil_tmp91 = (char *)"proto2";
38421#line 2345
38422  seq_printf(m, "[%d]%-13s %s\n", i, __cil_tmp91, s);
38423#line 2323
38424  i = i + 1;
38425  }
38426  ldv_35771: ;
38427  {
38428#line 2323
38429  __cil_tmp92 = cs->channels;
38430#line 2323
38431  if (__cil_tmp92 > i) {
38432#line 2324
38433    goto ldv_35770;
38434  } else {
38435#line 2326
38436    goto ldv_35772;
38437  }
38438  }
38439  ldv_35772: ;
38440#line 2347
38441  return (0);
38442}
38443}
38444#line 2350 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38445static int gigaset_proc_open(struct inode *inode , struct file *file ) 
38446{ struct proc_dir_entry *tmp ;
38447  int tmp___0 ;
38448  struct inode  const  *__cil_tmp5 ;
38449  void *__cil_tmp6 ;
38450
38451  {
38452  {
38453#line 2352
38454  __cil_tmp5 = (struct inode  const  *)inode;
38455#line 2352
38456  tmp = PDE(__cil_tmp5);
38457#line 2352
38458  __cil_tmp6 = tmp->data;
38459#line 2352
38460  tmp___0 = single_open(file, & gigaset_proc_show, __cil_tmp6);
38461  }
38462#line 2352
38463  return (tmp___0);
38464}
38465}
38466#line 2355 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38467static struct file_operations  const  gigaset_proc_fops  = 
38468#line 2355
38469     {& __this_module, & seq_lseek, & seq_read, (ssize_t (*)(struct file * , char const   * ,
38470                                                           size_t  , loff_t * ))0,
38471    (ssize_t (*)(struct kiocb * , struct iovec  const  * , unsigned long  , loff_t  ))0,
38472    (ssize_t (*)(struct kiocb * , struct iovec  const  * , unsigned long  , loff_t  ))0,
38473    (int (*)(struct file * , void * , int (*)(void * , char const   * , int  , loff_t  ,
38474                                              u64  , unsigned int  ) ))0, (unsigned int (*)(struct file * ,
38475                                                                                            struct poll_table_struct * ))0,
38476    (long (*)(struct file * , unsigned int  , unsigned long  ))0, (long (*)(struct file * ,
38477                                                                            unsigned int  ,
38478                                                                            unsigned long  ))0,
38479    (int (*)(struct file * , struct vm_area_struct * ))0, & gigaset_proc_open, (int (*)(struct file * ,
38480                                                                                        fl_owner_t  ))0,
38481    & single_release, (int (*)(struct file * , int  ))0, (int (*)(struct kiocb * ,
38482                                                                  int  ))0, (int (*)(int  ,
38483                                                                                     struct file * ,
38484                                                                                     int  ))0,
38485    (int (*)(struct file * , int  , struct file_lock * ))0, (ssize_t (*)(struct file * ,
38486                                                                         struct page * ,
38487                                                                         int  , size_t  ,
38488                                                                         loff_t * ,
38489                                                                         int  ))0,
38490    (unsigned long (*)(struct file * , unsigned long  , unsigned long  , unsigned long  ,
38491                       unsigned long  ))0, (int (*)(int  ))0, (int (*)(struct file * ,
38492                                                                       int  , struct file_lock * ))0,
38493    (ssize_t (*)(struct pipe_inode_info * , struct file * , loff_t * , size_t  , unsigned int  ))0,
38494    (ssize_t (*)(struct file * , loff_t * , struct pipe_inode_info * , size_t  , unsigned int  ))0,
38495    (int (*)(struct file * , long  , struct file_lock ** ))0, (long (*)(struct file * ,
38496                                                                        int  , loff_t  ,
38497                                                                        loff_t  ))0};
38498#line 2370 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38499int gigaset_isdn_regdev(struct cardstate *cs , char const   *isdnid ) 
38500{ struct gigaset_capi_ctr *iif ;
38501  int rc ;
38502  void *tmp ;
38503  struct gigaset_capi_ctr *__cil_tmp6 ;
38504  unsigned long __cil_tmp7 ;
38505  unsigned long __cil_tmp8 ;
38506  char (*__cil_tmp9)[32U] ;
38507  char *__cil_tmp10 ;
38508  struct list_head *__cil_tmp11 ;
38509  struct sk_buff_head *__cil_tmp12 ;
38510  atomic_t *__cil_tmp13 ;
38511  struct capi_ctr *__cil_tmp14 ;
38512  void const   *__cil_tmp15 ;
38513
38514  {
38515  {
38516#line 2375
38517  tmp = kmalloc(1712UL, 208U);
38518#line 2375
38519  iif = (struct gigaset_capi_ctr *)tmp;
38520  }
38521  {
38522#line 2376
38523  __cil_tmp6 = (struct gigaset_capi_ctr *)0;
38524#line 2376
38525  __cil_tmp7 = (unsigned long )__cil_tmp6;
38526#line 2376
38527  __cil_tmp8 = (unsigned long )iif;
38528#line 2376
38529  if (__cil_tmp8 == __cil_tmp7) {
38530    {
38531#line 2377
38532    printk("<3>gigaset: %s: out of memory\n", "gigaset_isdn_regdev");
38533    }
38534#line 2378
38535    return (0);
38536  } else {
38537
38538  }
38539  }
38540  {
38541#line 2382
38542  iif->ctr.owner = & __this_module;
38543#line 2383
38544  iif->ctr.driverdata = (void *)cs;
38545#line 2384
38546  __cil_tmp9 = & iif->ctr.name;
38547#line 2384
38548  __cil_tmp10 = (char *)__cil_tmp9;
38549#line 2384
38550  strncpy(__cil_tmp10, isdnid, 32UL);
38551#line 2385
38552  iif->ctr.driver_name = (char *)"gigaset";
38553#line 2386
38554  iif->ctr.load_firmware = (int (*)(struct capi_ctr * , capiloaddata * ))0;
38555#line 2387
38556  iif->ctr.reset_ctr = (void (*)(struct capi_ctr * ))0;
38557#line 2388
38558  iif->ctr.register_appl = & gigaset_register_appl;
38559#line 2389
38560  iif->ctr.release_appl = & gigaset_release_appl;
38561#line 2390
38562  iif->ctr.send_message = & gigaset_send_message;
38563#line 2391
38564  iif->ctr.procinfo = & gigaset_procinfo;
38565#line 2392
38566  iif->ctr.proc_fops = & gigaset_proc_fops;
38567#line 2393
38568  __cil_tmp11 = & iif->appls;
38569#line 2393
38570  INIT_LIST_HEAD(__cil_tmp11);
38571#line 2394
38572  __cil_tmp12 = & iif->sendqueue;
38573#line 2394
38574  skb_queue_head_init(__cil_tmp12);
38575#line 2395
38576  __cil_tmp13 = & iif->sendqlen;
38577#line 2395
38578  atomic_set(__cil_tmp13, 0);
38579#line 2398
38580  __cil_tmp14 = & iif->ctr;
38581#line 2398
38582  rc = attach_capi_ctr(__cil_tmp14);
38583  }
38584#line 2399
38585  if (rc != 0) {
38586    {
38587#line 2400
38588    printk("<3>gigaset: attach_capi_ctr failed (%d)\n", rc);
38589#line 2401
38590    __cil_tmp15 = (void const   *)iif;
38591#line 2401
38592    kfree(__cil_tmp15);
38593    }
38594#line 2402
38595    return (0);
38596  } else {
38597
38598  }
38599#line 2405
38600  cs->iif = (void *)iif;
38601#line 2406
38602  cs->hw_hdr_len = (unsigned short)22;
38603#line 2407
38604  return (1);
38605}
38606}
38607#line 2414 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38608void gigaset_isdn_unregdev(struct cardstate *cs ) 
38609{ struct gigaset_capi_ctr *iif ;
38610  void *__cil_tmp3 ;
38611  struct capi_ctr *__cil_tmp4 ;
38612  void const   *__cil_tmp5 ;
38613
38614  {
38615  {
38616#line 2416
38617  __cil_tmp3 = cs->iif;
38618#line 2416
38619  iif = (struct gigaset_capi_ctr *)__cil_tmp3;
38620#line 2418
38621  __cil_tmp4 = & iif->ctr;
38622#line 2418
38623  detach_capi_ctr(__cil_tmp4);
38624#line 2419
38625  __cil_tmp5 = (void const   *)iif;
38626#line 2419
38627  kfree(__cil_tmp5);
38628#line 2420
38629  cs->iif = (void *)0;
38630  }
38631#line 2421
38632  return;
38633}
38634}
38635#line 2423 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38636static struct capi_driver capi_driver_gigaset  =    {{(char )'g', (char )'i', (char )'g', (char )'a', (char )'s', (char )'e', (char )'t',
38637     (char )'\000'}, {(char )'1', (char )'.', (char )'0', (char )'\000'}, (int (*)(struct capi_driver * ,
38638                                                                                   capicardparams * ))0,
38639    {(struct list_head *)0, (struct list_head *)0}};
38640#line 2431 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38641void gigaset_isdn_regdrv(void) 
38642{ 
38643
38644  {
38645  {
38646#line 2433
38647  printk("<6>gigaset: Kernel CAPI interface\n");
38648#line 2434
38649  register_capi_driver(& capi_driver_gigaset);
38650  }
38651#line 2435
38652  return;
38653}
38654}
38655#line 2440 "/anthill/stuff/tacas-comp/work/current--X--drivers/isdn/gigaset/gigaset.ko--X--bulklinux-3.0.1--X--08_1/linux-3.0.1/csd_deg_dscv/20/dscv_tempdir/dscv/ri/08_1/drivers/isdn/gigaset/capi.c.p"
38656void gigaset_isdn_unregdrv(void) 
38657{ 
38658
38659  {
38660  {
38661#line 2442
38662  unregister_capi_driver(& capi_driver_gigaset);
38663  }
38664#line 2443
38665  return;
38666}
38667}