Showing error 1676

User: Jiri Slaby
Error type: Reachable Error Location
Error type description: A specified error location is reachable in some program path
File location: product-lines/email_spec0_product33_unsafe.cil.c
Line in file: 2016
Project: SV-COMP 2013
Project version: 2.6.28
Tools: Manual Work
Entered: 2013-01-17 16:57:54 UTC


Source:

   1extern int __VERIFIER_nondet_int(void);
   2/* Generated by CIL v. 1.3.7 */
   3/* print_CIL_Input is true */
   4
   5#line 2 "libacc.c"
   6struct JoinPoint {
   7   void **(*fp)(struct JoinPoint * ) ;
   8   void **args ;
   9   int argsCount ;
  10   char const   **argsType ;
  11   void *(*arg)(int  , struct JoinPoint * ) ;
  12   char const   *(*argType)(int  , struct JoinPoint * ) ;
  13   void **retValue ;
  14   char const   *retType ;
  15   char const   *funcName ;
  16   char const   *targetName ;
  17   char const   *fileName ;
  18   char const   *kind ;
  19   void *excep_return ;
  20};
  21#line 18 "libacc.c"
  22struct __UTAC__CFLOW_FUNC {
  23   int (*func)(int  , int  ) ;
  24   int val ;
  25   struct __UTAC__CFLOW_FUNC *next ;
  26};
  27#line 18 "libacc.c"
  28struct __UTAC__EXCEPTION {
  29   void *jumpbuf ;
  30   unsigned long long prtValue ;
  31   int pops ;
  32   struct __UTAC__CFLOW_FUNC *cflowfuncs ;
  33};
  34#line 211 "/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h"
  35typedef unsigned long size_t;
  36#line 76 "libacc.c"
  37struct __ACC__ERR {
  38   void *v ;
  39   struct __ACC__ERR *next ;
  40};
  41#line 1 "ClientLib.o"
  42#pragma merger(0,"ClientLib.i","")
  43#line 4 "ClientLib.h"
  44int initClient(void) ;
  45#line 6
  46char *getClientName(int handle ) ;
  47#line 8
  48void setClientName(int handle , char *value ) ;
  49#line 10
  50int getClientOutbuffer(int handle ) ;
  51#line 12
  52void setClientOutbuffer(int handle , int value ) ;
  53#line 14
  54int getClientAddressBookSize(int handle ) ;
  55#line 16
  56void setClientAddressBookSize(int handle , int value ) ;
  57#line 18
  58int createClientAddressBookEntry(int handle ) ;
  59#line 20
  60int getClientAddressBookAlias(int handle , int index ) ;
  61#line 22
  62void setClientAddressBookAlias(int handle , int index , int value ) ;
  63#line 24
  64int getClientAddressBookAddress(int handle , int index ) ;
  65#line 26
  66void setClientAddressBookAddress(int handle , int index , int value ) ;
  67#line 29
  68int getClientAutoResponse(int handle ) ;
  69#line 31
  70void setClientAutoResponse(int handle , int value ) ;
  71#line 33
  72int getClientPrivateKey(int handle ) ;
  73#line 35
  74void setClientPrivateKey(int handle , int value ) ;
  75#line 37
  76int getClientKeyringSize(int handle ) ;
  77#line 39
  78int createClientKeyringEntry(int handle ) ;
  79#line 41
  80int getClientKeyringUser(int handle , int index ) ;
  81#line 43
  82void setClientKeyringUser(int handle , int index , int value ) ;
  83#line 45
  84int getClientKeyringPublicKey(int handle , int index ) ;
  85#line 47
  86void setClientKeyringPublicKey(int handle , int index , int value ) ;
  87#line 49
  88int getClientForwardReceiver(int handle ) ;
  89#line 51
  90void setClientForwardReceiver(int handle , int value ) ;
  91#line 53
  92int getClientId(int handle ) ;
  93#line 55
  94void setClientId(int handle , int value ) ;
  95#line 57
  96int findPublicKey(int handle , int userid ) ;
  97#line 59
  98int findClientAddressBookAlias(int handle , int userid ) ;
  99#line 5 "ClientLib.c"
 100int __ste_Client_counter  =    0;
 101#line 7 "ClientLib.c"
 102int initClient(void) 
 103{ int retValue_acc ;
 104
 105  {
 106#line 12 "ClientLib.c"
 107  if (__ste_Client_counter < 3) {
 108#line 684
 109    __ste_Client_counter = __ste_Client_counter + 1;
 110#line 684
 111    retValue_acc = __ste_Client_counter;
 112#line 686
 113    return (retValue_acc);
 114  } else {
 115#line 692 "ClientLib.c"
 116    retValue_acc = -1;
 117#line 694
 118    return (retValue_acc);
 119  }
 120#line 701 "ClientLib.c"
 121  return (retValue_acc);
 122}
 123}
 124#line 15 "ClientLib.c"
 125char *__ste_client_name0  =    (char *)0;
 126#line 17 "ClientLib.c"
 127char *__ste_client_name1  =    (char *)0;
 128#line 19 "ClientLib.c"
 129char *__ste_client_name2  =    (char *)0;
 130#line 22 "ClientLib.c"
 131char *getClientName(int handle ) 
 132{ char *retValue_acc ;
 133  void *__cil_tmp3 ;
 134
 135  {
 136#line 31 "ClientLib.c"
 137  if (handle == 1) {
 138#line 732
 139    retValue_acc = __ste_client_name0;
 140#line 734
 141    return (retValue_acc);
 142  } else {
 143#line 736
 144    if (handle == 2) {
 145#line 741
 146      retValue_acc = __ste_client_name1;
 147#line 743
 148      return (retValue_acc);
 149    } else {
 150#line 745
 151      if (handle == 3) {
 152#line 750
 153        retValue_acc = __ste_client_name2;
 154#line 752
 155        return (retValue_acc);
 156      } else {
 157#line 758 "ClientLib.c"
 158        __cil_tmp3 = (void *)0;
 159#line 758
 160        retValue_acc = (char *)__cil_tmp3;
 161#line 760
 162        return (retValue_acc);
 163      }
 164    }
 165  }
 166#line 767 "ClientLib.c"
 167  return (retValue_acc);
 168}
 169}
 170#line 34 "ClientLib.c"
 171void setClientName(int handle , char *value ) 
 172{ 
 173
 174  {
 175#line 42
 176  if (handle == 1) {
 177#line 36
 178    __ste_client_name0 = value;
 179  } else {
 180#line 37
 181    if (handle == 2) {
 182#line 38
 183      __ste_client_name1 = value;
 184    } else {
 185#line 39
 186      if (handle == 3) {
 187#line 40
 188        __ste_client_name2 = value;
 189      } else {
 190
 191      }
 192    }
 193  }
 194#line 802 "ClientLib.c"
 195  return;
 196}
 197}
 198#line 44 "ClientLib.c"
 199int __ste_client_outbuffer0  =    0;
 200#line 46 "ClientLib.c"
 201int __ste_client_outbuffer1  =    0;
 202#line 48 "ClientLib.c"
 203int __ste_client_outbuffer2  =    0;
 204#line 50 "ClientLib.c"
 205int __ste_client_outbuffer3  =    0;
 206#line 53 "ClientLib.c"
 207int getClientOutbuffer(int handle ) 
 208{ int retValue_acc ;
 209
 210  {
 211#line 62 "ClientLib.c"
 212  if (handle == 1) {
 213#line 831
 214    retValue_acc = __ste_client_outbuffer0;
 215#line 833
 216    return (retValue_acc);
 217  } else {
 218#line 835
 219    if (handle == 2) {
 220#line 840
 221      retValue_acc = __ste_client_outbuffer1;
 222#line 842
 223      return (retValue_acc);
 224    } else {
 225#line 844
 226      if (handle == 3) {
 227#line 849
 228        retValue_acc = __ste_client_outbuffer2;
 229#line 851
 230        return (retValue_acc);
 231      } else {
 232#line 857 "ClientLib.c"
 233        retValue_acc = 0;
 234#line 859
 235        return (retValue_acc);
 236      }
 237    }
 238  }
 239#line 866 "ClientLib.c"
 240  return (retValue_acc);
 241}
 242}
 243#line 65 "ClientLib.c"
 244void setClientOutbuffer(int handle , int value ) 
 245{ 
 246
 247  {
 248#line 73
 249  if (handle == 1) {
 250#line 67
 251    __ste_client_outbuffer0 = value;
 252  } else {
 253#line 68
 254    if (handle == 2) {
 255#line 69
 256      __ste_client_outbuffer1 = value;
 257    } else {
 258#line 70
 259      if (handle == 3) {
 260#line 71
 261        __ste_client_outbuffer2 = value;
 262      } else {
 263
 264      }
 265    }
 266  }
 267#line 901 "ClientLib.c"
 268  return;
 269}
 270}
 271#line 77 "ClientLib.c"
 272int __ste_ClientAddressBook_size0  =    0;
 273#line 79 "ClientLib.c"
 274int __ste_ClientAddressBook_size1  =    0;
 275#line 81 "ClientLib.c"
 276int __ste_ClientAddressBook_size2  =    0;
 277#line 84 "ClientLib.c"
 278int getClientAddressBookSize(int handle ) 
 279{ int retValue_acc ;
 280
 281  {
 282#line 93 "ClientLib.c"
 283  if (handle == 1) {
 284#line 928
 285    retValue_acc = __ste_ClientAddressBook_size0;
 286#line 930
 287    return (retValue_acc);
 288  } else {
 289#line 932
 290    if (handle == 2) {
 291#line 937
 292      retValue_acc = __ste_ClientAddressBook_size1;
 293#line 939
 294      return (retValue_acc);
 295    } else {
 296#line 941
 297      if (handle == 3) {
 298#line 946
 299        retValue_acc = __ste_ClientAddressBook_size2;
 300#line 948
 301        return (retValue_acc);
 302      } else {
 303#line 954 "ClientLib.c"
 304        retValue_acc = 0;
 305#line 956
 306        return (retValue_acc);
 307      }
 308    }
 309  }
 310#line 963 "ClientLib.c"
 311  return (retValue_acc);
 312}
 313}
 314#line 96 "ClientLib.c"
 315void setClientAddressBookSize(int handle , int value ) 
 316{ 
 317
 318  {
 319#line 104
 320  if (handle == 1) {
 321#line 98
 322    __ste_ClientAddressBook_size0 = value;
 323  } else {
 324#line 99
 325    if (handle == 2) {
 326#line 100
 327      __ste_ClientAddressBook_size1 = value;
 328    } else {
 329#line 101
 330      if (handle == 3) {
 331#line 102
 332        __ste_ClientAddressBook_size2 = value;
 333      } else {
 334
 335      }
 336    }
 337  }
 338#line 998 "ClientLib.c"
 339  return;
 340}
 341}
 342#line 106 "ClientLib.c"
 343int createClientAddressBookEntry(int handle ) 
 344{ int retValue_acc ;
 345  int size ;
 346  int tmp ;
 347  int __cil_tmp5 ;
 348
 349  {
 350  {
 351#line 107
 352  tmp = getClientAddressBookSize(handle);
 353#line 107
 354  size = tmp;
 355  }
 356#line 108 "ClientLib.c"
 357  if (size < 3) {
 358    {
 359#line 109 "ClientLib.c"
 360    __cil_tmp5 = size + 1;
 361#line 109
 362    setClientAddressBookSize(handle, __cil_tmp5);
 363#line 1025 "ClientLib.c"
 364    retValue_acc = size + 1;
 365    }
 366#line 1027
 367    return (retValue_acc);
 368  } else {
 369#line 1031 "ClientLib.c"
 370    retValue_acc = -1;
 371#line 1033
 372    return (retValue_acc);
 373  }
 374#line 1040 "ClientLib.c"
 375  return (retValue_acc);
 376}
 377}
 378#line 115 "ClientLib.c"
 379int __ste_Client_AddressBook0_Alias0  =    0;
 380#line 117 "ClientLib.c"
 381int __ste_Client_AddressBook0_Alias1  =    0;
 382#line 119 "ClientLib.c"
 383int __ste_Client_AddressBook0_Alias2  =    0;
 384#line 121 "ClientLib.c"
 385int __ste_Client_AddressBook1_Alias0  =    0;
 386#line 123 "ClientLib.c"
 387int __ste_Client_AddressBook1_Alias1  =    0;
 388#line 125 "ClientLib.c"
 389int __ste_Client_AddressBook1_Alias2  =    0;
 390#line 127 "ClientLib.c"
 391int __ste_Client_AddressBook2_Alias0  =    0;
 392#line 129 "ClientLib.c"
 393int __ste_Client_AddressBook2_Alias1  =    0;
 394#line 131 "ClientLib.c"
 395int __ste_Client_AddressBook2_Alias2  =    0;
 396#line 134 "ClientLib.c"
 397int getClientAddressBookAlias(int handle , int index ) 
 398{ int retValue_acc ;
 399
 400  {
 401#line 167
 402  if (handle == 1) {
 403#line 144 "ClientLib.c"
 404    if (index == 0) {
 405#line 1086
 406      retValue_acc = __ste_Client_AddressBook0_Alias0;
 407#line 1088
 408      return (retValue_acc);
 409    } else {
 410#line 1090
 411      if (index == 1) {
 412#line 1095
 413        retValue_acc = __ste_Client_AddressBook0_Alias1;
 414#line 1097
 415        return (retValue_acc);
 416      } else {
 417#line 1099
 418        if (index == 2) {
 419#line 1104
 420          retValue_acc = __ste_Client_AddressBook0_Alias2;
 421#line 1106
 422          return (retValue_acc);
 423        } else {
 424#line 1112
 425          retValue_acc = 0;
 426#line 1114
 427          return (retValue_acc);
 428        }
 429      }
 430    }
 431  } else {
 432#line 1116 "ClientLib.c"
 433    if (handle == 2) {
 434#line 154 "ClientLib.c"
 435      if (index == 0) {
 436#line 1124
 437        retValue_acc = __ste_Client_AddressBook1_Alias0;
 438#line 1126
 439        return (retValue_acc);
 440      } else {
 441#line 1128
 442        if (index == 1) {
 443#line 1133
 444          retValue_acc = __ste_Client_AddressBook1_Alias1;
 445#line 1135
 446          return (retValue_acc);
 447        } else {
 448#line 1137
 449          if (index == 2) {
 450#line 1142
 451            retValue_acc = __ste_Client_AddressBook1_Alias2;
 452#line 1144
 453            return (retValue_acc);
 454          } else {
 455#line 1150
 456            retValue_acc = 0;
 457#line 1152
 458            return (retValue_acc);
 459          }
 460        }
 461      }
 462    } else {
 463#line 1154 "ClientLib.c"
 464      if (handle == 3) {
 465#line 164 "ClientLib.c"
 466        if (index == 0) {
 467#line 1162
 468          retValue_acc = __ste_Client_AddressBook2_Alias0;
 469#line 1164
 470          return (retValue_acc);
 471        } else {
 472#line 1166
 473          if (index == 1) {
 474#line 1171
 475            retValue_acc = __ste_Client_AddressBook2_Alias1;
 476#line 1173
 477            return (retValue_acc);
 478          } else {
 479#line 1175
 480            if (index == 2) {
 481#line 1180
 482              retValue_acc = __ste_Client_AddressBook2_Alias2;
 483#line 1182
 484              return (retValue_acc);
 485            } else {
 486#line 1188
 487              retValue_acc = 0;
 488#line 1190
 489              return (retValue_acc);
 490            }
 491          }
 492        }
 493      } else {
 494#line 1196 "ClientLib.c"
 495        retValue_acc = 0;
 496#line 1198
 497        return (retValue_acc);
 498      }
 499    }
 500  }
 501#line 1205 "ClientLib.c"
 502  return (retValue_acc);
 503}
 504}
 505#line 171 "ClientLib.c"
 506int findClientAddressBookAlias(int handle , int userid ) 
 507{ int retValue_acc ;
 508
 509  {
 510#line 204
 511  if (handle == 1) {
 512#line 181 "ClientLib.c"
 513    if (userid == __ste_Client_AddressBook0_Alias0) {
 514#line 1233
 515      retValue_acc = 0;
 516#line 1235
 517      return (retValue_acc);
 518    } else {
 519#line 1237
 520      if (userid == __ste_Client_AddressBook0_Alias1) {
 521#line 1242
 522        retValue_acc = 1;
 523#line 1244
 524        return (retValue_acc);
 525      } else {
 526#line 1246
 527        if (userid == __ste_Client_AddressBook0_Alias2) {
 528#line 1251
 529          retValue_acc = 2;
 530#line 1253
 531          return (retValue_acc);
 532        } else {
 533#line 1259
 534          retValue_acc = -1;
 535#line 1261
 536          return (retValue_acc);
 537        }
 538      }
 539    }
 540  } else {
 541#line 1263 "ClientLib.c"
 542    if (handle == 2) {
 543#line 191 "ClientLib.c"
 544      if (userid == __ste_Client_AddressBook1_Alias0) {
 545#line 1271
 546        retValue_acc = 0;
 547#line 1273
 548        return (retValue_acc);
 549      } else {
 550#line 1275
 551        if (userid == __ste_Client_AddressBook1_Alias1) {
 552#line 1280
 553          retValue_acc = 1;
 554#line 1282
 555          return (retValue_acc);
 556        } else {
 557#line 1284
 558          if (userid == __ste_Client_AddressBook1_Alias2) {
 559#line 1289
 560            retValue_acc = 2;
 561#line 1291
 562            return (retValue_acc);
 563          } else {
 564#line 1297
 565            retValue_acc = -1;
 566#line 1299
 567            return (retValue_acc);
 568          }
 569        }
 570      }
 571    } else {
 572#line 1301 "ClientLib.c"
 573      if (handle == 3) {
 574#line 201 "ClientLib.c"
 575        if (userid == __ste_Client_AddressBook2_Alias0) {
 576#line 1309
 577          retValue_acc = 0;
 578#line 1311
 579          return (retValue_acc);
 580        } else {
 581#line 1313
 582          if (userid == __ste_Client_AddressBook2_Alias1) {
 583#line 1318
 584            retValue_acc = 1;
 585#line 1320
 586            return (retValue_acc);
 587          } else {
 588#line 1322
 589            if (userid == __ste_Client_AddressBook2_Alias2) {
 590#line 1327
 591              retValue_acc = 2;
 592#line 1329
 593              return (retValue_acc);
 594            } else {
 595#line 1335
 596              retValue_acc = -1;
 597#line 1337
 598              return (retValue_acc);
 599            }
 600          }
 601        }
 602      } else {
 603#line 1343 "ClientLib.c"
 604        retValue_acc = -1;
 605#line 1345
 606        return (retValue_acc);
 607      }
 608    }
 609  }
 610#line 1352 "ClientLib.c"
 611  return (retValue_acc);
 612}
 613}
 614#line 208 "ClientLib.c"
 615void setClientAddressBookAlias(int handle , int index , int value ) 
 616{ 
 617
 618  {
 619#line 234
 620  if (handle == 1) {
 621#line 217
 622    if (index == 0) {
 623#line 211
 624      __ste_Client_AddressBook0_Alias0 = value;
 625    } else {
 626#line 212
 627      if (index == 1) {
 628#line 213
 629        __ste_Client_AddressBook0_Alias1 = value;
 630      } else {
 631#line 214
 632        if (index == 2) {
 633#line 215
 634          __ste_Client_AddressBook0_Alias2 = value;
 635        } else {
 636
 637        }
 638      }
 639    }
 640  } else {
 641#line 216
 642    if (handle == 2) {
 643#line 225
 644      if (index == 0) {
 645#line 219
 646        __ste_Client_AddressBook1_Alias0 = value;
 647      } else {
 648#line 220
 649        if (index == 1) {
 650#line 221
 651          __ste_Client_AddressBook1_Alias1 = value;
 652        } else {
 653#line 222
 654          if (index == 2) {
 655#line 223
 656            __ste_Client_AddressBook1_Alias2 = value;
 657          } else {
 658
 659          }
 660        }
 661      }
 662    } else {
 663#line 224
 664      if (handle == 3) {
 665#line 233
 666        if (index == 0) {
 667#line 227
 668          __ste_Client_AddressBook2_Alias0 = value;
 669        } else {
 670#line 228
 671          if (index == 1) {
 672#line 229
 673            __ste_Client_AddressBook2_Alias1 = value;
 674          } else {
 675#line 230
 676            if (index == 2) {
 677#line 231
 678              __ste_Client_AddressBook2_Alias2 = value;
 679            } else {
 680
 681            }
 682          }
 683        }
 684      } else {
 685
 686      }
 687    }
 688  }
 689#line 1420 "ClientLib.c"
 690  return;
 691}
 692}
 693#line 236 "ClientLib.c"
 694int __ste_Client_AddressBook0_Address0  =    0;
 695#line 238 "ClientLib.c"
 696int __ste_Client_AddressBook0_Address1  =    0;
 697#line 240 "ClientLib.c"
 698int __ste_Client_AddressBook0_Address2  =    0;
 699#line 242 "ClientLib.c"
 700int __ste_Client_AddressBook1_Address0  =    0;
 701#line 244 "ClientLib.c"
 702int __ste_Client_AddressBook1_Address1  =    0;
 703#line 246 "ClientLib.c"
 704int __ste_Client_AddressBook1_Address2  =    0;
 705#line 248 "ClientLib.c"
 706int __ste_Client_AddressBook2_Address0  =    0;
 707#line 250 "ClientLib.c"
 708int __ste_Client_AddressBook2_Address1  =    0;
 709#line 252 "ClientLib.c"
 710int __ste_Client_AddressBook2_Address2  =    0;
 711#line 255 "ClientLib.c"
 712int getClientAddressBookAddress(int handle , int index ) 
 713{ int retValue_acc ;
 714
 715  {
 716#line 288
 717  if (handle == 1) {
 718#line 265 "ClientLib.c"
 719    if (index == 0) {
 720#line 1462
 721      retValue_acc = __ste_Client_AddressBook0_Address0;
 722#line 1464
 723      return (retValue_acc);
 724    } else {
 725#line 1466
 726      if (index == 1) {
 727#line 1471
 728        retValue_acc = __ste_Client_AddressBook0_Address1;
 729#line 1473
 730        return (retValue_acc);
 731      } else {
 732#line 1475
 733        if (index == 2) {
 734#line 1480
 735          retValue_acc = __ste_Client_AddressBook0_Address2;
 736#line 1482
 737          return (retValue_acc);
 738        } else {
 739#line 1488
 740          retValue_acc = 0;
 741#line 1490
 742          return (retValue_acc);
 743        }
 744      }
 745    }
 746  } else {
 747#line 1492 "ClientLib.c"
 748    if (handle == 2) {
 749#line 275 "ClientLib.c"
 750      if (index == 0) {
 751#line 1500
 752        retValue_acc = __ste_Client_AddressBook1_Address0;
 753#line 1502
 754        return (retValue_acc);
 755      } else {
 756#line 1504
 757        if (index == 1) {
 758#line 1509
 759          retValue_acc = __ste_Client_AddressBook1_Address1;
 760#line 1511
 761          return (retValue_acc);
 762        } else {
 763#line 1513
 764          if (index == 2) {
 765#line 1518
 766            retValue_acc = __ste_Client_AddressBook1_Address2;
 767#line 1520
 768            return (retValue_acc);
 769          } else {
 770#line 1526
 771            retValue_acc = 0;
 772#line 1528
 773            return (retValue_acc);
 774          }
 775        }
 776      }
 777    } else {
 778#line 1530 "ClientLib.c"
 779      if (handle == 3) {
 780#line 285 "ClientLib.c"
 781        if (index == 0) {
 782#line 1538
 783          retValue_acc = __ste_Client_AddressBook2_Address0;
 784#line 1540
 785          return (retValue_acc);
 786        } else {
 787#line 1542
 788          if (index == 1) {
 789#line 1547
 790            retValue_acc = __ste_Client_AddressBook2_Address1;
 791#line 1549
 792            return (retValue_acc);
 793          } else {
 794#line 1551
 795            if (index == 2) {
 796#line 1556
 797              retValue_acc = __ste_Client_AddressBook2_Address2;
 798#line 1558
 799              return (retValue_acc);
 800            } else {
 801#line 1564
 802              retValue_acc = 0;
 803#line 1566
 804              return (retValue_acc);
 805            }
 806          }
 807        }
 808      } else {
 809#line 1572 "ClientLib.c"
 810        retValue_acc = 0;
 811#line 1574
 812        return (retValue_acc);
 813      }
 814    }
 815  }
 816#line 1581 "ClientLib.c"
 817  return (retValue_acc);
 818}
 819}
 820#line 291 "ClientLib.c"
 821void setClientAddressBookAddress(int handle , int index , int value ) 
 822{ 
 823
 824  {
 825#line 317
 826  if (handle == 1) {
 827#line 300
 828    if (index == 0) {
 829#line 294
 830      __ste_Client_AddressBook0_Address0 = value;
 831    } else {
 832#line 295
 833      if (index == 1) {
 834#line 296
 835        __ste_Client_AddressBook0_Address1 = value;
 836      } else {
 837#line 297
 838        if (index == 2) {
 839#line 298
 840          __ste_Client_AddressBook0_Address2 = value;
 841        } else {
 842
 843        }
 844      }
 845    }
 846  } else {
 847#line 299
 848    if (handle == 2) {
 849#line 308
 850      if (index == 0) {
 851#line 302
 852        __ste_Client_AddressBook1_Address0 = value;
 853      } else {
 854#line 303
 855        if (index == 1) {
 856#line 304
 857          __ste_Client_AddressBook1_Address1 = value;
 858        } else {
 859#line 305
 860          if (index == 2) {
 861#line 306
 862            __ste_Client_AddressBook1_Address2 = value;
 863          } else {
 864
 865          }
 866        }
 867      }
 868    } else {
 869#line 307
 870      if (handle == 3) {
 871#line 316
 872        if (index == 0) {
 873#line 310
 874          __ste_Client_AddressBook2_Address0 = value;
 875        } else {
 876#line 311
 877          if (index == 1) {
 878#line 312
 879            __ste_Client_AddressBook2_Address1 = value;
 880          } else {
 881#line 313
 882            if (index == 2) {
 883#line 314
 884              __ste_Client_AddressBook2_Address2 = value;
 885            } else {
 886
 887            }
 888          }
 889        }
 890      } else {
 891
 892      }
 893    }
 894  }
 895#line 1649 "ClientLib.c"
 896  return;
 897}
 898}
 899#line 319 "ClientLib.c"
 900int __ste_client_autoResponse0  =    0;
 901#line 321 "ClientLib.c"
 902int __ste_client_autoResponse1  =    0;
 903#line 323 "ClientLib.c"
 904int __ste_client_autoResponse2  =    0;
 905#line 326 "ClientLib.c"
 906int getClientAutoResponse(int handle ) 
 907{ int retValue_acc ;
 908
 909  {
 910#line 335 "ClientLib.c"
 911  if (handle == 1) {
 912#line 1676
 913    retValue_acc = __ste_client_autoResponse0;
 914#line 1678
 915    return (retValue_acc);
 916  } else {
 917#line 1680
 918    if (handle == 2) {
 919#line 1685
 920      retValue_acc = __ste_client_autoResponse1;
 921#line 1687
 922      return (retValue_acc);
 923    } else {
 924#line 1689
 925      if (handle == 3) {
 926#line 1694
 927        retValue_acc = __ste_client_autoResponse2;
 928#line 1696
 929        return (retValue_acc);
 930      } else {
 931#line 1702 "ClientLib.c"
 932        retValue_acc = -1;
 933#line 1704
 934        return (retValue_acc);
 935      }
 936    }
 937  }
 938#line 1711 "ClientLib.c"
 939  return (retValue_acc);
 940}
 941}
 942#line 338 "ClientLib.c"
 943void setClientAutoResponse(int handle , int value ) 
 944{ 
 945
 946  {
 947#line 346
 948  if (handle == 1) {
 949#line 340
 950    __ste_client_autoResponse0 = value;
 951  } else {
 952#line 341
 953    if (handle == 2) {
 954#line 342
 955      __ste_client_autoResponse1 = value;
 956    } else {
 957#line 343
 958      if (handle == 3) {
 959#line 344
 960        __ste_client_autoResponse2 = value;
 961      } else {
 962
 963      }
 964    }
 965  }
 966#line 1746 "ClientLib.c"
 967  return;
 968}
 969}
 970#line 348 "ClientLib.c"
 971int __ste_client_privateKey0  =    0;
 972#line 350 "ClientLib.c"
 973int __ste_client_privateKey1  =    0;
 974#line 352 "ClientLib.c"
 975int __ste_client_privateKey2  =    0;
 976#line 355 "ClientLib.c"
 977int getClientPrivateKey(int handle ) 
 978{ int retValue_acc ;
 979
 980  {
 981#line 364 "ClientLib.c"
 982  if (handle == 1) {
 983#line 1773
 984    retValue_acc = __ste_client_privateKey0;
 985#line 1775
 986    return (retValue_acc);
 987  } else {
 988#line 1777
 989    if (handle == 2) {
 990#line 1782
 991      retValue_acc = __ste_client_privateKey1;
 992#line 1784
 993      return (retValue_acc);
 994    } else {
 995#line 1786
 996      if (handle == 3) {
 997#line 1791
 998        retValue_acc = __ste_client_privateKey2;
 999#line 1793
1000        return (retValue_acc);
1001      } else {
1002#line 1799 "ClientLib.c"
1003        retValue_acc = 0;
1004#line 1801
1005        return (retValue_acc);
1006      }
1007    }
1008  }
1009#line 1808 "ClientLib.c"
1010  return (retValue_acc);
1011}
1012}
1013#line 367 "ClientLib.c"
1014void setClientPrivateKey(int handle , int value ) 
1015{ 
1016
1017  {
1018#line 375
1019  if (handle == 1) {
1020#line 369
1021    __ste_client_privateKey0 = value;
1022  } else {
1023#line 370
1024    if (handle == 2) {
1025#line 371
1026      __ste_client_privateKey1 = value;
1027    } else {
1028#line 372
1029      if (handle == 3) {
1030#line 373
1031        __ste_client_privateKey2 = value;
1032      } else {
1033
1034      }
1035    }
1036  }
1037#line 1843 "ClientLib.c"
1038  return;
1039}
1040}
1041#line 377 "ClientLib.c"
1042int __ste_ClientKeyring_size0  =    0;
1043#line 379 "ClientLib.c"
1044int __ste_ClientKeyring_size1  =    0;
1045#line 381 "ClientLib.c"
1046int __ste_ClientKeyring_size2  =    0;
1047#line 384 "ClientLib.c"
1048int getClientKeyringSize(int handle ) 
1049{ int retValue_acc ;
1050
1051  {
1052#line 393 "ClientLib.c"
1053  if (handle == 1) {
1054#line 1870
1055    retValue_acc = __ste_ClientKeyring_size0;
1056#line 1872
1057    return (retValue_acc);
1058  } else {
1059#line 1874
1060    if (handle == 2) {
1061#line 1879
1062      retValue_acc = __ste_ClientKeyring_size1;
1063#line 1881
1064      return (retValue_acc);
1065    } else {
1066#line 1883
1067      if (handle == 3) {
1068#line 1888
1069        retValue_acc = __ste_ClientKeyring_size2;
1070#line 1890
1071        return (retValue_acc);
1072      } else {
1073#line 1896 "ClientLib.c"
1074        retValue_acc = 0;
1075#line 1898
1076        return (retValue_acc);
1077      }
1078    }
1079  }
1080#line 1905 "ClientLib.c"
1081  return (retValue_acc);
1082}
1083}
1084#line 396 "ClientLib.c"
1085void setClientKeyringSize(int handle , int value ) 
1086{ 
1087
1088  {
1089#line 404
1090  if (handle == 1) {
1091#line 398
1092    __ste_ClientKeyring_size0 = value;
1093  } else {
1094#line 399
1095    if (handle == 2) {
1096#line 400
1097      __ste_ClientKeyring_size1 = value;
1098    } else {
1099#line 401
1100      if (handle == 3) {
1101#line 402
1102        __ste_ClientKeyring_size2 = value;
1103      } else {
1104
1105      }
1106    }
1107  }
1108#line 1940 "ClientLib.c"
1109  return;
1110}
1111}
1112#line 406 "ClientLib.c"
1113int createClientKeyringEntry(int handle ) 
1114{ int retValue_acc ;
1115  int size ;
1116  int tmp ;
1117  int __cil_tmp5 ;
1118
1119  {
1120  {
1121#line 407
1122  tmp = getClientKeyringSize(handle);
1123#line 407
1124  size = tmp;
1125  }
1126#line 408 "ClientLib.c"
1127  if (size < 2) {
1128    {
1129#line 409 "ClientLib.c"
1130    __cil_tmp5 = size + 1;
1131#line 409
1132    setClientKeyringSize(handle, __cil_tmp5);
1133#line 1967 "ClientLib.c"
1134    retValue_acc = size + 1;
1135    }
1136#line 1969
1137    return (retValue_acc);
1138  } else {
1139#line 1973 "ClientLib.c"
1140    retValue_acc = -1;
1141#line 1975
1142    return (retValue_acc);
1143  }
1144#line 1982 "ClientLib.c"
1145  return (retValue_acc);
1146}
1147}
1148#line 414 "ClientLib.c"
1149int __ste_Client_Keyring0_User0  =    0;
1150#line 416 "ClientLib.c"
1151int __ste_Client_Keyring0_User1  =    0;
1152#line 418 "ClientLib.c"
1153int __ste_Client_Keyring0_User2  =    0;
1154#line 420 "ClientLib.c"
1155int __ste_Client_Keyring1_User0  =    0;
1156#line 422 "ClientLib.c"
1157int __ste_Client_Keyring1_User1  =    0;
1158#line 424 "ClientLib.c"
1159int __ste_Client_Keyring1_User2  =    0;
1160#line 426 "ClientLib.c"
1161int __ste_Client_Keyring2_User0  =    0;
1162#line 428 "ClientLib.c"
1163int __ste_Client_Keyring2_User1  =    0;
1164#line 430 "ClientLib.c"
1165int __ste_Client_Keyring2_User2  =    0;
1166#line 433 "ClientLib.c"
1167int getClientKeyringUser(int handle , int index ) 
1168{ int retValue_acc ;
1169
1170  {
1171#line 466
1172  if (handle == 1) {
1173#line 443 "ClientLib.c"
1174    if (index == 0) {
1175#line 2028
1176      retValue_acc = __ste_Client_Keyring0_User0;
1177#line 2030
1178      return (retValue_acc);
1179    } else {
1180#line 2032
1181      if (index == 1) {
1182#line 2037
1183        retValue_acc = __ste_Client_Keyring0_User1;
1184#line 2039
1185        return (retValue_acc);
1186      } else {
1187#line 2045
1188        retValue_acc = 0;
1189#line 2047
1190        return (retValue_acc);
1191      }
1192    }
1193  } else {
1194#line 2049 "ClientLib.c"
1195    if (handle == 2) {
1196#line 453 "ClientLib.c"
1197      if (index == 0) {
1198#line 2057
1199        retValue_acc = __ste_Client_Keyring1_User0;
1200#line 2059
1201        return (retValue_acc);
1202      } else {
1203#line 2061
1204        if (index == 1) {
1205#line 2066
1206          retValue_acc = __ste_Client_Keyring1_User1;
1207#line 2068
1208          return (retValue_acc);
1209        } else {
1210#line 2074
1211          retValue_acc = 0;
1212#line 2076
1213          return (retValue_acc);
1214        }
1215      }
1216    } else {
1217#line 2078 "ClientLib.c"
1218      if (handle == 3) {
1219#line 463 "ClientLib.c"
1220        if (index == 0) {
1221#line 2086
1222          retValue_acc = __ste_Client_Keyring2_User0;
1223#line 2088
1224          return (retValue_acc);
1225        } else {
1226#line 2090
1227          if (index == 1) {
1228#line 2095
1229            retValue_acc = __ste_Client_Keyring2_User1;
1230#line 2097
1231            return (retValue_acc);
1232          } else {
1233#line 2103
1234            retValue_acc = 0;
1235#line 2105
1236            return (retValue_acc);
1237          }
1238        }
1239      } else {
1240#line 2111 "ClientLib.c"
1241        retValue_acc = 0;
1242#line 2113
1243        return (retValue_acc);
1244      }
1245    }
1246  }
1247#line 2120 "ClientLib.c"
1248  return (retValue_acc);
1249}
1250}
1251#line 473 "ClientLib.c"
1252void setClientKeyringUser(int handle , int index , int value ) 
1253{ 
1254
1255  {
1256#line 499
1257  if (handle == 1) {
1258#line 482
1259    if (index == 0) {
1260#line 476
1261      __ste_Client_Keyring0_User0 = value;
1262    } else {
1263#line 477
1264      if (index == 1) {
1265#line 478
1266        __ste_Client_Keyring0_User1 = value;
1267      } else {
1268
1269      }
1270    }
1271  } else {
1272#line 479
1273    if (handle == 2) {
1274#line 490
1275      if (index == 0) {
1276#line 484
1277        __ste_Client_Keyring1_User0 = value;
1278      } else {
1279#line 485
1280        if (index == 1) {
1281#line 486
1282          __ste_Client_Keyring1_User1 = value;
1283        } else {
1284
1285        }
1286      }
1287    } else {
1288#line 487
1289      if (handle == 3) {
1290#line 498
1291        if (index == 0) {
1292#line 492
1293          __ste_Client_Keyring2_User0 = value;
1294        } else {
1295#line 493
1296          if (index == 1) {
1297#line 494
1298            __ste_Client_Keyring2_User1 = value;
1299          } else {
1300
1301          }
1302        }
1303      } else {
1304
1305      }
1306    }
1307  }
1308#line 2176 "ClientLib.c"
1309  return;
1310}
1311}
1312#line 501 "ClientLib.c"
1313int __ste_Client_Keyring0_PublicKey0  =    0;
1314#line 503 "ClientLib.c"
1315int __ste_Client_Keyring0_PublicKey1  =    0;
1316#line 505 "ClientLib.c"
1317int __ste_Client_Keyring0_PublicKey2  =    0;
1318#line 507 "ClientLib.c"
1319int __ste_Client_Keyring1_PublicKey0  =    0;
1320#line 509 "ClientLib.c"
1321int __ste_Client_Keyring1_PublicKey1  =    0;
1322#line 511 "ClientLib.c"
1323int __ste_Client_Keyring1_PublicKey2  =    0;
1324#line 513 "ClientLib.c"
1325int __ste_Client_Keyring2_PublicKey0  =    0;
1326#line 515 "ClientLib.c"
1327int __ste_Client_Keyring2_PublicKey1  =    0;
1328#line 517 "ClientLib.c"
1329int __ste_Client_Keyring2_PublicKey2  =    0;
1330#line 520 "ClientLib.c"
1331int getClientKeyringPublicKey(int handle , int index ) 
1332{ int retValue_acc ;
1333
1334  {
1335#line 553
1336  if (handle == 1) {
1337#line 530 "ClientLib.c"
1338    if (index == 0) {
1339#line 2218
1340      retValue_acc = __ste_Client_Keyring0_PublicKey0;
1341#line 2220
1342      return (retValue_acc);
1343    } else {
1344#line 2222
1345      if (index == 1) {
1346#line 2227
1347        retValue_acc = __ste_Client_Keyring0_PublicKey1;
1348#line 2229
1349        return (retValue_acc);
1350      } else {
1351#line 2235
1352        retValue_acc = 0;
1353#line 2237
1354        return (retValue_acc);
1355      }
1356    }
1357  } else {
1358#line 2239 "ClientLib.c"
1359    if (handle == 2) {
1360#line 540 "ClientLib.c"
1361      if (index == 0) {
1362#line 2247
1363        retValue_acc = __ste_Client_Keyring1_PublicKey0;
1364#line 2249
1365        return (retValue_acc);
1366      } else {
1367#line 2251
1368        if (index == 1) {
1369#line 2256
1370          retValue_acc = __ste_Client_Keyring1_PublicKey1;
1371#line 2258
1372          return (retValue_acc);
1373        } else {
1374#line 2264
1375          retValue_acc = 0;
1376#line 2266
1377          return (retValue_acc);
1378        }
1379      }
1380    } else {
1381#line 2268 "ClientLib.c"
1382      if (handle == 3) {
1383#line 550 "ClientLib.c"
1384        if (index == 0) {
1385#line 2276
1386          retValue_acc = __ste_Client_Keyring2_PublicKey0;
1387#line 2278
1388          return (retValue_acc);
1389        } else {
1390#line 2280
1391          if (index == 1) {
1392#line 2285
1393            retValue_acc = __ste_Client_Keyring2_PublicKey1;
1394#line 2287
1395            return (retValue_acc);
1396          } else {
1397#line 2293
1398            retValue_acc = 0;
1399#line 2295
1400            return (retValue_acc);
1401          }
1402        }
1403      } else {
1404#line 2301 "ClientLib.c"
1405        retValue_acc = 0;
1406#line 2303
1407        return (retValue_acc);
1408      }
1409    }
1410  }
1411#line 2310 "ClientLib.c"
1412  return (retValue_acc);
1413}
1414}
1415#line 557 "ClientLib.c"
1416int findPublicKey(int handle , int userid ) 
1417{ int retValue_acc ;
1418
1419  {
1420#line 591
1421  if (handle == 1) {
1422#line 568 "ClientLib.c"
1423    if (userid == __ste_Client_Keyring0_User0) {
1424#line 2338
1425      retValue_acc = __ste_Client_Keyring0_PublicKey0;
1426#line 2340
1427      return (retValue_acc);
1428    } else {
1429#line 2342
1430      if (userid == __ste_Client_Keyring0_User1) {
1431#line 2347
1432        retValue_acc = __ste_Client_Keyring0_PublicKey1;
1433#line 2349
1434        return (retValue_acc);
1435      } else {
1436#line 2355
1437        retValue_acc = 0;
1438#line 2357
1439        return (retValue_acc);
1440      }
1441    }
1442  } else {
1443#line 2359 "ClientLib.c"
1444    if (handle == 2) {
1445#line 578 "ClientLib.c"
1446      if (userid == __ste_Client_Keyring1_User0) {
1447#line 2367
1448        retValue_acc = __ste_Client_Keyring1_PublicKey0;
1449#line 2369
1450        return (retValue_acc);
1451      } else {
1452#line 2371
1453        if (userid == __ste_Client_Keyring1_User1) {
1454#line 2376
1455          retValue_acc = __ste_Client_Keyring1_PublicKey1;
1456#line 2378
1457          return (retValue_acc);
1458        } else {
1459#line 2384
1460          retValue_acc = 0;
1461#line 2386
1462          return (retValue_acc);
1463        }
1464      }
1465    } else {
1466#line 2388 "ClientLib.c"
1467      if (handle == 3) {
1468#line 588 "ClientLib.c"
1469        if (userid == __ste_Client_Keyring2_User0) {
1470#line 2396
1471          retValue_acc = __ste_Client_Keyring2_PublicKey0;
1472#line 2398
1473          return (retValue_acc);
1474        } else {
1475#line 2400
1476          if (userid == __ste_Client_Keyring2_User1) {
1477#line 2405
1478            retValue_acc = __ste_Client_Keyring2_PublicKey1;
1479#line 2407
1480            return (retValue_acc);
1481          } else {
1482#line 2413
1483            retValue_acc = 0;
1484#line 2415
1485            return (retValue_acc);
1486          }
1487        }
1488      } else {
1489#line 2421 "ClientLib.c"
1490        retValue_acc = 0;
1491#line 2423
1492        return (retValue_acc);
1493      }
1494    }
1495  }
1496#line 2430 "ClientLib.c"
1497  return (retValue_acc);
1498}
1499}
1500#line 595 "ClientLib.c"
1501void setClientKeyringPublicKey(int handle , int index , int value ) 
1502{ 
1503
1504  {
1505#line 621
1506  if (handle == 1) {
1507#line 604
1508    if (index == 0) {
1509#line 598
1510      __ste_Client_Keyring0_PublicKey0 = value;
1511    } else {
1512#line 599
1513      if (index == 1) {
1514#line 600
1515        __ste_Client_Keyring0_PublicKey1 = value;
1516      } else {
1517
1518      }
1519    }
1520  } else {
1521#line 601
1522    if (handle == 2) {
1523#line 612
1524      if (index == 0) {
1525#line 606
1526        __ste_Client_Keyring1_PublicKey0 = value;
1527      } else {
1528#line 607
1529        if (index == 1) {
1530#line 608
1531          __ste_Client_Keyring1_PublicKey1 = value;
1532        } else {
1533
1534        }
1535      }
1536    } else {
1537#line 609
1538      if (handle == 3) {
1539#line 620
1540        if (index == 0) {
1541#line 614
1542          __ste_Client_Keyring2_PublicKey0 = value;
1543        } else {
1544#line 615
1545          if (index == 1) {
1546#line 616
1547            __ste_Client_Keyring2_PublicKey1 = value;
1548          } else {
1549
1550          }
1551        }
1552      } else {
1553
1554      }
1555    }
1556  }
1557#line 2486 "ClientLib.c"
1558  return;
1559}
1560}
1561#line 623 "ClientLib.c"
1562int __ste_client_forwardReceiver0  =    0;
1563#line 625 "ClientLib.c"
1564int __ste_client_forwardReceiver1  =    0;
1565#line 627 "ClientLib.c"
1566int __ste_client_forwardReceiver2  =    0;
1567#line 629 "ClientLib.c"
1568int __ste_client_forwardReceiver3  =    0;
1569#line 631 "ClientLib.c"
1570int getClientForwardReceiver(int handle ) 
1571{ int retValue_acc ;
1572
1573  {
1574#line 640 "ClientLib.c"
1575  if (handle == 1) {
1576#line 2515
1577    retValue_acc = __ste_client_forwardReceiver0;
1578#line 2517
1579    return (retValue_acc);
1580  } else {
1581#line 2519
1582    if (handle == 2) {
1583#line 2524
1584      retValue_acc = __ste_client_forwardReceiver1;
1585#line 2526
1586      return (retValue_acc);
1587    } else {
1588#line 2528
1589      if (handle == 3) {
1590#line 2533
1591        retValue_acc = __ste_client_forwardReceiver2;
1592#line 2535
1593        return (retValue_acc);
1594      } else {
1595#line 2541 "ClientLib.c"
1596        retValue_acc = 0;
1597#line 2543
1598        return (retValue_acc);
1599      }
1600    }
1601  }
1602#line 2550 "ClientLib.c"
1603  return (retValue_acc);
1604}
1605}
1606#line 643 "ClientLib.c"
1607void setClientForwardReceiver(int handle , int value ) 
1608{ 
1609
1610  {
1611#line 651
1612  if (handle == 1) {
1613#line 645
1614    __ste_client_forwardReceiver0 = value;
1615  } else {
1616#line 646
1617    if (handle == 2) {
1618#line 647
1619      __ste_client_forwardReceiver1 = value;
1620    } else {
1621#line 648
1622      if (handle == 3) {
1623#line 649
1624        __ste_client_forwardReceiver2 = value;
1625      } else {
1626
1627      }
1628    }
1629  }
1630#line 2585 "ClientLib.c"
1631  return;
1632}
1633}
1634#line 653 "ClientLib.c"
1635int __ste_client_idCounter0  =    0;
1636#line 655 "ClientLib.c"
1637int __ste_client_idCounter1  =    0;
1638#line 657 "ClientLib.c"
1639int __ste_client_idCounter2  =    0;
1640#line 660 "ClientLib.c"
1641int getClientId(int handle ) 
1642{ int retValue_acc ;
1643
1644  {
1645#line 669 "ClientLib.c"
1646  if (handle == 1) {
1647#line 2612
1648    retValue_acc = __ste_client_idCounter0;
1649#line 2614
1650    return (retValue_acc);
1651  } else {
1652#line 2616
1653    if (handle == 2) {
1654#line 2621
1655      retValue_acc = __ste_client_idCounter1;
1656#line 2623
1657      return (retValue_acc);
1658    } else {
1659#line 2625
1660      if (handle == 3) {
1661#line 2630
1662        retValue_acc = __ste_client_idCounter2;
1663#line 2632
1664        return (retValue_acc);
1665      } else {
1666#line 2638 "ClientLib.c"
1667        retValue_acc = 0;
1668#line 2640
1669        return (retValue_acc);
1670      }
1671    }
1672  }
1673#line 2647 "ClientLib.c"
1674  return (retValue_acc);
1675}
1676}
1677#line 672 "ClientLib.c"
1678void setClientId(int handle , int value ) 
1679{ 
1680
1681  {
1682#line 680
1683  if (handle == 1) {
1684#line 674
1685    __ste_client_idCounter0 = value;
1686  } else {
1687#line 675
1688    if (handle == 2) {
1689#line 676
1690      __ste_client_idCounter1 = value;
1691    } else {
1692#line 677
1693      if (handle == 3) {
1694#line 678
1695        __ste_client_idCounter2 = value;
1696      } else {
1697
1698      }
1699    }
1700  }
1701#line 2682 "ClientLib.c"
1702  return;
1703}
1704}
1705#line 1 "Email.o"
1706#pragma merger(0,"Email.i","")
1707#line 359 "/usr/include/stdio.h"
1708extern int printf(char const   * __restrict  __format  , ...) ;
1709#line 8 "featureselect.h"
1710int __SELECTED_FEATURE_Base  ;
1711#line 11 "featureselect.h"
1712int __SELECTED_FEATURE_Keys  ;
1713#line 14 "featureselect.h"
1714int __SELECTED_FEATURE_Encrypt  ;
1715#line 17 "featureselect.h"
1716int __SELECTED_FEATURE_AutoResponder  ;
1717#line 20 "featureselect.h"
1718int __SELECTED_FEATURE_AddressBook  ;
1719#line 23 "featureselect.h"
1720int __SELECTED_FEATURE_Sign  ;
1721#line 26 "featureselect.h"
1722int __SELECTED_FEATURE_Forward  ;
1723#line 29 "featureselect.h"
1724int __SELECTED_FEATURE_Verify  ;
1725#line 32 "featureselect.h"
1726int __SELECTED_FEATURE_Decrypt  ;
1727#line 35 "featureselect.h"
1728int __GUIDSL_ROOT_PRODUCTION  ;
1729#line 37 "featureselect.h"
1730int __GUIDSL_NON_TERMINAL_main  ;
1731#line 6 "EmailLib.h"
1732int getEmailId(int handle ) ;
1733#line 10
1734int getEmailFrom(int handle ) ;
1735#line 12
1736void setEmailFrom(int handle , int value ) ;
1737#line 14
1738int getEmailTo(int handle ) ;
1739#line 16
1740void setEmailTo(int handle , int value ) ;
1741#line 26
1742int isEncrypted(int handle ) ;
1743#line 30
1744int getEmailEncryptionKey(int handle ) ;
1745#line 34
1746int isSigned(int handle ) ;
1747#line 38
1748int getEmailSignKey(int handle ) ;
1749#line 42
1750int isVerified(int handle ) ;
1751#line 6 "Email.h"
1752void printMail(int msg ) ;
1753#line 9
1754int isReadable(int msg ) ;
1755#line 12
1756int createEmail(int from , int to ) ;
1757#line 15
1758int cloneEmail(int msg ) ;
1759#line 9 "Email.c"
1760void printMail__wrappee__Keys(int msg ) 
1761{ int tmp ;
1762  int tmp___0 ;
1763  int tmp___1 ;
1764  int tmp___2 ;
1765  char const   * __restrict  __cil_tmp6 ;
1766  char const   * __restrict  __cil_tmp7 ;
1767  char const   * __restrict  __cil_tmp8 ;
1768  char const   * __restrict  __cil_tmp9 ;
1769
1770  {
1771  {
1772#line 10
1773  tmp = getEmailId(msg);
1774#line 10
1775  __cil_tmp6 = (char const   * __restrict  )"ID:\n  %i\n";
1776#line 10
1777  printf(__cil_tmp6, tmp);
1778#line 11
1779  tmp___0 = getEmailFrom(msg);
1780#line 11
1781  __cil_tmp7 = (char const   * __restrict  )"FROM:\n  %i\n";
1782#line 11
1783  printf(__cil_tmp7, tmp___0);
1784#line 12
1785  tmp___1 = getEmailTo(msg);
1786#line 12
1787  __cil_tmp8 = (char const   * __restrict  )"TO:\n  %i\n";
1788#line 12
1789  printf(__cil_tmp8, tmp___1);
1790#line 13
1791  tmp___2 = isReadable(msg);
1792#line 13
1793  __cil_tmp9 = (char const   * __restrict  )"IS_READABLE\n  %i\n";
1794#line 13
1795  printf(__cil_tmp9, tmp___2);
1796  }
1797#line 601 "Email.c"
1798  return;
1799}
1800}
1801#line 17 "Email.c"
1802void printMail__wrappee__AutoResponder(int msg ) 
1803{ int tmp ;
1804  int tmp___0 ;
1805  char const   * __restrict  __cil_tmp4 ;
1806  char const   * __restrict  __cil_tmp5 ;
1807
1808  {
1809  {
1810#line 18
1811  printMail__wrappee__Keys(msg);
1812#line 19
1813  tmp = isEncrypted(msg);
1814#line 19
1815  __cil_tmp4 = (char const   * __restrict  )"ENCRYPTED\n  %d\n";
1816#line 19
1817  printf(__cil_tmp4, tmp);
1818#line 20
1819  tmp___0 = getEmailEncryptionKey(msg);
1820#line 20
1821  __cil_tmp5 = (char const   * __restrict  )"ENCRYPTION KEY\n  %d\n";
1822#line 20
1823  printf(__cil_tmp5, tmp___0);
1824  }
1825#line 625 "Email.c"
1826  return;
1827}
1828}
1829#line 26 "Email.c"
1830void printMail__wrappee__Forward(int msg ) 
1831{ int tmp ;
1832  int tmp___0 ;
1833  char const   * __restrict  __cil_tmp4 ;
1834  char const   * __restrict  __cil_tmp5 ;
1835
1836  {
1837  {
1838#line 27
1839  printMail__wrappee__AutoResponder(msg);
1840#line 28
1841  tmp = isSigned(msg);
1842#line 28
1843  __cil_tmp4 = (char const   * __restrict  )"SIGNED\n  %i\n";
1844#line 28
1845  printf(__cil_tmp4, tmp);
1846#line 29
1847  tmp___0 = getEmailSignKey(msg);
1848#line 29
1849  __cil_tmp5 = (char const   * __restrict  )"SIGNATURE\n  %i\n";
1850#line 29
1851  printf(__cil_tmp5, tmp___0);
1852  }
1853#line 649 "Email.c"
1854  return;
1855}
1856}
1857#line 33 "Email.c"
1858void printMail(int msg ) 
1859{ int tmp ;
1860  char const   * __restrict  __cil_tmp3 ;
1861
1862  {
1863  {
1864#line 34
1865  printMail__wrappee__Forward(msg);
1866#line 35
1867  tmp = isVerified(msg);
1868#line 35
1869  __cil_tmp3 = (char const   * __restrict  )"SIGNATURE VERIFIED\n  %d\n";
1870#line 35
1871  printf(__cil_tmp3, tmp);
1872  }
1873#line 671 "Email.c"
1874  return;
1875}
1876}
1877#line 41 "Email.c"
1878int isReadable__wrappee__Keys(int msg ) 
1879{ int retValue_acc ;
1880
1881  {
1882#line 689 "Email.c"
1883  retValue_acc = 1;
1884#line 691
1885  return (retValue_acc);
1886#line 698
1887  return (retValue_acc);
1888}
1889}
1890#line 49 "Email.c"
1891int isReadable(int msg ) 
1892{ int retValue_acc ;
1893  int tmp ;
1894
1895  {
1896  {
1897#line 53
1898  tmp = isEncrypted(msg);
1899  }
1900#line 53 "Email.c"
1901  if (tmp) {
1902#line 727
1903    retValue_acc = 0;
1904#line 729
1905    return (retValue_acc);
1906  } else {
1907    {
1908#line 721 "Email.c"
1909    retValue_acc = isReadable__wrappee__Keys(msg);
1910    }
1911#line 723
1912    return (retValue_acc);
1913  }
1914#line 736 "Email.c"
1915  return (retValue_acc);
1916}
1917}
1918#line 57 "Email.c"
1919int cloneEmail(int msg ) 
1920{ int retValue_acc ;
1921
1922  {
1923#line 758 "Email.c"
1924  retValue_acc = msg;
1925#line 760
1926  return (retValue_acc);
1927#line 767
1928  return (retValue_acc);
1929}
1930}
1931#line 62 "Email.c"
1932int createEmail(int from , int to ) 
1933{ int retValue_acc ;
1934  int msg ;
1935
1936  {
1937  {
1938#line 63
1939  msg = 1;
1940#line 64
1941  setEmailFrom(msg, from);
1942#line 65
1943  setEmailTo(msg, to);
1944#line 797 "Email.c"
1945  retValue_acc = msg;
1946  }
1947#line 799
1948  return (retValue_acc);
1949#line 806
1950  return (retValue_acc);
1951}
1952}
1953#line 1 "featureselect.o"
1954#pragma merger(0,"featureselect.i","")
1955#line 41 "featureselect.h"
1956int select_one(void) ;
1957#line 43
1958void select_features(void) ;
1959#line 45
1960void select_helpers(void) ;
1961#line 47
1962int valid_product(void) ;
1963#line 8 "featureselect.c"
1964int select_one(void) 
1965{ int retValue_acc ;
1966  int choice = __VERIFIER_nondet_int();
1967
1968  {
1969#line 84 "featureselect.c"
1970  retValue_acc = choice;
1971#line 86
1972  return (retValue_acc);
1973#line 93
1974  return (retValue_acc);
1975}
1976}
1977#line 14 "featureselect.c"
1978void select_features(void) 
1979{ 
1980
1981  {
1982#line 115 "featureselect.c"
1983  return;
1984}
1985}
1986#line 20 "featureselect.c"
1987void select_helpers(void) 
1988{ 
1989
1990  {
1991#line 133 "featureselect.c"
1992  return;
1993}
1994}
1995#line 25 "featureselect.c"
1996int valid_product(void) 
1997{ int retValue_acc ;
1998
1999  {
2000#line 151 "featureselect.c"
2001  retValue_acc = 1;
2002#line 153
2003  return (retValue_acc);
2004#line 160
2005  return (retValue_acc);
2006}
2007}
2008#line 1 "wsllib_check.o"
2009#pragma merger(0,"wsllib_check.i","")
2010#line 3 "wsllib_check.c"
2011void __automaton_fail(void) 
2012{ 
2013
2014  {
2015  goto ERROR;
2016  ERROR: ;
2017#line 53 "wsllib_check.c"
2018  return;
2019}
2020}
2021#line 1 "DecryptForward_spec.o"
2022#pragma merger(0,"DecryptForward_spec.i","")
2023#line 688 "/usr/include/stdio.h"
2024extern int puts(char const   *__s ) ;
2025#line 11 "DecryptForward_spec.c"
2026__inline void __utac_acc__DecryptForward_spec__1(int msg ) 
2027{ int tmp ;
2028
2029  {
2030  {
2031#line 13
2032  puts("before forward\n");
2033#line 14
2034  tmp = isReadable(msg);
2035  }
2036#line 14
2037  if (tmp) {
2038
2039  } else {
2040    {
2041#line 15
2042    __automaton_fail();
2043    }
2044  }
2045#line 15
2046  return;
2047}
2048}
2049#line 1 "Client.o"
2050#pragma merger(0,"Client.i","")
2051#line 28 "EmailLib.h"
2052void setEmailIsEncrypted(int handle , int value ) ;
2053#line 32
2054void setEmailEncryptionKey(int handle , int value ) ;
2055#line 36
2056void setEmailIsSigned(int handle , int value ) ;
2057#line 40
2058void setEmailSignKey(int handle , int value ) ;
2059#line 44
2060void setEmailIsSignatureVerified(int handle , int value ) ;
2061#line 14 "Client.h"
2062void queue(int client , int msg ) ;
2063#line 17
2064int is_queue_empty(void) ;
2065#line 19
2066int get_queued_client(void) ;
2067#line 21
2068int get_queued_email(void) ;
2069#line 24
2070void mail(int client , int msg ) ;
2071#line 26
2072void outgoing(int client , int msg ) ;
2073#line 28
2074void deliver(int client , int msg ) ;
2075#line 30
2076void incoming(int client , int msg ) ;
2077#line 32
2078int createClient(char *name ) ;
2079#line 35
2080void sendEmail(int sender , int receiver ) ;
2081#line 40
2082int isKeyPairValid(int publicKey , int privateKey ) ;
2083#line 44
2084void generateKeyPair(int client , int seed ) ;
2085#line 45
2086void autoRespond(int client , int msg ) ;
2087#line 47
2088void sign(int client , int msg ) ;
2089#line 49
2090void forward(int client , int msg ) ;
2091#line 51
2092void verify(int client , int msg ) ;
2093#line 6 "Client.c"
2094int queue_empty  =    1;
2095#line 9 "Client.c"
2096int queued_message  ;
2097#line 12 "Client.c"
2098int queued_client  ;
2099#line 18 "Client.c"
2100void mail(int client , int msg ) 
2101{ int tmp ;
2102
2103  {
2104  {
2105#line 19
2106  puts("mail sent");
2107#line 20
2108  tmp = getEmailTo(msg);
2109#line 20
2110  incoming(tmp, msg);
2111  }
2112#line 737 "Client.c"
2113  return;
2114}
2115}
2116#line 27 "Client.c"
2117void outgoing__wrappee__Keys(int client , int msg ) 
2118{ int tmp ;
2119
2120  {
2121  {
2122#line 28
2123  tmp = getClientId(client);
2124#line 28
2125  setEmailFrom(msg, tmp);
2126#line 29
2127  mail(client, msg);
2128  }
2129#line 759 "Client.c"
2130  return;
2131}
2132}
2133#line 33 "Client.c"
2134void outgoing__wrappee__AutoResponder(int client , int msg ) 
2135{ int receiver ;
2136  int tmp ;
2137  int pubkey ;
2138  int tmp___0 ;
2139
2140  {
2141  {
2142#line 36
2143  tmp = getEmailTo(msg);
2144#line 36
2145  receiver = tmp;
2146#line 37
2147  tmp___0 = findPublicKey(client, receiver);
2148#line 37
2149  pubkey = tmp___0;
2150  }
2151#line 38
2152  if (pubkey) {
2153    {
2154#line 39
2155    setEmailEncryptionKey(msg, pubkey);
2156#line 40
2157    setEmailIsEncrypted(msg, 1);
2158    }
2159  } else {
2160
2161  }
2162  {
2163#line 45
2164  outgoing__wrappee__Keys(client, msg);
2165  }
2166#line 794 "Client.c"
2167  return;
2168}
2169}
2170#line 51 "Client.c"
2171void outgoing(int client , int msg ) 
2172{ 
2173
2174  {
2175  {
2176#line 52
2177  sign(client, msg);
2178#line 53
2179  outgoing__wrappee__AutoResponder(client, msg);
2180  }
2181#line 816 "Client.c"
2182  return;
2183}
2184}
2185#line 60 "Client.c"
2186void deliver(int client , int msg ) 
2187{ 
2188
2189  {
2190  {
2191#line 61
2192  puts("mail delivered\n");
2193  }
2194#line 836 "Client.c"
2195  return;
2196}
2197}
2198#line 68 "Client.c"
2199void incoming__wrappee__Encrypt(int client , int msg ) 
2200{ 
2201
2202  {
2203  {
2204#line 69
2205  deliver(client, msg);
2206  }
2207#line 856 "Client.c"
2208  return;
2209}
2210}
2211#line 75 "Client.c"
2212void incoming__wrappee__Sign(int client , int msg ) 
2213{ int tmp ;
2214
2215  {
2216  {
2217#line 76
2218  incoming__wrappee__Encrypt(client, msg);
2219#line 77
2220  tmp = getClientAutoResponse(client);
2221  }
2222#line 77
2223  if (tmp) {
2224    {
2225#line 78
2226    autoRespond(client, msg);
2227    }
2228  } else {
2229
2230  }
2231#line 881 "Client.c"
2232  return;
2233}
2234}
2235#line 85 "Client.c"
2236void incoming__wrappee__Forward(int client , int msg ) 
2237{ int fwreceiver ;
2238  int tmp ;
2239
2240  {
2241  {
2242#line 86
2243  incoming__wrappee__Sign(client, msg);
2244#line 87
2245  tmp = getClientForwardReceiver(client);
2246#line 87
2247  fwreceiver = tmp;
2248  }
2249#line 88
2250  if (fwreceiver) {
2251    {
2252#line 90
2253    setEmailTo(msg, fwreceiver);
2254#line 91
2255    forward(client, msg);
2256    }
2257  } else {
2258
2259  }
2260#line 912 "Client.c"
2261  return;
2262}
2263}
2264#line 99 "Client.c"
2265void incoming__wrappee__Verify(int client , int msg ) 
2266{ 
2267
2268  {
2269  {
2270#line 100
2271  verify(client, msg);
2272#line 101
2273  incoming__wrappee__Forward(client, msg);
2274  }
2275#line 934 "Client.c"
2276  return;
2277}
2278}
2279#line 106 "Client.c"
2280void incoming(int client , int msg ) 
2281{ int privkey ;
2282  int tmp ;
2283  int tmp___0 ;
2284  int tmp___1 ;
2285  int tmp___2 ;
2286
2287  {
2288  {
2289#line 109
2290  tmp = getClientPrivateKey(client);
2291#line 109
2292  privkey = tmp;
2293  }
2294#line 110
2295  if (privkey) {
2296    {
2297#line 118
2298    tmp___0 = isEncrypted(msg);
2299    }
2300#line 118
2301    if (tmp___0) {
2302      {
2303#line 118
2304      tmp___1 = getEmailEncryptionKey(msg);
2305#line 118
2306      tmp___2 = isKeyPairValid(tmp___1, privkey);
2307      }
2308#line 118
2309      if (tmp___2) {
2310        {
2311#line 115
2312        setEmailIsEncrypted(msg, 0);
2313#line 116
2314        setEmailEncryptionKey(msg, 0);
2315        }
2316      } else {
2317
2318      }
2319    } else {
2320
2321    }
2322  } else {
2323
2324  }
2325  {
2326#line 121
2327  incoming__wrappee__Verify(client, msg);
2328  }
2329#line 968 "Client.c"
2330  return;
2331}
2332}
2333#line 125 "Client.c"
2334int createClient(char *name ) 
2335{ int retValue_acc ;
2336  int client ;
2337  int tmp ;
2338
2339  {
2340  {
2341#line 126
2342  tmp = initClient();
2343#line 126
2344  client = tmp;
2345#line 990 "Client.c"
2346  retValue_acc = client;
2347  }
2348#line 992
2349  return (retValue_acc);
2350#line 999
2351  return (retValue_acc);
2352}
2353}
2354#line 133 "Client.c"
2355void sendEmail(int sender , int receiver ) 
2356{ int email ;
2357  int tmp ;
2358
2359  {
2360  {
2361#line 134
2362  tmp = createEmail(0, receiver);
2363#line 134
2364  email = tmp;
2365#line 135
2366  outgoing(sender, email);
2367  }
2368#line 1027 "Client.c"
2369  return;
2370}
2371}
2372#line 143 "Client.c"
2373void queue(int client , int msg ) 
2374{ 
2375
2376  {
2377#line 144
2378  queue_empty = 0;
2379#line 145
2380  queued_message = msg;
2381#line 146
2382  queued_client = client;
2383#line 1051 "Client.c"
2384  return;
2385}
2386}
2387#line 152 "Client.c"
2388int is_queue_empty(void) 
2389{ int retValue_acc ;
2390
2391  {
2392#line 1069 "Client.c"
2393  retValue_acc = queue_empty;
2394#line 1071
2395  return (retValue_acc);
2396#line 1078
2397  return (retValue_acc);
2398}
2399}
2400#line 159 "Client.c"
2401int get_queued_client(void) 
2402{ int retValue_acc ;
2403
2404  {
2405#line 1100 "Client.c"
2406  retValue_acc = queued_client;
2407#line 1102
2408  return (retValue_acc);
2409#line 1109
2410  return (retValue_acc);
2411}
2412}
2413#line 166 "Client.c"
2414int get_queued_email(void) 
2415{ int retValue_acc ;
2416
2417  {
2418#line 1131 "Client.c"
2419  retValue_acc = queued_message;
2420#line 1133
2421  return (retValue_acc);
2422#line 1140
2423  return (retValue_acc);
2424}
2425}
2426#line 172 "Client.c"
2427int isKeyPairValid(int publicKey , int privateKey ) 
2428{ int retValue_acc ;
2429  char const   * __restrict  __cil_tmp4 ;
2430
2431  {
2432  {
2433#line 173
2434  __cil_tmp4 = (char const   * __restrict  )"keypair valid %d %d";
2435#line 173
2436  printf(__cil_tmp4, publicKey, privateKey);
2437  }
2438#line 174 "Client.c"
2439  if (! publicKey) {
2440#line 1165 "Client.c"
2441    retValue_acc = 0;
2442#line 1167
2443    return (retValue_acc);
2444  } else {
2445#line 174 "Client.c"
2446    if (! privateKey) {
2447#line 1165 "Client.c"
2448      retValue_acc = 0;
2449#line 1167
2450      return (retValue_acc);
2451    } else {
2452
2453    }
2454  }
2455#line 1172 "Client.c"
2456  retValue_acc = privateKey == publicKey;
2457#line 1174
2458  return (retValue_acc);
2459#line 1181
2460  return (retValue_acc);
2461}
2462}
2463#line 182 "Client.c"
2464void generateKeyPair(int client , int seed ) 
2465{ 
2466
2467  {
2468  {
2469#line 183
2470  setClientPrivateKey(client, seed);
2471  }
2472#line 1205 "Client.c"
2473  return;
2474}
2475}
2476#line 189 "Client.c"
2477void autoRespond(int client , int msg ) 
2478{ int sender ;
2479  int tmp ;
2480
2481  {
2482  {
2483#line 190
2484  puts("sending autoresponse\n");
2485#line 191
2486  tmp = getEmailFrom(msg);
2487#line 191
2488  sender = tmp;
2489#line 192
2490  setEmailTo(msg, sender);
2491#line 193
2492  queue(client, msg);
2493  }
2494#line 1347 "Client.c"
2495  return;
2496}
2497}
2498#line 198 "Client.c"
2499void sign(int client , int msg ) 
2500{ int privkey ;
2501  int tmp ;
2502
2503  {
2504  {
2505#line 199
2506  tmp = getClientPrivateKey(client);
2507#line 199
2508  privkey = tmp;
2509  }
2510#line 200
2511  if (! privkey) {
2512#line 201
2513    return;
2514  } else {
2515
2516  }
2517  {
2518#line 202
2519  setEmailIsSigned(msg, 1);
2520#line 203
2521  setEmailSignKey(msg, privkey);
2522  }
2523#line 1377 "Client.c"
2524  return;
2525}
2526}
2527#line 208 "Client.c"
2528void forward(int client , int msg ) 
2529{ int __utac__ad__arg1 ;
2530
2531  {
2532  {
2533#line 1390 "Client.c"
2534  __utac__ad__arg1 = msg;
2535#line 1391
2536  __utac_acc__DecryptForward_spec__1(__utac__ad__arg1);
2537#line 209 "Client.c"
2538  puts("Forwarding message.\n");
2539#line 210
2540  printMail(msg);
2541#line 211
2542  queue(client, msg);
2543  }
2544#line 1410 "Client.c"
2545  return;
2546}
2547}
2548#line 217 "Client.c"
2549void verify(int client , int msg ) 
2550{ int tmp ;
2551  int tmp___0 ;
2552  int pubkey ;
2553  int tmp___1 ;
2554  int tmp___2 ;
2555  int tmp___3 ;
2556  int tmp___4 ;
2557
2558  {
2559  {
2560#line 222
2561  tmp = isReadable(msg);
2562  }
2563#line 222
2564  if (tmp) {
2565    {
2566#line 222
2567    tmp___0 = isSigned(msg);
2568    }
2569#line 222
2570    if (tmp___0) {
2571
2572    } else {
2573#line 223
2574      return;
2575    }
2576  } else {
2577#line 223
2578    return;
2579  }
2580  {
2581#line 222
2582  tmp___1 = getEmailFrom(msg);
2583#line 222
2584  tmp___2 = findPublicKey(client, tmp___1);
2585#line 222
2586  pubkey = tmp___2;
2587  }
2588#line 223
2589  if (pubkey) {
2590    {
2591#line 223
2592    tmp___3 = getEmailSignKey(msg);
2593#line 223
2594    tmp___4 = isKeyPairValid(tmp___3, pubkey);
2595    }
2596#line 223
2597    if (tmp___4) {
2598      {
2599#line 224
2600      setEmailIsSignatureVerified(msg, 1);
2601      }
2602    } else {
2603
2604    }
2605  } else {
2606
2607  }
2608#line 1441 "Client.c"
2609  return;
2610}
2611}
2612#line 1 "Util.o"
2613#pragma merger(0,"Util.i","")
2614#line 1 "Util.h"
2615int prompt(char *msg ) ;
2616#line 9 "Util.c"
2617int prompt(char *msg ) 
2618{ int retValue_acc ;
2619  int retval ;
2620  char const   * __restrict  __cil_tmp4 ;
2621
2622  {
2623  {
2624#line 10
2625  __cil_tmp4 = (char const   * __restrict  )"%s\n";
2626#line 10
2627  printf(__cil_tmp4, msg);
2628#line 518 "Util.c"
2629  retValue_acc = retval;
2630  }
2631#line 520
2632  return (retValue_acc);
2633#line 527
2634  return (retValue_acc);
2635}
2636}
2637#line 1 "EmailLib.o"
2638#pragma merger(0,"EmailLib.i","")
2639#line 4 "EmailLib.h"
2640int initEmail(void) ;
2641#line 8
2642void setEmailId(int handle , int value ) ;
2643#line 18
2644char *getEmailSubject(int handle ) ;
2645#line 20
2646void setEmailSubject(int handle , char *value ) ;
2647#line 22
2648char *getEmailBody(int handle ) ;
2649#line 24
2650void setEmailBody(int handle , char *value ) ;
2651#line 5 "EmailLib.c"
2652int __ste_Email_counter  =    0;
2653#line 7 "EmailLib.c"
2654int initEmail(void) 
2655{ int retValue_acc ;
2656
2657  {
2658#line 12 "EmailLib.c"
2659  if (__ste_Email_counter < 2) {
2660#line 670
2661    __ste_Email_counter = __ste_Email_counter + 1;
2662#line 670
2663    retValue_acc = __ste_Email_counter;
2664#line 672
2665    return (retValue_acc);
2666  } else {
2667#line 678 "EmailLib.c"
2668    retValue_acc = -1;
2669#line 680
2670    return (retValue_acc);
2671  }
2672#line 687 "EmailLib.c"
2673  return (retValue_acc);
2674}
2675}
2676#line 15 "EmailLib.c"
2677int __ste_email_id0  =    0;
2678#line 17 "EmailLib.c"
2679int __ste_email_id1  =    0;
2680#line 19 "EmailLib.c"
2681int getEmailId(int handle ) 
2682{ int retValue_acc ;
2683
2684  {
2685#line 26 "EmailLib.c"
2686  if (handle == 1) {
2687#line 716
2688    retValue_acc = __ste_email_id0;
2689#line 718
2690    return (retValue_acc);
2691  } else {
2692#line 720
2693    if (handle == 2) {
2694#line 725
2695      retValue_acc = __ste_email_id1;
2696#line 727
2697      return (retValue_acc);
2698    } else {
2699#line 733 "EmailLib.c"
2700      retValue_acc = 0;
2701#line 735
2702      return (retValue_acc);
2703    }
2704  }
2705#line 742 "EmailLib.c"
2706  return (retValue_acc);
2707}
2708}
2709#line 29 "EmailLib.c"
2710void setEmailId(int handle , int value ) 
2711{ 
2712
2713  {
2714#line 35
2715  if (handle == 1) {
2716#line 31
2717    __ste_email_id0 = value;
2718  } else {
2719#line 32
2720    if (handle == 2) {
2721#line 33
2722      __ste_email_id1 = value;
2723    } else {
2724
2725    }
2726  }
2727#line 773 "EmailLib.c"
2728  return;
2729}
2730}
2731#line 37 "EmailLib.c"
2732int __ste_email_from0  =    0;
2733#line 39 "EmailLib.c"
2734int __ste_email_from1  =    0;
2735#line 41 "EmailLib.c"
2736int getEmailFrom(int handle ) 
2737{ int retValue_acc ;
2738
2739  {
2740#line 48 "EmailLib.c"
2741  if (handle == 1) {
2742#line 798
2743    retValue_acc = __ste_email_from0;
2744#line 800
2745    return (retValue_acc);
2746  } else {
2747#line 802
2748    if (handle == 2) {
2749#line 807
2750      retValue_acc = __ste_email_from1;
2751#line 809
2752      return (retValue_acc);
2753    } else {
2754#line 815 "EmailLib.c"
2755      retValue_acc = 0;
2756#line 817
2757      return (retValue_acc);
2758    }
2759  }
2760#line 824 "EmailLib.c"
2761  return (retValue_acc);
2762}
2763}
2764#line 51 "EmailLib.c"
2765void setEmailFrom(int handle , int value ) 
2766{ 
2767
2768  {
2769#line 57
2770  if (handle == 1) {
2771#line 53
2772    __ste_email_from0 = value;
2773  } else {
2774#line 54
2775    if (handle == 2) {
2776#line 55
2777      __ste_email_from1 = value;
2778    } else {
2779
2780    }
2781  }
2782#line 855 "EmailLib.c"
2783  return;
2784}
2785}
2786#line 59 "EmailLib.c"
2787int __ste_email_to0  =    0;
2788#line 61 "EmailLib.c"
2789int __ste_email_to1  =    0;
2790#line 63 "EmailLib.c"
2791int getEmailTo(int handle ) 
2792{ int retValue_acc ;
2793
2794  {
2795#line 70 "EmailLib.c"
2796  if (handle == 1) {
2797#line 880
2798    retValue_acc = __ste_email_to0;
2799#line 882
2800    return (retValue_acc);
2801  } else {
2802#line 884
2803    if (handle == 2) {
2804#line 889
2805      retValue_acc = __ste_email_to1;
2806#line 891
2807      return (retValue_acc);
2808    } else {
2809#line 897 "EmailLib.c"
2810      retValue_acc = 0;
2811#line 899
2812      return (retValue_acc);
2813    }
2814  }
2815#line 906 "EmailLib.c"
2816  return (retValue_acc);
2817}
2818}
2819#line 73 "EmailLib.c"
2820void setEmailTo(int handle , int value ) 
2821{ 
2822
2823  {
2824#line 79
2825  if (handle == 1) {
2826#line 75
2827    __ste_email_to0 = value;
2828  } else {
2829#line 76
2830    if (handle == 2) {
2831#line 77
2832      __ste_email_to1 = value;
2833    } else {
2834
2835    }
2836  }
2837#line 937 "EmailLib.c"
2838  return;
2839}
2840}
2841#line 81 "EmailLib.c"
2842char *__ste_email_subject0  ;
2843#line 83 "EmailLib.c"
2844char *__ste_email_subject1  ;
2845#line 85 "EmailLib.c"
2846char *getEmailSubject(int handle ) 
2847{ char *retValue_acc ;
2848  void *__cil_tmp3 ;
2849
2850  {
2851#line 92 "EmailLib.c"
2852  if (handle == 1) {
2853#line 962
2854    retValue_acc = __ste_email_subject0;
2855#line 964
2856    return (retValue_acc);
2857  } else {
2858#line 966
2859    if (handle == 2) {
2860#line 971
2861      retValue_acc = __ste_email_subject1;
2862#line 973
2863      return (retValue_acc);
2864    } else {
2865#line 979 "EmailLib.c"
2866      __cil_tmp3 = (void *)0;
2867#line 979
2868      retValue_acc = (char *)__cil_tmp3;
2869#line 981
2870      return (retValue_acc);
2871    }
2872  }
2873#line 988 "EmailLib.c"
2874  return (retValue_acc);
2875}
2876}
2877#line 95 "EmailLib.c"
2878void setEmailSubject(int handle , char *value ) 
2879{ 
2880
2881  {
2882#line 101
2883  if (handle == 1) {
2884#line 97
2885    __ste_email_subject0 = value;
2886  } else {
2887#line 98
2888    if (handle == 2) {
2889#line 99
2890      __ste_email_subject1 = value;
2891    } else {
2892
2893    }
2894  }
2895#line 1019 "EmailLib.c"
2896  return;
2897}
2898}
2899#line 103 "EmailLib.c"
2900char *__ste_email_body0  =    (char *)0;
2901#line 105 "EmailLib.c"
2902char *__ste_email_body1  =    (char *)0;
2903#line 107 "EmailLib.c"
2904char *getEmailBody(int handle ) 
2905{ char *retValue_acc ;
2906  void *__cil_tmp3 ;
2907
2908  {
2909#line 114 "EmailLib.c"
2910  if (handle == 1) {
2911#line 1044
2912    retValue_acc = __ste_email_body0;
2913#line 1046
2914    return (retValue_acc);
2915  } else {
2916#line 1048
2917    if (handle == 2) {
2918#line 1053
2919      retValue_acc = __ste_email_body1;
2920#line 1055
2921      return (retValue_acc);
2922    } else {
2923#line 1061 "EmailLib.c"
2924      __cil_tmp3 = (void *)0;
2925#line 1061
2926      retValue_acc = (char *)__cil_tmp3;
2927#line 1063
2928      return (retValue_acc);
2929    }
2930  }
2931#line 1070 "EmailLib.c"
2932  return (retValue_acc);
2933}
2934}
2935#line 117 "EmailLib.c"
2936void setEmailBody(int handle , char *value ) 
2937{ 
2938
2939  {
2940#line 123
2941  if (handle == 1) {
2942#line 119
2943    __ste_email_body0 = value;
2944  } else {
2945#line 120
2946    if (handle == 2) {
2947#line 121
2948      __ste_email_body1 = value;
2949    } else {
2950
2951    }
2952  }
2953#line 1101 "EmailLib.c"
2954  return;
2955}
2956}
2957#line 125 "EmailLib.c"
2958int __ste_email_isEncrypted0  =    0;
2959#line 127 "EmailLib.c"
2960int __ste_email_isEncrypted1  =    0;
2961#line 129 "EmailLib.c"
2962int isEncrypted(int handle ) 
2963{ int retValue_acc ;
2964
2965  {
2966#line 136 "EmailLib.c"
2967  if (handle == 1) {
2968#line 1126
2969    retValue_acc = __ste_email_isEncrypted0;
2970#line 1128
2971    return (retValue_acc);
2972  } else {
2973#line 1130
2974    if (handle == 2) {
2975#line 1135
2976      retValue_acc = __ste_email_isEncrypted1;
2977#line 1137
2978      return (retValue_acc);
2979    } else {
2980#line 1143 "EmailLib.c"
2981      retValue_acc = 0;
2982#line 1145
2983      return (retValue_acc);
2984    }
2985  }
2986#line 1152 "EmailLib.c"
2987  return (retValue_acc);
2988}
2989}
2990#line 139 "EmailLib.c"
2991void setEmailIsEncrypted(int handle , int value ) 
2992{ 
2993
2994  {
2995#line 145
2996  if (handle == 1) {
2997#line 141
2998    __ste_email_isEncrypted0 = value;
2999  } else {
3000#line 142
3001    if (handle == 2) {
3002#line 143
3003      __ste_email_isEncrypted1 = value;
3004    } else {
3005
3006    }
3007  }
3008#line 1183 "EmailLib.c"
3009  return;
3010}
3011}
3012#line 147 "EmailLib.c"
3013int __ste_email_encryptionKey0  =    0;
3014#line 149 "EmailLib.c"
3015int __ste_email_encryptionKey1  =    0;
3016#line 151 "EmailLib.c"
3017int getEmailEncryptionKey(int handle ) 
3018{ int retValue_acc ;
3019
3020  {
3021#line 158 "EmailLib.c"
3022  if (handle == 1) {
3023#line 1208
3024    retValue_acc = __ste_email_encryptionKey0;
3025#line 1210
3026    return (retValue_acc);
3027  } else {
3028#line 1212
3029    if (handle == 2) {
3030#line 1217
3031      retValue_acc = __ste_email_encryptionKey1;
3032#line 1219
3033      return (retValue_acc);
3034    } else {
3035#line 1225 "EmailLib.c"
3036      retValue_acc = 0;
3037#line 1227
3038      return (retValue_acc);
3039    }
3040  }
3041#line 1234 "EmailLib.c"
3042  return (retValue_acc);
3043}
3044}
3045#line 161 "EmailLib.c"
3046void setEmailEncryptionKey(int handle , int value ) 
3047{ 
3048
3049  {
3050#line 167
3051  if (handle == 1) {
3052#line 163
3053    __ste_email_encryptionKey0 = value;
3054  } else {
3055#line 164
3056    if (handle == 2) {
3057#line 165
3058      __ste_email_encryptionKey1 = value;
3059    } else {
3060
3061    }
3062  }
3063#line 1265 "EmailLib.c"
3064  return;
3065}
3066}
3067#line 169 "EmailLib.c"
3068int __ste_email_isSigned0  =    0;
3069#line 171 "EmailLib.c"
3070int __ste_email_isSigned1  =    0;
3071#line 173 "EmailLib.c"
3072int isSigned(int handle ) 
3073{ int retValue_acc ;
3074
3075  {
3076#line 180 "EmailLib.c"
3077  if (handle == 1) {
3078#line 1290
3079    retValue_acc = __ste_email_isSigned0;
3080#line 1292
3081    return (retValue_acc);
3082  } else {
3083#line 1294
3084    if (handle == 2) {
3085#line 1299
3086      retValue_acc = __ste_email_isSigned1;
3087#line 1301
3088      return (retValue_acc);
3089    } else {
3090#line 1307 "EmailLib.c"
3091      retValue_acc = 0;
3092#line 1309
3093      return (retValue_acc);
3094    }
3095  }
3096#line 1316 "EmailLib.c"
3097  return (retValue_acc);
3098}
3099}
3100#line 183 "EmailLib.c"
3101void setEmailIsSigned(int handle , int value ) 
3102{ 
3103
3104  {
3105#line 189
3106  if (handle == 1) {
3107#line 185
3108    __ste_email_isSigned0 = value;
3109  } else {
3110#line 186
3111    if (handle == 2) {
3112#line 187
3113      __ste_email_isSigned1 = value;
3114    } else {
3115
3116    }
3117  }
3118#line 1347 "EmailLib.c"
3119  return;
3120}
3121}
3122#line 191 "EmailLib.c"
3123int __ste_email_signKey0  =    0;
3124#line 193 "EmailLib.c"
3125int __ste_email_signKey1  =    0;
3126#line 195 "EmailLib.c"
3127int getEmailSignKey(int handle ) 
3128{ int retValue_acc ;
3129
3130  {
3131#line 202 "EmailLib.c"
3132  if (handle == 1) {
3133#line 1372
3134    retValue_acc = __ste_email_signKey0;
3135#line 1374
3136    return (retValue_acc);
3137  } else {
3138#line 1376
3139    if (handle == 2) {
3140#line 1381
3141      retValue_acc = __ste_email_signKey1;
3142#line 1383
3143      return (retValue_acc);
3144    } else {
3145#line 1389 "EmailLib.c"
3146      retValue_acc = 0;
3147#line 1391
3148      return (retValue_acc);
3149    }
3150  }
3151#line 1398 "EmailLib.c"
3152  return (retValue_acc);
3153}
3154}
3155#line 205 "EmailLib.c"
3156void setEmailSignKey(int handle , int value ) 
3157{ 
3158
3159  {
3160#line 211
3161  if (handle == 1) {
3162#line 207
3163    __ste_email_signKey0 = value;
3164  } else {
3165#line 208
3166    if (handle == 2) {
3167#line 209
3168      __ste_email_signKey1 = value;
3169    } else {
3170
3171    }
3172  }
3173#line 1429 "EmailLib.c"
3174  return;
3175}
3176}
3177#line 213 "EmailLib.c"
3178int __ste_email_isSignatureVerified0  ;
3179#line 215 "EmailLib.c"
3180int __ste_email_isSignatureVerified1  ;
3181#line 217 "EmailLib.c"
3182int isVerified(int handle ) 
3183{ int retValue_acc ;
3184
3185  {
3186#line 224 "EmailLib.c"
3187  if (handle == 1) {
3188#line 1454
3189    retValue_acc = __ste_email_isSignatureVerified0;
3190#line 1456
3191    return (retValue_acc);
3192  } else {
3193#line 1458
3194    if (handle == 2) {
3195#line 1463
3196      retValue_acc = __ste_email_isSignatureVerified1;
3197#line 1465
3198      return (retValue_acc);
3199    } else {
3200#line 1471 "EmailLib.c"
3201      retValue_acc = 0;
3202#line 1473
3203      return (retValue_acc);
3204    }
3205  }
3206#line 1480 "EmailLib.c"
3207  return (retValue_acc);
3208}
3209}
3210#line 227 "EmailLib.c"
3211void setEmailIsSignatureVerified(int handle , int value ) 
3212{ 
3213
3214  {
3215#line 233
3216  if (handle == 1) {
3217#line 229
3218    __ste_email_isSignatureVerified0 = value;
3219  } else {
3220#line 230
3221    if (handle == 2) {
3222#line 231
3223      __ste_email_isSignatureVerified1 = value;
3224    } else {
3225
3226    }
3227  }
3228#line 1511 "EmailLib.c"
3229  return;
3230}
3231}
3232#line 1 "libacc.o"
3233#pragma merger(0,"libacc.i","")
3234#line 73 "/usr/include/assert.h"
3235extern  __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const   *__assertion ,
3236                                                                      char const   *__file ,
3237                                                                      unsigned int __line ,
3238                                                                      char const   *__function ) ;
3239#line 471 "/usr/include/stdlib.h"
3240extern  __attribute__((__nothrow__)) void *malloc(size_t __size )  __attribute__((__malloc__)) ;
3241#line 488
3242extern  __attribute__((__nothrow__)) void free(void *__ptr ) ;
3243#line 32 "libacc.c"
3244void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int  ,
3245                                                                           int  ) ,
3246                                       int val ) 
3247{ struct __UTAC__EXCEPTION *excep ;
3248  struct __UTAC__CFLOW_FUNC *cf ;
3249  void *tmp ;
3250  unsigned long __cil_tmp7 ;
3251  unsigned long __cil_tmp8 ;
3252  unsigned long __cil_tmp9 ;
3253  unsigned long __cil_tmp10 ;
3254  unsigned long __cil_tmp11 ;
3255  unsigned long __cil_tmp12 ;
3256  unsigned long __cil_tmp13 ;
3257  unsigned long __cil_tmp14 ;
3258  int (**mem_15)(int  , int  ) ;
3259  int *mem_16 ;
3260  struct __UTAC__CFLOW_FUNC **mem_17 ;
3261  struct __UTAC__CFLOW_FUNC **mem_18 ;
3262  struct __UTAC__CFLOW_FUNC **mem_19 ;
3263
3264  {
3265  {
3266#line 33
3267  excep = (struct __UTAC__EXCEPTION *)exception;
3268#line 34
3269  tmp = malloc(24UL);
3270#line 34
3271  cf = (struct __UTAC__CFLOW_FUNC *)tmp;
3272#line 36
3273  mem_15 = (int (**)(int  , int  ))cf;
3274#line 36
3275  *mem_15 = cflow_func;
3276#line 37
3277  __cil_tmp7 = (unsigned long )cf;
3278#line 37
3279  __cil_tmp8 = __cil_tmp7 + 8;
3280#line 37
3281  mem_16 = (int *)__cil_tmp8;
3282#line 37
3283  *mem_16 = val;
3284#line 38
3285  __cil_tmp9 = (unsigned long )cf;
3286#line 38
3287  __cil_tmp10 = __cil_tmp9 + 16;
3288#line 38
3289  __cil_tmp11 = (unsigned long )excep;
3290#line 38
3291  __cil_tmp12 = __cil_tmp11 + 24;
3292#line 38
3293  mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10;
3294#line 38
3295  mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12;
3296#line 38
3297  *mem_17 = *mem_18;
3298#line 39
3299  __cil_tmp13 = (unsigned long )excep;
3300#line 39
3301  __cil_tmp14 = __cil_tmp13 + 24;
3302#line 39
3303  mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14;
3304#line 39
3305  *mem_19 = cf;
3306  }
3307#line 654 "libacc.c"
3308  return;
3309}
3310}
3311#line 44 "libacc.c"
3312void __utac__exception__cf_handler_free(void *exception ) 
3313{ struct __UTAC__EXCEPTION *excep ;
3314  struct __UTAC__CFLOW_FUNC *cf ;
3315  struct __UTAC__CFLOW_FUNC *tmp ;
3316  unsigned long __cil_tmp5 ;
3317  unsigned long __cil_tmp6 ;
3318  struct __UTAC__CFLOW_FUNC *__cil_tmp7 ;
3319  unsigned long __cil_tmp8 ;
3320  unsigned long __cil_tmp9 ;
3321  unsigned long __cil_tmp10 ;
3322  unsigned long __cil_tmp11 ;
3323  void *__cil_tmp12 ;
3324  unsigned long __cil_tmp13 ;
3325  unsigned long __cil_tmp14 ;
3326  struct __UTAC__CFLOW_FUNC **mem_15 ;
3327  struct __UTAC__CFLOW_FUNC **mem_16 ;
3328  struct __UTAC__CFLOW_FUNC **mem_17 ;
3329
3330  {
3331#line 45
3332  excep = (struct __UTAC__EXCEPTION *)exception;
3333#line 46
3334  __cil_tmp5 = (unsigned long )excep;
3335#line 46
3336  __cil_tmp6 = __cil_tmp5 + 24;
3337#line 46
3338  mem_15 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6;
3339#line 46
3340  cf = *mem_15;
3341  {
3342#line 49
3343  while (1) {
3344    while_0_continue: /* CIL Label */ ;
3345    {
3346#line 49
3347    __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0;
3348#line 49
3349    __cil_tmp8 = (unsigned long )__cil_tmp7;
3350#line 49
3351    __cil_tmp9 = (unsigned long )cf;
3352#line 49
3353    if (__cil_tmp9 != __cil_tmp8) {
3354
3355    } else {
3356      goto while_0_break;
3357    }
3358    }
3359    {
3360#line 50
3361    tmp = cf;
3362#line 51
3363    __cil_tmp10 = (unsigned long )cf;
3364#line 51
3365    __cil_tmp11 = __cil_tmp10 + 16;
3366#line 51
3367    mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp11;
3368#line 51
3369    cf = *mem_16;
3370#line 52
3371    __cil_tmp12 = (void *)tmp;
3372#line 52
3373    free(__cil_tmp12);
3374    }
3375  }
3376  while_0_break: /* CIL Label */ ;
3377  }
3378#line 55
3379  __cil_tmp13 = (unsigned long )excep;
3380#line 55
3381  __cil_tmp14 = __cil_tmp13 + 24;
3382#line 55
3383  mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp14;
3384#line 55
3385  *mem_17 = (struct __UTAC__CFLOW_FUNC *)0;
3386#line 694 "libacc.c"
3387  return;
3388}
3389}
3390#line 59 "libacc.c"
3391void __utac__exception__cf_handler_reset(void *exception ) 
3392{ struct __UTAC__EXCEPTION *excep ;
3393  struct __UTAC__CFLOW_FUNC *cf ;
3394  unsigned long __cil_tmp5 ;
3395  unsigned long __cil_tmp6 ;
3396  struct __UTAC__CFLOW_FUNC *__cil_tmp7 ;
3397  unsigned long __cil_tmp8 ;
3398  unsigned long __cil_tmp9 ;
3399  int (*__cil_tmp10)(int  , int  ) ;
3400  unsigned long __cil_tmp11 ;
3401  unsigned long __cil_tmp12 ;
3402  int __cil_tmp13 ;
3403  unsigned long __cil_tmp14 ;
3404  unsigned long __cil_tmp15 ;
3405  struct __UTAC__CFLOW_FUNC **mem_16 ;
3406  int (**mem_17)(int  , int  ) ;
3407  int *mem_18 ;
3408  struct __UTAC__CFLOW_FUNC **mem_19 ;
3409
3410  {
3411#line 60
3412  excep = (struct __UTAC__EXCEPTION *)exception;
3413#line 61
3414  __cil_tmp5 = (unsigned long )excep;
3415#line 61
3416  __cil_tmp6 = __cil_tmp5 + 24;
3417#line 61
3418  mem_16 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp6;
3419#line 61
3420  cf = *mem_16;
3421  {
3422#line 64
3423  while (1) {
3424    while_1_continue: /* CIL Label */ ;
3425    {
3426#line 64
3427    __cil_tmp7 = (struct __UTAC__CFLOW_FUNC *)0;
3428#line 64
3429    __cil_tmp8 = (unsigned long )__cil_tmp7;
3430#line 64
3431    __cil_tmp9 = (unsigned long )cf;
3432#line 64
3433    if (__cil_tmp9 != __cil_tmp8) {
3434
3435    } else {
3436      goto while_1_break;
3437    }
3438    }
3439    {
3440#line 65
3441    mem_17 = (int (**)(int  , int  ))cf;
3442#line 65
3443    __cil_tmp10 = *mem_17;
3444#line 65
3445    __cil_tmp11 = (unsigned long )cf;
3446#line 65
3447    __cil_tmp12 = __cil_tmp11 + 8;
3448#line 65
3449    mem_18 = (int *)__cil_tmp12;
3450#line 65
3451    __cil_tmp13 = *mem_18;
3452#line 65
3453    (*__cil_tmp10)(4, __cil_tmp13);
3454#line 66
3455    __cil_tmp14 = (unsigned long )cf;
3456#line 66
3457    __cil_tmp15 = __cil_tmp14 + 16;
3458#line 66
3459    mem_19 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp15;
3460#line 66
3461    cf = *mem_19;
3462    }
3463  }
3464  while_1_break: /* CIL Label */ ;
3465  }
3466  {
3467#line 69
3468  __utac__exception__cf_handler_free(exception);
3469  }
3470#line 732 "libacc.c"
3471  return;
3472}
3473}
3474#line 80 "libacc.c"
3475void *__utac__error_stack_mgt(void *env , int mode , int count ) ;
3476#line 80 "libacc.c"
3477static struct __ACC__ERR *head  =    (struct __ACC__ERR *)0;
3478#line 79 "libacc.c"
3479void *__utac__error_stack_mgt(void *env , int mode , int count ) 
3480{ void *retValue_acc ;
3481  struct __ACC__ERR *new ;
3482  void *tmp ;
3483  struct __ACC__ERR *temp ;
3484  struct __ACC__ERR *next ;
3485  void *excep ;
3486  unsigned long __cil_tmp10 ;
3487  unsigned long __cil_tmp11 ;
3488  unsigned long __cil_tmp12 ;
3489  unsigned long __cil_tmp13 ;
3490  void *__cil_tmp14 ;
3491  unsigned long __cil_tmp15 ;
3492  unsigned long __cil_tmp16 ;
3493  void *__cil_tmp17 ;
3494  void **mem_18 ;
3495  struct __ACC__ERR **mem_19 ;
3496  struct __ACC__ERR **mem_20 ;
3497  void **mem_21 ;
3498  struct __ACC__ERR **mem_22 ;
3499  void **mem_23 ;
3500  void **mem_24 ;
3501
3502  {
3503#line 82 "libacc.c"
3504  if (count == 0) {
3505#line 758 "libacc.c"
3506    return (retValue_acc);
3507  } else {
3508
3509  }
3510#line 86 "libacc.c"
3511  if (mode == 0) {
3512    {
3513#line 87
3514    tmp = malloc(16UL);
3515#line 87
3516    new = (struct __ACC__ERR *)tmp;
3517#line 88
3518    mem_18 = (void **)new;
3519#line 88
3520    *mem_18 = env;
3521#line 89
3522    __cil_tmp10 = (unsigned long )new;
3523#line 89
3524    __cil_tmp11 = __cil_tmp10 + 8;
3525#line 89
3526    mem_19 = (struct __ACC__ERR **)__cil_tmp11;
3527#line 89
3528    *mem_19 = head;
3529#line 90
3530    head = new;
3531#line 776 "libacc.c"
3532    retValue_acc = (void *)new;
3533    }
3534#line 778
3535    return (retValue_acc);
3536  } else {
3537
3538  }
3539#line 94 "libacc.c"
3540  if (mode == 1) {
3541#line 95
3542    temp = head;
3543    {
3544#line 98
3545    while (1) {
3546      while_2_continue: /* CIL Label */ ;
3547#line 98
3548      if (count > 1) {
3549
3550      } else {
3551        goto while_2_break;
3552      }
3553      {
3554#line 99
3555      __cil_tmp12 = (unsigned long )temp;
3556#line 99
3557      __cil_tmp13 = __cil_tmp12 + 8;
3558#line 99
3559      mem_20 = (struct __ACC__ERR **)__cil_tmp13;
3560#line 99
3561      next = *mem_20;
3562#line 100
3563      mem_21 = (void **)temp;
3564#line 100
3565      excep = *mem_21;
3566#line 101
3567      __cil_tmp14 = (void *)temp;
3568#line 101
3569      free(__cil_tmp14);
3570#line 102
3571      __utac__exception__cf_handler_reset(excep);
3572#line 103
3573      temp = next;
3574#line 104
3575      count = count - 1;
3576      }
3577    }
3578    while_2_break: /* CIL Label */ ;
3579    }
3580    {
3581#line 107
3582    __cil_tmp15 = (unsigned long )temp;
3583#line 107
3584    __cil_tmp16 = __cil_tmp15 + 8;
3585#line 107
3586    mem_22 = (struct __ACC__ERR **)__cil_tmp16;
3587#line 107
3588    head = *mem_22;
3589#line 108
3590    mem_23 = (void **)temp;
3591#line 108
3592    excep = *mem_23;
3593#line 109
3594    __cil_tmp17 = (void *)temp;
3595#line 109
3596    free(__cil_tmp17);
3597#line 110
3598    __utac__exception__cf_handler_reset(excep);
3599#line 820 "libacc.c"
3600    retValue_acc = excep;
3601    }
3602#line 822
3603    return (retValue_acc);
3604  } else {
3605
3606  }
3607#line 114
3608  if (mode == 2) {
3609#line 118 "libacc.c"
3610    if (head) {
3611#line 831
3612      mem_24 = (void **)head;
3613#line 831
3614      retValue_acc = *mem_24;
3615#line 833
3616      return (retValue_acc);
3617    } else {
3618#line 837 "libacc.c"
3619      retValue_acc = (void *)0;
3620#line 839
3621      return (retValue_acc);
3622    }
3623  } else {
3624
3625  }
3626#line 846 "libacc.c"
3627  return (retValue_acc);
3628}
3629}
3630#line 122 "libacc.c"
3631void *__utac__get_this_arg(int i , struct JoinPoint *this ) 
3632{ void *retValue_acc ;
3633  unsigned long __cil_tmp4 ;
3634  unsigned long __cil_tmp5 ;
3635  int __cil_tmp6 ;
3636  int __cil_tmp7 ;
3637  unsigned long __cil_tmp8 ;
3638  unsigned long __cil_tmp9 ;
3639  void **__cil_tmp10 ;
3640  void **__cil_tmp11 ;
3641  int *mem_12 ;
3642  void ***mem_13 ;
3643
3644  {
3645#line 123
3646  if (i > 0) {
3647    {
3648#line 123
3649    __cil_tmp4 = (unsigned long )this;
3650#line 123
3651    __cil_tmp5 = __cil_tmp4 + 16;
3652#line 123
3653    mem_12 = (int *)__cil_tmp5;
3654#line 123
3655    __cil_tmp6 = *mem_12;
3656#line 123
3657    if (i <= __cil_tmp6) {
3658
3659    } else {
3660      {
3661#line 123
3662      __assert_fail("i > 0 && i <= this->argsCount", "libacc.c",
3663                    123U, "__utac__get_this_arg");
3664      }
3665    }
3666    }
3667  } else {
3668    {
3669#line 123
3670    __assert_fail("i > 0 && i <= this->argsCount", "libacc.c",
3671                  123U, "__utac__get_this_arg");
3672    }
3673  }
3674#line 870 "libacc.c"
3675  __cil_tmp7 = i - 1;
3676#line 870
3677  __cil_tmp8 = (unsigned long )this;
3678#line 870
3679  __cil_tmp9 = __cil_tmp8 + 8;
3680#line 870
3681  mem_13 = (void ***)__cil_tmp9;
3682#line 870
3683  __cil_tmp10 = *mem_13;
3684#line 870
3685  __cil_tmp11 = __cil_tmp10 + __cil_tmp7;
3686#line 870
3687  retValue_acc = *__cil_tmp11;
3688#line 872
3689  return (retValue_acc);
3690#line 879
3691  return (retValue_acc);
3692}
3693}
3694#line 129 "libacc.c"
3695char const   *__utac__get_this_argtype(int i , struct JoinPoint *this ) 
3696{ char const   *retValue_acc ;
3697  unsigned long __cil_tmp4 ;
3698  unsigned long __cil_tmp5 ;
3699  int __cil_tmp6 ;
3700  int __cil_tmp7 ;
3701  unsigned long __cil_tmp8 ;
3702  unsigned long __cil_tmp9 ;
3703  char const   **__cil_tmp10 ;
3704  char const   **__cil_tmp11 ;
3705  int *mem_12 ;
3706  char const   ***mem_13 ;
3707
3708  {
3709#line 131
3710  if (i > 0) {
3711    {
3712#line 131
3713    __cil_tmp4 = (unsigned long )this;
3714#line 131
3715    __cil_tmp5 = __cil_tmp4 + 16;
3716#line 131
3717    mem_12 = (int *)__cil_tmp5;
3718#line 131
3719    __cil_tmp6 = *mem_12;
3720#line 131
3721    if (i <= __cil_tmp6) {
3722
3723    } else {
3724      {
3725#line 131
3726      __assert_fail("i > 0 && i <= this->argsCount", "libacc.c",
3727                    131U, "__utac__get_this_argtype");
3728      }
3729    }
3730    }
3731  } else {
3732    {
3733#line 131
3734    __assert_fail("i > 0 && i <= this->argsCount", "libacc.c",
3735                  131U, "__utac__get_this_argtype");
3736    }
3737  }
3738#line 903 "libacc.c"
3739  __cil_tmp7 = i - 1;
3740#line 903
3741  __cil_tmp8 = (unsigned long )this;
3742#line 903
3743  __cil_tmp9 = __cil_tmp8 + 24;
3744#line 903
3745  mem_13 = (char const   ***)__cil_tmp9;
3746#line 903
3747  __cil_tmp10 = *mem_13;
3748#line 903
3749  __cil_tmp11 = __cil_tmp10 + __cil_tmp7;
3750#line 903
3751  retValue_acc = *__cil_tmp11;
3752#line 905
3753  return (retValue_acc);
3754#line 912
3755  return (retValue_acc);
3756}
3757}
3758#line 1 "Test.o"
3759#pragma merger(0,"Test.i","")
3760#line 2 "Test.h"
3761int bob  ;
3762#line 5 "Test.h"
3763int rjh  ;
3764#line 8 "Test.h"
3765int chuck  ;
3766#line 11
3767void setup_bob(int bob___0 ) ;
3768#line 14
3769void setup_rjh(int rjh___0 ) ;
3770#line 17
3771void setup_chuck(int chuck___0 ) ;
3772#line 23
3773void bobToRjh(void) ;
3774#line 26
3775void rjhToBob(void) ;
3776#line 29
3777void test(void) ;
3778#line 32
3779void setup(void) ;
3780#line 35
3781int main(void) ;
3782#line 36
3783void bobKeyAdd(void) ;
3784#line 39
3785void bobKeyAddChuck(void) ;
3786#line 42
3787void rjhKeyAdd(void) ;
3788#line 45
3789void rjhKeyAddChuck(void) ;
3790#line 48
3791void chuckKeyAdd(void) ;
3792#line 51
3793void bobKeyChange(void) ;
3794#line 54
3795void rjhKeyChange(void) ;
3796#line 57
3797void rjhDeletePrivateKey(void) ;
3798#line 60
3799void chuckKeyAddRjh(void) ;
3800#line 61
3801void rjhSetAutoRespond(void) ;
3802#line 62
3803void rjhEnableForwarding(void) ;
3804#line 18 "Test.c"
3805void setup_bob__wrappee__Base(int bob___0 ) 
3806{ 
3807
3808  {
3809  {
3810#line 19
3811  setClientId(bob___0, bob___0);
3812  }
3813#line 1334 "Test.c"
3814  return;
3815}
3816}
3817#line 23 "Test.c"
3818void setup_bob(int bob___0 ) 
3819{ 
3820
3821  {
3822  {
3823#line 24
3824  setup_bob__wrappee__Base(bob___0);
3825#line 25
3826  setClientPrivateKey(bob___0, 123);
3827  }
3828#line 1356 "Test.c"
3829  return;
3830}
3831}
3832#line 33 "Test.c"
3833void setup_rjh__wrappee__Base(int rjh___0 ) 
3834{ 
3835
3836  {
3837  {
3838#line 34
3839  setClientId(rjh___0, rjh___0);
3840  }
3841#line 1376 "Test.c"
3842  return;
3843}
3844}
3845#line 40 "Test.c"
3846void setup_rjh(int rjh___0 ) 
3847{ 
3848
3849  {
3850  {
3851#line 42
3852  setup_rjh__wrappee__Base(rjh___0);
3853#line 43
3854  setClientPrivateKey(rjh___0, 456);
3855  }
3856#line 1398 "Test.c"
3857  return;
3858}
3859}
3860#line 50 "Test.c"
3861void setup_chuck__wrappee__Base(int chuck___0 ) 
3862{ 
3863
3864  {
3865  {
3866#line 51
3867  setClientId(chuck___0, chuck___0);
3868  }
3869#line 1418 "Test.c"
3870  return;
3871}
3872}
3873#line 57 "Test.c"
3874void setup_chuck(int chuck___0 ) 
3875{ 
3876
3877  {
3878  {
3879#line 58
3880  setup_chuck__wrappee__Base(chuck___0);
3881#line 59
3882  setClientPrivateKey(chuck___0, 789);
3883  }
3884#line 1440 "Test.c"
3885  return;
3886}
3887}
3888#line 69 "Test.c"
3889void bobToRjh(void) 
3890{ int tmp ;
3891  int tmp___0 ;
3892  int tmp___1 ;
3893
3894  {
3895  {
3896#line 71
3897  puts("Please enter a subject and a message body.\n");
3898#line 72
3899  sendEmail(bob, rjh);
3900#line 73
3901  tmp___1 = is_queue_empty();
3902  }
3903#line 73
3904  if (tmp___1) {
3905
3906  } else {
3907    {
3908#line 74
3909    tmp = get_queued_email();
3910#line 74
3911    tmp___0 = get_queued_client();
3912#line 74
3913    outgoing(tmp___0, tmp);
3914    }
3915  }
3916#line 1467 "Test.c"
3917  return;
3918}
3919}
3920#line 81 "Test.c"
3921void rjhToBob(void) 
3922{ 
3923
3924  {
3925  {
3926#line 83
3927  puts("Please enter a subject and a message body.\n");
3928#line 84
3929  sendEmail(rjh, bob);
3930  }
3931#line 1489 "Test.c"
3932  return;
3933}
3934}
3935#line 88 "Test.c"
3936#line 95 "Test.c"
3937void setup(void) 
3938{ char const   * __restrict  __cil_tmp1 ;
3939  char const   * __restrict  __cil_tmp2 ;
3940  char const   * __restrict  __cil_tmp3 ;
3941
3942  {
3943  {
3944#line 96
3945  bob = 1;
3946#line 97
3947  setup_bob(bob);
3948#line 98
3949  __cil_tmp1 = (char const   * __restrict  )"bob: %d\n";
3950#line 98
3951  printf(__cil_tmp1, bob);
3952#line 100
3953  rjh = 2;
3954#line 101
3955  setup_rjh(rjh);
3956#line 102
3957  __cil_tmp2 = (char const   * __restrict  )"rjh: %d\n";
3958#line 102
3959  printf(__cil_tmp2, rjh);
3960#line 104
3961  chuck = 3;
3962#line 105
3963  setup_chuck(chuck);
3964#line 106
3965  __cil_tmp3 = (char const   * __restrict  )"chuck: %d\n";
3966#line 106
3967  printf(__cil_tmp3, chuck);
3968  }
3969#line 1560 "Test.c"
3970  return;
3971}
3972}
3973#line 112 "Test.c"
3974int main(void) 
3975{ int retValue_acc ;
3976  int tmp ;
3977
3978  {
3979  {
3980#line 113
3981  select_helpers();
3982#line 114
3983  select_features();
3984#line 115
3985  tmp = valid_product();
3986  }
3987#line 115
3988  if (tmp) {
3989    {
3990#line 116
3991    setup();
3992#line 117
3993    test();
3994    }
3995  } else {
3996
3997  }
3998#line 1591 "Test.c"
3999  return (retValue_acc);
4000}
4001}
4002#line 125 "Test.c"
4003void bobKeyAdd(void) 
4004{ int tmp ;
4005  int tmp___0 ;
4006  char const   * __restrict  __cil_tmp3 ;
4007  char const   * __restrict  __cil_tmp4 ;
4008
4009  {
4010  {
4011#line 126
4012  createClientKeyringEntry(bob);
4013#line 127
4014  setClientKeyringUser(bob, 0, 2);
4015#line 128
4016  setClientKeyringPublicKey(bob, 0, 456);
4017#line 129
4018  puts("bob added rjhs key");
4019#line 130
4020  tmp = getClientKeyringUser(bob, 0);
4021#line 130
4022  __cil_tmp3 = (char const   * __restrict  )"%d\n";
4023#line 130
4024  printf(__cil_tmp3, tmp);
4025#line 131
4026  tmp___0 = getClientKeyringPublicKey(bob, 0);
4027#line 131
4028  __cil_tmp4 = (char const   * __restrict  )"%d\n";
4029#line 131
4030  printf(__cil_tmp4, tmp___0);
4031  }
4032#line 1625 "Test.c"
4033  return;
4034}
4035}
4036#line 137 "Test.c"
4037void rjhKeyAdd(void) 
4038{ 
4039
4040  {
4041  {
4042#line 138
4043  createClientKeyringEntry(rjh);
4044#line 139
4045  setClientKeyringUser(rjh, 0, 1);
4046#line 140
4047  setClientKeyringPublicKey(rjh, 0, 123);
4048  }
4049#line 1649 "Test.c"
4050  return;
4051}
4052}
4053#line 146 "Test.c"
4054void rjhKeyAddChuck(void) 
4055{ 
4056
4057  {
4058  {
4059#line 147
4060  createClientKeyringEntry(rjh);
4061#line 148
4062  setClientKeyringUser(rjh, 0, 3);
4063#line 149
4064  setClientKeyringPublicKey(rjh, 0, 789);
4065  }
4066#line 1673 "Test.c"
4067  return;
4068}
4069}
4070#line 156 "Test.c"
4071void bobKeyAddChuck(void) 
4072{ 
4073
4074  {
4075  {
4076#line 157
4077  createClientKeyringEntry(bob);
4078#line 158
4079  setClientKeyringUser(bob, 1, 3);
4080#line 159
4081  setClientKeyringPublicKey(bob, 1, 789);
4082  }
4083#line 1697 "Test.c"
4084  return;
4085}
4086}
4087#line 165 "Test.c"
4088void chuckKeyAdd(void) 
4089{ 
4090
4091  {
4092  {
4093#line 166
4094  createClientKeyringEntry(chuck);
4095#line 167
4096  setClientKeyringUser(chuck, 0, 1);
4097#line 168
4098  setClientKeyringPublicKey(chuck, 0, 123);
4099  }
4100#line 1721 "Test.c"
4101  return;
4102}
4103}
4104#line 174 "Test.c"
4105void chuckKeyAddRjh(void) 
4106{ 
4107
4108  {
4109  {
4110#line 175
4111  createClientKeyringEntry(chuck);
4112#line 176
4113  setClientKeyringUser(chuck, 0, 2);
4114#line 177
4115  setClientKeyringPublicKey(chuck, 0, 456);
4116  }
4117#line 1745 "Test.c"
4118  return;
4119}
4120}
4121#line 183 "Test.c"
4122void rjhDeletePrivateKey(void) 
4123{ 
4124
4125  {
4126  {
4127#line 184
4128  setClientPrivateKey(rjh, 0);
4129  }
4130#line 1765 "Test.c"
4131  return;
4132}
4133}
4134#line 190 "Test.c"
4135void bobKeyChange(void) 
4136{ 
4137
4138  {
4139  {
4140#line 191
4141  generateKeyPair(bob, 777);
4142  }
4143#line 1785 "Test.c"
4144  return;
4145}
4146}
4147#line 197 "Test.c"
4148void rjhKeyChange(void) 
4149{ 
4150
4151  {
4152  {
4153#line 198
4154  generateKeyPair(rjh, 666);
4155  }
4156#line 1805 "Test.c"
4157  return;
4158}
4159}
4160#line 204 "Test.c"
4161void rjhSetAutoRespond(void) 
4162{ 
4163
4164  {
4165  {
4166#line 205
4167  setClientAutoResponse(rjh, 1);
4168  }
4169#line 1825 "Test.c"
4170  return;
4171}
4172}
4173#line 211 "Test.c"
4174void rjhEnableForwarding(void) 
4175{ 
4176
4177  {
4178  {
4179#line 212
4180  setClientForwardReceiver(rjh, chuck);
4181  }
4182#line 1845 "Test.c"
4183  return;
4184}
4185}
4186#line 1 "scenario.o"
4187#pragma merger(0,"scenario.i","")
4188#line 1 "scenario.c"
4189void test(void) 
4190{ int op1 ;
4191  int op2 ;
4192  int op3 ;
4193  int op4 ;
4194  int op5 ;
4195  int op6 ;
4196  int op7 ;
4197  int op8 ;
4198  int op9 ;
4199  int op10 ;
4200  int op11 ;
4201  int splverifierCounter ;
4202  int tmp ;
4203  int tmp___0 ;
4204  int tmp___1 ;
4205  int tmp___2 ;
4206  int tmp___3 ;
4207  int tmp___4 ;
4208  int tmp___5 ;
4209  int tmp___6 ;
4210  int tmp___7 ;
4211  int tmp___8 ;
4212  int tmp___9 ;
4213
4214  {
4215#line 2
4216  op1 = 0;
4217#line 3
4218  op2 = 0;
4219#line 4
4220  op3 = 0;
4221#line 5
4222  op4 = 0;
4223#line 6
4224  op5 = 0;
4225#line 7
4226  op6 = 0;
4227#line 8
4228  op7 = 0;
4229#line 9
4230  op8 = 0;
4231#line 10
4232  op9 = 0;
4233#line 11
4234  op10 = 0;
4235#line 12
4236  op11 = 0;
4237#line 13
4238  splverifierCounter = 0;
4239  {
4240#line 14
4241  while (1) {
4242    while_3_continue: /* CIL Label */ ;
4243#line 14
4244    if (splverifierCounter < 4) {
4245
4246    } else {
4247      goto while_3_break;
4248    }
4249#line 15
4250    splverifierCounter = splverifierCounter + 1;
4251#line 16
4252    if (! op1) {
4253      {
4254#line 16
4255      tmp___9 = __VERIFIER_nondet_int();
4256      }
4257#line 16
4258      if (tmp___9) {
4259        {
4260#line 17
4261        bobKeyAdd();
4262#line 18
4263        op1 = 1;
4264        }
4265      } else {
4266        goto _L___8;
4267      }
4268    } else {
4269      _L___8: /* CIL Label */ 
4270#line 19
4271      if (! op2) {
4272        {
4273#line 19
4274        tmp___8 = __VERIFIER_nondet_int();
4275        }
4276#line 19
4277        if (tmp___8) {
4278          {
4279#line 21
4280          rjhSetAutoRespond();
4281#line 22
4282          op2 = 1;
4283          }
4284        } else {
4285          goto _L___7;
4286        }
4287      } else {
4288        _L___7: /* CIL Label */ 
4289#line 23
4290        if (! op3) {
4291          {
4292#line 23
4293          tmp___7 = __VERIFIER_nondet_int();
4294          }
4295#line 23
4296          if (tmp___7) {
4297            {
4298#line 25
4299            rjhDeletePrivateKey();
4300#line 26
4301            op3 = 1;
4302            }
4303          } else {
4304            goto _L___6;
4305          }
4306        } else {
4307          _L___6: /* CIL Label */ 
4308#line 27
4309          if (! op4) {
4310            {
4311#line 27
4312            tmp___6 = __VERIFIER_nondet_int();
4313            }
4314#line 27
4315            if (tmp___6) {
4316              {
4317#line 29
4318              rjhKeyAdd();
4319#line 30
4320              op4 = 1;
4321              }
4322            } else {
4323              goto _L___5;
4324            }
4325          } else {
4326            _L___5: /* CIL Label */ 
4327#line 31
4328            if (! op5) {
4329              {
4330#line 31
4331              tmp___5 = __VERIFIER_nondet_int();
4332              }
4333#line 31
4334              if (tmp___5) {
4335                {
4336#line 33
4337                chuckKeyAddRjh();
4338#line 34
4339                op5 = 1;
4340                }
4341              } else {
4342                goto _L___4;
4343              }
4344            } else {
4345              _L___4: /* CIL Label */ 
4346#line 35
4347              if (! op6) {
4348                {
4349#line 35
4350                tmp___4 = __VERIFIER_nondet_int();
4351                }
4352#line 35
4353                if (tmp___4) {
4354                  {
4355#line 37
4356                  rjhEnableForwarding();
4357#line 38
4358                  op6 = 1;
4359                  }
4360                } else {
4361                  goto _L___3;
4362                }
4363              } else {
4364                _L___3: /* CIL Label */ 
4365#line 39
4366                if (! op7) {
4367                  {
4368#line 39
4369                  tmp___3 = __VERIFIER_nondet_int();
4370                  }
4371#line 39
4372                  if (tmp___3) {
4373                    {
4374#line 41
4375                    rjhKeyChange();
4376#line 42
4377                    op7 = 1;
4378                    }
4379                  } else {
4380                    goto _L___2;
4381                  }
4382                } else {
4383                  _L___2: /* CIL Label */ 
4384#line 43
4385                  if (! op8) {
4386                    {
4387#line 43
4388                    tmp___2 = __VERIFIER_nondet_int();
4389                    }
4390#line 43
4391                    if (tmp___2) {
4392#line 45
4393                      op8 = 1;
4394                    } else {
4395                      goto _L___1;
4396                    }
4397                  } else {
4398                    _L___1: /* CIL Label */ 
4399#line 46
4400                    if (! op9) {
4401                      {
4402#line 46
4403                      tmp___1 = __VERIFIER_nondet_int();
4404                      }
4405#line 46
4406                      if (tmp___1) {
4407                        {
4408#line 48
4409                        chuckKeyAdd();
4410#line 49
4411                        op9 = 1;
4412                        }
4413                      } else {
4414                        goto _L___0;
4415                      }
4416                    } else {
4417                      _L___0: /* CIL Label */ 
4418#line 50
4419                      if (! op10) {
4420                        {
4421#line 50
4422                        tmp___0 = __VERIFIER_nondet_int();
4423                        }
4424#line 50
4425                        if (tmp___0) {
4426                          {
4427#line 52
4428                          bobKeyChange();
4429#line 53
4430                          op10 = 1;
4431                          }
4432                        } else {
4433                          goto _L;
4434                        }
4435                      } else {
4436                        _L: /* CIL Label */ 
4437#line 54
4438                        if (! op11) {
4439                          {
4440#line 54
4441                          tmp = __VERIFIER_nondet_int();
4442                          }
4443#line 54
4444                          if (tmp) {
4445                            {
4446#line 56
4447                            chuckKeyAdd();
4448#line 57
4449                            op11 = 1;
4450                            }
4451                          } else {
4452                            goto while_3_break;
4453                          }
4454                        } else {
4455                          goto while_3_break;
4456                        }
4457                      }
4458                    }
4459                  }
4460                }
4461              }
4462            }
4463          }
4464        }
4465      }
4466    }
4467  }
4468  while_3_break: /* CIL Label */ ;
4469  }
4470  {
4471#line 61
4472  bobToRjh();
4473  }
4474#line 169 "scenario.c"
4475  return;
4476}
4477}