This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
/
email_spec11_product26_false-unreach-call_true-termination.cil.c
2975 lines (2807 loc) · 62 KB
/
email_spec11_product26_false-unreach-call_true-termination.cil.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern int __VERIFIER_nondet_int(void);
/* Generated by CIL v. 1.3.7 */
/* print_CIL_Input is true */
struct JoinPoint {
void **(*fp)(struct JoinPoint * ) ;
void **args ;
int argsCount ;
char const **argsType ;
void *(*arg)(int , struct JoinPoint * ) ;
char const *(*argType)(int , struct JoinPoint * ) ;
void **retValue ;
char const *retType ;
char const *funcName ;
char const *targetName ;
char const *fileName ;
char const *kind ;
void *excep_return ;
};
struct __UTAC__CFLOW_FUNC {
int (*func)(int , int ) ;
int val ;
struct __UTAC__CFLOW_FUNC *next ;
};
struct __UTAC__EXCEPTION {
void *jumpbuf ;
unsigned long long prtValue ;
int pops ;
struct __UTAC__CFLOW_FUNC *cflowfuncs ;
};
typedef unsigned int size_t;
struct __ACC__ERR {
void *v ;
struct __ACC__ERR *next ;
};
#pragma merger(0,"EmailLib.i","")
int initEmail(void) ;
int getEmailId(int handle ) ;
void setEmailId(int handle , int value ) ;
int getEmailFrom(int handle ) ;
void setEmailFrom(int handle , int value ) ;
int getEmailTo(int handle ) ;
void setEmailTo(int handle , int value ) ;
char *getEmailSubject(int handle ) ;
void setEmailSubject(int handle , char *value ) ;
char *getEmailBody(int handle ) ;
void setEmailBody(int handle , char *value ) ;
int isEncrypted(int handle ) ;
void setEmailIsEncrypted(int handle , int value ) ;
int getEmailEncryptionKey(int handle ) ;
void setEmailEncryptionKey(int handle , int value ) ;
int isSigned(int handle ) ;
void setEmailIsSigned(int handle , int value ) ;
int getEmailSignKey(int handle ) ;
void setEmailSignKey(int handle , int value ) ;
int isVerified(int handle ) ;
void setEmailIsSignatureVerified(int handle , int value ) ;
int __ste_Email_counter = 0;
int initEmail(void)
{ int retValue_acc ;
{
if (__ste_Email_counter < 2) {
__ste_Email_counter = __ste_Email_counter + 1;
retValue_acc = __ste_Email_counter;
return (retValue_acc);
} else {
retValue_acc = -1;
return (retValue_acc);
}
return (retValue_acc);
}
}
int __ste_email_id0 = 0;
int __ste_email_id1 = 0;
int getEmailId(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_id0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_id1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailId(int handle , int value )
{
{
if (handle == 1) {
__ste_email_id0 = value;
} else {
if (handle == 2) {
__ste_email_id1 = value;
} else {
}
}
return;
}
}
int __ste_email_from0 = 0;
int __ste_email_from1 = 0;
int getEmailFrom(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_from0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_from1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailFrom(int handle , int value )
{
{
if (handle == 1) {
__ste_email_from0 = value;
} else {
if (handle == 2) {
__ste_email_from1 = value;
} else {
}
}
return;
}
}
int __ste_email_to0 = 0;
int __ste_email_to1 = 0;
int getEmailTo(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_to0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_to1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailTo(int handle , int value )
{
{
if (handle == 1) {
__ste_email_to0 = value;
} else {
if (handle == 2) {
__ste_email_to1 = value;
} else {
}
}
return;
}
}
char *__ste_email_subject0 ;
char *__ste_email_subject1 ;
char *getEmailSubject(int handle )
{ char *retValue_acc ;
void *__cil_tmp3 ;
{
if (handle == 1) {
retValue_acc = __ste_email_subject0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_subject1;
return (retValue_acc);
} else {
__cil_tmp3 = (void *)0;
retValue_acc = (char *)__cil_tmp3;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailSubject(int handle , char *value )
{
{
if (handle == 1) {
__ste_email_subject0 = value;
} else {
if (handle == 2) {
__ste_email_subject1 = value;
} else {
}
}
return;
}
}
char *__ste_email_body0 = (char *)0;
char *__ste_email_body1 = (char *)0;
char *getEmailBody(int handle )
{ char *retValue_acc ;
void *__cil_tmp3 ;
{
if (handle == 1) {
retValue_acc = __ste_email_body0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_body1;
return (retValue_acc);
} else {
__cil_tmp3 = (void *)0;
retValue_acc = (char *)__cil_tmp3;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailBody(int handle , char *value )
{
{
if (handle == 1) {
__ste_email_body0 = value;
} else {
if (handle == 2) {
__ste_email_body1 = value;
} else {
}
}
return;
}
}
int __ste_email_isEncrypted0 = 0;
int __ste_email_isEncrypted1 = 0;
int isEncrypted(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_isEncrypted0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_isEncrypted1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailIsEncrypted(int handle , int value )
{
{
if (handle == 1) {
__ste_email_isEncrypted0 = value;
} else {
if (handle == 2) {
__ste_email_isEncrypted1 = value;
} else {
}
}
return;
}
}
int __ste_email_encryptionKey0 = 0;
int __ste_email_encryptionKey1 = 0;
int getEmailEncryptionKey(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_encryptionKey0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_encryptionKey1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailEncryptionKey(int handle , int value )
{
{
if (handle == 1) {
__ste_email_encryptionKey0 = value;
} else {
if (handle == 2) {
__ste_email_encryptionKey1 = value;
} else {
}
}
return;
}
}
int __ste_email_isSigned0 = 0;
int __ste_email_isSigned1 = 0;
int isSigned(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_isSigned0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_isSigned1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailIsSigned(int handle , int value )
{
{
if (handle == 1) {
__ste_email_isSigned0 = value;
} else {
if (handle == 2) {
__ste_email_isSigned1 = value;
} else {
}
}
return;
}
}
int __ste_email_signKey0 = 0;
int __ste_email_signKey1 = 0;
int getEmailSignKey(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_signKey0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_signKey1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailSignKey(int handle , int value )
{
{
if (handle == 1) {
__ste_email_signKey0 = value;
} else {
if (handle == 2) {
__ste_email_signKey1 = value;
} else {
}
}
return;
}
}
int __ste_email_isSignatureVerified0 ;
int __ste_email_isSignatureVerified1 ;
int isVerified(int handle )
{ int retValue_acc ;
{
if (handle == 1) {
retValue_acc = __ste_email_isSignatureVerified0;
return (retValue_acc);
} else {
if (handle == 2) {
retValue_acc = __ste_email_isSignatureVerified1;
return (retValue_acc);
} else {
retValue_acc = 0;
return (retValue_acc);
}
}
return (retValue_acc);
}
}
void setEmailIsSignatureVerified(int handle , int value )
{
{
if (handle == 1) {
__ste_email_isSignatureVerified0 = value;
} else {
if (handle == 2) {
__ste_email_isSignatureVerified1 = value;
} else {
}
}
return;
}
}
#pragma merger(0,"Email.i","")
extern int printf(char const * __restrict __format , ...) ;
int __SELECTED_FEATURE_Base ;
int __SELECTED_FEATURE_Keys ;
int __SELECTED_FEATURE_Encrypt ;
int __SELECTED_FEATURE_AutoResponder ;
int __SELECTED_FEATURE_AddressBook ;
int __SELECTED_FEATURE_Sign ;
int __SELECTED_FEATURE_Forward ;
int __SELECTED_FEATURE_Verify ;
int __SELECTED_FEATURE_Decrypt ;
int __GUIDSL_ROOT_PRODUCTION ;
int __GUIDSL_NON_TERMINAL_main ;
void printMail(int msg ) ;
int isReadable(int msg ) ;
int createEmail(int from , int to ) ;
int cloneEmail(int msg ) ;
void printMail__wrappee__Keys(int msg )
{ int tmp ;
int tmp___0 ;
int tmp___1 ;
int tmp___2 ;
char const * __restrict __cil_tmp6 ;
char const * __restrict __cil_tmp7 ;
char const * __restrict __cil_tmp8 ;
char const * __restrict __cil_tmp9 ;
{
{
tmp = getEmailId(msg);
__cil_tmp6 = (char const * __restrict )"ID:\n %i\n";
printf(__cil_tmp6, tmp);
tmp___0 = getEmailFrom(msg);
__cil_tmp7 = (char const * __restrict )"FROM:\n %i\n";
printf(__cil_tmp7, tmp___0);
tmp___1 = getEmailTo(msg);
__cil_tmp8 = (char const * __restrict )"TO:\n %i\n";
printf(__cil_tmp8, tmp___1);
tmp___2 = isReadable(msg);
__cil_tmp9 = (char const * __restrict )"IS_READABLE\n %i\n";
printf(__cil_tmp9, tmp___2);
}
return;
}
}
void printMail(int msg )
{ int tmp ;
int tmp___0 ;
char const * __restrict __cil_tmp4 ;
char const * __restrict __cil_tmp5 ;
{
{
printMail__wrappee__Keys(msg);
tmp = isEncrypted(msg);
__cil_tmp4 = (char const * __restrict )"ENCRYPTED\n %d\n";
printf(__cil_tmp4, tmp);
tmp___0 = getEmailEncryptionKey(msg);
__cil_tmp5 = (char const * __restrict )"ENCRYPTION KEY\n %d\n";
printf(__cil_tmp5, tmp___0);
}
return;
}
}
int isReadable__wrappee__Keys(int msg )
{ int retValue_acc ;
{
retValue_acc = 1;
return (retValue_acc);
return (retValue_acc);
}
}
int isReadable(int msg )
{ int retValue_acc ;
int tmp ;
{
{
tmp = isEncrypted(msg);
}
if (tmp) {
retValue_acc = 0;
return (retValue_acc);
} else {
{
retValue_acc = isReadable__wrappee__Keys(msg);
}
return (retValue_acc);
}
return (retValue_acc);
}
}
int cloneEmail(int msg )
{ int retValue_acc ;
{
retValue_acc = msg;
return (retValue_acc);
return (retValue_acc);
}
}
int createEmail(int from , int to )
{ int retValue_acc ;
int msg ;
{
{
msg = 1;
setEmailFrom(msg, from);
setEmailTo(msg, to);
retValue_acc = msg;
}
return (retValue_acc);
return (retValue_acc);
}
}
#pragma merger(0,"featureselect.i","")
int select_one(void) ;
void select_features(void) ;
void select_helpers(void) ;
int valid_product(void) ;
int select_one(void)
{ int retValue_acc ;
int choice = __VERIFIER_nondet_int();
{
retValue_acc = choice;
return (retValue_acc);
return (retValue_acc);
}
}
void select_features(void)
{
{
return;
}
}
void select_helpers(void)
{
{
return;
}
}
int valid_product(void)
{ int retValue_acc ;
{
retValue_acc = 1;
return (retValue_acc);
return (retValue_acc);
}
}
#pragma merger(0,"DecryptAutoResponder_spec.i","")
void __automaton_fail(void) ;
extern int puts(char const *__s ) ;
__inline void __utac_acc__DecryptAutoResponder_spec__1(int client , int msg )
{ int tmp ;
{
{
puts("before autoRespond\n");
tmp = isReadable(msg);
}
if (tmp) {
} else {
{
__automaton_fail();
}
}
return;
}
}
#pragma merger(0,"Test.i","")
void setClientAddressBookSize(int handle , int value ) ;
void setClientAddressBookAlias(int handle , int index , int value ) ;
void setClientAddressBookAddress(int handle , int index , int value ) ;
void setClientAutoResponse(int handle , int value ) ;
void setClientPrivateKey(int handle , int value ) ;
int createClientKeyringEntry(int handle ) ;
int getClientKeyringUser(int handle , int index ) ;
void setClientKeyringUser(int handle , int index , int value ) ;
int getClientKeyringPublicKey(int handle , int index ) ;
void setClientKeyringPublicKey(int handle , int index , int value ) ;
void setClientForwardReceiver(int handle , int value ) ;
void setClientId(int handle , int value ) ;
int is_queue_empty(void) ;
int get_queued_client(void) ;
int get_queued_email(void) ;
void outgoing(int client , int msg ) ;
void sendEmail(int sender , int receiver ) ;
void generateKeyPair(int client , int seed ) ;
int bob ;
int rjh ;
int chuck ;
void setup_bob(int bob___0 ) ;
void setup_rjh(int rjh___0 ) ;
void setup_chuck(int chuck___0 ) ;
void bobToRjh(void) ;
void rjhToBob(void) ;
void test(void) ;
void setup(void) ;
int main(void) ;
void bobKeyAdd(void) ;
void bobKeyAddChuck(void) ;
void rjhKeyAdd(void) ;
void rjhKeyAddChuck(void) ;
void chuckKeyAdd(void) ;
void bobKeyChange(void) ;
void rjhKeyChange(void) ;
void rjhDeletePrivateKey(void) ;
void chuckKeyAddRjh(void) ;
void rjhSetAutoRespond(void) ;
void bobSetAddressBook(void) ;
void rjhEnableForwarding(void) ;
void setup_bob__wrappee__Base(int bob___0 )
{
{
{
setClientId(bob___0, bob___0);
}
return;
}
}
void setup_bob(int bob___0 )
{
{
{
setup_bob__wrappee__Base(bob___0);
setClientPrivateKey(bob___0, 123);
}
return;
}
}
void setup_rjh__wrappee__Base(int rjh___0 )
{
{
{
setClientId(rjh___0, rjh___0);
}
return;
}
}
void setup_rjh(int rjh___0 )
{
{
{
setup_rjh__wrappee__Base(rjh___0);
setClientPrivateKey(rjh___0, 456);
}
return;
}
}
void setup_chuck__wrappee__Base(int chuck___0 )
{
{
{
setClientId(chuck___0, chuck___0);
}
return;
}
}
void setup_chuck(int chuck___0 )
{
{
{
setup_chuck__wrappee__Base(chuck___0);
setClientPrivateKey(chuck___0, 789);
}
return;
}
}
void bobToRjh(void)
{ int tmp ;
int tmp___0 ;
int tmp___1 ;
{
{
puts("Please enter a subject and a message body.\n");
sendEmail(bob, rjh);
tmp___1 = is_queue_empty();
}
if (tmp___1) {
} else {
{
tmp = get_queued_email();
tmp___0 = get_queued_client();
outgoing(tmp___0, tmp);
}
}
return;
}
}
void rjhToBob(void)
{
{
{
puts("Please enter a subject and a message body.\n");
sendEmail(rjh, bob);
}
return;
}
}
void setup(void)
{ char const * __restrict __cil_tmp1 ;
char const * __restrict __cil_tmp2 ;
char const * __restrict __cil_tmp3 ;
{
{
bob = 1;
setup_bob(bob);
__cil_tmp1 = (char const * __restrict )"bob: %d\n";
printf(__cil_tmp1, bob);
rjh = 2;
setup_rjh(rjh);
__cil_tmp2 = (char const * __restrict )"rjh: %d\n";
printf(__cil_tmp2, rjh);
chuck = 3;
setup_chuck(chuck);
__cil_tmp3 = (char const * __restrict )"chuck: %d\n";
printf(__cil_tmp3, chuck);
}
return;
}
}
int main(void)
{ int retValue_acc ;
int tmp ;
{
{
select_helpers();
select_features();
tmp = valid_product();
}
if (tmp) {
{
setup();
test();
}
} else {
}
return (retValue_acc);
}
}
void bobKeyAdd(void)
{ int tmp ;
int tmp___0 ;
char const * __restrict __cil_tmp3 ;
char const * __restrict __cil_tmp4 ;
{
{
createClientKeyringEntry(bob);
setClientKeyringUser(bob, 0, 2);
setClientKeyringPublicKey(bob, 0, 456);
puts("bob added rjhs key");
tmp = getClientKeyringUser(bob, 0);
__cil_tmp3 = (char const * __restrict )"%d\n";
printf(__cil_tmp3, tmp);
tmp___0 = getClientKeyringPublicKey(bob, 0);
__cil_tmp4 = (char const * __restrict )"%d\n";
printf(__cil_tmp4, tmp___0);
}
return;
}
}
void rjhKeyAdd(void)
{
{
{
createClientKeyringEntry(rjh);
setClientKeyringUser(rjh, 0, 1);
setClientKeyringPublicKey(rjh, 0, 123);
}
return;
}
}
void rjhKeyAddChuck(void)
{
{
{
createClientKeyringEntry(rjh);
setClientKeyringUser(rjh, 0, 3);
setClientKeyringPublicKey(rjh, 0, 789);
}
return;
}
}
void bobKeyAddChuck(void)
{
{
{
createClientKeyringEntry(bob);
setClientKeyringUser(bob, 1, 3);
setClientKeyringPublicKey(bob, 1, 789);
}
return;
}
}
void chuckKeyAdd(void)
{
{
{
createClientKeyringEntry(chuck);
setClientKeyringUser(chuck, 0, 1);
setClientKeyringPublicKey(chuck, 0, 123);
}
return;
}
}
void chuckKeyAddRjh(void)
{
{
{
createClientKeyringEntry(chuck);
setClientKeyringUser(chuck, 0, 2);
setClientKeyringPublicKey(chuck, 0, 456);
}
return;
}
}
void rjhDeletePrivateKey(void)
{
{
{
setClientPrivateKey(rjh, 0);
}
return;
}
}
void bobKeyChange(void)
{
{
{
generateKeyPair(bob, 777);
}
return;
}
}
void rjhKeyChange(void)
{
{
{
generateKeyPair(rjh, 666);
}
return;
}
}
void rjhSetAutoRespond(void)
{
{
{
setClientAutoResponse(rjh, 1);
}
return;
}
}
void bobSetAddressBook(void)
{
{
{
setClientAddressBookSize(bob, 1);
setClientAddressBookAlias(bob, 0, rjh);
setClientAddressBookAddress(bob, 0, rjh);
setClientAddressBookAddress(bob, 1, chuck);
}
return;
}
}
void rjhEnableForwarding(void)
{
{
{
setClientForwardReceiver(rjh, chuck);
}
return;
}
}
#pragma merger(0,"libacc.i","")
extern __attribute__((__nothrow__, __noreturn__)) void __assert_fail(char const *__assertion ,
char const *__file ,
unsigned int __line ,
char const *__function ) ;
extern __attribute__((__nothrow__)) void *malloc(size_t __size ) __attribute__((__malloc__)) ;
extern __attribute__((__nothrow__)) void free(void *__ptr ) ;
void __utac__exception__cf_handler_set(void *exception , int (*cflow_func)(int ,
int ) ,
int val )
{ struct __UTAC__EXCEPTION *excep ;
struct __UTAC__CFLOW_FUNC *cf ;
void *tmp ;
unsigned long __cil_tmp7 ;
unsigned long __cil_tmp8 ;
unsigned long __cil_tmp9 ;
unsigned long __cil_tmp10 ;
unsigned long __cil_tmp11 ;
unsigned long __cil_tmp12 ;
unsigned long __cil_tmp13 ;
unsigned long __cil_tmp14 ;
int (**mem_15)(int , int ) ;
int *mem_16 ;
struct __UTAC__CFLOW_FUNC **mem_17 ;
struct __UTAC__CFLOW_FUNC **mem_18 ;
struct __UTAC__CFLOW_FUNC **mem_19 ;
{
{
excep = (struct __UTAC__EXCEPTION *)exception;
tmp = malloc(24UL);
cf = (struct __UTAC__CFLOW_FUNC *)tmp;
mem_15 = (int (**)(int , int ))cf;
*mem_15 = cflow_func;
__cil_tmp7 = (unsigned long )cf;
__cil_tmp8 = __cil_tmp7 + 8;
mem_16 = (int *)__cil_tmp8;
*mem_16 = val;
__cil_tmp9 = (unsigned long )cf;
__cil_tmp10 = __cil_tmp9 + 16;
__cil_tmp11 = (unsigned long )excep;
__cil_tmp12 = __cil_tmp11 + 24;
mem_17 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp10;
mem_18 = (struct __UTAC__CFLOW_FUNC **)__cil_tmp12;
*mem_17 = *mem_18;
__cil_tmp13 = (unsigned long )excep;
__cil_tmp14 = __cil_tmp13 + 24;