-
Notifications
You must be signed in to change notification settings - Fork 1
/
parser.out
2604 lines (2083 loc) · 96.1 KB
/
parser.out
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
Created by PLY version 3.4 (http://www.dabeaz.com/ply)
Unused terminals:
EQUAL
MINUS
DOT
COMMENT
TRANSPOSE
COLON
FUNCTION
ATOM
Grammar
Rule 0 S' -> program
Rule 1 program -> cvxbegin statements objective statements cvxend
Rule 2 program -> cvxbegin statements objective cvxend
Rule 3 program -> empty
Rule 4 empty -> <empty>
Rule 5 objective -> SENSE posy NL
Rule 6 objective -> SENSE posy NL SUBJECT TO NL
Rule 7 objective -> SENSE mono NL
Rule 8 objective -> SENSE mono NL SUBJECT TO NL
Rule 9 cvxbegin -> CVX_BEGIN GP SEMICOLON
Rule 10 cvxbegin -> CVX_BEGIN GP COMMA
Rule 11 cvxbegin -> CVX_BEGIN GP NL
Rule 12 cvxend -> CVX_END
Rule 13 cvxend -> CVX_END NL
Rule 14 cvxend -> CVX_END SEMICOLON
Rule 15 cvxend -> CVX_END COMMA
Rule 16 create -> VARIABLE var
Rule 17 create -> VARIABLES varlist
Rule 18 create -> DUAL VARIABLE ID
Rule 19 create -> DUAL VARIABLES idlist
Rule 20 var -> ID LPAREN dimlist RPAREN
Rule 21 var -> ID
Rule 22 var -> ID LPAREN RPAREN
Rule 23 varlist -> varlist var
Rule 24 varlist -> var
Rule 25 dimlist -> INT
Rule 26 dimlist -> ID
Rule 27 idlist -> idlist ID
Rule 28 idlist -> ID
Rule 29 statements -> statement NL
Rule 30 statements -> statement SEMICOLON
Rule 31 statements -> statement COMMA
Rule 32 statements -> statements statement NL
Rule 33 statements -> statements statement SEMICOLON
Rule 34 statements -> statements statement COMMA
Rule 35 statements -> statements statement SEMICOLON NL
Rule 36 statement -> constraint
Rule 37 statement -> create
Rule 38 statement -> chained_constraint
Rule 39 statement -> empty
Rule 40 chained_constraint -> posy LESSTHANEQUAL mono GREATERTHANEQUAL posy
Rule 41 chained_constraint -> mono GREATERTHANEQUAL posy LESSTHANEQUAL mono
Rule 42 chained_constraint -> mono LOGICALEQUAL mono GREATERTHANEQUAL posy
Rule 43 chained_constraint -> posy LESSTHANEQUAL mono LOGICALEQUAL mono
Rule 44 chained_constraint -> mono LESSTHANEQUAL posy GREATERTHANEQUAL mono
Rule 45 chained_constraint -> mono LESSTHANEQUAL mono GREATERTHANEQUAL mono
Rule 46 chained_constraint -> mono LESSTHANEQUAL mono LESSTHANEQUAL mono
Rule 47 constraint -> mono LOGICALEQUAL mono
Rule 48 constraint -> posy LESSTHANEQUAL mono
Rule 49 constraint -> mono GREATERTHANEQUAL posy
Rule 50 constraint -> mono LESSTHANEQUAL mono
Rule 51 constraint -> mono GREATERTHANEQUAL mono
Rule 52 mono -> mono TIMES mono
Rule 53 mono -> mono DIVIDE mono
Rule 54 mono -> mono POWER FLOAT
Rule 55 mono -> mono POWER INT
Rule 56 mono -> var
Rule 57 mono -> INT
Rule 58 mono -> FLOAT
Rule 59 posy -> mono PLUS mono
Rule 60 posy -> posy PLUS posy
Rule 61 posy -> posy PLUS mono
Rule 62 posy -> posy TIMES posy
Rule 63 posy -> posy TIMES mono
Rule 64 posy -> mono TIMES posy
Rule 65 posy -> posy DIVIDE mono
Rule 66 posy -> posy POWER INT
Rule 67 posy -> LPAREN posy RPAREN
Rule 68 mono -> LPAREN mono RPAREN
Terminals, with rules where they appear
ATOM :
COLON :
COMMA : 10 15 31 34
COMMENT :
CVX_BEGIN : 9 10 11
CVX_END : 12 13 14 15
DIVIDE : 53 65
DOT :
DUAL : 18 19
EQUAL :
FLOAT : 54 58
FUNCTION :
GP : 9 10 11
GREATERTHANEQUAL : 40 41 42 44 45 49 51
ID : 18 20 21 22 26 27 28
INT : 25 55 57 66
LESSTHANEQUAL : 40 41 43 44 45 46 46 48 50
LOGICALEQUAL : 42 43 47
LPAREN : 20 22 67 68
MINUS :
NL : 5 6 6 7 8 8 11 13 29 32 35
PLUS : 59 60 61
POWER : 54 55 66
RPAREN : 20 22 67 68
SEMICOLON : 9 14 30 33 35
SENSE : 5 6 7 8
SUBJECT : 6 8
TIMES : 52 62 63 64
TO : 6 8
TRANSPOSE :
VARIABLE : 16 18
VARIABLES : 17 19
error :
Nonterminals, with rules where they appear
chained_constraint : 38
constraint : 36
create : 37
cvxbegin : 1 2
cvxend : 1 2
dimlist : 20
empty : 3 39
idlist : 19 27
mono : 7 8 40 41 41 42 42 43 43 44 44 45 45 45 46 46 46 47 47 48 49 50 50 51 51 52 52 53 53 54 55 59 59 61 63 64 65 68
objective : 1 2
posy : 5 6 40 40 41 42 43 44 48 49 60 60 61 62 62 63 64 65 66 67
program : 0
statement : 29 30 31 32 33 34 35
statements : 1 1 2 32 33 34 35
var : 16 23 24 56
varlist : 17 23
Parsing method: LALR
state 0
(0) S' -> . program
(1) program -> . cvxbegin statements objective statements cvxend
(2) program -> . cvxbegin statements objective cvxend
(3) program -> . empty
(9) cvxbegin -> . CVX_BEGIN GP SEMICOLON
(10) cvxbegin -> . CVX_BEGIN GP COMMA
(11) cvxbegin -> . CVX_BEGIN GP NL
(4) empty -> .
CVX_BEGIN shift and go to state 2
$end reduce using rule 4 (empty -> .)
program shift and go to state 1
cvxbegin shift and go to state 3
empty shift and go to state 4
state 1
(0) S' -> program .
state 2
(9) cvxbegin -> CVX_BEGIN . GP SEMICOLON
(10) cvxbegin -> CVX_BEGIN . GP COMMA
(11) cvxbegin -> CVX_BEGIN . GP NL
GP shift and go to state 5
state 3
(1) program -> cvxbegin . statements objective statements cvxend
(2) program -> cvxbegin . statements objective cvxend
(29) statements -> . statement NL
(30) statements -> . statement SEMICOLON
(31) statements -> . statement COMMA
(32) statements -> . statements statement NL
(33) statements -> . statements statement SEMICOLON
(34) statements -> . statements statement COMMA
(35) statements -> . statements statement SEMICOLON NL
(36) statement -> . constraint
(37) statement -> . create
(38) statement -> . chained_constraint
(39) statement -> . empty
(47) constraint -> . mono LOGICALEQUAL mono
(48) constraint -> . posy LESSTHANEQUAL mono
(49) constraint -> . mono GREATERTHANEQUAL posy
(50) constraint -> . mono LESSTHANEQUAL mono
(51) constraint -> . mono GREATERTHANEQUAL mono
(16) create -> . VARIABLE var
(17) create -> . VARIABLES varlist
(18) create -> . DUAL VARIABLE ID
(19) create -> . DUAL VARIABLES idlist
(40) chained_constraint -> . posy LESSTHANEQUAL mono GREATERTHANEQUAL posy
(41) chained_constraint -> . mono GREATERTHANEQUAL posy LESSTHANEQUAL mono
(42) chained_constraint -> . mono LOGICALEQUAL mono GREATERTHANEQUAL posy
(43) chained_constraint -> . posy LESSTHANEQUAL mono LOGICALEQUAL mono
(44) chained_constraint -> . mono LESSTHANEQUAL posy GREATERTHANEQUAL mono
(45) chained_constraint -> . mono LESSTHANEQUAL mono GREATERTHANEQUAL mono
(46) chained_constraint -> . mono LESSTHANEQUAL mono LESSTHANEQUAL mono
(4) empty -> .
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
VARIABLE shift and go to state 15
VARIABLES shift and go to state 21
DUAL shift and go to state 7
NL reduce using rule 4 (empty -> .)
SEMICOLON reduce using rule 4 (empty -> .)
COMMA reduce using rule 4 (empty -> .)
INT shift and go to state 18
FLOAT shift and go to state 20
LPAREN shift and go to state 13
ID shift and go to state 16
statements shift and go to state 6
constraint shift and go to state 17
mono shift and go to state 19
create shift and go to state 8
var shift and go to state 10
statement shift and go to state 9
posy shift and go to state 14
chained_constraint shift and go to state 12
empty shift and go to state 11
state 4
(3) program -> empty .
$end reduce using rule 3 (program -> empty .)
state 5
(9) cvxbegin -> CVX_BEGIN GP . SEMICOLON
(10) cvxbegin -> CVX_BEGIN GP . COMMA
(11) cvxbegin -> CVX_BEGIN GP . NL
SEMICOLON shift and go to state 24
COMMA shift and go to state 23
NL shift and go to state 22
state 6
(1) program -> cvxbegin statements . objective statements cvxend
(2) program -> cvxbegin statements . objective cvxend
(32) statements -> statements . statement NL
(33) statements -> statements . statement SEMICOLON
(34) statements -> statements . statement COMMA
(35) statements -> statements . statement SEMICOLON NL
(5) objective -> . SENSE posy NL
(6) objective -> . SENSE posy NL SUBJECT TO NL
(7) objective -> . SENSE mono NL
(8) objective -> . SENSE mono NL SUBJECT TO NL
(36) statement -> . constraint
(37) statement -> . create
(38) statement -> . chained_constraint
(39) statement -> . empty
(47) constraint -> . mono LOGICALEQUAL mono
(48) constraint -> . posy LESSTHANEQUAL mono
(49) constraint -> . mono GREATERTHANEQUAL posy
(50) constraint -> . mono LESSTHANEQUAL mono
(51) constraint -> . mono GREATERTHANEQUAL mono
(16) create -> . VARIABLE var
(17) create -> . VARIABLES varlist
(18) create -> . DUAL VARIABLE ID
(19) create -> . DUAL VARIABLES idlist
(40) chained_constraint -> . posy LESSTHANEQUAL mono GREATERTHANEQUAL posy
(41) chained_constraint -> . mono GREATERTHANEQUAL posy LESSTHANEQUAL mono
(42) chained_constraint -> . mono LOGICALEQUAL mono GREATERTHANEQUAL posy
(43) chained_constraint -> . posy LESSTHANEQUAL mono LOGICALEQUAL mono
(44) chained_constraint -> . mono LESSTHANEQUAL posy GREATERTHANEQUAL mono
(45) chained_constraint -> . mono LESSTHANEQUAL mono GREATERTHANEQUAL mono
(46) chained_constraint -> . mono LESSTHANEQUAL mono LESSTHANEQUAL mono
(4) empty -> .
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
SENSE shift and go to state 27
VARIABLE shift and go to state 15
VARIABLES shift and go to state 21
DUAL shift and go to state 7
NL reduce using rule 4 (empty -> .)
SEMICOLON reduce using rule 4 (empty -> .)
COMMA reduce using rule 4 (empty -> .)
INT shift and go to state 18
FLOAT shift and go to state 20
LPAREN shift and go to state 13
ID shift and go to state 16
constraint shift and go to state 17
mono shift and go to state 19
create shift and go to state 8
var shift and go to state 10
objective shift and go to state 26
statement shift and go to state 25
posy shift and go to state 14
chained_constraint shift and go to state 12
empty shift and go to state 11
state 7
(18) create -> DUAL . VARIABLE ID
(19) create -> DUAL . VARIABLES idlist
VARIABLE shift and go to state 28
VARIABLES shift and go to state 29
state 8
(37) statement -> create .
NL reduce using rule 37 (statement -> create .)
SEMICOLON reduce using rule 37 (statement -> create .)
COMMA reduce using rule 37 (statement -> create .)
state 9
(29) statements -> statement . NL
(30) statements -> statement . SEMICOLON
(31) statements -> statement . COMMA
NL shift and go to state 31
SEMICOLON shift and go to state 32
COMMA shift and go to state 30
state 10
(56) mono -> var .
RPAREN reduce using rule 56 (mono -> var .)
TIMES reduce using rule 56 (mono -> var .)
DIVIDE reduce using rule 56 (mono -> var .)
POWER reduce using rule 56 (mono -> var .)
NL reduce using rule 56 (mono -> var .)
SEMICOLON reduce using rule 56 (mono -> var .)
COMMA reduce using rule 56 (mono -> var .)
LOGICALEQUAL reduce using rule 56 (mono -> var .)
GREATERTHANEQUAL reduce using rule 56 (mono -> var .)
LESSTHANEQUAL reduce using rule 56 (mono -> var .)
PLUS reduce using rule 56 (mono -> var .)
state 11
(39) statement -> empty .
NL reduce using rule 39 (statement -> empty .)
SEMICOLON reduce using rule 39 (statement -> empty .)
COMMA reduce using rule 39 (statement -> empty .)
state 12
(38) statement -> chained_constraint .
NL reduce using rule 38 (statement -> chained_constraint .)
SEMICOLON reduce using rule 38 (statement -> chained_constraint .)
COMMA reduce using rule 38 (statement -> chained_constraint .)
state 13
(68) mono -> LPAREN . mono RPAREN
(67) posy -> LPAREN . posy RPAREN
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
INT shift and go to state 18
FLOAT shift and go to state 20
LPAREN shift and go to state 13
ID shift and go to state 16
var shift and go to state 10
mono shift and go to state 33
posy shift and go to state 34
state 14
(48) constraint -> posy . LESSTHANEQUAL mono
(40) chained_constraint -> posy . LESSTHANEQUAL mono GREATERTHANEQUAL posy
(43) chained_constraint -> posy . LESSTHANEQUAL mono LOGICALEQUAL mono
(60) posy -> posy . PLUS posy
(61) posy -> posy . PLUS mono
(62) posy -> posy . TIMES posy
(63) posy -> posy . TIMES mono
(65) posy -> posy . DIVIDE mono
(66) posy -> posy . POWER INT
LESSTHANEQUAL shift and go to state 37
PLUS shift and go to state 39
TIMES shift and go to state 38
DIVIDE shift and go to state 35
POWER shift and go to state 36
state 15
(16) create -> VARIABLE . var
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
ID shift and go to state 16
var shift and go to state 40
state 16
(20) var -> ID . LPAREN dimlist RPAREN
(21) var -> ID .
(22) var -> ID . LPAREN RPAREN
LPAREN shift and go to state 41
TIMES reduce using rule 21 (var -> ID .)
DIVIDE reduce using rule 21 (var -> ID .)
POWER reduce using rule 21 (var -> ID .)
PLUS reduce using rule 21 (var -> ID .)
LOGICALEQUAL reduce using rule 21 (var -> ID .)
GREATERTHANEQUAL reduce using rule 21 (var -> ID .)
LESSTHANEQUAL reduce using rule 21 (var -> ID .)
RPAREN reduce using rule 21 (var -> ID .)
NL reduce using rule 21 (var -> ID .)
SEMICOLON reduce using rule 21 (var -> ID .)
COMMA reduce using rule 21 (var -> ID .)
ID reduce using rule 21 (var -> ID .)
state 17
(36) statement -> constraint .
NL reduce using rule 36 (statement -> constraint .)
SEMICOLON reduce using rule 36 (statement -> constraint .)
COMMA reduce using rule 36 (statement -> constraint .)
state 18
(57) mono -> INT .
RPAREN reduce using rule 57 (mono -> INT .)
TIMES reduce using rule 57 (mono -> INT .)
DIVIDE reduce using rule 57 (mono -> INT .)
POWER reduce using rule 57 (mono -> INT .)
NL reduce using rule 57 (mono -> INT .)
SEMICOLON reduce using rule 57 (mono -> INT .)
COMMA reduce using rule 57 (mono -> INT .)
LOGICALEQUAL reduce using rule 57 (mono -> INT .)
GREATERTHANEQUAL reduce using rule 57 (mono -> INT .)
LESSTHANEQUAL reduce using rule 57 (mono -> INT .)
PLUS reduce using rule 57 (mono -> INT .)
state 19
(47) constraint -> mono . LOGICALEQUAL mono
(49) constraint -> mono . GREATERTHANEQUAL posy
(50) constraint -> mono . LESSTHANEQUAL mono
(51) constraint -> mono . GREATERTHANEQUAL mono
(41) chained_constraint -> mono . GREATERTHANEQUAL posy LESSTHANEQUAL mono
(42) chained_constraint -> mono . LOGICALEQUAL mono GREATERTHANEQUAL posy
(44) chained_constraint -> mono . LESSTHANEQUAL posy GREATERTHANEQUAL mono
(45) chained_constraint -> mono . LESSTHANEQUAL mono GREATERTHANEQUAL mono
(46) chained_constraint -> mono . LESSTHANEQUAL mono LESSTHANEQUAL mono
(52) mono -> mono . TIMES mono
(53) mono -> mono . DIVIDE mono
(54) mono -> mono . POWER FLOAT
(55) mono -> mono . POWER INT
(59) posy -> mono . PLUS mono
(64) posy -> mono . TIMES posy
LOGICALEQUAL shift and go to state 47
GREATERTHANEQUAL shift and go to state 45
LESSTHANEQUAL shift and go to state 44
TIMES shift and go to state 46
DIVIDE shift and go to state 42
POWER shift and go to state 43
PLUS shift and go to state 48
state 20
(58) mono -> FLOAT .
RPAREN reduce using rule 58 (mono -> FLOAT .)
TIMES reduce using rule 58 (mono -> FLOAT .)
DIVIDE reduce using rule 58 (mono -> FLOAT .)
POWER reduce using rule 58 (mono -> FLOAT .)
NL reduce using rule 58 (mono -> FLOAT .)
SEMICOLON reduce using rule 58 (mono -> FLOAT .)
COMMA reduce using rule 58 (mono -> FLOAT .)
LOGICALEQUAL reduce using rule 58 (mono -> FLOAT .)
GREATERTHANEQUAL reduce using rule 58 (mono -> FLOAT .)
LESSTHANEQUAL reduce using rule 58 (mono -> FLOAT .)
PLUS reduce using rule 58 (mono -> FLOAT .)
state 21
(17) create -> VARIABLES . varlist
(23) varlist -> . varlist var
(24) varlist -> . var
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
ID shift and go to state 16
varlist shift and go to state 49
var shift and go to state 50
state 22
(11) cvxbegin -> CVX_BEGIN GP NL .
VARIABLE reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
VARIABLES reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
DUAL reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
INT reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
FLOAT reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
LPAREN reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
ID reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
NL reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
SEMICOLON reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
COMMA reduce using rule 11 (cvxbegin -> CVX_BEGIN GP NL .)
state 23
(10) cvxbegin -> CVX_BEGIN GP COMMA .
VARIABLE reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
VARIABLES reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
DUAL reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
INT reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
FLOAT reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
LPAREN reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
ID reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
NL reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
SEMICOLON reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
COMMA reduce using rule 10 (cvxbegin -> CVX_BEGIN GP COMMA .)
state 24
(9) cvxbegin -> CVX_BEGIN GP SEMICOLON .
VARIABLE reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
VARIABLES reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
DUAL reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
INT reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
FLOAT reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
LPAREN reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
ID reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
NL reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
SEMICOLON reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
COMMA reduce using rule 9 (cvxbegin -> CVX_BEGIN GP SEMICOLON .)
state 25
(32) statements -> statements statement . NL
(33) statements -> statements statement . SEMICOLON
(34) statements -> statements statement . COMMA
(35) statements -> statements statement . SEMICOLON NL
NL shift and go to state 51
SEMICOLON shift and go to state 53
COMMA shift and go to state 52
state 26
(1) program -> cvxbegin statements objective . statements cvxend
(2) program -> cvxbegin statements objective . cvxend
(29) statements -> . statement NL
(30) statements -> . statement SEMICOLON
(31) statements -> . statement COMMA
(32) statements -> . statements statement NL
(33) statements -> . statements statement SEMICOLON
(34) statements -> . statements statement COMMA
(35) statements -> . statements statement SEMICOLON NL
(12) cvxend -> . CVX_END
(13) cvxend -> . CVX_END NL
(14) cvxend -> . CVX_END SEMICOLON
(15) cvxend -> . CVX_END COMMA
(36) statement -> . constraint
(37) statement -> . create
(38) statement -> . chained_constraint
(39) statement -> . empty
(47) constraint -> . mono LOGICALEQUAL mono
(48) constraint -> . posy LESSTHANEQUAL mono
(49) constraint -> . mono GREATERTHANEQUAL posy
(50) constraint -> . mono LESSTHANEQUAL mono
(51) constraint -> . mono GREATERTHANEQUAL mono
(16) create -> . VARIABLE var
(17) create -> . VARIABLES varlist
(18) create -> . DUAL VARIABLE ID
(19) create -> . DUAL VARIABLES idlist
(40) chained_constraint -> . posy LESSTHANEQUAL mono GREATERTHANEQUAL posy
(41) chained_constraint -> . mono GREATERTHANEQUAL posy LESSTHANEQUAL mono
(42) chained_constraint -> . mono LOGICALEQUAL mono GREATERTHANEQUAL posy
(43) chained_constraint -> . posy LESSTHANEQUAL mono LOGICALEQUAL mono
(44) chained_constraint -> . mono LESSTHANEQUAL posy GREATERTHANEQUAL mono
(45) chained_constraint -> . mono LESSTHANEQUAL mono GREATERTHANEQUAL mono
(46) chained_constraint -> . mono LESSTHANEQUAL mono LESSTHANEQUAL mono
(4) empty -> .
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
CVX_END shift and go to state 56
VARIABLE shift and go to state 15
VARIABLES shift and go to state 21
DUAL shift and go to state 7
NL reduce using rule 4 (empty -> .)
SEMICOLON reduce using rule 4 (empty -> .)
COMMA reduce using rule 4 (empty -> .)
INT shift and go to state 18
FLOAT shift and go to state 20
LPAREN shift and go to state 13
ID shift and go to state 16
statements shift and go to state 54
constraint shift and go to state 17
mono shift and go to state 19
create shift and go to state 8
var shift and go to state 10
cvxend shift and go to state 55
statement shift and go to state 9
posy shift and go to state 14
chained_constraint shift and go to state 12
empty shift and go to state 11
state 27
(5) objective -> SENSE . posy NL
(6) objective -> SENSE . posy NL SUBJECT TO NL
(7) objective -> SENSE . mono NL
(8) objective -> SENSE . mono NL SUBJECT TO NL
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
LPAREN shift and go to state 58
INT shift and go to state 18
FLOAT shift and go to state 20
ID shift and go to state 16
var shift and go to state 10
mono shift and go to state 57
posy shift and go to state 59
state 28
(18) create -> DUAL VARIABLE . ID
ID shift and go to state 60
state 29
(19) create -> DUAL VARIABLES . idlist
(27) idlist -> . idlist ID
(28) idlist -> . ID
ID shift and go to state 62
idlist shift and go to state 61
state 30
(31) statements -> statement COMMA .
CVX_END reduce using rule 31 (statements -> statement COMMA .)
VARIABLE reduce using rule 31 (statements -> statement COMMA .)
VARIABLES reduce using rule 31 (statements -> statement COMMA .)
DUAL reduce using rule 31 (statements -> statement COMMA .)
INT reduce using rule 31 (statements -> statement COMMA .)
FLOAT reduce using rule 31 (statements -> statement COMMA .)
LPAREN reduce using rule 31 (statements -> statement COMMA .)
ID reduce using rule 31 (statements -> statement COMMA .)
NL reduce using rule 31 (statements -> statement COMMA .)
SEMICOLON reduce using rule 31 (statements -> statement COMMA .)
COMMA reduce using rule 31 (statements -> statement COMMA .)
SENSE reduce using rule 31 (statements -> statement COMMA .)
state 31
(29) statements -> statement NL .
CVX_END reduce using rule 29 (statements -> statement NL .)
VARIABLE reduce using rule 29 (statements -> statement NL .)
VARIABLES reduce using rule 29 (statements -> statement NL .)
DUAL reduce using rule 29 (statements -> statement NL .)
INT reduce using rule 29 (statements -> statement NL .)
FLOAT reduce using rule 29 (statements -> statement NL .)
LPAREN reduce using rule 29 (statements -> statement NL .)
ID reduce using rule 29 (statements -> statement NL .)
NL reduce using rule 29 (statements -> statement NL .)
SEMICOLON reduce using rule 29 (statements -> statement NL .)
COMMA reduce using rule 29 (statements -> statement NL .)
SENSE reduce using rule 29 (statements -> statement NL .)
state 32
(30) statements -> statement SEMICOLON .
CVX_END reduce using rule 30 (statements -> statement SEMICOLON .)
VARIABLE reduce using rule 30 (statements -> statement SEMICOLON .)
VARIABLES reduce using rule 30 (statements -> statement SEMICOLON .)
DUAL reduce using rule 30 (statements -> statement SEMICOLON .)
INT reduce using rule 30 (statements -> statement SEMICOLON .)
FLOAT reduce using rule 30 (statements -> statement SEMICOLON .)
LPAREN reduce using rule 30 (statements -> statement SEMICOLON .)
ID reduce using rule 30 (statements -> statement SEMICOLON .)
NL reduce using rule 30 (statements -> statement SEMICOLON .)
SEMICOLON reduce using rule 30 (statements -> statement SEMICOLON .)
COMMA reduce using rule 30 (statements -> statement SEMICOLON .)
SENSE reduce using rule 30 (statements -> statement SEMICOLON .)
state 33
(68) mono -> LPAREN mono . RPAREN
(52) mono -> mono . TIMES mono
(53) mono -> mono . DIVIDE mono
(54) mono -> mono . POWER FLOAT
(55) mono -> mono . POWER INT
(59) posy -> mono . PLUS mono
(64) posy -> mono . TIMES posy
RPAREN shift and go to state 63
TIMES shift and go to state 46
DIVIDE shift and go to state 42
POWER shift and go to state 43
PLUS shift and go to state 48
state 34
(67) posy -> LPAREN posy . RPAREN
(60) posy -> posy . PLUS posy
(61) posy -> posy . PLUS mono
(62) posy -> posy . TIMES posy
(63) posy -> posy . TIMES mono
(65) posy -> posy . DIVIDE mono
(66) posy -> posy . POWER INT
RPAREN shift and go to state 64
PLUS shift and go to state 39
TIMES shift and go to state 38
DIVIDE shift and go to state 35
POWER shift and go to state 36
state 35
(65) posy -> posy DIVIDE . mono
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
INT shift and go to state 18
FLOAT shift and go to state 20
LPAREN shift and go to state 66
ID shift and go to state 16
var shift and go to state 10
mono shift and go to state 65
state 36
(66) posy -> posy POWER . INT
INT shift and go to state 67
state 37
(48) constraint -> posy LESSTHANEQUAL . mono
(40) chained_constraint -> posy LESSTHANEQUAL . mono GREATERTHANEQUAL posy
(43) chained_constraint -> posy LESSTHANEQUAL . mono LOGICALEQUAL mono
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
INT shift and go to state 18
FLOAT shift and go to state 20
LPAREN shift and go to state 66
ID shift and go to state 16
var shift and go to state 10
mono shift and go to state 68
state 38
(62) posy -> posy TIMES . posy
(63) posy -> posy TIMES . mono
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
LPAREN shift and go to state 58
INT shift and go to state 18
FLOAT shift and go to state 20
ID shift and go to state 16
var shift and go to state 10
mono shift and go to state 69
posy shift and go to state 70
state 39
(60) posy -> posy PLUS . posy
(61) posy -> posy PLUS . mono
(59) posy -> . mono PLUS mono
(60) posy -> . posy PLUS posy
(61) posy -> . posy PLUS mono
(62) posy -> . posy TIMES posy
(63) posy -> . posy TIMES mono
(64) posy -> . mono TIMES posy
(65) posy -> . posy DIVIDE mono
(66) posy -> . posy POWER INT
(67) posy -> . LPAREN posy RPAREN
(52) mono -> . mono TIMES mono
(53) mono -> . mono DIVIDE mono
(54) mono -> . mono POWER FLOAT
(55) mono -> . mono POWER INT
(56) mono -> . var
(57) mono -> . INT
(58) mono -> . FLOAT
(68) mono -> . LPAREN mono RPAREN
(20) var -> . ID LPAREN dimlist RPAREN
(21) var -> . ID
(22) var -> . ID LPAREN RPAREN
LPAREN shift and go to state 58
INT shift and go to state 18
FLOAT shift and go to state 20
ID shift and go to state 16
var shift and go to state 10
mono shift and go to state 71
posy shift and go to state 72
state 40
(16) create -> VARIABLE var .
NL reduce using rule 16 (create -> VARIABLE var .)
SEMICOLON reduce using rule 16 (create -> VARIABLE var .)
COMMA reduce using rule 16 (create -> VARIABLE var .)
state 41
(20) var -> ID LPAREN . dimlist RPAREN
(22) var -> ID LPAREN . RPAREN
(25) dimlist -> . INT
(26) dimlist -> . ID
RPAREN shift and go to state 75
INT shift and go to state 73
ID shift and go to state 76