-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgopt1.c
8081 lines (7272 loc) · 213 KB
/
gopt1.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
/* This file was automatically generated by pclu.*/
#include "pclu_err.h"
#include "pclu_sys.h"
extern errcode exprOPget_abs();
extern errcode intOPequal();
extern errcode sequenceOPsize();
extern errcode recordOPget_2();
extern errcode stringOPequal();
extern errcode duOPget_common();
extern errcode recordOPget_1();
extern errcode parmOPmember();
extern errcode recordOPget_3();
extern errcode typespecOPget_abs();
extern errcode oneofOPis_3();
extern errcode oneofOPvalue_3();
extern errcode boolOPnot();
extern errcode parmd_op();
extern errcode oneofOPis_7();
extern errcode g_qselop();
extern errcode oneofOPvalue_7();
extern errcode all_field_types_null();
CLUREF STR__137cvt;
CLUREF STR_array;
CLUREF STR_sequence;
CLUREF STR__137vec;
CLUREF STR_debug_137print;
CLUREF STR_oneof;
CLUREF STR_equal;
CLUREF STR_record;
static int g_qinv_test_own_init = 0;
/**** BEGIN PROCEDURE g_qinv_test ****/
errcode g_qinv_test(exp, ret_1)
CLUREF exp;
CLUREF *ret_1;
{
errcode err;
errcode ecode2;
CLUREF ty;
CLUREF ct;
CLUREF cop;
CLUREF gen;
CLUREF xt;
CLUREF flist;
if (g_qinv_test_own_init == 0) {
stringOPcons("_cvt", CLU_1, CLU_4, &STR__137cvt);
stringOPcons("array", CLU_1, CLU_5, &STR_array);
stringOPcons("sequence", CLU_1, CLU_8, &STR_sequence);
stringOPcons("_vec", CLU_1, CLU_4, &STR__137vec);
stringOPcons("debug_print", CLU_1, CLU_11, &STR_debug_137print);
stringOPcons("oneof", CLU_1, CLU_5, &STR_oneof);
stringOPcons("equal", CLU_1, CLU_5, &STR_equal);
stringOPcons("record", CLU_1, CLU_6, &STR_record);
g_qinv_test_own_init = 1;
}
enter_proc(15);
LINE(17);
{
CLUREF T_1_1;
err = exprOPget_abs(exp, &T_1_1);
if (err != ERR_ok) goto ex_0;
switch (T_1_1.cell->tag) {
case 3:
{CLUREF T_1_2;
T_1_2.num = T_1_1.cell->value;
ct.num = T_1_2.num;
LINE(19);
{
CLUREF T_2_1;
CLUREF T_2_2;
CLUREF T_2_3;
CLUREF T_2_4;
CLUREF T_2_5;
CLUREF T_2_6;
CLUREF T_2_7;
T_2_2.num = ct.vec->data[1];
T_2_3.num = T_2_2.vec->size;
T_2_4.num = (T_2_3.num == 0)? true : false;
T_2_1.num = T_2_4.num;
if (!T_2_4.num) {
T_2_5.num = ct.vec->data[0];
err = duOPget_common(T_2_5, &T_2_6);
if (err != ERR_ok) goto ex_0;
T_2_7.num = ((T_2_6.str->size != STR__137cvt.str->size)? false :
!(bcmp(T_2_6.str->data, STR__137cvt.str->data, T_2_6.str->size)));
T_2_1.num = T_2_7.num;
}
if (T_2_1.num == true) {
LINE(25);
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
else {
LINE(28);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}}/* end if */
break;
}
case 20:
{CLUREF T_1_3;
T_1_3.num = T_1_1.cell->value;
cop.num = T_1_3.num;
LINE(31);
{
CLUREF T_2_1;
CLUREF T_2_2;
T_2_1.num = cop.vec->data[2];
err = parmOPmember(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
if (T_2_2.num == true) {
LINE(32);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}
}/* end if */
LINE(33);
{
CLUREF T_2_1;
CLUREF T_2_2;
T_2_1.num = cop.vec->data[2];
err = typespecOPget_abs(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
ty.num = T_2_2.num;
}
LINE(34);
{
CLUREF T_2_1;
if (ty.cell->tag == 3) T_2_1.num = true; else T_2_1.num = false;
if (T_2_1.num == true) {
LINE(35);
{
{CLUREF T_3_1;
if (ty.cell->tag != 3) {err = ERR_wrong_tag; goto ex_0;}
T_3_1.num = ty.cell->value;
ct.num = T_3_1.num;
}
}
LINE(36);
{
{CLUREF T_3_1;
T_3_1.num = ct.vec->data[0];
gen.num = T_3_1.num;
}
}
LINE(37);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
CLUREF T_3_5;
CLUREF T_3_6;
CLUREF T_3_7;
T_3_2.num = cop.vec->data[1];
T_3_3.num = T_3_2.vec->size;
T_3_4.num = (T_3_3.num == 0)? true : false;
T_3_1.num = T_3_4.num;
if (T_3_4.num) {
T_3_5.num = ct.vec->data[1];
T_3_6.num = T_3_5.vec->size;
T_3_7.num = (T_3_6.num == 0)? true : false;
T_3_1.num = T_3_7.num;
}
if (T_3_1.num == true) {
LINE(38);
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
}/* end if */
LINE(39);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
CLUREF T_3_5;
CLUREF T_3_6;
CLUREF T_3_7;
CLUREF T_3_8;
err = duOPget_common(gen, &T_3_3);
if (err != ERR_ok) goto ex_0;
T_3_4.num = ((T_3_3.str->size != STR_array.str->size)? false :
!(bcmp(T_3_3.str->data, STR_array.str->data, T_3_3.str->size)));
T_3_2.num = T_3_4.num;
if (!T_3_4.num) {
err = duOPget_common(gen, &T_3_5);
if (err != ERR_ok) goto ex_0;
T_3_6.num = ((T_3_5.str->size != STR_sequence.str->size)? false :
!(bcmp(T_3_5.str->data, STR_sequence.str->data, T_3_5.str->size)));
T_3_2.num = T_3_6.num;
}
T_3_1.num = T_3_2.num;
if (!T_3_2.num) {
err = duOPget_common(gen, &T_3_7);
if (err != ERR_ok) goto ex_0;
T_3_8.num = ((T_3_7.str->size != STR__137vec.str->size)? false :
!(bcmp(T_3_7.str->data, STR__137vec.str->data, T_3_7.str->size)));
T_3_1.num = T_3_8.num;
}
if (T_3_1.num == true) {
LINE(42);
{
CLUREF T_4_1;
CLUREF T_4_2;
T_4_1.num = cop.vec->data[0];
T_4_2.num = ((T_4_1.str->size != STR_debug_137print.str->size)? false :
!(bcmp(T_4_1.str->data, STR_debug_137print.str->data, T_4_1.str->size)));
if (T_4_2.num == true) {
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}
}/* end if */
LINE(43);
{
CLUREF T_4_1;
CLUREF T_4_2;
CLUREF T_4_3;
T_4_1.num = cop.vec->data[0];
err = parmd_op(gen, T_4_1, &T_4_2);
if (err != ERR_ok) goto ex_0;
T_4_3.num = T_4_2.num ^ 1;
if (T_4_3.num == true) {
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
}/* end if */
}
}/* end if */
LINE(45);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}
else {
CLUREF T_2_2;
if (ty.cell->tag == 7) T_2_2.num = true; else T_2_2.num = false;
if (T_2_2.num == true) {
LINE(48);
{
CLUREF T_3_1;
CLUREF T_3_2;
T_3_1.num = cop.vec->data[0];
err = g_qselop(T_3_1, &T_3_2);
if (err != ERR_ok) goto ex_0;
if (T_3_2.num == true) {
LINE(50);
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
}/* end if */
LINE(52);
{
{CLUREF T_3_1;
if (ty.cell->tag != 7) {err = ERR_wrong_tag; goto ex_0;}
T_3_1.num = ty.cell->value;
xt.num = T_3_1.num;
}
}
LINE(53);
{
{CLUREF T_3_1;
T_3_1.num = xt.vec->data[0];
gen.num = T_3_1.num;
}
}
LINE(54);
{
{CLUREF T_3_1;
T_3_1.num = xt.vec->data[1];
flist.num = T_3_1.num;
}
}
LINE(55);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
CLUREF T_3_5;
CLUREF T_3_6;
CLUREF T_3_7;
CLUREF T_3_8;
T_3_3.num = xt.vec->data[0];
err = duOPget_common(T_3_3, &T_3_4);
if (err != ERR_ok) goto ex_0;
T_3_5.num = ((T_3_4.str->size != STR_oneof.str->size)? false :
!(bcmp(T_3_4.str->data, STR_oneof.str->data, T_3_4.str->size)));
T_3_2.num = T_3_5.num;
if (T_3_5.num) {
T_3_6.num = cop.vec->data[0];
T_3_7.num = ((T_3_6.str->size != STR_equal.str->size)? false :
!(bcmp(T_3_6.str->data, STR_equal.str->data, T_3_6.str->size)));
T_3_2.num = T_3_7.num;
}
T_3_1.num = T_3_2.num;
if (T_3_2.num) {
err = all_field_types_null(flist, &T_3_8);
if (err != ERR_ok) goto ex_0;
T_3_1.num = T_3_8.num;
}
if (T_3_1.num == true) {
LINE(57);
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
}/* end if */
LINE(58);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
CLUREF T_3_5;
CLUREF T_3_6;
T_3_2.num = xt.vec->data[0];
err = duOPget_common(T_3_2, &T_3_3);
if (err != ERR_ok) goto ex_0;
T_3_4.num = ((T_3_3.str->size != STR_record.str->size)? false :
!(bcmp(T_3_3.str->data, STR_record.str->data, T_3_3.str->size)));
T_3_1.num = T_3_4.num;
if (T_3_4.num) {
T_3_5.num = cop.vec->data[0];
T_3_6.num = ((T_3_5.str->size != STR_equal.str->size)? false :
!(bcmp(T_3_5.str->data, STR_equal.str->data, T_3_5.str->size)));
T_3_1.num = T_3_6.num;
}
if (T_3_1.num == true) {
LINE(59);
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
}/* end if */
}
else {
LINE(64);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}}}/* end if */
break;
}
default: {
LINE(67);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}
}
}
LINE(69);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
goto end_0;
ex_0:
{
if (err == ERR_failure) {signal(ERR_failure);}
elist[0] = _pclu_erstr(err);
{signal(ERR_failure);}
}
end_0: elist[0].str = no_return_values_STRING;
{signal(ERR_failure);}
}
/**** END PROCEDURE g_qinv_test ****/
extern errcode g_qinv_test();
extern errcode g_qapply();
extern errcode g_qop();
extern errcode g_qsel();
extern errcode g_err();
extern errcode g_envOPputs();
extern errcode g_expr2();
extern errcode sequenceOPelements();
extern errcode g_expr_arg();
extern errcode g_envOPnewline();
extern errcode g_envOPputl();
extern errcode stringOPconcat();
extern errcode exOPget_current_ex_label();
CLUREF STR_cannot_040do_040quick_040invocation;
CLUREF STR__040_075_040;
CLUREF STR__050;
CLUREF STR__054_040;
CLUREF STR__046;
CLUREF STR__051_073;
CLUREF STR_if_040_050;
CLUREF STR__040_041_075_040ERR_137ok_051_040goto_040;
CLUREF STR__073;
static int g_qinv_own_init = 0;
/**** BEGIN PROCEDURE g_qinv ****/
errcode g_qinv(e, exp, args, results)
CLUREF e;
CLUREF exp;
CLUREF args;
CLUREF results;
{
errcode err;
errcode ecode2;
CLUREF first;
CLUREF each_arg;
CLUREF each_res;
if (g_qinv_own_init == 0) {
stringOPcons("cannot do quick invocation", CLU_1, CLU_26, &STR_cannot_040do_040quick_040invocation);
stringOPcons(" = ", CLU_1, CLU_3, &STR__040_075_040);
stringOPcons("(", CLU_1, CLU_1, &STR__050);
stringOPcons(", ", CLU_1, CLU_2, &STR__054_040);
stringOPcons("&", CLU_1, CLU_1, &STR__046);
stringOPcons(");", CLU_1, CLU_2, &STR__051_073);
stringOPcons("if (", CLU_1, CLU_4, &STR_if_040_050);
stringOPcons(" != ERR_ok) goto ", CLU_1, CLU_17, &STR__040_041_075_040ERR_137ok_051_040goto_040);
stringOPcons(";", CLU_1, CLU_1, &STR__073);
g_qinv_own_init = 1;
}
enter_proc(72);
LINE(73);
{
CLUREF T_1_1;
CLUREF T_1_2;
err = g_qinv_test(exp, &T_1_1);
if (err != ERR_ok) goto ex_0;
T_1_2.num = T_1_1.num ^ 1;
if (T_1_2.num == true) {
LINE(74);
{
elist[0] = STR_cannot_040do_040quick_040invocation;
{signal (ERR_failure);}}
}
}/* end if */
LINE(76);
{
CLUREF T_1_1;
err = g_qapply(e, exp, args, results, &T_1_1);
if (err != ERR_ok) goto ex_0;
if (T_1_1.num == true) {
{
{signal (ERR_ok);}}
}
}/* end if */
LINE(77);
{
CLUREF T_1_1;
err = g_qop(e, exp, args, results, &T_1_1);
if (err != ERR_ok) goto ex_0;
if (T_1_1.num == true) {
{
{signal (ERR_ok);}}
}
}/* end if */
LINE(78);
{
CLUREF T_1_1;
err = g_qsel(e, exp, args, results, &T_1_1);
if (err != ERR_ok) goto ex_0;
if (T_1_1.num == true) {
{
{signal (ERR_ok);}}
}
}/* end if */
LINE(79);
{
err = g_err(e);
if (err != ERR_ok) goto ex_0;
}
LINE(80);
{
err = g_envOPputs(e, STR__040_075_040);
if (err != ERR_ok) goto ex_0;
}
LINE(81);
{
err = g_expr2(e, exp);
if (err != ERR_ok) goto ex_0;
}
LINE(82);
{
err = g_envOPputs(e, STR__050);
if (err != ERR_ok) goto ex_0;
}
LINE(83);
{
{first.tf = true;
}
}
LINE(84);
{
CLUREF T_1_1;
CLUREF T_1_2;
CLUREF T_1_3;
T_1_2.num = args.vec->size;
T_1_3 = args;
for (T_1_1.num = 1; T_1_1.num <= T_1_2.num; T_1_1.num++) {
each_arg.num = T_1_3.vec->data[T_1_1.num - 1];
LINE(85);
{
CLUREF T_2_1;
T_2_1.num = first.num ^ 1;
if (T_2_1.num == true) {
{
err = g_envOPputs(e, STR__054_040);
if (err != ERR_ok) goto ex_0;
}
}
else {
{
first.tf = false;
}
}}/* end if */
LINE(86);
{
err = g_expr_arg(e, each_arg);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_1:;
LINE(88);
{
CLUREF T_1_1;
CLUREF T_1_2;
CLUREF T_1_3;
T_1_2.num = results.vec->size;
T_1_3 = results;
for (T_1_1.num = 1; T_1_1.num <= T_1_2.num; T_1_1.num++) {
each_res.num = T_1_3.vec->data[T_1_1.num - 1];
LINE(89);
{
CLUREF T_2_1;
T_2_1.num = first.num ^ 1;
if (T_2_1.num == true) {
{
err = g_envOPputs(e, STR__054_040);
if (err != ERR_ok) goto ex_0;
}
}
else {
{
first.tf = false;
}
}}/* end if */
LINE(90);
{
err = g_envOPputs(e, STR__046);
if (err != ERR_ok) goto ex_0;
}
LINE(91);
{
err = g_expr_arg(e, each_res);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_2:;
LINE(93);
{
err = g_envOPputs(e, STR__051_073);
if (err != ERR_ok) goto ex_0;
}
LINE(94);
{
err = g_envOPnewline(e);
if (err != ERR_ok) goto ex_0;
}
LINE(95);
{
err = g_envOPputs(e, STR_if_040_050);
if (err != ERR_ok) goto ex_0;
}
LINE(96);
{
err = g_err(e);
if (err != ERR_ok) goto ex_0;
}
LINE(97);
{
CLUREF T_1_1;
CLUREF T_1_2;
CLUREF T_1_3;
err = exOPget_current_ex_label(&T_1_1);
if (err != ERR_ok) goto ex_0;
err = stringOPconcat(STR__040_041_075_040ERR_137ok_051_040goto_040, T_1_1, &T_1_2);
if (err != ERR_ok) goto ex_0;
err = stringOPconcat(T_1_2, STR__073, &T_1_3);
if (err != ERR_ok) goto ex_0;
err = g_envOPputl(e, T_1_3);
if (err != ERR_ok) goto ex_0;
}
LINE(99);
{
{signal (ERR_ok);}}
goto end_0;
ex_0:
{
if (err == ERR_failure) {signal(ERR_failure);}
elist[0] = _pclu_erstr(err);
{signal(ERR_failure);}
}
end_0: {signal(ERR_ok);}
}
/**** END PROCEDURE g_qinv ****/
extern errcode ibOPbodies();
CLUREF STR__054_040locals_054_040iecode_051_073;
CLUREF STR__054_040_046locals_054_040_046locals_056ecode2_051_073;
static int g_qiinv_own_init = 0;
/**** BEGIN PROCEDURE g_qiinv ****/
errcode g_qiinv(e, exp, args, ibname)
CLUREF e;
CLUREF exp;
CLUREF args;
CLUREF ibname;
{
errcode err;
errcode ecode2;
CLUREF each_arg;
if (g_qiinv_own_init == 0) {
stringOPcons("cannot do quick invocation", CLU_1, CLU_26, &STR_cannot_040do_040quick_040invocation);
stringOPcons(" = ", CLU_1, CLU_3, &STR__040_075_040);
stringOPcons("(", CLU_1, CLU_1, &STR__050);
stringOPcons(", ", CLU_1, CLU_2, &STR__054_040);
stringOPcons(", locals, iecode);", CLU_1, CLU_18, &STR__054_040locals_054_040iecode_051_073);
stringOPcons(", &locals, &locals.ecode2);", CLU_1, CLU_27, &STR__054_040_046locals_054_040_046locals_056ecode2_051_073);
g_qiinv_own_init = 1;
}
enter_proc(102);
LINE(103);
{
CLUREF T_1_1;
CLUREF T_1_2;
err = g_qinv_test(exp, &T_1_1);
if (err != ERR_ok) goto ex_0;
T_1_2.num = T_1_1.num ^ 1;
if (T_1_2.num == true) {
LINE(104);
{
elist[0] = STR_cannot_040do_040quick_040invocation;
{signal (ERR_failure);}}
}
}/* end if */
LINE(108);
{
err = g_err(e);
if (err != ERR_ok) goto ex_0;
}
LINE(109);
{
err = g_envOPputs(e, STR__040_075_040);
if (err != ERR_ok) goto ex_0;
}
LINE(110);
{
err = g_expr2(e, exp);
if (err != ERR_ok) goto ex_0;
}
LINE(111);
{
err = g_envOPputs(e, STR__050);
if (err != ERR_ok) goto ex_0;
}
LINE(112);
{
CLUREF T_1_1;
CLUREF T_1_2;
CLUREF T_1_3;
T_1_2.num = args.vec->size;
T_1_3 = args;
for (T_1_1.num = 1; T_1_1.num <= T_1_2.num; T_1_1.num++) {
each_arg.num = T_1_3.vec->data[T_1_1.num - 1];
LINE(113);
{
err = g_expr_arg(e, each_arg);
if (err != ERR_ok) goto ex_0;
}
LINE(114);
{
err = g_envOPputs(e, STR__054_040);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_1:;
LINE(116);
{
CLUREF T_1_1;
err = ibOPbodies(&T_1_1);
if (err != ERR_ok) goto ex_0;
if (T_1_1.num == true) {
LINE(118);
{
CLUREF T_2_1;
err = stringOPconcat(ibname, STR__054_040locals_054_040iecode_051_073, &T_2_1);
if (err != ERR_ok) goto ex_0;
err = g_envOPputl(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
}
else {
LINE(120);
{
CLUREF T_2_1;
err = stringOPconcat(ibname, STR__054_040_046locals_054_040_046locals_056ecode2_051_073, &T_2_1);
if (err != ERR_ok) goto ex_0;
err = g_envOPputl(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
}}/* end if */
LINE(122);
{
err = g_envOPnewline(e);
if (err != ERR_ok) goto ex_0;
}
LINE(123);
{
{signal (ERR_ok);}}
goto end_0;
ex_0:
{
if (err == ERR_failure) {signal(ERR_failure);}
elist[0] = _pclu_erstr(err);
{signal(ERR_failure);}
}
end_0: {signal(ERR_ok);}
}
/**** END PROCEDURE g_qiinv ****/
extern errcode g_inline_iter_test_and_info();
/**** BEGIN PROCEDURE g_inline_iter_test ****/
errcode g_inline_iter_test(exp, ret_1)
CLUREF exp;
CLUREF *ret_1;
{
errcode err;
errcode ecode2;
CLUREF ans;
CLUREF junk1;
CLUREF junk2;
enter_proc(126);
LINE(128);
{
{CLUREF T_1_1;
CLUREF T_1_2;
CLUREF T_1_3;
err = g_inline_iter_test_and_info(exp, &T_1_1, &T_1_2, &T_1_3);
if (err != ERR_ok) goto ex_0;
ans.num = T_1_1.num;
junk1.num = T_1_2.num;
junk2.num = T_1_3.num;
}
}
LINE(129);
{
{
ret_1->num = ans.num;
}
{signal (ERR_ok);}}
goto end_0;
ex_0:
{
if (err == ERR_failure) {signal(ERR_failure);}
elist[0] = _pclu_erstr(err);
{signal(ERR_failure);}
}
end_0: elist[0].str = no_return_values_STRING;
{signal(ERR_failure);}
}
/**** END PROCEDURE g_inline_iter_test ****/
extern errcode g_envOPmin_inline();
CLUREF STR_;
CLUREF STR_indexes;
CLUREF STR_elements;
CLUREF STR_int;
CLUREF STR_from_137to;
CLUREF STR_from_137to_137by;
static int g_inline_iter_test_and_info_own_init = 0;
/**** BEGIN PROCEDURE g_inline_iter_test_and_info ****/
errcode g_inline_iter_test_and_info(exp, ret_1, ret_2, ret_3)
CLUREF exp;
CLUREF *ret_1;
CLUREF *ret_2;
CLUREF *ret_3;
{
errcode err;
errcode ecode2;
CLUREF ty;
CLUREF cop;
CLUREF ct;
CLUREF gen;
if (g_inline_iter_test_and_info_own_init == 0) {
stringOPcons("", CLU_1, CLU_0, &STR_);
stringOPcons("array", CLU_1, CLU_5, &STR_array);
stringOPcons("indexes", CLU_1, CLU_7, &STR_indexes);
stringOPcons("elements", CLU_1, CLU_8, &STR_elements);
stringOPcons("sequence", CLU_1, CLU_8, &STR_sequence);
stringOPcons("int", CLU_1, CLU_3, &STR_int);
stringOPcons("from_to", CLU_1, CLU_7, &STR_from_137to);
stringOPcons("from_to_by", CLU_1, CLU_10, &STR_from_137to_137by);
g_inline_iter_test_and_info_own_init = 1;
}
enter_proc(132);
LINE(139);
{
CLUREF T_1_1;
err = g_envOPmin_inline(&T_1_1);
if (err != ERR_ok) goto ex_0;
if (T_1_1.num == true) {
{
{
ret_1->tf = false;
}
{
ret_2->str = STR_.str;
}
{
ret_3->str = STR_.str;
}
{signal (ERR_ok);}}
}
}/* end if */
LINE(141);
{
CLUREF T_1_1;
err = exprOPget_abs(exp, &T_1_1);
if (err != ERR_ok) goto ex_0;
switch (T_1_1.cell->tag) {
case 20:
{CLUREF T_1_2;
T_1_2.num = T_1_1.cell->value;
cop.num = T_1_2.num;
LINE(143);
{
CLUREF T_2_1;
CLUREF T_2_2;
T_2_1.num = cop.vec->data[2];
err = typespecOPget_abs(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
ty.num = T_2_2.num;
}
LINE(144);
{
CLUREF T_2_1;
if (ty.cell->tag == 3) T_2_1.num = true; else T_2_1.num = false;
if (T_2_1.num == true) {
LINE(145);
{
{CLUREF T_3_1;
if (ty.cell->tag != 3) {err = ERR_wrong_tag; goto ex_0;}
T_3_1.num = ty.cell->value;
ct.num = T_3_1.num;
}
}
LINE(146);
{
{CLUREF T_3_1;
T_3_1.num = ct.vec->data[0];
gen.num = T_3_1.num;
}
}
LINE(147);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
CLUREF T_3_5;
CLUREF T_3_6;
CLUREF T_3_7;
CLUREF T_3_8;
CLUREF T_3_9;
CLUREF T_3_10;
CLUREF T_3_11;
CLUREF T_3_12;