-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgexpr.c
15072 lines (13544 loc) · 377 KB
/
gexpr.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 g_envOPputs();
CLUREF STR_OLD_040USE_040OF_040G_137EXPR;
static int g_expr_own_init = 0;
/**** BEGIN PROCEDURE g_expr ****/
errcode g_expr(e, exp)
CLUREF e;
CLUREF exp;
{
errcode err;
errcode ecode2;
if (g_expr_own_init == 0) {
stringOPcons("OLD USE OF G_EXPR", CLU_1, CLU_17, &STR_OLD_040USE_040OF_040G_137EXPR);
g_expr_own_init = 1;
}
enter_proc(13);
LINE(14);
{
err = g_envOPputs(e, STR_OLD_040USE_040OF_040G_137EXPR);
if (err != ERR_ok) goto ex_0;
}
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_expr ****/
extern errcode exprOPget_abs();
extern errcode boolOPnot();
extern errcode int_constOPexists();
extern errcode tvOPdecl_next();
extern errcode ceOPget_int_type();
extern errcode g_envOPget_comp();
extern errcode g_expr0();
/**** BEGIN PROCEDURE g_expr_arg0 ****/
errcode g_expr_arg0(e, exp)
CLUREF e;
CLUREF exp;
{
errcode err;
errcode ecode2;
CLUREF i;
enter_proc(19);
LINE(20);
{
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 15:
{CLUREF T_1_2;
T_1_2.num = T_1_1.cell->value;
i.num = T_1_2.num;
LINE(22);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = int_constOPexists(i, &T_2_1);
if (err != ERR_ok) goto ex_0;
T_2_2.num = T_2_1.num ^ 1;
if (T_2_2.num == true) {
LINE(23);
{
CLUREF T_3_1;
CLUREF T_3_2;
err = g_envOPget_comp(e, &T_3_1);
if (err != ERR_ok) goto ex_0;
err = ceOPget_int_type(T_3_1, &T_3_2);
if (err != ERR_ok) goto ex_0;
err = tvOPdecl_next(e, T_3_2);
if (err != ERR_ok) goto ex_0;
}
}
}/* end if */
break;
}
default: {
LINE(26);
{
err = g_expr0(e, exp);
if (err != ERR_ok) goto ex_0;
}
}
}
}
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_expr_arg0 ****/
extern errcode expr_print();
extern errcode tvOPblind_decl_next();
extern errcode ceOPget_bool_type();
extern errcode recordOPget_1();
extern errcode recordOPget_2();
extern errcode sequenceOPelements();
extern errcode g_expr_arg0();
extern errcode exprOPget_typespec();
extern errcode typespecOPget_abs();
extern errcode recordOPget_4();
extern errcode recordOPget_3();
extern errcode oneofOPis_20();
extern errcode stringOPequal();
extern errcode oneofOPvalue_20();
extern errcode compiler_logit();
extern errcode typespec_print();
extern errcode g_qinv_test();
extern errcode g_inv0();
extern errcode oneofOPis_2();
extern errcode oneofOPvalue_2();
extern errcode sequenceOPsize();
extern errcode specs_exist();
extern errcode g_envOPerror();
extern errcode stringOPconcat();
extern errcode duOPget_common();
extern errcode oneofOPvalue_3();
extern errcode ceOPget_real_type();
extern errcode ceOPget_char_type();
CLUREF STR_debug_137print;
CLUREF STR_g_137expr0_072_040unhandled_040invoke_056apply_056typespec_040XXXX;
CLUREF STR_specifications_040for_040;
CLUREF STR__040missing_056;
CLUREF STR_g_137expr_072_040tag_040type_137_040not_040expected;
CLUREF STR_g_137expr_072_040tag_040type_137of_137_040not_040expected;
CLUREF STR_g_137expr_072_040unexpected_040tag;
static int g_expr0_own_init = 0;
/**** BEGIN PROCEDURE g_expr0 ****/
errcode g_expr0(e, exp)
CLUREF e;
CLUREF exp;
{
errcode err;
errcode ecode2;
CLUREF id;
CLUREF xa;
CLUREF inv;
CLUREF each_exp;
CLUREF ty;
CLUREF a;
CLUREF val;
CLUREF o;
CLUREF clop;
CLUREF size;
CLUREF each_elt;
CLUREF each_field;
CLUREF sel;
CLUREF ct;
if (g_expr0_own_init == 0) {
stringOPcons("debug_print", CLU_1, CLU_11, &STR_debug_137print);
stringOPcons("g_expr0: unhandled invoke.apply.typespec XXXX", CLU_1, CLU_45, &STR_g_137expr0_072_040unhandled_040invoke_056apply_056typespec_040XXXX);
stringOPcons("specifications for ", CLU_1, CLU_19, &STR_specifications_040for_040);
stringOPcons(" missing.", CLU_1, CLU_9, &STR__040missing_056);
stringOPcons("g_expr: tag type_ not expected", CLU_1, CLU_30, &STR_g_137expr_072_040tag_040type_137_040not_040expected);
stringOPcons("g_expr: tag type_of_ not expected", CLU_1, CLU_33, &STR_g_137expr_072_040tag_040type_137of_137_040not_040expected);
stringOPcons("g_expr: unexpected tag", CLU_1, CLU_22, &STR_g_137expr_072_040unexpected_040tag);
g_expr0_own_init = 1;
}
enter_proc(30);
LINE(31);
{
if (false == true) {
{
err = expr_print(exp, CLU_0);
if (err != ERR_ok) goto ex_0;
}
}
}/* end if */
LINE(32);
{
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 13:
{CLUREF T_1_2;
T_1_2.num = T_1_1.cell->value;
id.num = T_1_2.num;
break;
}
case 2:
{CLUREF T_1_3;
T_1_3.num = T_1_1.cell->value;
xa.num = T_1_3.num;
LINE(35);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
LINE(36);
{
err = g_expr0(e, xa);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 6:
{CLUREF T_1_4;
T_1_4.num = T_1_1.cell->value;
xa.num = T_1_4.num;
LINE(38);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = g_envOPget_comp(e, &T_2_1);
if (err != ERR_ok) goto ex_0;
err = ceOPget_bool_type(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
err = tvOPdecl_next(e, T_2_2);
if (err != ERR_ok) goto ex_0;
}
LINE(39);
{
CLUREF T_2_1;
T_2_1.num = xa.vec->data[0];
err = g_expr0(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
LINE(40);
{
CLUREF T_2_1;
T_2_1.num = xa.vec->data[1];
err = g_expr0(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 8:
{CLUREF T_1_5;
T_1_5.num = T_1_1.cell->value;
xa.num = T_1_5.num;
LINE(42);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = g_envOPget_comp(e, &T_2_1);
if (err != ERR_ok) goto ex_0;
err = ceOPget_bool_type(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
err = tvOPdecl_next(e, T_2_2);
if (err != ERR_ok) goto ex_0;
}
LINE(43);
{
CLUREF T_2_1;
T_2_1.num = xa.vec->data[0];
err = g_expr0(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
LINE(44);
{
CLUREF T_2_1;
T_2_1.num = xa.vec->data[1];
err = g_expr0(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 16:
{CLUREF T_1_6;
T_1_6.num = T_1_1.cell->value;
inv.num = T_1_6.num;
LINE(46);
{
CLUREF T_2_1;
CLUREF T_2_2;
CLUREF T_2_3;
CLUREF T_2_4;
T_2_1.num = inv.vec->data[1];
T_2_3.num = T_2_1.vec->size;
T_2_4 = T_2_1;
for (T_2_2.num = 1; T_2_2.num <= T_2_3.num; T_2_2.num++) {
each_exp.num = T_2_4.vec->data[T_2_2.num - 1];
LINE(47);
{
err = g_expr_arg0(e, each_exp);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_1:;
LINE(49);
{
{CLUREF T_2_1;
CLUREF T_2_2;
T_2_1.num = inv.vec->data[0];
err = exprOPget_typespec(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
ty.num = T_2_2.num;
}
}
LINE(50);
{
CLUREF T_2_1;
err = typespecOPget_abs(ty, &T_2_1);
if (err != ERR_ok) goto ex_0;
switch (T_2_1.cell->tag) {
case 2:
{CLUREF T_2_2;
T_2_2.num = T_2_1.cell->value;
a.num = T_2_2.num;
LINE(52);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
T_3_1.num = a.vec->data[3];
T_3_3.num = T_3_1.vec->size;
T_3_4 = T_3_1;
for (T_3_2.num = 1; T_3_2.num <= T_3_3.num; T_3_2.num++) {
val.num = T_3_4.vec->data[T_3_2.num - 1];
LINE(53);
{
err = tvOPdecl_next(e, val);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_2:;
break;
}
case 6:
{CLUREF T_2_3;
T_2_3.num = T_2_1.cell->value;
o.num = T_2_3.num;
LINE(56);
{
switch (o.cell->tag) {
case 1:
{
LINE(58);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 2:
{CLUREF T_3_1;
T_3_1.num = o.cell->value;
clop.num = T_3_1.num;
LINE(60);
{
CLUREF T_4_1;
T_4_1.num = clop.vec->data[2];
err = tvOPdecl_next(e, T_4_1);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 3:
{
LINE(62);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
break;
}
}
}
break;
}
default: {
LINE(65);
{
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;
T_3_2.num = inv.vec->data[0];
err = exprOPget_abs(T_3_2, &T_3_3);
if (err != ERR_ok) goto ex_0;
if (T_3_3.cell->tag == 20) T_3_4.num = true; else T_3_4.num = false;
T_3_1.num = T_3_4.num;
if (T_3_4.num) {
T_3_5.num = inv.vec->data[0];
err = exprOPget_abs(T_3_5, &T_3_6);
if (err != ERR_ok) goto ex_0;
if (T_3_6.cell->tag != 20) {err = ERR_wrong_tag; goto ex_0;}
T_3_7.num = T_3_6.cell->value;
T_3_8.num = T_3_7.vec->data[0];
T_3_9.num = ((T_3_8.str->size != STR_debug_137print.str->size)? false :
!(bcmp(T_3_8.str->data, STR_debug_137print.str->data, T_3_8.str->size)));
T_3_1.num = T_3_9.num;
}
if (T_3_1.num == true) {
}
else {
LINE(69);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
LINE(70);
{
CLUREF T_4_1;
T_4_1.num = 400;
err = compiler_logit(T_4_1, STR_g_137expr0_072_040unhandled_040invoke_056apply_056typespec_040XXXX);
if (err != ERR_ok) goto ex_0;
}
LINE(71);
{
err = typespec_print(ty);
if (err != ERR_ok) goto ex_0;
}
}}/* end if */
}
}
}
LINE(74);
{
CLUREF T_2_1;
CLUREF T_2_2;
CLUREF T_2_3;
T_2_1.num = inv.vec->data[0];
err = g_qinv_test(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
T_2_3.num = T_2_2.num ^ 1;
if (T_2_3.num == true) {
LINE(75);
{
CLUREF T_3_1;
T_3_1.num = inv.vec->data[0];
err = g_inv0(e, T_3_1);
if (err != ERR_ok) goto ex_0;
}
}
}/* end if */
break;
}
case 1:
{CLUREF T_1_7;
T_1_7.num = T_1_1.cell->value;
xa.num = T_1_7.num;
LINE(78);
{
CLUREF T_2_1;
T_2_1.num = xa.vec->data[2];
err = tvOPdecl_next(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
LINE(79);
{
CLUREF T_2_1;
CLUREF T_2_2;
T_2_1.num = xa.vec->data[1];
if (T_2_1.cell->tag == 2) T_2_2.num = true; else T_2_2.num = false;
if (T_2_2.num == true) {
LINE(80);
{
CLUREF T_3_1;
CLUREF T_3_2;
T_3_1.num = xa.vec->data[1];
if (T_3_1.cell->tag != 2) {err = ERR_wrong_tag; goto ex_0;}
T_3_2.num = T_3_1.cell->value;
err = g_expr_arg0(e, T_3_2);
if (err != ERR_ok) goto ex_0;
}
}
}/* end if */
LINE(81);
{
{CLUREF T_2_1;
CLUREF T_2_2;
T_2_1.num = xa.vec->data[0];
T_2_2.num = T_2_1.vec->size;
size.num = T_2_2.num;
}
}
LINE(82);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = int_constOPexists(size, &T_2_1);
if (err != ERR_ok) goto ex_0;
T_2_2.num = T_2_1.num ^ 1;
if (T_2_2.num == true) {
LINE(83);
{
CLUREF T_3_1;
CLUREF T_3_2;
err = g_envOPget_comp(e, &T_3_1);
if (err != ERR_ok) goto ex_0;
err = ceOPget_int_type(T_3_1, &T_3_2);
if (err != ERR_ok) goto ex_0;
err = tvOPdecl_next(e, T_3_2);
if (err != ERR_ok) goto ex_0;
}
}
}/* end if */
LINE(84);
{
CLUREF T_2_1;
CLUREF T_2_2;
CLUREF T_2_3;
CLUREF T_2_4;
T_2_1.num = xa.vec->data[0];
T_2_3.num = T_2_1.vec->size;
T_2_4 = T_2_1;
for (T_2_2.num = 1; T_2_2.num <= T_2_3.num; T_2_2.num++) {
each_elt.num = T_2_4.vec->data[T_2_2.num - 1];
LINE(85);
{
err = g_expr_arg0(e, each_elt);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_3:;
break;
}
case 23:
{CLUREF T_1_8;
T_1_8.num = T_1_1.cell->value;
xa.num = T_1_8.num;
LINE(88);
{
CLUREF T_2_1;
T_2_1.num = xa.vec->data[1];
err = tvOPdecl_next(e, T_2_1);
if (err != ERR_ok) goto ex_0;
}
LINE(89);
{
CLUREF T_2_1;
CLUREF T_2_2;
CLUREF T_2_3;
CLUREF T_2_4;
T_2_1.num = xa.vec->data[0];
T_2_3.num = T_2_1.vec->size;
T_2_4 = T_2_1;
for (T_2_2.num = 1; T_2_2.num <= T_2_3.num; T_2_2.num++) {
each_field.num = T_2_4.vec->data[T_2_2.num - 1];
LINE(90);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
T_3_1.num = each_field.vec->data[1];
T_3_3.num = T_3_1.vec->size;
T_3_4 = T_3_1;
for (T_3_2.num = 1; T_3_2.num <= T_3_3.num; T_3_2.num++) {
sel.num = T_3_4.vec->data[T_3_2.num - 1];
LINE(91);
{
CLUREF T_4_1;
T_4_1.num = each_field.vec->data[2];
err = g_expr0(e, T_4_1);
if (err != ERR_ok) goto ex_0;
}
}
}
end_inline_for_5:;
}
}
end_inline_for_4:;
break;
}
case 3:
{CLUREF T_1_9;
T_1_9.num = T_1_1.cell->value;
ct.num = T_1_9.num;
LINE(95);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = specs_exist(ct, &T_2_1);
if (err != ERR_ok) goto ex_0;
T_2_2.num = T_2_1.num ^ 1;
if (T_2_2.num == true) {
LINE(96);
{
CLUREF T_3_1;
CLUREF T_3_2;
CLUREF T_3_3;
CLUREF T_3_4;
T_3_1.num = ct.vec->data[0];
err = duOPget_common(T_3_1, &T_3_2);
if (err != ERR_ok) goto ex_0;
err = stringOPconcat(STR_specifications_040for_040, T_3_2, &T_3_3);
if (err != ERR_ok) goto ex_0;
err = stringOPconcat(T_3_3, STR__040missing_056, &T_3_4);
if (err != ERR_ok) goto ex_0;
err = g_envOPerror(e, T_3_4);
if (err != ERR_ok) goto ex_0;
}
LINE(98);
{
{signal (ERR_specs_missing);}}
}
}/* end if */
LINE(100);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 20:
{CLUREF T_1_10;
T_1_10.num = T_1_1.cell->value;
xa.num = T_1_10.num;
LINE(102);
{
LINE(103);
{
{CLUREF T_4_1;
T_4_1.num = xa.vec->data[2];
ty.num = T_4_1.num;
}
}
LINE(104);
{
{CLUREF T_4_1;
CLUREF T_4_2;
err = typespecOPget_abs(ty, &T_4_1);
if (err != ERR_ok) goto ex_1;
if (T_4_1.cell->tag != 3) {err = ERR_wrong_tag; goto ex_1;}
T_4_2.num = T_4_1.cell->value;
ct.num = T_4_2.num;
}
}
LINE(105);
{
CLUREF T_4_1;
CLUREF T_4_2;
err = specs_exist(ct, &T_4_1);
if (err != ERR_ok) goto ex_1;
T_4_2.num = T_4_1.num ^ 1;
if (T_4_2.num == true) {
LINE(106);
{
CLUREF T_5_1;
CLUREF T_5_2;
CLUREF T_5_3;
CLUREF T_5_4;
T_5_1.num = ct.vec->data[0];
err = duOPget_common(T_5_1, &T_5_2);
if (err != ERR_ok) goto ex_1;
err = stringOPconcat(STR_specifications_040for_040, T_5_2, &T_5_3);
if (err != ERR_ok) goto ex_1;
err = stringOPconcat(T_5_3, STR__040missing_056, &T_5_4);
if (err != ERR_ok) goto ex_1;
err = g_envOPerror(e, T_5_4);
if (err != ERR_ok) goto ex_1;
}
LINE(108);
{
{signal (ERR_specs_missing);}}
}
}/* end if */
}
goto end_1;
ex_1:
if ((err == ERR_wrong_tag)) {
}
else {
goto ex_0;
}
end_1:;
LINE(112);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 11:
{CLUREF T_1_11;
T_1_11.num = T_1_1.cell->value;
xa.num = T_1_11.num;
LINE(114);
{
err = tvOPblind_decl_next(e);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 27:
{CLUREF T_1_12;
T_1_12.num = T_1_1.cell->value;
xa.num = T_1_12.num;
LINE(116);
{
err = g_expr0(e, xa);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 9:
{CLUREF T_1_13;
T_1_13.num = T_1_1.cell->value;
xa.num = T_1_13.num;
LINE(118);
{
err = g_expr0(e, xa);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 25:
{CLUREF T_1_14;
T_1_14.num = T_1_1.cell->value;
xa.num = T_1_14.num;
LINE(120);
{
err = g_envOPerror(e, STR_g_137expr_072_040tag_040type_137_040not_040expected);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 26:
{CLUREF T_1_15;
T_1_15.num = T_1_1.cell->value;
xa.num = T_1_15.num;
LINE(122);
{
err = g_envOPerror(e, STR_g_137expr_072_040tag_040type_137of_137_040not_040expected);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 24:
{
break;
}
case 21:
{
LINE(126);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = g_envOPget_comp(e, &T_2_1);
if (err != ERR_ok) goto ex_0;
err = ceOPget_real_type(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
err = tvOPdecl_next(e, T_2_2);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 7:
{
LINE(128);
{
CLUREF T_2_1;
CLUREF T_2_2;
err = g_envOPget_comp(e, &T_2_1);
if (err != ERR_ok) goto ex_0;
err = ceOPget_char_type(T_2_1, &T_2_2);
if (err != ERR_ok) goto ex_0;
err = tvOPdecl_next(e, T_2_2);
if (err != ERR_ok) goto ex_0;
}
break;
}
case 19:
case 5:
case 15:
{
break;
}
default: {
LINE(131);
{
err = g_envOPerror(e, STR_g_137expr_072_040unexpected_040tag);
if (err != ERR_ok) goto ex_0;
}
}
}
}
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_expr0 ****/
extern errcode duOPread_specs();
extern errcode oneofOPis_4();
extern errcode oneofOPis_3();
extern errcode intOPequal();
/**** BEGIN PROCEDURE parmd_cluster ****/
errcode parmd_cluster(xa, ret_1)
CLUREF xa;
CLUREF *ret_1;
{
errcode err;
errcode ecode2;
CLUREF ct;
CLUREF specs;
CLUREF b;
CLUREF ti;
enter_proc(135);
LINE(136);
{
CLUREF T_1_1;
CLUREF T_1_2;
T_1_1.num = xa.vec->data[2];
err = typespecOPget_abs(T_1_1, &T_1_2);
if (err != ERR_ok) goto ex_0;
switch (T_1_2.cell->tag) {
case 3:
{CLUREF T_1_3;
T_1_3.num = T_1_2.cell->value;
ct.num = T_1_3.num;
LINE(138);
{
{CLUREF T_2_1;
CLUREF T_2_2;
CLUREF T_2_3;
T_2_1.num = ct.vec->data[0];
err = duOPread_specs(T_2_1, &T_2_2, &T_2_3);
if (err != ERR_ok) goto ex_0;
specs.num = T_2_2.num;
b.num = T_2_3.num;
}
}
LINE(139);
{
CLUREF T_2_1;
CLUREF T_2_2;
if (specs.cell->tag == 4) T_2_1.num = true; else T_2_1.num = false;
T_2_2.num = T_2_1.num ^ 1;
if (T_2_2.num == true) {
LINE(140);
{
CLUREF T_3_1;
if (specs.cell->tag == 3) T_3_1.num = true; else T_3_1.num = false;
if (T_3_1.num == true) {
LINE(141);
{
{CLUREF T_4_1;
if (specs.cell->tag != 3) {err = ERR_wrong_tag; goto ex_0;}
T_4_1.num = specs.cell->value;
ti.num = T_4_1.num;
}
}
LINE(142);
{
CLUREF T_4_1;
CLUREF T_4_2;
CLUREF T_4_3;
CLUREF T_4_4;
T_4_1.num = ti.vec->data[1];
T_4_2.num = T_4_1.vec->size;
T_4_3.num = (T_4_2.num == 0)? true : false;
T_4_4.num = T_4_3.num ^ 1;
if (T_4_4.num == true) {
LINE(143);
{
{
ret_1->tf = true;
}
{signal (ERR_ok);}}
}
}/* end if */
}
}/* end if */
}
}/* end if */
break;
}
default: {
LINE(148);
{
{
ret_1->tf = false;
}
{signal (ERR_ok);}}
}
}
}
LINE(150);
{
{
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);}