From 9e55ed1209e336d9566b3deb3d7489b360d993cf Mon Sep 17 00:00:00 2001 From: mcDandy Date: Fri, 9 Jan 2026 23:06:35 +0100 Subject: [PATCH] added the permute which does not rearrange dims. --- README.md | 8 +- more_math/Parser/MathExpr.g4 | 12 +- more_math/Parser/MathExpr.interp | 14 +- more_math/Parser/MathExpr.tokens | 45 +- more_math/Parser/MathExprLexer.interp | 16 +- more_math/Parser/MathExprLexer.py | 386 ++++--- more_math/Parser/MathExprLexer.tokens | 45 +- more_math/Parser/MathExprParser.py | 1479 +++++++----------------- more_math/Parser/MathExprVisitor.py | 7 +- more_math/Parser/UnifiedMathVisitor.py | 101 +- 10 files changed, 759 insertions(+), 1354 deletions(-) diff --git a/README.md b/README.md index 07064f9..f6c9819 100644 --- a/README.md +++ b/README.md @@ -92,11 +92,13 @@ You can also get the node from comfy manager under the name of More math. - `map(tensor, c1, ...)`: Remaps `tensor` using source coordinates. - Up to 3 coordinate mapping functions can be provided which map to the last (up to 3) dimensions of the tensor. Rest uses identity mapping. -- `conv(tensor, kw, [kh], [kd], k_expr)`: Applies a convolution to `tensor`. +- `ezconvolution(tensor, kw, [kh], [kd], k_expr)` or `ezconv`: Applies a convolution to `tensor`. Automatically permutes tensor to try to make it work with various inputs without the need to permute manually. + - `k_expr` can be a math expression (using `kX`, `kY`, `kZ`) or a list literal. +- `convolution(tensor, kw, [kh], [kd], k_expr)` or `conv`: Applies a convolution to `tensor`. Does not perform automatic permutations. Expects standard PyTorch layout `(Batch, Channel, Spatial...)`. - `k_expr` can be a math expression (using `kX`, `kY`, `kZ`) or a list literal. -- `permute(tensor, dims)`: Rearranges the dimensions of the tensor. (e.g., `permute(a, [2, 3, 0, 1])`) -- `reshape(tensor, shape)`: Reshapes the tensor to a new shape. (e.g., `reshape(a, [S0*S1, S2, S3])`) +- `permute(tensor, dims)` or `perm`: Rearranges the dimensions of the tensor. (e.g., `perm(a, [2, 3, 0, 1])`) +- `reshape(tensor, shape)` or `rshp`: Reshapes the tensor to a new shape. (e.g., `rshp(a, [S0*S1, S2, S3])`) ### FFT (Tensor Only) diff --git a/more_math/Parser/MathExpr.g4 b/more_math/Parser/MathExpr.g4 index d995051..f6344d5 100644 --- a/more_math/Parser/MathExpr.g4 +++ b/more_math/Parser/MathExpr.g4 @@ -89,7 +89,6 @@ func1 | SOFTPLUS '(' expr ')' # SoftplusFunc | GELU '(' expr ')' # GeluFunc | SIGN '(' expr ')' # SignFunc - | PRINT_SHAPE_L '(' expr ')' # PrintShapeFunc | PRINT_SHAPE '(' expr ')' # PrintShapeFunc | PINV '(' expr ')' # PinvFunc ; @@ -121,6 +120,7 @@ funcN : SMIN '(' expr (',' expr)* ')' # SMinFunc | SMAX '(' expr (',' expr)* ')' # SMaxFunc | MAP '(' expr (',' expr)+ ')' # MapFunc + | EZCONV '(' expr (',' expr)+ ')' # EzConvFunc | CONV '(' expr (',' expr)+ ')' # ConvFunc | PERM '(' expr ',' expr ')' # PermuteFunc | RESHAPE '(' expr ',' expr ')' # ReshapeFunc @@ -163,8 +163,7 @@ SFFT : 'fft'; SIFFT : 'ifft'; ANGL : 'angle'; PRNT : 'print'; -PRINT_SHAPE_L : 'print_shape'; -PRINT_SHAPE : 'pshp'; +PRINT_SHAPE : 'print_shape' | 'pshp'; LERP : 'lerp'; STEP : 'step'; SMOOTHSTEP : 'smoothstep'; @@ -174,10 +173,11 @@ SOFTPLUS : 'softplus'; GELU : 'gelu'; SIGN : 'sign'; MAP : 'map'; -CONV : 'conv'; +EZCONV : 'ezconvolution' | 'ezconv'; +CONV : 'convolution' | 'conv'; SWAP : 'swap'; -PERM : 'permute'; -RESHAPE : 'reshape'; +PERM : 'permute' | 'perm'; +RESHAPE : 'reshape' | 'rshp'; RANGE : 'range'; TOPK : 'topk'; BOTK : 'botk'; diff --git a/more_math/Parser/MathExpr.interp b/more_math/Parser/MathExpr.interp index 0ed3317..6f6d04e 100644 --- a/more_math/Parser/MathExpr.interp +++ b/more_math/Parser/MathExpr.interp @@ -40,8 +40,7 @@ null 'ifft' 'angle' 'print' -'print_shape' -'pshp' +null 'lerp' 'step' 'smoothstep' @@ -51,10 +50,11 @@ null 'gelu' 'sign' 'map' -'conv' +null +null 'swap' -'permute' -'reshape' +null +null 'range' 'topk' 'botk' @@ -119,7 +119,6 @@ SFFT SIFFT ANGL PRNT -PRINT_SHAPE_L PRINT_SHAPE LERP STEP @@ -130,6 +129,7 @@ SOFTPLUS GELU SIGN MAP +EZCONV CONV SWAP PERM @@ -172,4 +172,4 @@ funcN atn: -[4, 1, 76, 473, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 1, 0, 1, 0, 3, 0, 27, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 50, 8, 1, 10, 1, 12, 1, 53, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 64, 8, 2, 10, 2, 12, 2, 67, 9, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 81, 8, 3, 10, 3, 12, 3, 84, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 91, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 98, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 5, 6, 120, 8, 6, 10, 6, 12, 6, 123, 9, 6, 1, 6, 1, 6, 3, 6, 127, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 309, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 360, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 398, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 416, 8, 11, 10, 11, 12, 11, 419, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 428, 8, 11, 10, 11, 12, 11, 431, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 4, 11, 440, 8, 11, 11, 11, 12, 11, 441, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 4, 11, 451, 8, 11, 11, 11, 12, 11, 452, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 471, 8, 11, 1, 11, 0, 3, 2, 4, 6, 12, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 0, 0, 539, 0, 26, 1, 0, 0, 0, 2, 28, 1, 0, 0, 0, 4, 54, 1, 0, 0, 0, 6, 68, 1, 0, 0, 0, 8, 90, 1, 0, 0, 0, 10, 97, 1, 0, 0, 0, 12, 126, 1, 0, 0, 0, 14, 308, 1, 0, 0, 0, 16, 359, 1, 0, 0, 0, 18, 397, 1, 0, 0, 0, 20, 399, 1, 0, 0, 0, 22, 470, 1, 0, 0, 0, 24, 27, 3, 12, 6, 0, 25, 27, 3, 2, 1, 0, 26, 24, 1, 0, 0, 0, 26, 25, 1, 0, 0, 0, 27, 1, 1, 0, 0, 0, 28, 29, 6, 1, -1, 0, 29, 30, 3, 4, 2, 0, 30, 51, 1, 0, 0, 0, 31, 32, 10, 7, 0, 0, 32, 33, 5, 67, 0, 0, 33, 50, 3, 4, 2, 0, 34, 35, 10, 6, 0, 0, 35, 36, 5, 66, 0, 0, 36, 50, 3, 4, 2, 0, 37, 38, 10, 5, 0, 0, 38, 39, 5, 69, 0, 0, 39, 50, 3, 4, 2, 0, 40, 41, 10, 4, 0, 0, 41, 42, 5, 68, 0, 0, 42, 50, 3, 4, 2, 0, 43, 44, 10, 3, 0, 0, 44, 45, 5, 70, 0, 0, 45, 50, 3, 4, 2, 0, 46, 47, 10, 2, 0, 0, 47, 48, 5, 71, 0, 0, 48, 50, 3, 4, 2, 0, 49, 31, 1, 0, 0, 0, 49, 34, 1, 0, 0, 0, 49, 37, 1, 0, 0, 0, 49, 40, 1, 0, 0, 0, 49, 43, 1, 0, 0, 0, 49, 46, 1, 0, 0, 0, 50, 53, 1, 0, 0, 0, 51, 49, 1, 0, 0, 0, 51, 52, 1, 0, 0, 0, 52, 3, 1, 0, 0, 0, 53, 51, 1, 0, 0, 0, 54, 55, 6, 2, -1, 0, 55, 56, 3, 6, 3, 0, 56, 65, 1, 0, 0, 0, 57, 58, 10, 3, 0, 0, 58, 59, 5, 60, 0, 0, 59, 64, 3, 6, 3, 0, 60, 61, 10, 2, 0, 0, 61, 62, 5, 61, 0, 0, 62, 64, 3, 6, 3, 0, 63, 57, 1, 0, 0, 0, 63, 60, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66, 5, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 69, 6, 3, -1, 0, 69, 70, 3, 8, 4, 0, 70, 82, 1, 0, 0, 0, 71, 72, 10, 4, 0, 0, 72, 73, 5, 62, 0, 0, 73, 81, 3, 8, 4, 0, 74, 75, 10, 3, 0, 0, 75, 76, 5, 63, 0, 0, 76, 81, 3, 8, 4, 0, 77, 78, 10, 2, 0, 0, 78, 79, 5, 64, 0, 0, 79, 81, 3, 8, 4, 0, 80, 71, 1, 0, 0, 0, 80, 74, 1, 0, 0, 0, 80, 77, 1, 0, 0, 0, 81, 84, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0, 82, 83, 1, 0, 0, 0, 83, 7, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 85, 86, 3, 10, 5, 0, 86, 87, 5, 65, 0, 0, 87, 88, 3, 8, 4, 0, 88, 91, 1, 0, 0, 0, 89, 91, 3, 10, 5, 0, 90, 85, 1, 0, 0, 0, 90, 89, 1, 0, 0, 0, 91, 9, 1, 0, 0, 0, 92, 93, 5, 60, 0, 0, 93, 98, 3, 10, 5, 0, 94, 95, 5, 61, 0, 0, 95, 98, 3, 10, 5, 0, 96, 98, 3, 12, 6, 0, 97, 92, 1, 0, 0, 0, 97, 94, 1, 0, 0, 0, 97, 96, 1, 0, 0, 0, 98, 11, 1, 0, 0, 0, 99, 127, 3, 14, 7, 0, 100, 127, 3, 16, 8, 0, 101, 127, 3, 18, 9, 0, 102, 127, 3, 20, 10, 0, 103, 127, 3, 22, 11, 0, 104, 127, 5, 75, 0, 0, 105, 127, 5, 74, 0, 0, 106, 127, 5, 73, 0, 0, 107, 108, 5, 1, 0, 0, 108, 109, 3, 0, 0, 0, 109, 110, 5, 2, 0, 0, 110, 127, 1, 0, 0, 0, 111, 112, 5, 72, 0, 0, 112, 113, 3, 0, 0, 0, 113, 114, 5, 72, 0, 0, 114, 127, 1, 0, 0, 0, 115, 116, 5, 3, 0, 0, 116, 121, 3, 0, 0, 0, 117, 118, 5, 4, 0, 0, 118, 120, 3, 0, 0, 0, 119, 117, 1, 0, 0, 0, 120, 123, 1, 0, 0, 0, 121, 119, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 124, 1, 0, 0, 0, 123, 121, 1, 0, 0, 0, 124, 125, 5, 5, 0, 0, 125, 127, 1, 0, 0, 0, 126, 99, 1, 0, 0, 0, 126, 100, 1, 0, 0, 0, 126, 101, 1, 0, 0, 0, 126, 102, 1, 0, 0, 0, 126, 103, 1, 0, 0, 0, 126, 104, 1, 0, 0, 0, 126, 105, 1, 0, 0, 0, 126, 106, 1, 0, 0, 0, 126, 107, 1, 0, 0, 0, 126, 111, 1, 0, 0, 0, 126, 115, 1, 0, 0, 0, 127, 13, 1, 0, 0, 0, 128, 129, 5, 6, 0, 0, 129, 130, 5, 1, 0, 0, 130, 131, 3, 0, 0, 0, 131, 132, 5, 2, 0, 0, 132, 309, 1, 0, 0, 0, 133, 134, 5, 7, 0, 0, 134, 135, 5, 1, 0, 0, 135, 136, 3, 0, 0, 0, 136, 137, 5, 2, 0, 0, 137, 309, 1, 0, 0, 0, 138, 139, 5, 8, 0, 0, 139, 140, 5, 1, 0, 0, 140, 141, 3, 0, 0, 0, 141, 142, 5, 2, 0, 0, 142, 309, 1, 0, 0, 0, 143, 144, 5, 9, 0, 0, 144, 145, 5, 1, 0, 0, 145, 146, 3, 0, 0, 0, 146, 147, 5, 2, 0, 0, 147, 309, 1, 0, 0, 0, 148, 149, 5, 10, 0, 0, 149, 150, 5, 1, 0, 0, 150, 151, 3, 0, 0, 0, 151, 152, 5, 2, 0, 0, 152, 309, 1, 0, 0, 0, 153, 154, 5, 11, 0, 0, 154, 155, 5, 1, 0, 0, 155, 156, 3, 0, 0, 0, 156, 157, 5, 2, 0, 0, 157, 309, 1, 0, 0, 0, 158, 159, 5, 13, 0, 0, 159, 160, 5, 1, 0, 0, 160, 161, 3, 0, 0, 0, 161, 162, 5, 2, 0, 0, 162, 309, 1, 0, 0, 0, 163, 164, 5, 14, 0, 0, 164, 165, 5, 1, 0, 0, 165, 166, 3, 0, 0, 0, 166, 167, 5, 2, 0, 0, 167, 309, 1, 0, 0, 0, 168, 169, 5, 15, 0, 0, 169, 170, 5, 1, 0, 0, 170, 171, 3, 0, 0, 0, 171, 172, 5, 2, 0, 0, 172, 309, 1, 0, 0, 0, 173, 174, 5, 16, 0, 0, 174, 175, 5, 1, 0, 0, 175, 176, 3, 0, 0, 0, 176, 177, 5, 2, 0, 0, 177, 309, 1, 0, 0, 0, 178, 179, 5, 17, 0, 0, 179, 180, 5, 1, 0, 0, 180, 181, 3, 0, 0, 0, 181, 182, 5, 2, 0, 0, 182, 309, 1, 0, 0, 0, 183, 184, 5, 18, 0, 0, 184, 185, 5, 1, 0, 0, 185, 186, 3, 0, 0, 0, 186, 187, 5, 2, 0, 0, 187, 309, 1, 0, 0, 0, 188, 189, 5, 19, 0, 0, 189, 190, 5, 1, 0, 0, 190, 191, 3, 0, 0, 0, 191, 192, 5, 2, 0, 0, 192, 309, 1, 0, 0, 0, 193, 194, 5, 20, 0, 0, 194, 195, 5, 1, 0, 0, 195, 196, 3, 0, 0, 0, 196, 197, 5, 2, 0, 0, 197, 309, 1, 0, 0, 0, 198, 199, 5, 21, 0, 0, 199, 200, 5, 1, 0, 0, 200, 201, 3, 0, 0, 0, 201, 202, 5, 2, 0, 0, 202, 309, 1, 0, 0, 0, 203, 204, 5, 22, 0, 0, 204, 205, 5, 1, 0, 0, 205, 206, 3, 0, 0, 0, 206, 207, 5, 2, 0, 0, 207, 309, 1, 0, 0, 0, 208, 209, 5, 23, 0, 0, 209, 210, 5, 1, 0, 0, 210, 211, 3, 0, 0, 0, 211, 212, 5, 2, 0, 0, 212, 309, 1, 0, 0, 0, 213, 214, 5, 28, 0, 0, 214, 215, 5, 1, 0, 0, 215, 216, 3, 0, 0, 0, 216, 217, 5, 2, 0, 0, 217, 309, 1, 0, 0, 0, 218, 219, 5, 29, 0, 0, 219, 220, 5, 1, 0, 0, 220, 221, 3, 0, 0, 0, 221, 222, 5, 2, 0, 0, 222, 309, 1, 0, 0, 0, 223, 224, 5, 30, 0, 0, 224, 225, 5, 1, 0, 0, 225, 226, 3, 0, 0, 0, 226, 227, 5, 2, 0, 0, 227, 309, 1, 0, 0, 0, 228, 229, 5, 31, 0, 0, 229, 230, 5, 1, 0, 0, 230, 231, 3, 0, 0, 0, 231, 232, 5, 2, 0, 0, 232, 309, 1, 0, 0, 0, 233, 234, 5, 32, 0, 0, 234, 235, 5, 1, 0, 0, 235, 236, 3, 0, 0, 0, 236, 237, 5, 2, 0, 0, 237, 309, 1, 0, 0, 0, 238, 239, 5, 33, 0, 0, 239, 240, 5, 1, 0, 0, 240, 241, 3, 0, 0, 0, 241, 242, 5, 2, 0, 0, 242, 309, 1, 0, 0, 0, 243, 244, 5, 35, 0, 0, 244, 245, 5, 1, 0, 0, 245, 246, 3, 0, 0, 0, 246, 247, 5, 2, 0, 0, 247, 309, 1, 0, 0, 0, 248, 249, 5, 37, 0, 0, 249, 250, 5, 1, 0, 0, 250, 251, 3, 0, 0, 0, 251, 252, 5, 2, 0, 0, 252, 309, 1, 0, 0, 0, 253, 254, 5, 38, 0, 0, 254, 255, 5, 1, 0, 0, 255, 256, 3, 0, 0, 0, 256, 257, 5, 2, 0, 0, 257, 309, 1, 0, 0, 0, 258, 259, 5, 39, 0, 0, 259, 260, 5, 1, 0, 0, 260, 261, 3, 0, 0, 0, 261, 262, 5, 2, 0, 0, 262, 309, 1, 0, 0, 0, 263, 264, 5, 40, 0, 0, 264, 265, 5, 1, 0, 0, 265, 266, 3, 0, 0, 0, 266, 267, 5, 2, 0, 0, 267, 309, 1, 0, 0, 0, 268, 269, 5, 46, 0, 0, 269, 270, 5, 1, 0, 0, 270, 271, 3, 0, 0, 0, 271, 272, 5, 2, 0, 0, 272, 309, 1, 0, 0, 0, 273, 274, 5, 47, 0, 0, 274, 275, 5, 1, 0, 0, 275, 276, 3, 0, 0, 0, 276, 277, 5, 2, 0, 0, 277, 309, 1, 0, 0, 0, 278, 279, 5, 48, 0, 0, 279, 280, 5, 1, 0, 0, 280, 281, 3, 0, 0, 0, 281, 282, 5, 2, 0, 0, 282, 309, 1, 0, 0, 0, 283, 284, 5, 49, 0, 0, 284, 285, 5, 1, 0, 0, 285, 286, 3, 0, 0, 0, 286, 287, 5, 2, 0, 0, 287, 309, 1, 0, 0, 0, 288, 289, 5, 50, 0, 0, 289, 290, 5, 1, 0, 0, 290, 291, 3, 0, 0, 0, 291, 292, 5, 2, 0, 0, 292, 309, 1, 0, 0, 0, 293, 294, 5, 41, 0, 0, 294, 295, 5, 1, 0, 0, 295, 296, 3, 0, 0, 0, 296, 297, 5, 2, 0, 0, 297, 309, 1, 0, 0, 0, 298, 299, 5, 42, 0, 0, 299, 300, 5, 1, 0, 0, 300, 301, 3, 0, 0, 0, 301, 302, 5, 2, 0, 0, 302, 309, 1, 0, 0, 0, 303, 304, 5, 59, 0, 0, 304, 305, 5, 1, 0, 0, 305, 306, 3, 0, 0, 0, 306, 307, 5, 2, 0, 0, 307, 309, 1, 0, 0, 0, 308, 128, 1, 0, 0, 0, 308, 133, 1, 0, 0, 0, 308, 138, 1, 0, 0, 0, 308, 143, 1, 0, 0, 0, 308, 148, 1, 0, 0, 0, 308, 153, 1, 0, 0, 0, 308, 158, 1, 0, 0, 0, 308, 163, 1, 0, 0, 0, 308, 168, 1, 0, 0, 0, 308, 173, 1, 0, 0, 0, 308, 178, 1, 0, 0, 0, 308, 183, 1, 0, 0, 0, 308, 188, 1, 0, 0, 0, 308, 193, 1, 0, 0, 0, 308, 198, 1, 0, 0, 0, 308, 203, 1, 0, 0, 0, 308, 208, 1, 0, 0, 0, 308, 213, 1, 0, 0, 0, 308, 218, 1, 0, 0, 0, 308, 223, 1, 0, 0, 0, 308, 228, 1, 0, 0, 0, 308, 233, 1, 0, 0, 0, 308, 238, 1, 0, 0, 0, 308, 243, 1, 0, 0, 0, 308, 248, 1, 0, 0, 0, 308, 253, 1, 0, 0, 0, 308, 258, 1, 0, 0, 0, 308, 263, 1, 0, 0, 0, 308, 268, 1, 0, 0, 0, 308, 273, 1, 0, 0, 0, 308, 278, 1, 0, 0, 0, 308, 283, 1, 0, 0, 0, 308, 288, 1, 0, 0, 0, 308, 293, 1, 0, 0, 0, 308, 298, 1, 0, 0, 0, 308, 303, 1, 0, 0, 0, 309, 15, 1, 0, 0, 0, 310, 311, 5, 34, 0, 0, 311, 312, 5, 1, 0, 0, 312, 313, 3, 0, 0, 0, 313, 314, 5, 4, 0, 0, 314, 315, 3, 0, 0, 0, 315, 316, 5, 2, 0, 0, 316, 360, 1, 0, 0, 0, 317, 318, 5, 12, 0, 0, 318, 319, 5, 1, 0, 0, 319, 320, 3, 0, 0, 0, 320, 321, 5, 4, 0, 0, 321, 322, 3, 0, 0, 0, 322, 323, 5, 2, 0, 0, 323, 360, 1, 0, 0, 0, 324, 325, 5, 26, 0, 0, 325, 326, 5, 1, 0, 0, 326, 327, 3, 0, 0, 0, 327, 328, 5, 4, 0, 0, 328, 329, 3, 0, 0, 0, 329, 330, 5, 2, 0, 0, 330, 360, 1, 0, 0, 0, 331, 332, 5, 27, 0, 0, 332, 333, 5, 1, 0, 0, 333, 334, 3, 0, 0, 0, 334, 335, 5, 4, 0, 0, 335, 336, 3, 0, 0, 0, 336, 337, 5, 2, 0, 0, 337, 360, 1, 0, 0, 0, 338, 339, 5, 44, 0, 0, 339, 340, 5, 1, 0, 0, 340, 341, 3, 0, 0, 0, 341, 342, 5, 4, 0, 0, 342, 343, 3, 0, 0, 0, 343, 344, 5, 2, 0, 0, 344, 360, 1, 0, 0, 0, 345, 346, 5, 57, 0, 0, 346, 347, 5, 1, 0, 0, 347, 348, 3, 0, 0, 0, 348, 349, 5, 4, 0, 0, 349, 350, 3, 0, 0, 0, 350, 351, 5, 2, 0, 0, 351, 360, 1, 0, 0, 0, 352, 353, 5, 58, 0, 0, 353, 354, 5, 1, 0, 0, 354, 355, 3, 0, 0, 0, 355, 356, 5, 4, 0, 0, 356, 357, 3, 0, 0, 0, 357, 358, 5, 2, 0, 0, 358, 360, 1, 0, 0, 0, 359, 310, 1, 0, 0, 0, 359, 317, 1, 0, 0, 0, 359, 324, 1, 0, 0, 0, 359, 331, 1, 0, 0, 0, 359, 338, 1, 0, 0, 0, 359, 345, 1, 0, 0, 0, 359, 352, 1, 0, 0, 0, 360, 17, 1, 0, 0, 0, 361, 362, 5, 36, 0, 0, 362, 363, 5, 1, 0, 0, 363, 364, 3, 0, 0, 0, 364, 365, 5, 4, 0, 0, 365, 366, 3, 0, 0, 0, 366, 367, 5, 4, 0, 0, 367, 368, 3, 0, 0, 0, 368, 369, 5, 2, 0, 0, 369, 398, 1, 0, 0, 0, 370, 371, 5, 43, 0, 0, 371, 372, 5, 1, 0, 0, 372, 373, 3, 0, 0, 0, 373, 374, 5, 4, 0, 0, 374, 375, 3, 0, 0, 0, 375, 376, 5, 4, 0, 0, 376, 377, 3, 0, 0, 0, 377, 378, 5, 2, 0, 0, 378, 398, 1, 0, 0, 0, 379, 380, 5, 45, 0, 0, 380, 381, 5, 1, 0, 0, 381, 382, 3, 0, 0, 0, 382, 383, 5, 4, 0, 0, 383, 384, 3, 0, 0, 0, 384, 385, 5, 4, 0, 0, 385, 386, 3, 0, 0, 0, 386, 387, 5, 2, 0, 0, 387, 398, 1, 0, 0, 0, 388, 389, 5, 56, 0, 0, 389, 390, 5, 1, 0, 0, 390, 391, 3, 0, 0, 0, 391, 392, 5, 4, 0, 0, 392, 393, 3, 0, 0, 0, 393, 394, 5, 4, 0, 0, 394, 395, 3, 0, 0, 0, 395, 396, 5, 2, 0, 0, 396, 398, 1, 0, 0, 0, 397, 361, 1, 0, 0, 0, 397, 370, 1, 0, 0, 0, 397, 379, 1, 0, 0, 0, 397, 388, 1, 0, 0, 0, 398, 19, 1, 0, 0, 0, 399, 400, 5, 53, 0, 0, 400, 401, 5, 1, 0, 0, 401, 402, 3, 0, 0, 0, 402, 403, 5, 4, 0, 0, 403, 404, 3, 0, 0, 0, 404, 405, 5, 4, 0, 0, 405, 406, 3, 0, 0, 0, 406, 407, 5, 4, 0, 0, 407, 408, 3, 0, 0, 0, 408, 409, 5, 2, 0, 0, 409, 21, 1, 0, 0, 0, 410, 411, 5, 24, 0, 0, 411, 412, 5, 1, 0, 0, 412, 417, 3, 0, 0, 0, 413, 414, 5, 4, 0, 0, 414, 416, 3, 0, 0, 0, 415, 413, 1, 0, 0, 0, 416, 419, 1, 0, 0, 0, 417, 415, 1, 0, 0, 0, 417, 418, 1, 0, 0, 0, 418, 420, 1, 0, 0, 0, 419, 417, 1, 0, 0, 0, 420, 421, 5, 2, 0, 0, 421, 471, 1, 0, 0, 0, 422, 423, 5, 25, 0, 0, 423, 424, 5, 1, 0, 0, 424, 429, 3, 0, 0, 0, 425, 426, 5, 4, 0, 0, 426, 428, 3, 0, 0, 0, 427, 425, 1, 0, 0, 0, 428, 431, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0, 430, 432, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 432, 433, 5, 2, 0, 0, 433, 471, 1, 0, 0, 0, 434, 435, 5, 51, 0, 0, 435, 436, 5, 1, 0, 0, 436, 439, 3, 0, 0, 0, 437, 438, 5, 4, 0, 0, 438, 440, 3, 0, 0, 0, 439, 437, 1, 0, 0, 0, 440, 441, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 441, 442, 1, 0, 0, 0, 442, 443, 1, 0, 0, 0, 443, 444, 5, 2, 0, 0, 444, 471, 1, 0, 0, 0, 445, 446, 5, 52, 0, 0, 446, 447, 5, 1, 0, 0, 447, 450, 3, 0, 0, 0, 448, 449, 5, 4, 0, 0, 449, 451, 3, 0, 0, 0, 450, 448, 1, 0, 0, 0, 451, 452, 1, 0, 0, 0, 452, 450, 1, 0, 0, 0, 452, 453, 1, 0, 0, 0, 453, 454, 1, 0, 0, 0, 454, 455, 5, 2, 0, 0, 455, 471, 1, 0, 0, 0, 456, 457, 5, 54, 0, 0, 457, 458, 5, 1, 0, 0, 458, 459, 3, 0, 0, 0, 459, 460, 5, 4, 0, 0, 460, 461, 3, 0, 0, 0, 461, 462, 5, 2, 0, 0, 462, 471, 1, 0, 0, 0, 463, 464, 5, 55, 0, 0, 464, 465, 5, 1, 0, 0, 465, 466, 3, 0, 0, 0, 466, 467, 5, 4, 0, 0, 467, 468, 3, 0, 0, 0, 468, 469, 5, 2, 0, 0, 469, 471, 1, 0, 0, 0, 470, 410, 1, 0, 0, 0, 470, 422, 1, 0, 0, 0, 470, 434, 1, 0, 0, 0, 470, 445, 1, 0, 0, 0, 470, 456, 1, 0, 0, 0, 470, 463, 1, 0, 0, 0, 471, 23, 1, 0, 0, 0, 19, 26, 49, 51, 63, 65, 80, 82, 90, 97, 121, 126, 308, 359, 397, 417, 429, 441, 452, 470] \ No newline at end of file +[4, 1, 76, 479, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 1, 0, 1, 0, 3, 0, 27, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 50, 8, 1, 10, 1, 12, 1, 53, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 64, 8, 2, 10, 2, 12, 2, 67, 9, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 81, 8, 3, 10, 3, 12, 3, 84, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 91, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 98, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 5, 6, 120, 8, 6, 10, 6, 12, 6, 123, 9, 6, 1, 6, 1, 6, 3, 6, 127, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 304, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 355, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 393, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 411, 8, 11, 10, 11, 12, 11, 414, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 423, 8, 11, 10, 11, 12, 11, 426, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 4, 11, 435, 8, 11, 11, 11, 12, 11, 436, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 4, 11, 446, 8, 11, 11, 11, 12, 11, 447, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 4, 11, 457, 8, 11, 11, 11, 12, 11, 458, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 477, 8, 11, 1, 11, 0, 3, 2, 4, 6, 12, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 0, 0, 546, 0, 26, 1, 0, 0, 0, 2, 28, 1, 0, 0, 0, 4, 54, 1, 0, 0, 0, 6, 68, 1, 0, 0, 0, 8, 90, 1, 0, 0, 0, 10, 97, 1, 0, 0, 0, 12, 126, 1, 0, 0, 0, 14, 303, 1, 0, 0, 0, 16, 354, 1, 0, 0, 0, 18, 392, 1, 0, 0, 0, 20, 394, 1, 0, 0, 0, 22, 476, 1, 0, 0, 0, 24, 27, 3, 12, 6, 0, 25, 27, 3, 2, 1, 0, 26, 24, 1, 0, 0, 0, 26, 25, 1, 0, 0, 0, 27, 1, 1, 0, 0, 0, 28, 29, 6, 1, -1, 0, 29, 30, 3, 4, 2, 0, 30, 51, 1, 0, 0, 0, 31, 32, 10, 7, 0, 0, 32, 33, 5, 67, 0, 0, 33, 50, 3, 4, 2, 0, 34, 35, 10, 6, 0, 0, 35, 36, 5, 66, 0, 0, 36, 50, 3, 4, 2, 0, 37, 38, 10, 5, 0, 0, 38, 39, 5, 69, 0, 0, 39, 50, 3, 4, 2, 0, 40, 41, 10, 4, 0, 0, 41, 42, 5, 68, 0, 0, 42, 50, 3, 4, 2, 0, 43, 44, 10, 3, 0, 0, 44, 45, 5, 70, 0, 0, 45, 50, 3, 4, 2, 0, 46, 47, 10, 2, 0, 0, 47, 48, 5, 71, 0, 0, 48, 50, 3, 4, 2, 0, 49, 31, 1, 0, 0, 0, 49, 34, 1, 0, 0, 0, 49, 37, 1, 0, 0, 0, 49, 40, 1, 0, 0, 0, 49, 43, 1, 0, 0, 0, 49, 46, 1, 0, 0, 0, 50, 53, 1, 0, 0, 0, 51, 49, 1, 0, 0, 0, 51, 52, 1, 0, 0, 0, 52, 3, 1, 0, 0, 0, 53, 51, 1, 0, 0, 0, 54, 55, 6, 2, -1, 0, 55, 56, 3, 6, 3, 0, 56, 65, 1, 0, 0, 0, 57, 58, 10, 3, 0, 0, 58, 59, 5, 60, 0, 0, 59, 64, 3, 6, 3, 0, 60, 61, 10, 2, 0, 0, 61, 62, 5, 61, 0, 0, 62, 64, 3, 6, 3, 0, 63, 57, 1, 0, 0, 0, 63, 60, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66, 5, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 69, 6, 3, -1, 0, 69, 70, 3, 8, 4, 0, 70, 82, 1, 0, 0, 0, 71, 72, 10, 4, 0, 0, 72, 73, 5, 62, 0, 0, 73, 81, 3, 8, 4, 0, 74, 75, 10, 3, 0, 0, 75, 76, 5, 63, 0, 0, 76, 81, 3, 8, 4, 0, 77, 78, 10, 2, 0, 0, 78, 79, 5, 64, 0, 0, 79, 81, 3, 8, 4, 0, 80, 71, 1, 0, 0, 0, 80, 74, 1, 0, 0, 0, 80, 77, 1, 0, 0, 0, 81, 84, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0, 82, 83, 1, 0, 0, 0, 83, 7, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 85, 86, 3, 10, 5, 0, 86, 87, 5, 65, 0, 0, 87, 88, 3, 8, 4, 0, 88, 91, 1, 0, 0, 0, 89, 91, 3, 10, 5, 0, 90, 85, 1, 0, 0, 0, 90, 89, 1, 0, 0, 0, 91, 9, 1, 0, 0, 0, 92, 93, 5, 60, 0, 0, 93, 98, 3, 10, 5, 0, 94, 95, 5, 61, 0, 0, 95, 98, 3, 10, 5, 0, 96, 98, 3, 12, 6, 0, 97, 92, 1, 0, 0, 0, 97, 94, 1, 0, 0, 0, 97, 96, 1, 0, 0, 0, 98, 11, 1, 0, 0, 0, 99, 127, 3, 14, 7, 0, 100, 127, 3, 16, 8, 0, 101, 127, 3, 18, 9, 0, 102, 127, 3, 20, 10, 0, 103, 127, 3, 22, 11, 0, 104, 127, 5, 75, 0, 0, 105, 127, 5, 74, 0, 0, 106, 127, 5, 73, 0, 0, 107, 108, 5, 1, 0, 0, 108, 109, 3, 0, 0, 0, 109, 110, 5, 2, 0, 0, 110, 127, 1, 0, 0, 0, 111, 112, 5, 72, 0, 0, 112, 113, 3, 0, 0, 0, 113, 114, 5, 72, 0, 0, 114, 127, 1, 0, 0, 0, 115, 116, 5, 3, 0, 0, 116, 121, 3, 0, 0, 0, 117, 118, 5, 4, 0, 0, 118, 120, 3, 0, 0, 0, 119, 117, 1, 0, 0, 0, 120, 123, 1, 0, 0, 0, 121, 119, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 124, 1, 0, 0, 0, 123, 121, 1, 0, 0, 0, 124, 125, 5, 5, 0, 0, 125, 127, 1, 0, 0, 0, 126, 99, 1, 0, 0, 0, 126, 100, 1, 0, 0, 0, 126, 101, 1, 0, 0, 0, 126, 102, 1, 0, 0, 0, 126, 103, 1, 0, 0, 0, 126, 104, 1, 0, 0, 0, 126, 105, 1, 0, 0, 0, 126, 106, 1, 0, 0, 0, 126, 107, 1, 0, 0, 0, 126, 111, 1, 0, 0, 0, 126, 115, 1, 0, 0, 0, 127, 13, 1, 0, 0, 0, 128, 129, 5, 6, 0, 0, 129, 130, 5, 1, 0, 0, 130, 131, 3, 0, 0, 0, 131, 132, 5, 2, 0, 0, 132, 304, 1, 0, 0, 0, 133, 134, 5, 7, 0, 0, 134, 135, 5, 1, 0, 0, 135, 136, 3, 0, 0, 0, 136, 137, 5, 2, 0, 0, 137, 304, 1, 0, 0, 0, 138, 139, 5, 8, 0, 0, 139, 140, 5, 1, 0, 0, 140, 141, 3, 0, 0, 0, 141, 142, 5, 2, 0, 0, 142, 304, 1, 0, 0, 0, 143, 144, 5, 9, 0, 0, 144, 145, 5, 1, 0, 0, 145, 146, 3, 0, 0, 0, 146, 147, 5, 2, 0, 0, 147, 304, 1, 0, 0, 0, 148, 149, 5, 10, 0, 0, 149, 150, 5, 1, 0, 0, 150, 151, 3, 0, 0, 0, 151, 152, 5, 2, 0, 0, 152, 304, 1, 0, 0, 0, 153, 154, 5, 11, 0, 0, 154, 155, 5, 1, 0, 0, 155, 156, 3, 0, 0, 0, 156, 157, 5, 2, 0, 0, 157, 304, 1, 0, 0, 0, 158, 159, 5, 13, 0, 0, 159, 160, 5, 1, 0, 0, 160, 161, 3, 0, 0, 0, 161, 162, 5, 2, 0, 0, 162, 304, 1, 0, 0, 0, 163, 164, 5, 14, 0, 0, 164, 165, 5, 1, 0, 0, 165, 166, 3, 0, 0, 0, 166, 167, 5, 2, 0, 0, 167, 304, 1, 0, 0, 0, 168, 169, 5, 15, 0, 0, 169, 170, 5, 1, 0, 0, 170, 171, 3, 0, 0, 0, 171, 172, 5, 2, 0, 0, 172, 304, 1, 0, 0, 0, 173, 174, 5, 16, 0, 0, 174, 175, 5, 1, 0, 0, 175, 176, 3, 0, 0, 0, 176, 177, 5, 2, 0, 0, 177, 304, 1, 0, 0, 0, 178, 179, 5, 17, 0, 0, 179, 180, 5, 1, 0, 0, 180, 181, 3, 0, 0, 0, 181, 182, 5, 2, 0, 0, 182, 304, 1, 0, 0, 0, 183, 184, 5, 18, 0, 0, 184, 185, 5, 1, 0, 0, 185, 186, 3, 0, 0, 0, 186, 187, 5, 2, 0, 0, 187, 304, 1, 0, 0, 0, 188, 189, 5, 19, 0, 0, 189, 190, 5, 1, 0, 0, 190, 191, 3, 0, 0, 0, 191, 192, 5, 2, 0, 0, 192, 304, 1, 0, 0, 0, 193, 194, 5, 20, 0, 0, 194, 195, 5, 1, 0, 0, 195, 196, 3, 0, 0, 0, 196, 197, 5, 2, 0, 0, 197, 304, 1, 0, 0, 0, 198, 199, 5, 21, 0, 0, 199, 200, 5, 1, 0, 0, 200, 201, 3, 0, 0, 0, 201, 202, 5, 2, 0, 0, 202, 304, 1, 0, 0, 0, 203, 204, 5, 22, 0, 0, 204, 205, 5, 1, 0, 0, 205, 206, 3, 0, 0, 0, 206, 207, 5, 2, 0, 0, 207, 304, 1, 0, 0, 0, 208, 209, 5, 23, 0, 0, 209, 210, 5, 1, 0, 0, 210, 211, 3, 0, 0, 0, 211, 212, 5, 2, 0, 0, 212, 304, 1, 0, 0, 0, 213, 214, 5, 28, 0, 0, 214, 215, 5, 1, 0, 0, 215, 216, 3, 0, 0, 0, 216, 217, 5, 2, 0, 0, 217, 304, 1, 0, 0, 0, 218, 219, 5, 29, 0, 0, 219, 220, 5, 1, 0, 0, 220, 221, 3, 0, 0, 0, 221, 222, 5, 2, 0, 0, 222, 304, 1, 0, 0, 0, 223, 224, 5, 30, 0, 0, 224, 225, 5, 1, 0, 0, 225, 226, 3, 0, 0, 0, 226, 227, 5, 2, 0, 0, 227, 304, 1, 0, 0, 0, 228, 229, 5, 31, 0, 0, 229, 230, 5, 1, 0, 0, 230, 231, 3, 0, 0, 0, 231, 232, 5, 2, 0, 0, 232, 304, 1, 0, 0, 0, 233, 234, 5, 32, 0, 0, 234, 235, 5, 1, 0, 0, 235, 236, 3, 0, 0, 0, 236, 237, 5, 2, 0, 0, 237, 304, 1, 0, 0, 0, 238, 239, 5, 33, 0, 0, 239, 240, 5, 1, 0, 0, 240, 241, 3, 0, 0, 0, 241, 242, 5, 2, 0, 0, 242, 304, 1, 0, 0, 0, 243, 244, 5, 35, 0, 0, 244, 245, 5, 1, 0, 0, 245, 246, 3, 0, 0, 0, 246, 247, 5, 2, 0, 0, 247, 304, 1, 0, 0, 0, 248, 249, 5, 37, 0, 0, 249, 250, 5, 1, 0, 0, 250, 251, 3, 0, 0, 0, 251, 252, 5, 2, 0, 0, 252, 304, 1, 0, 0, 0, 253, 254, 5, 38, 0, 0, 254, 255, 5, 1, 0, 0, 255, 256, 3, 0, 0, 0, 256, 257, 5, 2, 0, 0, 257, 304, 1, 0, 0, 0, 258, 259, 5, 39, 0, 0, 259, 260, 5, 1, 0, 0, 260, 261, 3, 0, 0, 0, 261, 262, 5, 2, 0, 0, 262, 304, 1, 0, 0, 0, 263, 264, 5, 40, 0, 0, 264, 265, 5, 1, 0, 0, 265, 266, 3, 0, 0, 0, 266, 267, 5, 2, 0, 0, 267, 304, 1, 0, 0, 0, 268, 269, 5, 45, 0, 0, 269, 270, 5, 1, 0, 0, 270, 271, 3, 0, 0, 0, 271, 272, 5, 2, 0, 0, 272, 304, 1, 0, 0, 0, 273, 274, 5, 46, 0, 0, 274, 275, 5, 1, 0, 0, 275, 276, 3, 0, 0, 0, 276, 277, 5, 2, 0, 0, 277, 304, 1, 0, 0, 0, 278, 279, 5, 47, 0, 0, 279, 280, 5, 1, 0, 0, 280, 281, 3, 0, 0, 0, 281, 282, 5, 2, 0, 0, 282, 304, 1, 0, 0, 0, 283, 284, 5, 48, 0, 0, 284, 285, 5, 1, 0, 0, 285, 286, 3, 0, 0, 0, 286, 287, 5, 2, 0, 0, 287, 304, 1, 0, 0, 0, 288, 289, 5, 49, 0, 0, 289, 290, 5, 1, 0, 0, 290, 291, 3, 0, 0, 0, 291, 292, 5, 2, 0, 0, 292, 304, 1, 0, 0, 0, 293, 294, 5, 41, 0, 0, 294, 295, 5, 1, 0, 0, 295, 296, 3, 0, 0, 0, 296, 297, 5, 2, 0, 0, 297, 304, 1, 0, 0, 0, 298, 299, 5, 59, 0, 0, 299, 300, 5, 1, 0, 0, 300, 301, 3, 0, 0, 0, 301, 302, 5, 2, 0, 0, 302, 304, 1, 0, 0, 0, 303, 128, 1, 0, 0, 0, 303, 133, 1, 0, 0, 0, 303, 138, 1, 0, 0, 0, 303, 143, 1, 0, 0, 0, 303, 148, 1, 0, 0, 0, 303, 153, 1, 0, 0, 0, 303, 158, 1, 0, 0, 0, 303, 163, 1, 0, 0, 0, 303, 168, 1, 0, 0, 0, 303, 173, 1, 0, 0, 0, 303, 178, 1, 0, 0, 0, 303, 183, 1, 0, 0, 0, 303, 188, 1, 0, 0, 0, 303, 193, 1, 0, 0, 0, 303, 198, 1, 0, 0, 0, 303, 203, 1, 0, 0, 0, 303, 208, 1, 0, 0, 0, 303, 213, 1, 0, 0, 0, 303, 218, 1, 0, 0, 0, 303, 223, 1, 0, 0, 0, 303, 228, 1, 0, 0, 0, 303, 233, 1, 0, 0, 0, 303, 238, 1, 0, 0, 0, 303, 243, 1, 0, 0, 0, 303, 248, 1, 0, 0, 0, 303, 253, 1, 0, 0, 0, 303, 258, 1, 0, 0, 0, 303, 263, 1, 0, 0, 0, 303, 268, 1, 0, 0, 0, 303, 273, 1, 0, 0, 0, 303, 278, 1, 0, 0, 0, 303, 283, 1, 0, 0, 0, 303, 288, 1, 0, 0, 0, 303, 293, 1, 0, 0, 0, 303, 298, 1, 0, 0, 0, 304, 15, 1, 0, 0, 0, 305, 306, 5, 34, 0, 0, 306, 307, 5, 1, 0, 0, 307, 308, 3, 0, 0, 0, 308, 309, 5, 4, 0, 0, 309, 310, 3, 0, 0, 0, 310, 311, 5, 2, 0, 0, 311, 355, 1, 0, 0, 0, 312, 313, 5, 12, 0, 0, 313, 314, 5, 1, 0, 0, 314, 315, 3, 0, 0, 0, 315, 316, 5, 4, 0, 0, 316, 317, 3, 0, 0, 0, 317, 318, 5, 2, 0, 0, 318, 355, 1, 0, 0, 0, 319, 320, 5, 26, 0, 0, 320, 321, 5, 1, 0, 0, 321, 322, 3, 0, 0, 0, 322, 323, 5, 4, 0, 0, 323, 324, 3, 0, 0, 0, 324, 325, 5, 2, 0, 0, 325, 355, 1, 0, 0, 0, 326, 327, 5, 27, 0, 0, 327, 328, 5, 1, 0, 0, 328, 329, 3, 0, 0, 0, 329, 330, 5, 4, 0, 0, 330, 331, 3, 0, 0, 0, 331, 332, 5, 2, 0, 0, 332, 355, 1, 0, 0, 0, 333, 334, 5, 43, 0, 0, 334, 335, 5, 1, 0, 0, 335, 336, 3, 0, 0, 0, 336, 337, 5, 4, 0, 0, 337, 338, 3, 0, 0, 0, 338, 339, 5, 2, 0, 0, 339, 355, 1, 0, 0, 0, 340, 341, 5, 57, 0, 0, 341, 342, 5, 1, 0, 0, 342, 343, 3, 0, 0, 0, 343, 344, 5, 4, 0, 0, 344, 345, 3, 0, 0, 0, 345, 346, 5, 2, 0, 0, 346, 355, 1, 0, 0, 0, 347, 348, 5, 58, 0, 0, 348, 349, 5, 1, 0, 0, 349, 350, 3, 0, 0, 0, 350, 351, 5, 4, 0, 0, 351, 352, 3, 0, 0, 0, 352, 353, 5, 2, 0, 0, 353, 355, 1, 0, 0, 0, 354, 305, 1, 0, 0, 0, 354, 312, 1, 0, 0, 0, 354, 319, 1, 0, 0, 0, 354, 326, 1, 0, 0, 0, 354, 333, 1, 0, 0, 0, 354, 340, 1, 0, 0, 0, 354, 347, 1, 0, 0, 0, 355, 17, 1, 0, 0, 0, 356, 357, 5, 36, 0, 0, 357, 358, 5, 1, 0, 0, 358, 359, 3, 0, 0, 0, 359, 360, 5, 4, 0, 0, 360, 361, 3, 0, 0, 0, 361, 362, 5, 4, 0, 0, 362, 363, 3, 0, 0, 0, 363, 364, 5, 2, 0, 0, 364, 393, 1, 0, 0, 0, 365, 366, 5, 42, 0, 0, 366, 367, 5, 1, 0, 0, 367, 368, 3, 0, 0, 0, 368, 369, 5, 4, 0, 0, 369, 370, 3, 0, 0, 0, 370, 371, 5, 4, 0, 0, 371, 372, 3, 0, 0, 0, 372, 373, 5, 2, 0, 0, 373, 393, 1, 0, 0, 0, 374, 375, 5, 44, 0, 0, 375, 376, 5, 1, 0, 0, 376, 377, 3, 0, 0, 0, 377, 378, 5, 4, 0, 0, 378, 379, 3, 0, 0, 0, 379, 380, 5, 4, 0, 0, 380, 381, 3, 0, 0, 0, 381, 382, 5, 2, 0, 0, 382, 393, 1, 0, 0, 0, 383, 384, 5, 56, 0, 0, 384, 385, 5, 1, 0, 0, 385, 386, 3, 0, 0, 0, 386, 387, 5, 4, 0, 0, 387, 388, 3, 0, 0, 0, 388, 389, 5, 4, 0, 0, 389, 390, 3, 0, 0, 0, 390, 391, 5, 2, 0, 0, 391, 393, 1, 0, 0, 0, 392, 356, 1, 0, 0, 0, 392, 365, 1, 0, 0, 0, 392, 374, 1, 0, 0, 0, 392, 383, 1, 0, 0, 0, 393, 19, 1, 0, 0, 0, 394, 395, 5, 53, 0, 0, 395, 396, 5, 1, 0, 0, 396, 397, 3, 0, 0, 0, 397, 398, 5, 4, 0, 0, 398, 399, 3, 0, 0, 0, 399, 400, 5, 4, 0, 0, 400, 401, 3, 0, 0, 0, 401, 402, 5, 4, 0, 0, 402, 403, 3, 0, 0, 0, 403, 404, 5, 2, 0, 0, 404, 21, 1, 0, 0, 0, 405, 406, 5, 24, 0, 0, 406, 407, 5, 1, 0, 0, 407, 412, 3, 0, 0, 0, 408, 409, 5, 4, 0, 0, 409, 411, 3, 0, 0, 0, 410, 408, 1, 0, 0, 0, 411, 414, 1, 0, 0, 0, 412, 410, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 415, 1, 0, 0, 0, 414, 412, 1, 0, 0, 0, 415, 416, 5, 2, 0, 0, 416, 477, 1, 0, 0, 0, 417, 418, 5, 25, 0, 0, 418, 419, 5, 1, 0, 0, 419, 424, 3, 0, 0, 0, 420, 421, 5, 4, 0, 0, 421, 423, 3, 0, 0, 0, 422, 420, 1, 0, 0, 0, 423, 426, 1, 0, 0, 0, 424, 422, 1, 0, 0, 0, 424, 425, 1, 0, 0, 0, 425, 427, 1, 0, 0, 0, 426, 424, 1, 0, 0, 0, 427, 428, 5, 2, 0, 0, 428, 477, 1, 0, 0, 0, 429, 430, 5, 50, 0, 0, 430, 431, 5, 1, 0, 0, 431, 434, 3, 0, 0, 0, 432, 433, 5, 4, 0, 0, 433, 435, 3, 0, 0, 0, 434, 432, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 434, 1, 0, 0, 0, 436, 437, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 439, 5, 2, 0, 0, 439, 477, 1, 0, 0, 0, 440, 441, 5, 51, 0, 0, 441, 442, 5, 1, 0, 0, 442, 445, 3, 0, 0, 0, 443, 444, 5, 4, 0, 0, 444, 446, 3, 0, 0, 0, 445, 443, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 445, 1, 0, 0, 0, 447, 448, 1, 0, 0, 0, 448, 449, 1, 0, 0, 0, 449, 450, 5, 2, 0, 0, 450, 477, 1, 0, 0, 0, 451, 452, 5, 52, 0, 0, 452, 453, 5, 1, 0, 0, 453, 456, 3, 0, 0, 0, 454, 455, 5, 4, 0, 0, 455, 457, 3, 0, 0, 0, 456, 454, 1, 0, 0, 0, 457, 458, 1, 0, 0, 0, 458, 456, 1, 0, 0, 0, 458, 459, 1, 0, 0, 0, 459, 460, 1, 0, 0, 0, 460, 461, 5, 2, 0, 0, 461, 477, 1, 0, 0, 0, 462, 463, 5, 54, 0, 0, 463, 464, 5, 1, 0, 0, 464, 465, 3, 0, 0, 0, 465, 466, 5, 4, 0, 0, 466, 467, 3, 0, 0, 0, 467, 468, 5, 2, 0, 0, 468, 477, 1, 0, 0, 0, 469, 470, 5, 55, 0, 0, 470, 471, 5, 1, 0, 0, 471, 472, 3, 0, 0, 0, 472, 473, 5, 4, 0, 0, 473, 474, 3, 0, 0, 0, 474, 475, 5, 2, 0, 0, 475, 477, 1, 0, 0, 0, 476, 405, 1, 0, 0, 0, 476, 417, 1, 0, 0, 0, 476, 429, 1, 0, 0, 0, 476, 440, 1, 0, 0, 0, 476, 451, 1, 0, 0, 0, 476, 462, 1, 0, 0, 0, 476, 469, 1, 0, 0, 0, 477, 23, 1, 0, 0, 0, 20, 26, 49, 51, 63, 65, 80, 82, 90, 97, 121, 126, 303, 354, 392, 412, 424, 436, 447, 458, 476] \ No newline at end of file diff --git a/more_math/Parser/MathExpr.tokens b/more_math/Parser/MathExpr.tokens index 254b000..ad02869 100644 --- a/more_math/Parser/MathExpr.tokens +++ b/more_math/Parser/MathExpr.tokens @@ -38,17 +38,17 @@ SFFT=37 SIFFT=38 ANGL=39 PRNT=40 -PRINT_SHAPE_L=41 -PRINT_SHAPE=42 -LERP=43 -STEP=44 -SMOOTHSTEP=45 -FRACT=46 -RELU=47 -SOFTPLUS=48 -GELU=49 -SIGN=50 -MAP=51 +PRINT_SHAPE=41 +LERP=42 +STEP=43 +SMOOTHSTEP=44 +FRACT=45 +RELU=46 +SOFTPLUS=47 +GELU=48 +SIGN=49 +MAP=50 +EZCONV=51 CONV=52 SWAP=53 PERM=54 @@ -114,21 +114,16 @@ WS=76 'ifft'=38 'angle'=39 'print'=40 -'print_shape'=41 -'pshp'=42 -'lerp'=43 -'step'=44 -'smoothstep'=45 -'fract'=46 -'relu'=47 -'softplus'=48 -'gelu'=49 -'sign'=50 -'map'=51 -'conv'=52 +'lerp'=42 +'step'=43 +'smoothstep'=44 +'fract'=45 +'relu'=46 +'softplus'=47 +'gelu'=48 +'sign'=49 +'map'=50 'swap'=53 -'permute'=54 -'reshape'=55 'range'=56 'topk'=57 'botk'=58 diff --git a/more_math/Parser/MathExprLexer.interp b/more_math/Parser/MathExprLexer.interp index bcec512..774123f 100644 --- a/more_math/Parser/MathExprLexer.interp +++ b/more_math/Parser/MathExprLexer.interp @@ -40,8 +40,7 @@ null 'ifft' 'angle' 'print' -'print_shape' -'pshp' +null 'lerp' 'step' 'smoothstep' @@ -51,10 +50,11 @@ null 'gelu' 'sign' 'map' -'conv' +null +null 'swap' -'permute' -'reshape' +null +null 'range' 'topk' 'botk' @@ -119,7 +119,6 @@ SFFT SIFFT ANGL PRNT -PRINT_SHAPE_L PRINT_SHAPE LERP STEP @@ -130,6 +129,7 @@ SOFTPLUS GELU SIGN MAP +EZCONV CONV SWAP PERM @@ -197,7 +197,6 @@ SFFT SIFFT ANGL PRNT -PRINT_SHAPE_L PRINT_SHAPE LERP STEP @@ -208,6 +207,7 @@ SOFTPLUS GELU SIGN MAP +EZCONV CONV SWAP PERM @@ -242,4 +242,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 76, 523, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 60, 1, 60, 1, 61, 1, 61, 1, 62, 1, 62, 1, 63, 1, 63, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 3, 72, 495, 8, 72, 1, 73, 4, 73, 498, 8, 73, 11, 73, 12, 73, 499, 1, 73, 1, 73, 4, 73, 504, 8, 73, 11, 73, 12, 73, 505, 3, 73, 508, 8, 73, 1, 74, 1, 74, 5, 74, 512, 8, 74, 10, 74, 12, 74, 515, 9, 74, 1, 75, 4, 75, 518, 8, 75, 11, 75, 12, 75, 519, 1, 75, 1, 75, 0, 0, 76, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 1, 0, 5, 2, 0, 69, 69, 101, 101, 1, 0, 48, 57, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 529, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 1, 153, 1, 0, 0, 0, 3, 155, 1, 0, 0, 0, 5, 157, 1, 0, 0, 0, 7, 159, 1, 0, 0, 0, 9, 161, 1, 0, 0, 0, 11, 163, 1, 0, 0, 0, 13, 167, 1, 0, 0, 0, 15, 171, 1, 0, 0, 0, 17, 175, 1, 0, 0, 0, 19, 180, 1, 0, 0, 0, 21, 185, 1, 0, 0, 0, 23, 190, 1, 0, 0, 0, 25, 196, 1, 0, 0, 0, 27, 201, 1, 0, 0, 0, 29, 206, 1, 0, 0, 0, 31, 211, 1, 0, 0, 0, 33, 217, 1, 0, 0, 0, 35, 223, 1, 0, 0, 0, 37, 229, 1, 0, 0, 0, 39, 233, 1, 0, 0, 0, 41, 238, 1, 0, 0, 0, 43, 241, 1, 0, 0, 0, 45, 245, 1, 0, 0, 0, 47, 249, 1, 0, 0, 0, 49, 254, 1, 0, 0, 0, 51, 259, 1, 0, 0, 0, 53, 264, 1, 0, 0, 0, 55, 269, 1, 0, 0, 0, 57, 275, 1, 0, 0, 0, 59, 281, 1, 0, 0, 0, 61, 287, 1, 0, 0, 0, 63, 292, 1, 0, 0, 0, 65, 298, 1, 0, 0, 0, 67, 304, 1, 0, 0, 0, 69, 308, 1, 0, 0, 0, 71, 313, 1, 0, 0, 0, 73, 319, 1, 0, 0, 0, 75, 323, 1, 0, 0, 0, 77, 328, 1, 0, 0, 0, 79, 334, 1, 0, 0, 0, 81, 340, 1, 0, 0, 0, 83, 352, 1, 0, 0, 0, 85, 357, 1, 0, 0, 0, 87, 362, 1, 0, 0, 0, 89, 367, 1, 0, 0, 0, 91, 378, 1, 0, 0, 0, 93, 384, 1, 0, 0, 0, 95, 389, 1, 0, 0, 0, 97, 398, 1, 0, 0, 0, 99, 403, 1, 0, 0, 0, 101, 408, 1, 0, 0, 0, 103, 412, 1, 0, 0, 0, 105, 417, 1, 0, 0, 0, 107, 422, 1, 0, 0, 0, 109, 430, 1, 0, 0, 0, 111, 438, 1, 0, 0, 0, 113, 444, 1, 0, 0, 0, 115, 449, 1, 0, 0, 0, 117, 454, 1, 0, 0, 0, 119, 459, 1, 0, 0, 0, 121, 461, 1, 0, 0, 0, 123, 463, 1, 0, 0, 0, 125, 465, 1, 0, 0, 0, 127, 467, 1, 0, 0, 0, 129, 469, 1, 0, 0, 0, 131, 471, 1, 0, 0, 0, 133, 474, 1, 0, 0, 0, 135, 476, 1, 0, 0, 0, 137, 479, 1, 0, 0, 0, 139, 481, 1, 0, 0, 0, 141, 484, 1, 0, 0, 0, 143, 487, 1, 0, 0, 0, 145, 494, 1, 0, 0, 0, 147, 497, 1, 0, 0, 0, 149, 509, 1, 0, 0, 0, 151, 517, 1, 0, 0, 0, 153, 154, 5, 40, 0, 0, 154, 2, 1, 0, 0, 0, 155, 156, 5, 41, 0, 0, 156, 4, 1, 0, 0, 0, 157, 158, 5, 91, 0, 0, 158, 6, 1, 0, 0, 0, 159, 160, 5, 44, 0, 0, 160, 8, 1, 0, 0, 0, 161, 162, 5, 93, 0, 0, 162, 10, 1, 0, 0, 0, 163, 164, 5, 115, 0, 0, 164, 165, 5, 105, 0, 0, 165, 166, 5, 110, 0, 0, 166, 12, 1, 0, 0, 0, 167, 168, 5, 99, 0, 0, 168, 169, 5, 111, 0, 0, 169, 170, 5, 115, 0, 0, 170, 14, 1, 0, 0, 0, 171, 172, 5, 116, 0, 0, 172, 173, 5, 97, 0, 0, 173, 174, 5, 110, 0, 0, 174, 16, 1, 0, 0, 0, 175, 176, 5, 97, 0, 0, 176, 177, 5, 115, 0, 0, 177, 178, 5, 105, 0, 0, 178, 179, 5, 110, 0, 0, 179, 18, 1, 0, 0, 0, 180, 181, 5, 97, 0, 0, 181, 182, 5, 99, 0, 0, 182, 183, 5, 111, 0, 0, 183, 184, 5, 115, 0, 0, 184, 20, 1, 0, 0, 0, 185, 186, 5, 97, 0, 0, 186, 187, 5, 116, 0, 0, 187, 188, 5, 97, 0, 0, 188, 189, 5, 110, 0, 0, 189, 22, 1, 0, 0, 0, 190, 191, 5, 97, 0, 0, 191, 192, 5, 116, 0, 0, 192, 193, 5, 97, 0, 0, 193, 194, 5, 110, 0, 0, 194, 195, 5, 50, 0, 0, 195, 24, 1, 0, 0, 0, 196, 197, 5, 115, 0, 0, 197, 198, 5, 105, 0, 0, 198, 199, 5, 110, 0, 0, 199, 200, 5, 104, 0, 0, 200, 26, 1, 0, 0, 0, 201, 202, 5, 99, 0, 0, 202, 203, 5, 111, 0, 0, 203, 204, 5, 115, 0, 0, 204, 205, 5, 104, 0, 0, 205, 28, 1, 0, 0, 0, 206, 207, 5, 116, 0, 0, 207, 208, 5, 97, 0, 0, 208, 209, 5, 110, 0, 0, 209, 210, 5, 104, 0, 0, 210, 30, 1, 0, 0, 0, 211, 212, 5, 97, 0, 0, 212, 213, 5, 115, 0, 0, 213, 214, 5, 105, 0, 0, 214, 215, 5, 110, 0, 0, 215, 216, 5, 104, 0, 0, 216, 32, 1, 0, 0, 0, 217, 218, 5, 97, 0, 0, 218, 219, 5, 99, 0, 0, 219, 220, 5, 111, 0, 0, 220, 221, 5, 115, 0, 0, 221, 222, 5, 104, 0, 0, 222, 34, 1, 0, 0, 0, 223, 224, 5, 97, 0, 0, 224, 225, 5, 116, 0, 0, 225, 226, 5, 97, 0, 0, 226, 227, 5, 110, 0, 0, 227, 228, 5, 104, 0, 0, 228, 36, 1, 0, 0, 0, 229, 230, 5, 97, 0, 0, 230, 231, 5, 98, 0, 0, 231, 232, 5, 115, 0, 0, 232, 38, 1, 0, 0, 0, 233, 234, 5, 115, 0, 0, 234, 235, 5, 113, 0, 0, 235, 236, 5, 114, 0, 0, 236, 237, 5, 116, 0, 0, 237, 40, 1, 0, 0, 0, 238, 239, 5, 108, 0, 0, 239, 240, 5, 110, 0, 0, 240, 42, 1, 0, 0, 0, 241, 242, 5, 108, 0, 0, 242, 243, 5, 111, 0, 0, 243, 244, 5, 103, 0, 0, 244, 44, 1, 0, 0, 0, 245, 246, 5, 101, 0, 0, 246, 247, 5, 120, 0, 0, 247, 248, 5, 112, 0, 0, 248, 46, 1, 0, 0, 0, 249, 250, 5, 115, 0, 0, 250, 251, 5, 109, 0, 0, 251, 252, 5, 105, 0, 0, 252, 253, 5, 110, 0, 0, 253, 48, 1, 0, 0, 0, 254, 255, 5, 115, 0, 0, 255, 256, 5, 109, 0, 0, 256, 257, 5, 97, 0, 0, 257, 258, 5, 120, 0, 0, 258, 50, 1, 0, 0, 0, 259, 260, 5, 116, 0, 0, 260, 261, 5, 109, 0, 0, 261, 262, 5, 105, 0, 0, 262, 263, 5, 110, 0, 0, 263, 52, 1, 0, 0, 0, 264, 265, 5, 116, 0, 0, 265, 266, 5, 109, 0, 0, 266, 267, 5, 97, 0, 0, 267, 268, 5, 120, 0, 0, 268, 54, 1, 0, 0, 0, 269, 270, 5, 116, 0, 0, 270, 271, 5, 110, 0, 0, 271, 272, 5, 111, 0, 0, 272, 273, 5, 114, 0, 0, 273, 274, 5, 109, 0, 0, 274, 56, 1, 0, 0, 0, 275, 276, 5, 115, 0, 0, 276, 277, 5, 110, 0, 0, 277, 278, 5, 111, 0, 0, 278, 279, 5, 114, 0, 0, 279, 280, 5, 109, 0, 0, 280, 58, 1, 0, 0, 0, 281, 282, 5, 102, 0, 0, 282, 283, 5, 108, 0, 0, 283, 284, 5, 111, 0, 0, 284, 285, 5, 111, 0, 0, 285, 286, 5, 114, 0, 0, 286, 60, 1, 0, 0, 0, 287, 288, 5, 99, 0, 0, 288, 289, 5, 101, 0, 0, 289, 290, 5, 105, 0, 0, 290, 291, 5, 108, 0, 0, 291, 62, 1, 0, 0, 0, 292, 293, 5, 114, 0, 0, 293, 294, 5, 111, 0, 0, 294, 295, 5, 117, 0, 0, 295, 296, 5, 110, 0, 0, 296, 297, 5, 100, 0, 0, 297, 64, 1, 0, 0, 0, 298, 299, 5, 103, 0, 0, 299, 300, 5, 97, 0, 0, 300, 301, 5, 109, 0, 0, 301, 302, 5, 109, 0, 0, 302, 303, 5, 97, 0, 0, 303, 66, 1, 0, 0, 0, 304, 305, 5, 112, 0, 0, 305, 306, 5, 111, 0, 0, 306, 307, 5, 119, 0, 0, 307, 68, 1, 0, 0, 0, 308, 309, 5, 115, 0, 0, 309, 310, 5, 105, 0, 0, 310, 311, 5, 103, 0, 0, 311, 312, 5, 109, 0, 0, 312, 70, 1, 0, 0, 0, 313, 314, 5, 99, 0, 0, 314, 315, 5, 108, 0, 0, 315, 316, 5, 97, 0, 0, 316, 317, 5, 109, 0, 0, 317, 318, 5, 112, 0, 0, 318, 72, 1, 0, 0, 0, 319, 320, 5, 102, 0, 0, 320, 321, 5, 102, 0, 0, 321, 322, 5, 116, 0, 0, 322, 74, 1, 0, 0, 0, 323, 324, 5, 105, 0, 0, 324, 325, 5, 102, 0, 0, 325, 326, 5, 102, 0, 0, 326, 327, 5, 116, 0, 0, 327, 76, 1, 0, 0, 0, 328, 329, 5, 97, 0, 0, 329, 330, 5, 110, 0, 0, 330, 331, 5, 103, 0, 0, 331, 332, 5, 108, 0, 0, 332, 333, 5, 101, 0, 0, 333, 78, 1, 0, 0, 0, 334, 335, 5, 112, 0, 0, 335, 336, 5, 114, 0, 0, 336, 337, 5, 105, 0, 0, 337, 338, 5, 110, 0, 0, 338, 339, 5, 116, 0, 0, 339, 80, 1, 0, 0, 0, 340, 341, 5, 112, 0, 0, 341, 342, 5, 114, 0, 0, 342, 343, 5, 105, 0, 0, 343, 344, 5, 110, 0, 0, 344, 345, 5, 116, 0, 0, 345, 346, 5, 95, 0, 0, 346, 347, 5, 115, 0, 0, 347, 348, 5, 104, 0, 0, 348, 349, 5, 97, 0, 0, 349, 350, 5, 112, 0, 0, 350, 351, 5, 101, 0, 0, 351, 82, 1, 0, 0, 0, 352, 353, 5, 112, 0, 0, 353, 354, 5, 115, 0, 0, 354, 355, 5, 104, 0, 0, 355, 356, 5, 112, 0, 0, 356, 84, 1, 0, 0, 0, 357, 358, 5, 108, 0, 0, 358, 359, 5, 101, 0, 0, 359, 360, 5, 114, 0, 0, 360, 361, 5, 112, 0, 0, 361, 86, 1, 0, 0, 0, 362, 363, 5, 115, 0, 0, 363, 364, 5, 116, 0, 0, 364, 365, 5, 101, 0, 0, 365, 366, 5, 112, 0, 0, 366, 88, 1, 0, 0, 0, 367, 368, 5, 115, 0, 0, 368, 369, 5, 109, 0, 0, 369, 370, 5, 111, 0, 0, 370, 371, 5, 111, 0, 0, 371, 372, 5, 116, 0, 0, 372, 373, 5, 104, 0, 0, 373, 374, 5, 115, 0, 0, 374, 375, 5, 116, 0, 0, 375, 376, 5, 101, 0, 0, 376, 377, 5, 112, 0, 0, 377, 90, 1, 0, 0, 0, 378, 379, 5, 102, 0, 0, 379, 380, 5, 114, 0, 0, 380, 381, 5, 97, 0, 0, 381, 382, 5, 99, 0, 0, 382, 383, 5, 116, 0, 0, 383, 92, 1, 0, 0, 0, 384, 385, 5, 114, 0, 0, 385, 386, 5, 101, 0, 0, 386, 387, 5, 108, 0, 0, 387, 388, 5, 117, 0, 0, 388, 94, 1, 0, 0, 0, 389, 390, 5, 115, 0, 0, 390, 391, 5, 111, 0, 0, 391, 392, 5, 102, 0, 0, 392, 393, 5, 116, 0, 0, 393, 394, 5, 112, 0, 0, 394, 395, 5, 108, 0, 0, 395, 396, 5, 117, 0, 0, 396, 397, 5, 115, 0, 0, 397, 96, 1, 0, 0, 0, 398, 399, 5, 103, 0, 0, 399, 400, 5, 101, 0, 0, 400, 401, 5, 108, 0, 0, 401, 402, 5, 117, 0, 0, 402, 98, 1, 0, 0, 0, 403, 404, 5, 115, 0, 0, 404, 405, 5, 105, 0, 0, 405, 406, 5, 103, 0, 0, 406, 407, 5, 110, 0, 0, 407, 100, 1, 0, 0, 0, 408, 409, 5, 109, 0, 0, 409, 410, 5, 97, 0, 0, 410, 411, 5, 112, 0, 0, 411, 102, 1, 0, 0, 0, 412, 413, 5, 99, 0, 0, 413, 414, 5, 111, 0, 0, 414, 415, 5, 110, 0, 0, 415, 416, 5, 118, 0, 0, 416, 104, 1, 0, 0, 0, 417, 418, 5, 115, 0, 0, 418, 419, 5, 119, 0, 0, 419, 420, 5, 97, 0, 0, 420, 421, 5, 112, 0, 0, 421, 106, 1, 0, 0, 0, 422, 423, 5, 112, 0, 0, 423, 424, 5, 101, 0, 0, 424, 425, 5, 114, 0, 0, 425, 426, 5, 109, 0, 0, 426, 427, 5, 117, 0, 0, 427, 428, 5, 116, 0, 0, 428, 429, 5, 101, 0, 0, 429, 108, 1, 0, 0, 0, 430, 431, 5, 114, 0, 0, 431, 432, 5, 101, 0, 0, 432, 433, 5, 115, 0, 0, 433, 434, 5, 104, 0, 0, 434, 435, 5, 97, 0, 0, 435, 436, 5, 112, 0, 0, 436, 437, 5, 101, 0, 0, 437, 110, 1, 0, 0, 0, 438, 439, 5, 114, 0, 0, 439, 440, 5, 97, 0, 0, 440, 441, 5, 110, 0, 0, 441, 442, 5, 103, 0, 0, 442, 443, 5, 101, 0, 0, 443, 112, 1, 0, 0, 0, 444, 445, 5, 116, 0, 0, 445, 446, 5, 111, 0, 0, 446, 447, 5, 112, 0, 0, 447, 448, 5, 107, 0, 0, 448, 114, 1, 0, 0, 0, 449, 450, 5, 98, 0, 0, 450, 451, 5, 111, 0, 0, 451, 452, 5, 116, 0, 0, 452, 453, 5, 107, 0, 0, 453, 116, 1, 0, 0, 0, 454, 455, 5, 112, 0, 0, 455, 456, 5, 105, 0, 0, 456, 457, 5, 110, 0, 0, 457, 458, 5, 118, 0, 0, 458, 118, 1, 0, 0, 0, 459, 460, 5, 43, 0, 0, 460, 120, 1, 0, 0, 0, 461, 462, 5, 45, 0, 0, 462, 122, 1, 0, 0, 0, 463, 464, 5, 42, 0, 0, 464, 124, 1, 0, 0, 0, 465, 466, 5, 47, 0, 0, 466, 126, 1, 0, 0, 0, 467, 468, 5, 37, 0, 0, 468, 128, 1, 0, 0, 0, 469, 470, 5, 94, 0, 0, 470, 130, 1, 0, 0, 0, 471, 472, 5, 62, 0, 0, 472, 473, 5, 61, 0, 0, 473, 132, 1, 0, 0, 0, 474, 475, 5, 62, 0, 0, 475, 134, 1, 0, 0, 0, 476, 477, 5, 60, 0, 0, 477, 478, 5, 61, 0, 0, 478, 136, 1, 0, 0, 0, 479, 480, 5, 60, 0, 0, 480, 138, 1, 0, 0, 0, 481, 482, 5, 61, 0, 0, 482, 483, 5, 61, 0, 0, 483, 140, 1, 0, 0, 0, 484, 485, 5, 33, 0, 0, 485, 486, 5, 61, 0, 0, 486, 142, 1, 0, 0, 0, 487, 488, 5, 124, 0, 0, 488, 144, 1, 0, 0, 0, 489, 490, 5, 112, 0, 0, 490, 495, 5, 105, 0, 0, 491, 492, 5, 80, 0, 0, 492, 495, 5, 73, 0, 0, 493, 495, 7, 0, 0, 0, 494, 489, 1, 0, 0, 0, 494, 491, 1, 0, 0, 0, 494, 493, 1, 0, 0, 0, 495, 146, 1, 0, 0, 0, 496, 498, 7, 1, 0, 0, 497, 496, 1, 0, 0, 0, 498, 499, 1, 0, 0, 0, 499, 497, 1, 0, 0, 0, 499, 500, 1, 0, 0, 0, 500, 507, 1, 0, 0, 0, 501, 503, 5, 46, 0, 0, 502, 504, 7, 1, 0, 0, 503, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 503, 1, 0, 0, 0, 505, 506, 1, 0, 0, 0, 506, 508, 1, 0, 0, 0, 507, 501, 1, 0, 0, 0, 507, 508, 1, 0, 0, 0, 508, 148, 1, 0, 0, 0, 509, 513, 7, 2, 0, 0, 510, 512, 7, 3, 0, 0, 511, 510, 1, 0, 0, 0, 512, 515, 1, 0, 0, 0, 513, 511, 1, 0, 0, 0, 513, 514, 1, 0, 0, 0, 514, 150, 1, 0, 0, 0, 515, 513, 1, 0, 0, 0, 516, 518, 7, 4, 0, 0, 517, 516, 1, 0, 0, 0, 518, 519, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 522, 6, 75, 0, 0, 522, 152, 1, 0, 0, 0, 7, 0, 494, 499, 505, 507, 513, 519, 1, 6, 0, 0] \ No newline at end of file +[4, 0, 76, 566, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 356, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 432, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 449, 8, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 467, 8, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 480, 8, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 60, 1, 60, 1, 61, 1, 61, 1, 62, 1, 62, 1, 63, 1, 63, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 3, 72, 538, 8, 72, 1, 73, 4, 73, 541, 8, 73, 11, 73, 12, 73, 542, 1, 73, 1, 73, 4, 73, 547, 8, 73, 11, 73, 12, 73, 548, 3, 73, 551, 8, 73, 1, 74, 1, 74, 5, 74, 555, 8, 74, 10, 74, 12, 74, 558, 9, 74, 1, 75, 4, 75, 561, 8, 75, 11, 75, 12, 75, 562, 1, 75, 1, 75, 0, 0, 76, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 1, 0, 5, 2, 0, 69, 69, 101, 101, 1, 0, 48, 57, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 577, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 1, 153, 1, 0, 0, 0, 3, 155, 1, 0, 0, 0, 5, 157, 1, 0, 0, 0, 7, 159, 1, 0, 0, 0, 9, 161, 1, 0, 0, 0, 11, 163, 1, 0, 0, 0, 13, 167, 1, 0, 0, 0, 15, 171, 1, 0, 0, 0, 17, 175, 1, 0, 0, 0, 19, 180, 1, 0, 0, 0, 21, 185, 1, 0, 0, 0, 23, 190, 1, 0, 0, 0, 25, 196, 1, 0, 0, 0, 27, 201, 1, 0, 0, 0, 29, 206, 1, 0, 0, 0, 31, 211, 1, 0, 0, 0, 33, 217, 1, 0, 0, 0, 35, 223, 1, 0, 0, 0, 37, 229, 1, 0, 0, 0, 39, 233, 1, 0, 0, 0, 41, 238, 1, 0, 0, 0, 43, 241, 1, 0, 0, 0, 45, 245, 1, 0, 0, 0, 47, 249, 1, 0, 0, 0, 49, 254, 1, 0, 0, 0, 51, 259, 1, 0, 0, 0, 53, 264, 1, 0, 0, 0, 55, 269, 1, 0, 0, 0, 57, 275, 1, 0, 0, 0, 59, 281, 1, 0, 0, 0, 61, 287, 1, 0, 0, 0, 63, 292, 1, 0, 0, 0, 65, 298, 1, 0, 0, 0, 67, 304, 1, 0, 0, 0, 69, 308, 1, 0, 0, 0, 71, 313, 1, 0, 0, 0, 73, 319, 1, 0, 0, 0, 75, 323, 1, 0, 0, 0, 77, 328, 1, 0, 0, 0, 79, 334, 1, 0, 0, 0, 81, 355, 1, 0, 0, 0, 83, 357, 1, 0, 0, 0, 85, 362, 1, 0, 0, 0, 87, 367, 1, 0, 0, 0, 89, 378, 1, 0, 0, 0, 91, 384, 1, 0, 0, 0, 93, 389, 1, 0, 0, 0, 95, 398, 1, 0, 0, 0, 97, 403, 1, 0, 0, 0, 99, 408, 1, 0, 0, 0, 101, 431, 1, 0, 0, 0, 103, 448, 1, 0, 0, 0, 105, 450, 1, 0, 0, 0, 107, 466, 1, 0, 0, 0, 109, 479, 1, 0, 0, 0, 111, 481, 1, 0, 0, 0, 113, 487, 1, 0, 0, 0, 115, 492, 1, 0, 0, 0, 117, 497, 1, 0, 0, 0, 119, 502, 1, 0, 0, 0, 121, 504, 1, 0, 0, 0, 123, 506, 1, 0, 0, 0, 125, 508, 1, 0, 0, 0, 127, 510, 1, 0, 0, 0, 129, 512, 1, 0, 0, 0, 131, 514, 1, 0, 0, 0, 133, 517, 1, 0, 0, 0, 135, 519, 1, 0, 0, 0, 137, 522, 1, 0, 0, 0, 139, 524, 1, 0, 0, 0, 141, 527, 1, 0, 0, 0, 143, 530, 1, 0, 0, 0, 145, 537, 1, 0, 0, 0, 147, 540, 1, 0, 0, 0, 149, 552, 1, 0, 0, 0, 151, 560, 1, 0, 0, 0, 153, 154, 5, 40, 0, 0, 154, 2, 1, 0, 0, 0, 155, 156, 5, 41, 0, 0, 156, 4, 1, 0, 0, 0, 157, 158, 5, 91, 0, 0, 158, 6, 1, 0, 0, 0, 159, 160, 5, 44, 0, 0, 160, 8, 1, 0, 0, 0, 161, 162, 5, 93, 0, 0, 162, 10, 1, 0, 0, 0, 163, 164, 5, 115, 0, 0, 164, 165, 5, 105, 0, 0, 165, 166, 5, 110, 0, 0, 166, 12, 1, 0, 0, 0, 167, 168, 5, 99, 0, 0, 168, 169, 5, 111, 0, 0, 169, 170, 5, 115, 0, 0, 170, 14, 1, 0, 0, 0, 171, 172, 5, 116, 0, 0, 172, 173, 5, 97, 0, 0, 173, 174, 5, 110, 0, 0, 174, 16, 1, 0, 0, 0, 175, 176, 5, 97, 0, 0, 176, 177, 5, 115, 0, 0, 177, 178, 5, 105, 0, 0, 178, 179, 5, 110, 0, 0, 179, 18, 1, 0, 0, 0, 180, 181, 5, 97, 0, 0, 181, 182, 5, 99, 0, 0, 182, 183, 5, 111, 0, 0, 183, 184, 5, 115, 0, 0, 184, 20, 1, 0, 0, 0, 185, 186, 5, 97, 0, 0, 186, 187, 5, 116, 0, 0, 187, 188, 5, 97, 0, 0, 188, 189, 5, 110, 0, 0, 189, 22, 1, 0, 0, 0, 190, 191, 5, 97, 0, 0, 191, 192, 5, 116, 0, 0, 192, 193, 5, 97, 0, 0, 193, 194, 5, 110, 0, 0, 194, 195, 5, 50, 0, 0, 195, 24, 1, 0, 0, 0, 196, 197, 5, 115, 0, 0, 197, 198, 5, 105, 0, 0, 198, 199, 5, 110, 0, 0, 199, 200, 5, 104, 0, 0, 200, 26, 1, 0, 0, 0, 201, 202, 5, 99, 0, 0, 202, 203, 5, 111, 0, 0, 203, 204, 5, 115, 0, 0, 204, 205, 5, 104, 0, 0, 205, 28, 1, 0, 0, 0, 206, 207, 5, 116, 0, 0, 207, 208, 5, 97, 0, 0, 208, 209, 5, 110, 0, 0, 209, 210, 5, 104, 0, 0, 210, 30, 1, 0, 0, 0, 211, 212, 5, 97, 0, 0, 212, 213, 5, 115, 0, 0, 213, 214, 5, 105, 0, 0, 214, 215, 5, 110, 0, 0, 215, 216, 5, 104, 0, 0, 216, 32, 1, 0, 0, 0, 217, 218, 5, 97, 0, 0, 218, 219, 5, 99, 0, 0, 219, 220, 5, 111, 0, 0, 220, 221, 5, 115, 0, 0, 221, 222, 5, 104, 0, 0, 222, 34, 1, 0, 0, 0, 223, 224, 5, 97, 0, 0, 224, 225, 5, 116, 0, 0, 225, 226, 5, 97, 0, 0, 226, 227, 5, 110, 0, 0, 227, 228, 5, 104, 0, 0, 228, 36, 1, 0, 0, 0, 229, 230, 5, 97, 0, 0, 230, 231, 5, 98, 0, 0, 231, 232, 5, 115, 0, 0, 232, 38, 1, 0, 0, 0, 233, 234, 5, 115, 0, 0, 234, 235, 5, 113, 0, 0, 235, 236, 5, 114, 0, 0, 236, 237, 5, 116, 0, 0, 237, 40, 1, 0, 0, 0, 238, 239, 5, 108, 0, 0, 239, 240, 5, 110, 0, 0, 240, 42, 1, 0, 0, 0, 241, 242, 5, 108, 0, 0, 242, 243, 5, 111, 0, 0, 243, 244, 5, 103, 0, 0, 244, 44, 1, 0, 0, 0, 245, 246, 5, 101, 0, 0, 246, 247, 5, 120, 0, 0, 247, 248, 5, 112, 0, 0, 248, 46, 1, 0, 0, 0, 249, 250, 5, 115, 0, 0, 250, 251, 5, 109, 0, 0, 251, 252, 5, 105, 0, 0, 252, 253, 5, 110, 0, 0, 253, 48, 1, 0, 0, 0, 254, 255, 5, 115, 0, 0, 255, 256, 5, 109, 0, 0, 256, 257, 5, 97, 0, 0, 257, 258, 5, 120, 0, 0, 258, 50, 1, 0, 0, 0, 259, 260, 5, 116, 0, 0, 260, 261, 5, 109, 0, 0, 261, 262, 5, 105, 0, 0, 262, 263, 5, 110, 0, 0, 263, 52, 1, 0, 0, 0, 264, 265, 5, 116, 0, 0, 265, 266, 5, 109, 0, 0, 266, 267, 5, 97, 0, 0, 267, 268, 5, 120, 0, 0, 268, 54, 1, 0, 0, 0, 269, 270, 5, 116, 0, 0, 270, 271, 5, 110, 0, 0, 271, 272, 5, 111, 0, 0, 272, 273, 5, 114, 0, 0, 273, 274, 5, 109, 0, 0, 274, 56, 1, 0, 0, 0, 275, 276, 5, 115, 0, 0, 276, 277, 5, 110, 0, 0, 277, 278, 5, 111, 0, 0, 278, 279, 5, 114, 0, 0, 279, 280, 5, 109, 0, 0, 280, 58, 1, 0, 0, 0, 281, 282, 5, 102, 0, 0, 282, 283, 5, 108, 0, 0, 283, 284, 5, 111, 0, 0, 284, 285, 5, 111, 0, 0, 285, 286, 5, 114, 0, 0, 286, 60, 1, 0, 0, 0, 287, 288, 5, 99, 0, 0, 288, 289, 5, 101, 0, 0, 289, 290, 5, 105, 0, 0, 290, 291, 5, 108, 0, 0, 291, 62, 1, 0, 0, 0, 292, 293, 5, 114, 0, 0, 293, 294, 5, 111, 0, 0, 294, 295, 5, 117, 0, 0, 295, 296, 5, 110, 0, 0, 296, 297, 5, 100, 0, 0, 297, 64, 1, 0, 0, 0, 298, 299, 5, 103, 0, 0, 299, 300, 5, 97, 0, 0, 300, 301, 5, 109, 0, 0, 301, 302, 5, 109, 0, 0, 302, 303, 5, 97, 0, 0, 303, 66, 1, 0, 0, 0, 304, 305, 5, 112, 0, 0, 305, 306, 5, 111, 0, 0, 306, 307, 5, 119, 0, 0, 307, 68, 1, 0, 0, 0, 308, 309, 5, 115, 0, 0, 309, 310, 5, 105, 0, 0, 310, 311, 5, 103, 0, 0, 311, 312, 5, 109, 0, 0, 312, 70, 1, 0, 0, 0, 313, 314, 5, 99, 0, 0, 314, 315, 5, 108, 0, 0, 315, 316, 5, 97, 0, 0, 316, 317, 5, 109, 0, 0, 317, 318, 5, 112, 0, 0, 318, 72, 1, 0, 0, 0, 319, 320, 5, 102, 0, 0, 320, 321, 5, 102, 0, 0, 321, 322, 5, 116, 0, 0, 322, 74, 1, 0, 0, 0, 323, 324, 5, 105, 0, 0, 324, 325, 5, 102, 0, 0, 325, 326, 5, 102, 0, 0, 326, 327, 5, 116, 0, 0, 327, 76, 1, 0, 0, 0, 328, 329, 5, 97, 0, 0, 329, 330, 5, 110, 0, 0, 330, 331, 5, 103, 0, 0, 331, 332, 5, 108, 0, 0, 332, 333, 5, 101, 0, 0, 333, 78, 1, 0, 0, 0, 334, 335, 5, 112, 0, 0, 335, 336, 5, 114, 0, 0, 336, 337, 5, 105, 0, 0, 337, 338, 5, 110, 0, 0, 338, 339, 5, 116, 0, 0, 339, 80, 1, 0, 0, 0, 340, 341, 5, 112, 0, 0, 341, 342, 5, 114, 0, 0, 342, 343, 5, 105, 0, 0, 343, 344, 5, 110, 0, 0, 344, 345, 5, 116, 0, 0, 345, 346, 5, 95, 0, 0, 346, 347, 5, 115, 0, 0, 347, 348, 5, 104, 0, 0, 348, 349, 5, 97, 0, 0, 349, 350, 5, 112, 0, 0, 350, 356, 5, 101, 0, 0, 351, 352, 5, 112, 0, 0, 352, 353, 5, 115, 0, 0, 353, 354, 5, 104, 0, 0, 354, 356, 5, 112, 0, 0, 355, 340, 1, 0, 0, 0, 355, 351, 1, 0, 0, 0, 356, 82, 1, 0, 0, 0, 357, 358, 5, 108, 0, 0, 358, 359, 5, 101, 0, 0, 359, 360, 5, 114, 0, 0, 360, 361, 5, 112, 0, 0, 361, 84, 1, 0, 0, 0, 362, 363, 5, 115, 0, 0, 363, 364, 5, 116, 0, 0, 364, 365, 5, 101, 0, 0, 365, 366, 5, 112, 0, 0, 366, 86, 1, 0, 0, 0, 367, 368, 5, 115, 0, 0, 368, 369, 5, 109, 0, 0, 369, 370, 5, 111, 0, 0, 370, 371, 5, 111, 0, 0, 371, 372, 5, 116, 0, 0, 372, 373, 5, 104, 0, 0, 373, 374, 5, 115, 0, 0, 374, 375, 5, 116, 0, 0, 375, 376, 5, 101, 0, 0, 376, 377, 5, 112, 0, 0, 377, 88, 1, 0, 0, 0, 378, 379, 5, 102, 0, 0, 379, 380, 5, 114, 0, 0, 380, 381, 5, 97, 0, 0, 381, 382, 5, 99, 0, 0, 382, 383, 5, 116, 0, 0, 383, 90, 1, 0, 0, 0, 384, 385, 5, 114, 0, 0, 385, 386, 5, 101, 0, 0, 386, 387, 5, 108, 0, 0, 387, 388, 5, 117, 0, 0, 388, 92, 1, 0, 0, 0, 389, 390, 5, 115, 0, 0, 390, 391, 5, 111, 0, 0, 391, 392, 5, 102, 0, 0, 392, 393, 5, 116, 0, 0, 393, 394, 5, 112, 0, 0, 394, 395, 5, 108, 0, 0, 395, 396, 5, 117, 0, 0, 396, 397, 5, 115, 0, 0, 397, 94, 1, 0, 0, 0, 398, 399, 5, 103, 0, 0, 399, 400, 5, 101, 0, 0, 400, 401, 5, 108, 0, 0, 401, 402, 5, 117, 0, 0, 402, 96, 1, 0, 0, 0, 403, 404, 5, 115, 0, 0, 404, 405, 5, 105, 0, 0, 405, 406, 5, 103, 0, 0, 406, 407, 5, 110, 0, 0, 407, 98, 1, 0, 0, 0, 408, 409, 5, 109, 0, 0, 409, 410, 5, 97, 0, 0, 410, 411, 5, 112, 0, 0, 411, 100, 1, 0, 0, 0, 412, 413, 5, 101, 0, 0, 413, 414, 5, 122, 0, 0, 414, 415, 5, 99, 0, 0, 415, 416, 5, 111, 0, 0, 416, 417, 5, 110, 0, 0, 417, 418, 5, 118, 0, 0, 418, 419, 5, 111, 0, 0, 419, 420, 5, 108, 0, 0, 420, 421, 5, 117, 0, 0, 421, 422, 5, 116, 0, 0, 422, 423, 5, 105, 0, 0, 423, 424, 5, 111, 0, 0, 424, 432, 5, 110, 0, 0, 425, 426, 5, 101, 0, 0, 426, 427, 5, 122, 0, 0, 427, 428, 5, 99, 0, 0, 428, 429, 5, 111, 0, 0, 429, 430, 5, 110, 0, 0, 430, 432, 5, 118, 0, 0, 431, 412, 1, 0, 0, 0, 431, 425, 1, 0, 0, 0, 432, 102, 1, 0, 0, 0, 433, 434, 5, 99, 0, 0, 434, 435, 5, 111, 0, 0, 435, 436, 5, 110, 0, 0, 436, 437, 5, 118, 0, 0, 437, 438, 5, 111, 0, 0, 438, 439, 5, 108, 0, 0, 439, 440, 5, 117, 0, 0, 440, 441, 5, 116, 0, 0, 441, 442, 5, 105, 0, 0, 442, 443, 5, 111, 0, 0, 443, 449, 5, 110, 0, 0, 444, 445, 5, 99, 0, 0, 445, 446, 5, 111, 0, 0, 446, 447, 5, 110, 0, 0, 447, 449, 5, 118, 0, 0, 448, 433, 1, 0, 0, 0, 448, 444, 1, 0, 0, 0, 449, 104, 1, 0, 0, 0, 450, 451, 5, 115, 0, 0, 451, 452, 5, 119, 0, 0, 452, 453, 5, 97, 0, 0, 453, 454, 5, 112, 0, 0, 454, 106, 1, 0, 0, 0, 455, 456, 5, 112, 0, 0, 456, 457, 5, 101, 0, 0, 457, 458, 5, 114, 0, 0, 458, 459, 5, 109, 0, 0, 459, 460, 5, 117, 0, 0, 460, 461, 5, 116, 0, 0, 461, 467, 5, 101, 0, 0, 462, 463, 5, 112, 0, 0, 463, 464, 5, 101, 0, 0, 464, 465, 5, 114, 0, 0, 465, 467, 5, 109, 0, 0, 466, 455, 1, 0, 0, 0, 466, 462, 1, 0, 0, 0, 467, 108, 1, 0, 0, 0, 468, 469, 5, 114, 0, 0, 469, 470, 5, 101, 0, 0, 470, 471, 5, 115, 0, 0, 471, 472, 5, 104, 0, 0, 472, 473, 5, 97, 0, 0, 473, 474, 5, 112, 0, 0, 474, 480, 5, 101, 0, 0, 475, 476, 5, 114, 0, 0, 476, 477, 5, 115, 0, 0, 477, 478, 5, 104, 0, 0, 478, 480, 5, 112, 0, 0, 479, 468, 1, 0, 0, 0, 479, 475, 1, 0, 0, 0, 480, 110, 1, 0, 0, 0, 481, 482, 5, 114, 0, 0, 482, 483, 5, 97, 0, 0, 483, 484, 5, 110, 0, 0, 484, 485, 5, 103, 0, 0, 485, 486, 5, 101, 0, 0, 486, 112, 1, 0, 0, 0, 487, 488, 5, 116, 0, 0, 488, 489, 5, 111, 0, 0, 489, 490, 5, 112, 0, 0, 490, 491, 5, 107, 0, 0, 491, 114, 1, 0, 0, 0, 492, 493, 5, 98, 0, 0, 493, 494, 5, 111, 0, 0, 494, 495, 5, 116, 0, 0, 495, 496, 5, 107, 0, 0, 496, 116, 1, 0, 0, 0, 497, 498, 5, 112, 0, 0, 498, 499, 5, 105, 0, 0, 499, 500, 5, 110, 0, 0, 500, 501, 5, 118, 0, 0, 501, 118, 1, 0, 0, 0, 502, 503, 5, 43, 0, 0, 503, 120, 1, 0, 0, 0, 504, 505, 5, 45, 0, 0, 505, 122, 1, 0, 0, 0, 506, 507, 5, 42, 0, 0, 507, 124, 1, 0, 0, 0, 508, 509, 5, 47, 0, 0, 509, 126, 1, 0, 0, 0, 510, 511, 5, 37, 0, 0, 511, 128, 1, 0, 0, 0, 512, 513, 5, 94, 0, 0, 513, 130, 1, 0, 0, 0, 514, 515, 5, 62, 0, 0, 515, 516, 5, 61, 0, 0, 516, 132, 1, 0, 0, 0, 517, 518, 5, 62, 0, 0, 518, 134, 1, 0, 0, 0, 519, 520, 5, 60, 0, 0, 520, 521, 5, 61, 0, 0, 521, 136, 1, 0, 0, 0, 522, 523, 5, 60, 0, 0, 523, 138, 1, 0, 0, 0, 524, 525, 5, 61, 0, 0, 525, 526, 5, 61, 0, 0, 526, 140, 1, 0, 0, 0, 527, 528, 5, 33, 0, 0, 528, 529, 5, 61, 0, 0, 529, 142, 1, 0, 0, 0, 530, 531, 5, 124, 0, 0, 531, 144, 1, 0, 0, 0, 532, 533, 5, 112, 0, 0, 533, 538, 5, 105, 0, 0, 534, 535, 5, 80, 0, 0, 535, 538, 5, 73, 0, 0, 536, 538, 7, 0, 0, 0, 537, 532, 1, 0, 0, 0, 537, 534, 1, 0, 0, 0, 537, 536, 1, 0, 0, 0, 538, 146, 1, 0, 0, 0, 539, 541, 7, 1, 0, 0, 540, 539, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 540, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 550, 1, 0, 0, 0, 544, 546, 5, 46, 0, 0, 545, 547, 7, 1, 0, 0, 546, 545, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 546, 1, 0, 0, 0, 548, 549, 1, 0, 0, 0, 549, 551, 1, 0, 0, 0, 550, 544, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 148, 1, 0, 0, 0, 552, 556, 7, 2, 0, 0, 553, 555, 7, 3, 0, 0, 554, 553, 1, 0, 0, 0, 555, 558, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 150, 1, 0, 0, 0, 558, 556, 1, 0, 0, 0, 559, 561, 7, 4, 0, 0, 560, 559, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 560, 1, 0, 0, 0, 562, 563, 1, 0, 0, 0, 563, 564, 1, 0, 0, 0, 564, 565, 6, 75, 0, 0, 565, 152, 1, 0, 0, 0, 12, 0, 355, 431, 448, 466, 479, 537, 542, 548, 550, 556, 562, 1, 6, 0, 0] \ No newline at end of file diff --git a/more_math/Parser/MathExprLexer.py b/more_math/Parser/MathExprLexer.py index b37ff41..6ae4f13 100644 --- a/more_math/Parser/MathExprLexer.py +++ b/more_math/Parser/MathExprLexer.py @@ -1,4 +1,4 @@ -# Generated from ./MathExpr.g4 by ANTLR 4.13.2 +# Generated from MathExpr.g4 by ANTLR 4.13.2 from antlr4 import * from io import StringIO import sys @@ -10,7 +10,7 @@ else: def serializedATN(): return [ - 4,0,76,523,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, + 4,0,76,566,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2, 13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7, 19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2, @@ -36,164 +36,180 @@ def serializedATN(): 33,1,33,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1, 36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1, 38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1, - 40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,42,1, - 42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1, - 44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1, - 46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1, - 47,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1, - 50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,53,1, - 53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1, - 54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1, - 57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,60,1, - 60,1,61,1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,65,1,65,1,65,1,66,1, - 66,1,67,1,67,1,67,1,68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,71,1, - 71,1,72,1,72,1,72,1,72,1,72,3,72,495,8,72,1,73,4,73,498,8,73,11, - 73,12,73,499,1,73,1,73,4,73,504,8,73,11,73,12,73,505,3,73,508,8, - 73,1,74,1,74,5,74,512,8,74,10,74,12,74,515,9,74,1,75,4,75,518,8, - 75,11,75,12,75,519,1,75,1,75,0,0,76,1,1,3,2,5,3,7,4,9,5,11,6,13, - 7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18, - 37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29, - 59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40, - 81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101, - 51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60, - 121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139, - 70,141,71,143,72,145,73,147,74,149,75,151,76,1,0,5,2,0,69,69,101, - 101,1,0,48,57,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122, - 3,0,9,10,13,13,32,32,529,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7, - 1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17, - 1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27, - 1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37, - 1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47, - 1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57, - 1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67, - 1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77, - 1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87, - 1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97, - 1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0, - 107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0, - 0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125, - 1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0, - 0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1, - 0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,1, - 153,1,0,0,0,3,155,1,0,0,0,5,157,1,0,0,0,7,159,1,0,0,0,9,161,1,0, - 0,0,11,163,1,0,0,0,13,167,1,0,0,0,15,171,1,0,0,0,17,175,1,0,0,0, - 19,180,1,0,0,0,21,185,1,0,0,0,23,190,1,0,0,0,25,196,1,0,0,0,27,201, - 1,0,0,0,29,206,1,0,0,0,31,211,1,0,0,0,33,217,1,0,0,0,35,223,1,0, - 0,0,37,229,1,0,0,0,39,233,1,0,0,0,41,238,1,0,0,0,43,241,1,0,0,0, - 45,245,1,0,0,0,47,249,1,0,0,0,49,254,1,0,0,0,51,259,1,0,0,0,53,264, - 1,0,0,0,55,269,1,0,0,0,57,275,1,0,0,0,59,281,1,0,0,0,61,287,1,0, - 0,0,63,292,1,0,0,0,65,298,1,0,0,0,67,304,1,0,0,0,69,308,1,0,0,0, - 71,313,1,0,0,0,73,319,1,0,0,0,75,323,1,0,0,0,77,328,1,0,0,0,79,334, - 1,0,0,0,81,340,1,0,0,0,83,352,1,0,0,0,85,357,1,0,0,0,87,362,1,0, - 0,0,89,367,1,0,0,0,91,378,1,0,0,0,93,384,1,0,0,0,95,389,1,0,0,0, - 97,398,1,0,0,0,99,403,1,0,0,0,101,408,1,0,0,0,103,412,1,0,0,0,105, - 417,1,0,0,0,107,422,1,0,0,0,109,430,1,0,0,0,111,438,1,0,0,0,113, - 444,1,0,0,0,115,449,1,0,0,0,117,454,1,0,0,0,119,459,1,0,0,0,121, - 461,1,0,0,0,123,463,1,0,0,0,125,465,1,0,0,0,127,467,1,0,0,0,129, - 469,1,0,0,0,131,471,1,0,0,0,133,474,1,0,0,0,135,476,1,0,0,0,137, - 479,1,0,0,0,139,481,1,0,0,0,141,484,1,0,0,0,143,487,1,0,0,0,145, - 494,1,0,0,0,147,497,1,0,0,0,149,509,1,0,0,0,151,517,1,0,0,0,153, - 154,5,40,0,0,154,2,1,0,0,0,155,156,5,41,0,0,156,4,1,0,0,0,157,158, - 5,91,0,0,158,6,1,0,0,0,159,160,5,44,0,0,160,8,1,0,0,0,161,162,5, - 93,0,0,162,10,1,0,0,0,163,164,5,115,0,0,164,165,5,105,0,0,165,166, - 5,110,0,0,166,12,1,0,0,0,167,168,5,99,0,0,168,169,5,111,0,0,169, - 170,5,115,0,0,170,14,1,0,0,0,171,172,5,116,0,0,172,173,5,97,0,0, - 173,174,5,110,0,0,174,16,1,0,0,0,175,176,5,97,0,0,176,177,5,115, - 0,0,177,178,5,105,0,0,178,179,5,110,0,0,179,18,1,0,0,0,180,181,5, - 97,0,0,181,182,5,99,0,0,182,183,5,111,0,0,183,184,5,115,0,0,184, - 20,1,0,0,0,185,186,5,97,0,0,186,187,5,116,0,0,187,188,5,97,0,0,188, - 189,5,110,0,0,189,22,1,0,0,0,190,191,5,97,0,0,191,192,5,116,0,0, - 192,193,5,97,0,0,193,194,5,110,0,0,194,195,5,50,0,0,195,24,1,0,0, - 0,196,197,5,115,0,0,197,198,5,105,0,0,198,199,5,110,0,0,199,200, - 5,104,0,0,200,26,1,0,0,0,201,202,5,99,0,0,202,203,5,111,0,0,203, - 204,5,115,0,0,204,205,5,104,0,0,205,28,1,0,0,0,206,207,5,116,0,0, - 207,208,5,97,0,0,208,209,5,110,0,0,209,210,5,104,0,0,210,30,1,0, - 0,0,211,212,5,97,0,0,212,213,5,115,0,0,213,214,5,105,0,0,214,215, - 5,110,0,0,215,216,5,104,0,0,216,32,1,0,0,0,217,218,5,97,0,0,218, - 219,5,99,0,0,219,220,5,111,0,0,220,221,5,115,0,0,221,222,5,104,0, - 0,222,34,1,0,0,0,223,224,5,97,0,0,224,225,5,116,0,0,225,226,5,97, - 0,0,226,227,5,110,0,0,227,228,5,104,0,0,228,36,1,0,0,0,229,230,5, - 97,0,0,230,231,5,98,0,0,231,232,5,115,0,0,232,38,1,0,0,0,233,234, - 5,115,0,0,234,235,5,113,0,0,235,236,5,114,0,0,236,237,5,116,0,0, - 237,40,1,0,0,0,238,239,5,108,0,0,239,240,5,110,0,0,240,42,1,0,0, - 0,241,242,5,108,0,0,242,243,5,111,0,0,243,244,5,103,0,0,244,44,1, - 0,0,0,245,246,5,101,0,0,246,247,5,120,0,0,247,248,5,112,0,0,248, - 46,1,0,0,0,249,250,5,115,0,0,250,251,5,109,0,0,251,252,5,105,0,0, - 252,253,5,110,0,0,253,48,1,0,0,0,254,255,5,115,0,0,255,256,5,109, - 0,0,256,257,5,97,0,0,257,258,5,120,0,0,258,50,1,0,0,0,259,260,5, - 116,0,0,260,261,5,109,0,0,261,262,5,105,0,0,262,263,5,110,0,0,263, - 52,1,0,0,0,264,265,5,116,0,0,265,266,5,109,0,0,266,267,5,97,0,0, - 267,268,5,120,0,0,268,54,1,0,0,0,269,270,5,116,0,0,270,271,5,110, - 0,0,271,272,5,111,0,0,272,273,5,114,0,0,273,274,5,109,0,0,274,56, - 1,0,0,0,275,276,5,115,0,0,276,277,5,110,0,0,277,278,5,111,0,0,278, - 279,5,114,0,0,279,280,5,109,0,0,280,58,1,0,0,0,281,282,5,102,0,0, - 282,283,5,108,0,0,283,284,5,111,0,0,284,285,5,111,0,0,285,286,5, - 114,0,0,286,60,1,0,0,0,287,288,5,99,0,0,288,289,5,101,0,0,289,290, - 5,105,0,0,290,291,5,108,0,0,291,62,1,0,0,0,292,293,5,114,0,0,293, - 294,5,111,0,0,294,295,5,117,0,0,295,296,5,110,0,0,296,297,5,100, - 0,0,297,64,1,0,0,0,298,299,5,103,0,0,299,300,5,97,0,0,300,301,5, - 109,0,0,301,302,5,109,0,0,302,303,5,97,0,0,303,66,1,0,0,0,304,305, - 5,112,0,0,305,306,5,111,0,0,306,307,5,119,0,0,307,68,1,0,0,0,308, - 309,5,115,0,0,309,310,5,105,0,0,310,311,5,103,0,0,311,312,5,109, - 0,0,312,70,1,0,0,0,313,314,5,99,0,0,314,315,5,108,0,0,315,316,5, - 97,0,0,316,317,5,109,0,0,317,318,5,112,0,0,318,72,1,0,0,0,319,320, - 5,102,0,0,320,321,5,102,0,0,321,322,5,116,0,0,322,74,1,0,0,0,323, - 324,5,105,0,0,324,325,5,102,0,0,325,326,5,102,0,0,326,327,5,116, - 0,0,327,76,1,0,0,0,328,329,5,97,0,0,329,330,5,110,0,0,330,331,5, - 103,0,0,331,332,5,108,0,0,332,333,5,101,0,0,333,78,1,0,0,0,334,335, - 5,112,0,0,335,336,5,114,0,0,336,337,5,105,0,0,337,338,5,110,0,0, - 338,339,5,116,0,0,339,80,1,0,0,0,340,341,5,112,0,0,341,342,5,114, - 0,0,342,343,5,105,0,0,343,344,5,110,0,0,344,345,5,116,0,0,345,346, - 5,95,0,0,346,347,5,115,0,0,347,348,5,104,0,0,348,349,5,97,0,0,349, - 350,5,112,0,0,350,351,5,101,0,0,351,82,1,0,0,0,352,353,5,112,0,0, - 353,354,5,115,0,0,354,355,5,104,0,0,355,356,5,112,0,0,356,84,1,0, - 0,0,357,358,5,108,0,0,358,359,5,101,0,0,359,360,5,114,0,0,360,361, - 5,112,0,0,361,86,1,0,0,0,362,363,5,115,0,0,363,364,5,116,0,0,364, - 365,5,101,0,0,365,366,5,112,0,0,366,88,1,0,0,0,367,368,5,115,0,0, - 368,369,5,109,0,0,369,370,5,111,0,0,370,371,5,111,0,0,371,372,5, - 116,0,0,372,373,5,104,0,0,373,374,5,115,0,0,374,375,5,116,0,0,375, - 376,5,101,0,0,376,377,5,112,0,0,377,90,1,0,0,0,378,379,5,102,0,0, - 379,380,5,114,0,0,380,381,5,97,0,0,381,382,5,99,0,0,382,383,5,116, - 0,0,383,92,1,0,0,0,384,385,5,114,0,0,385,386,5,101,0,0,386,387,5, - 108,0,0,387,388,5,117,0,0,388,94,1,0,0,0,389,390,5,115,0,0,390,391, - 5,111,0,0,391,392,5,102,0,0,392,393,5,116,0,0,393,394,5,112,0,0, - 394,395,5,108,0,0,395,396,5,117,0,0,396,397,5,115,0,0,397,96,1,0, - 0,0,398,399,5,103,0,0,399,400,5,101,0,0,400,401,5,108,0,0,401,402, - 5,117,0,0,402,98,1,0,0,0,403,404,5,115,0,0,404,405,5,105,0,0,405, - 406,5,103,0,0,406,407,5,110,0,0,407,100,1,0,0,0,408,409,5,109,0, - 0,409,410,5,97,0,0,410,411,5,112,0,0,411,102,1,0,0,0,412,413,5,99, - 0,0,413,414,5,111,0,0,414,415,5,110,0,0,415,416,5,118,0,0,416,104, - 1,0,0,0,417,418,5,115,0,0,418,419,5,119,0,0,419,420,5,97,0,0,420, - 421,5,112,0,0,421,106,1,0,0,0,422,423,5,112,0,0,423,424,5,101,0, - 0,424,425,5,114,0,0,425,426,5,109,0,0,426,427,5,117,0,0,427,428, - 5,116,0,0,428,429,5,101,0,0,429,108,1,0,0,0,430,431,5,114,0,0,431, - 432,5,101,0,0,432,433,5,115,0,0,433,434,5,104,0,0,434,435,5,97,0, - 0,435,436,5,112,0,0,436,437,5,101,0,0,437,110,1,0,0,0,438,439,5, - 114,0,0,439,440,5,97,0,0,440,441,5,110,0,0,441,442,5,103,0,0,442, - 443,5,101,0,0,443,112,1,0,0,0,444,445,5,116,0,0,445,446,5,111,0, - 0,446,447,5,112,0,0,447,448,5,107,0,0,448,114,1,0,0,0,449,450,5, - 98,0,0,450,451,5,111,0,0,451,452,5,116,0,0,452,453,5,107,0,0,453, - 116,1,0,0,0,454,455,5,112,0,0,455,456,5,105,0,0,456,457,5,110,0, - 0,457,458,5,118,0,0,458,118,1,0,0,0,459,460,5,43,0,0,460,120,1,0, - 0,0,461,462,5,45,0,0,462,122,1,0,0,0,463,464,5,42,0,0,464,124,1, - 0,0,0,465,466,5,47,0,0,466,126,1,0,0,0,467,468,5,37,0,0,468,128, - 1,0,0,0,469,470,5,94,0,0,470,130,1,0,0,0,471,472,5,62,0,0,472,473, - 5,61,0,0,473,132,1,0,0,0,474,475,5,62,0,0,475,134,1,0,0,0,476,477, - 5,60,0,0,477,478,5,61,0,0,478,136,1,0,0,0,479,480,5,60,0,0,480,138, - 1,0,0,0,481,482,5,61,0,0,482,483,5,61,0,0,483,140,1,0,0,0,484,485, - 5,33,0,0,485,486,5,61,0,0,486,142,1,0,0,0,487,488,5,124,0,0,488, - 144,1,0,0,0,489,490,5,112,0,0,490,495,5,105,0,0,491,492,5,80,0,0, - 492,495,5,73,0,0,493,495,7,0,0,0,494,489,1,0,0,0,494,491,1,0,0,0, - 494,493,1,0,0,0,495,146,1,0,0,0,496,498,7,1,0,0,497,496,1,0,0,0, - 498,499,1,0,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,507,1,0,0,0, - 501,503,5,46,0,0,502,504,7,1,0,0,503,502,1,0,0,0,504,505,1,0,0,0, - 505,503,1,0,0,0,505,506,1,0,0,0,506,508,1,0,0,0,507,501,1,0,0,0, - 507,508,1,0,0,0,508,148,1,0,0,0,509,513,7,2,0,0,510,512,7,3,0,0, - 511,510,1,0,0,0,512,515,1,0,0,0,513,511,1,0,0,0,513,514,1,0,0,0, - 514,150,1,0,0,0,515,513,1,0,0,0,516,518,7,4,0,0,517,516,1,0,0,0, - 518,519,1,0,0,0,519,517,1,0,0,0,519,520,1,0,0,0,520,521,1,0,0,0, - 521,522,6,75,0,0,522,152,1,0,0,0,7,0,494,499,505,507,513,519,1,6, - 0,0 + 40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3,40,356,8,40,1, + 41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1, + 43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1, + 44,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1, + 46,1,46,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,49,1, + 49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1, + 50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,432,8,50,1,51,1, + 51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1, + 51,3,51,449,8,51,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1, + 53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,467,8,53,1,54,1,54,1,54,1, + 54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,480,8,54,1,55,1,55,1, + 55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1, + 57,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,60,1,60,1,61,1,61,1,62,1, + 62,1,63,1,63,1,64,1,64,1,65,1,65,1,65,1,66,1,66,1,67,1,67,1,67,1, + 68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1, + 72,1,72,3,72,538,8,72,1,73,4,73,541,8,73,11,73,12,73,542,1,73,1, + 73,4,73,547,8,73,11,73,12,73,548,3,73,551,8,73,1,74,1,74,5,74,555, + 8,74,10,74,12,74,558,9,74,1,75,4,75,561,8,75,11,75,12,75,562,1,75, + 1,75,0,0,76,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11, + 23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22, + 45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33, + 67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44, + 89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54, + 109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127, + 64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73, + 147,74,149,75,151,76,1,0,5,2,0,69,69,101,101,1,0,48,57,3,0,65,90, + 95,95,97,122,4,0,48,57,65,90,95,95,97,122,3,0,9,10,13,13,32,32,577, + 0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11, + 1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21, + 1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31, + 1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41, + 1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51, + 1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61, + 1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71, + 1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81, + 1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91, + 1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101, + 1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0, + 0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1, + 0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0, + 129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0, + 0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147, + 1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,1,153,1,0,0,0,3,155,1,0,0,0, + 5,157,1,0,0,0,7,159,1,0,0,0,9,161,1,0,0,0,11,163,1,0,0,0,13,167, + 1,0,0,0,15,171,1,0,0,0,17,175,1,0,0,0,19,180,1,0,0,0,21,185,1,0, + 0,0,23,190,1,0,0,0,25,196,1,0,0,0,27,201,1,0,0,0,29,206,1,0,0,0, + 31,211,1,0,0,0,33,217,1,0,0,0,35,223,1,0,0,0,37,229,1,0,0,0,39,233, + 1,0,0,0,41,238,1,0,0,0,43,241,1,0,0,0,45,245,1,0,0,0,47,249,1,0, + 0,0,49,254,1,0,0,0,51,259,1,0,0,0,53,264,1,0,0,0,55,269,1,0,0,0, + 57,275,1,0,0,0,59,281,1,0,0,0,61,287,1,0,0,0,63,292,1,0,0,0,65,298, + 1,0,0,0,67,304,1,0,0,0,69,308,1,0,0,0,71,313,1,0,0,0,73,319,1,0, + 0,0,75,323,1,0,0,0,77,328,1,0,0,0,79,334,1,0,0,0,81,355,1,0,0,0, + 83,357,1,0,0,0,85,362,1,0,0,0,87,367,1,0,0,0,89,378,1,0,0,0,91,384, + 1,0,0,0,93,389,1,0,0,0,95,398,1,0,0,0,97,403,1,0,0,0,99,408,1,0, + 0,0,101,431,1,0,0,0,103,448,1,0,0,0,105,450,1,0,0,0,107,466,1,0, + 0,0,109,479,1,0,0,0,111,481,1,0,0,0,113,487,1,0,0,0,115,492,1,0, + 0,0,117,497,1,0,0,0,119,502,1,0,0,0,121,504,1,0,0,0,123,506,1,0, + 0,0,125,508,1,0,0,0,127,510,1,0,0,0,129,512,1,0,0,0,131,514,1,0, + 0,0,133,517,1,0,0,0,135,519,1,0,0,0,137,522,1,0,0,0,139,524,1,0, + 0,0,141,527,1,0,0,0,143,530,1,0,0,0,145,537,1,0,0,0,147,540,1,0, + 0,0,149,552,1,0,0,0,151,560,1,0,0,0,153,154,5,40,0,0,154,2,1,0,0, + 0,155,156,5,41,0,0,156,4,1,0,0,0,157,158,5,91,0,0,158,6,1,0,0,0, + 159,160,5,44,0,0,160,8,1,0,0,0,161,162,5,93,0,0,162,10,1,0,0,0,163, + 164,5,115,0,0,164,165,5,105,0,0,165,166,5,110,0,0,166,12,1,0,0,0, + 167,168,5,99,0,0,168,169,5,111,0,0,169,170,5,115,0,0,170,14,1,0, + 0,0,171,172,5,116,0,0,172,173,5,97,0,0,173,174,5,110,0,0,174,16, + 1,0,0,0,175,176,5,97,0,0,176,177,5,115,0,0,177,178,5,105,0,0,178, + 179,5,110,0,0,179,18,1,0,0,0,180,181,5,97,0,0,181,182,5,99,0,0,182, + 183,5,111,0,0,183,184,5,115,0,0,184,20,1,0,0,0,185,186,5,97,0,0, + 186,187,5,116,0,0,187,188,5,97,0,0,188,189,5,110,0,0,189,22,1,0, + 0,0,190,191,5,97,0,0,191,192,5,116,0,0,192,193,5,97,0,0,193,194, + 5,110,0,0,194,195,5,50,0,0,195,24,1,0,0,0,196,197,5,115,0,0,197, + 198,5,105,0,0,198,199,5,110,0,0,199,200,5,104,0,0,200,26,1,0,0,0, + 201,202,5,99,0,0,202,203,5,111,0,0,203,204,5,115,0,0,204,205,5,104, + 0,0,205,28,1,0,0,0,206,207,5,116,0,0,207,208,5,97,0,0,208,209,5, + 110,0,0,209,210,5,104,0,0,210,30,1,0,0,0,211,212,5,97,0,0,212,213, + 5,115,0,0,213,214,5,105,0,0,214,215,5,110,0,0,215,216,5,104,0,0, + 216,32,1,0,0,0,217,218,5,97,0,0,218,219,5,99,0,0,219,220,5,111,0, + 0,220,221,5,115,0,0,221,222,5,104,0,0,222,34,1,0,0,0,223,224,5,97, + 0,0,224,225,5,116,0,0,225,226,5,97,0,0,226,227,5,110,0,0,227,228, + 5,104,0,0,228,36,1,0,0,0,229,230,5,97,0,0,230,231,5,98,0,0,231,232, + 5,115,0,0,232,38,1,0,0,0,233,234,5,115,0,0,234,235,5,113,0,0,235, + 236,5,114,0,0,236,237,5,116,0,0,237,40,1,0,0,0,238,239,5,108,0,0, + 239,240,5,110,0,0,240,42,1,0,0,0,241,242,5,108,0,0,242,243,5,111, + 0,0,243,244,5,103,0,0,244,44,1,0,0,0,245,246,5,101,0,0,246,247,5, + 120,0,0,247,248,5,112,0,0,248,46,1,0,0,0,249,250,5,115,0,0,250,251, + 5,109,0,0,251,252,5,105,0,0,252,253,5,110,0,0,253,48,1,0,0,0,254, + 255,5,115,0,0,255,256,5,109,0,0,256,257,5,97,0,0,257,258,5,120,0, + 0,258,50,1,0,0,0,259,260,5,116,0,0,260,261,5,109,0,0,261,262,5,105, + 0,0,262,263,5,110,0,0,263,52,1,0,0,0,264,265,5,116,0,0,265,266,5, + 109,0,0,266,267,5,97,0,0,267,268,5,120,0,0,268,54,1,0,0,0,269,270, + 5,116,0,0,270,271,5,110,0,0,271,272,5,111,0,0,272,273,5,114,0,0, + 273,274,5,109,0,0,274,56,1,0,0,0,275,276,5,115,0,0,276,277,5,110, + 0,0,277,278,5,111,0,0,278,279,5,114,0,0,279,280,5,109,0,0,280,58, + 1,0,0,0,281,282,5,102,0,0,282,283,5,108,0,0,283,284,5,111,0,0,284, + 285,5,111,0,0,285,286,5,114,0,0,286,60,1,0,0,0,287,288,5,99,0,0, + 288,289,5,101,0,0,289,290,5,105,0,0,290,291,5,108,0,0,291,62,1,0, + 0,0,292,293,5,114,0,0,293,294,5,111,0,0,294,295,5,117,0,0,295,296, + 5,110,0,0,296,297,5,100,0,0,297,64,1,0,0,0,298,299,5,103,0,0,299, + 300,5,97,0,0,300,301,5,109,0,0,301,302,5,109,0,0,302,303,5,97,0, + 0,303,66,1,0,0,0,304,305,5,112,0,0,305,306,5,111,0,0,306,307,5,119, + 0,0,307,68,1,0,0,0,308,309,5,115,0,0,309,310,5,105,0,0,310,311,5, + 103,0,0,311,312,5,109,0,0,312,70,1,0,0,0,313,314,5,99,0,0,314,315, + 5,108,0,0,315,316,5,97,0,0,316,317,5,109,0,0,317,318,5,112,0,0,318, + 72,1,0,0,0,319,320,5,102,0,0,320,321,5,102,0,0,321,322,5,116,0,0, + 322,74,1,0,0,0,323,324,5,105,0,0,324,325,5,102,0,0,325,326,5,102, + 0,0,326,327,5,116,0,0,327,76,1,0,0,0,328,329,5,97,0,0,329,330,5, + 110,0,0,330,331,5,103,0,0,331,332,5,108,0,0,332,333,5,101,0,0,333, + 78,1,0,0,0,334,335,5,112,0,0,335,336,5,114,0,0,336,337,5,105,0,0, + 337,338,5,110,0,0,338,339,5,116,0,0,339,80,1,0,0,0,340,341,5,112, + 0,0,341,342,5,114,0,0,342,343,5,105,0,0,343,344,5,110,0,0,344,345, + 5,116,0,0,345,346,5,95,0,0,346,347,5,115,0,0,347,348,5,104,0,0,348, + 349,5,97,0,0,349,350,5,112,0,0,350,356,5,101,0,0,351,352,5,112,0, + 0,352,353,5,115,0,0,353,354,5,104,0,0,354,356,5,112,0,0,355,340, + 1,0,0,0,355,351,1,0,0,0,356,82,1,0,0,0,357,358,5,108,0,0,358,359, + 5,101,0,0,359,360,5,114,0,0,360,361,5,112,0,0,361,84,1,0,0,0,362, + 363,5,115,0,0,363,364,5,116,0,0,364,365,5,101,0,0,365,366,5,112, + 0,0,366,86,1,0,0,0,367,368,5,115,0,0,368,369,5,109,0,0,369,370,5, + 111,0,0,370,371,5,111,0,0,371,372,5,116,0,0,372,373,5,104,0,0,373, + 374,5,115,0,0,374,375,5,116,0,0,375,376,5,101,0,0,376,377,5,112, + 0,0,377,88,1,0,0,0,378,379,5,102,0,0,379,380,5,114,0,0,380,381,5, + 97,0,0,381,382,5,99,0,0,382,383,5,116,0,0,383,90,1,0,0,0,384,385, + 5,114,0,0,385,386,5,101,0,0,386,387,5,108,0,0,387,388,5,117,0,0, + 388,92,1,0,0,0,389,390,5,115,0,0,390,391,5,111,0,0,391,392,5,102, + 0,0,392,393,5,116,0,0,393,394,5,112,0,0,394,395,5,108,0,0,395,396, + 5,117,0,0,396,397,5,115,0,0,397,94,1,0,0,0,398,399,5,103,0,0,399, + 400,5,101,0,0,400,401,5,108,0,0,401,402,5,117,0,0,402,96,1,0,0,0, + 403,404,5,115,0,0,404,405,5,105,0,0,405,406,5,103,0,0,406,407,5, + 110,0,0,407,98,1,0,0,0,408,409,5,109,0,0,409,410,5,97,0,0,410,411, + 5,112,0,0,411,100,1,0,0,0,412,413,5,101,0,0,413,414,5,122,0,0,414, + 415,5,99,0,0,415,416,5,111,0,0,416,417,5,110,0,0,417,418,5,118,0, + 0,418,419,5,111,0,0,419,420,5,108,0,0,420,421,5,117,0,0,421,422, + 5,116,0,0,422,423,5,105,0,0,423,424,5,111,0,0,424,432,5,110,0,0, + 425,426,5,101,0,0,426,427,5,122,0,0,427,428,5,99,0,0,428,429,5,111, + 0,0,429,430,5,110,0,0,430,432,5,118,0,0,431,412,1,0,0,0,431,425, + 1,0,0,0,432,102,1,0,0,0,433,434,5,99,0,0,434,435,5,111,0,0,435,436, + 5,110,0,0,436,437,5,118,0,0,437,438,5,111,0,0,438,439,5,108,0,0, + 439,440,5,117,0,0,440,441,5,116,0,0,441,442,5,105,0,0,442,443,5, + 111,0,0,443,449,5,110,0,0,444,445,5,99,0,0,445,446,5,111,0,0,446, + 447,5,110,0,0,447,449,5,118,0,0,448,433,1,0,0,0,448,444,1,0,0,0, + 449,104,1,0,0,0,450,451,5,115,0,0,451,452,5,119,0,0,452,453,5,97, + 0,0,453,454,5,112,0,0,454,106,1,0,0,0,455,456,5,112,0,0,456,457, + 5,101,0,0,457,458,5,114,0,0,458,459,5,109,0,0,459,460,5,117,0,0, + 460,461,5,116,0,0,461,467,5,101,0,0,462,463,5,112,0,0,463,464,5, + 101,0,0,464,465,5,114,0,0,465,467,5,109,0,0,466,455,1,0,0,0,466, + 462,1,0,0,0,467,108,1,0,0,0,468,469,5,114,0,0,469,470,5,101,0,0, + 470,471,5,115,0,0,471,472,5,104,0,0,472,473,5,97,0,0,473,474,5,112, + 0,0,474,480,5,101,0,0,475,476,5,114,0,0,476,477,5,115,0,0,477,478, + 5,104,0,0,478,480,5,112,0,0,479,468,1,0,0,0,479,475,1,0,0,0,480, + 110,1,0,0,0,481,482,5,114,0,0,482,483,5,97,0,0,483,484,5,110,0,0, + 484,485,5,103,0,0,485,486,5,101,0,0,486,112,1,0,0,0,487,488,5,116, + 0,0,488,489,5,111,0,0,489,490,5,112,0,0,490,491,5,107,0,0,491,114, + 1,0,0,0,492,493,5,98,0,0,493,494,5,111,0,0,494,495,5,116,0,0,495, + 496,5,107,0,0,496,116,1,0,0,0,497,498,5,112,0,0,498,499,5,105,0, + 0,499,500,5,110,0,0,500,501,5,118,0,0,501,118,1,0,0,0,502,503,5, + 43,0,0,503,120,1,0,0,0,504,505,5,45,0,0,505,122,1,0,0,0,506,507, + 5,42,0,0,507,124,1,0,0,0,508,509,5,47,0,0,509,126,1,0,0,0,510,511, + 5,37,0,0,511,128,1,0,0,0,512,513,5,94,0,0,513,130,1,0,0,0,514,515, + 5,62,0,0,515,516,5,61,0,0,516,132,1,0,0,0,517,518,5,62,0,0,518,134, + 1,0,0,0,519,520,5,60,0,0,520,521,5,61,0,0,521,136,1,0,0,0,522,523, + 5,60,0,0,523,138,1,0,0,0,524,525,5,61,0,0,525,526,5,61,0,0,526,140, + 1,0,0,0,527,528,5,33,0,0,528,529,5,61,0,0,529,142,1,0,0,0,530,531, + 5,124,0,0,531,144,1,0,0,0,532,533,5,112,0,0,533,538,5,105,0,0,534, + 535,5,80,0,0,535,538,5,73,0,0,536,538,7,0,0,0,537,532,1,0,0,0,537, + 534,1,0,0,0,537,536,1,0,0,0,538,146,1,0,0,0,539,541,7,1,0,0,540, + 539,1,0,0,0,541,542,1,0,0,0,542,540,1,0,0,0,542,543,1,0,0,0,543, + 550,1,0,0,0,544,546,5,46,0,0,545,547,7,1,0,0,546,545,1,0,0,0,547, + 548,1,0,0,0,548,546,1,0,0,0,548,549,1,0,0,0,549,551,1,0,0,0,550, + 544,1,0,0,0,550,551,1,0,0,0,551,148,1,0,0,0,552,556,7,2,0,0,553, + 555,7,3,0,0,554,553,1,0,0,0,555,558,1,0,0,0,556,554,1,0,0,0,556, + 557,1,0,0,0,557,150,1,0,0,0,558,556,1,0,0,0,559,561,7,4,0,0,560, + 559,1,0,0,0,561,562,1,0,0,0,562,560,1,0,0,0,562,563,1,0,0,0,563, + 564,1,0,0,0,564,565,6,75,0,0,565,152,1,0,0,0,12,0,355,431,448,466, + 479,537,542,548,550,556,562,1,6,0,0 ] class MathExprLexer(Lexer): @@ -242,17 +258,17 @@ class MathExprLexer(Lexer): SIFFT = 38 ANGL = 39 PRNT = 40 - PRINT_SHAPE_L = 41 - PRINT_SHAPE = 42 - LERP = 43 - STEP = 44 - SMOOTHSTEP = 45 - FRACT = 46 - RELU = 47 - SOFTPLUS = 48 - GELU = 49 - SIGN = 50 - MAP = 51 + PRINT_SHAPE = 41 + LERP = 42 + STEP = 43 + SMOOTHSTEP = 44 + FRACT = 45 + RELU = 46 + SOFTPLUS = 47 + GELU = 48 + SIGN = 49 + MAP = 50 + EZCONV = 51 CONV = 52 SWAP = 53 PERM = 54 @@ -290,20 +306,19 @@ class MathExprLexer(Lexer): "'ln'", "'log'", "'exp'", "'smin'", "'smax'", "'tmin'", "'tmax'", "'tnorm'", "'snorm'", "'floor'", "'ceil'", "'round'", "'gamma'", "'pow'", "'sigm'", "'clamp'", "'fft'", "'ifft'", "'angle'", - "'print'", "'print_shape'", "'pshp'", "'lerp'", "'step'", "'smoothstep'", - "'fract'", "'relu'", "'softplus'", "'gelu'", "'sign'", "'map'", - "'conv'", "'swap'", "'permute'", "'reshape'", "'range'", "'topk'", - "'botk'", "'pinv'", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", - "'>='", "'>'", "'<='", "'<'", "'=='", "'!='", "'|'" ] + "'print'", "'lerp'", "'step'", "'smoothstep'", "'fract'", "'relu'", + "'softplus'", "'gelu'", "'sign'", "'map'", "'swap'", "'range'", + "'topk'", "'botk'", "'pinv'", "'+'", "'-'", "'*'", "'/'", "'%'", + "'^'", "'>='", "'>'", "'<='", "'<'", "'=='", "'!='", "'|'" ] symbolicNames = [ "", "SIN", "COS", "TAN", "ASIN", "ACOS", "ATAN", "ATAN2", "SINH", "COSH", "TANH", "ASINH", "ACOSH", "ATANH", "ABS", "SQRT", "LN", "LOG", "EXP", "SMIN", "SMAX", "TMIN", "TMAX", "TNORM", "SNORM", "FLOOR", "CEIL", "ROUND", "GAMMA", "POWE", "SIGM", "CLAMP", - "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE_L", "PRINT_SHAPE", - "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", "GELU", - "SIGN", "MAP", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", + "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE", "LERP", "STEP", + "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", "GELU", "SIGN", "MAP", + "EZCONV", "CONV", "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", "LT", "EQ", "NE", "PIPE", "CONSTANT", "NUMBER", "VARIABLE", "WS" ] @@ -313,13 +328,12 @@ class MathExprLexer(Lexer): "TANH", "ASINH", "ACOSH", "ATANH", "ABS", "SQRT", "LN", "LOG", "EXP", "SMIN", "SMAX", "TMIN", "TMAX", "TNORM", "SNORM", "FLOOR", "CEIL", "ROUND", "GAMMA", "POWE", "SIGM", - "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE_L", - "PRINT_SHAPE", "LERP", "STEP", "SMOOTHSTEP", "FRACT", - "RELU", "SOFTPLUS", "GELU", "SIGN", "MAP", "CONV", "SWAP", - "PERM", "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "PLUS", - "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", - "LT", "EQ", "NE", "PIPE", "CONSTANT", "NUMBER", "VARIABLE", - "WS" ] + "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE", + "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", + "GELU", "SIGN", "MAP", "EZCONV", "CONV", "SWAP", "PERM", + "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "PLUS", "MINUS", + "MULT", "DIV", "MOD", "POW", "GE", "GT", "LE", "LT", "EQ", + "NE", "PIPE", "CONSTANT", "NUMBER", "VARIABLE", "WS" ] grammarFileName = "MathExpr.g4" diff --git a/more_math/Parser/MathExprLexer.tokens b/more_math/Parser/MathExprLexer.tokens index 254b000..ad02869 100644 --- a/more_math/Parser/MathExprLexer.tokens +++ b/more_math/Parser/MathExprLexer.tokens @@ -38,17 +38,17 @@ SFFT=37 SIFFT=38 ANGL=39 PRNT=40 -PRINT_SHAPE_L=41 -PRINT_SHAPE=42 -LERP=43 -STEP=44 -SMOOTHSTEP=45 -FRACT=46 -RELU=47 -SOFTPLUS=48 -GELU=49 -SIGN=50 -MAP=51 +PRINT_SHAPE=41 +LERP=42 +STEP=43 +SMOOTHSTEP=44 +FRACT=45 +RELU=46 +SOFTPLUS=47 +GELU=48 +SIGN=49 +MAP=50 +EZCONV=51 CONV=52 SWAP=53 PERM=54 @@ -114,21 +114,16 @@ WS=76 'ifft'=38 'angle'=39 'print'=40 -'print_shape'=41 -'pshp'=42 -'lerp'=43 -'step'=44 -'smoothstep'=45 -'fract'=46 -'relu'=47 -'softplus'=48 -'gelu'=49 -'sign'=50 -'map'=51 -'conv'=52 +'lerp'=42 +'step'=43 +'smoothstep'=44 +'fract'=45 +'relu'=46 +'softplus'=47 +'gelu'=48 +'sign'=49 +'map'=50 'swap'=53 -'permute'=54 -'reshape'=55 'range'=56 'topk'=57 'botk'=58 diff --git a/more_math/Parser/MathExprParser.py b/more_math/Parser/MathExprParser.py index 296b556..6964189 100644 --- a/more_math/Parser/MathExprParser.py +++ b/more_math/Parser/MathExprParser.py @@ -1,4 +1,4 @@ -# Generated from ./MathExpr.g4 by ANTLR 4.13.2 +# Generated from MathExpr.g4 by ANTLR 4.13.2 # encoding: utf-8 from antlr4 import * from io import StringIO @@ -10,7 +10,7 @@ else: def serializedATN(): return [ - 4,1,76,473,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7, + 4,1,76,479,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7, 6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,1,0,1,0,3,0,27,8,0, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,5,1,50,8,1,10,1,12,1,53,9,1,1,2,1,2,1,2,1,2, @@ -29,153 +29,156 @@ def serializedATN(): 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7, 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7, 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7, - 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7, - 1,7,1,7,1,7,3,7,309,8,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8, + 1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,3,7,304, + 8,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8, 1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8, 1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8, - 1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,360,8,8,1,9,1,9,1,9,1,9,1,9,1,9, + 1,8,1,8,3,8,355,8,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9, 1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9, - 1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,398, - 8,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11, - 1,11,1,11,1,11,1,11,5,11,416,8,11,10,11,12,11,419,9,11,1,11,1,11, - 1,11,1,11,1,11,1,11,1,11,5,11,428,8,11,10,11,12,11,431,9,11,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,4,11,440,8,11,11,11,12,11,441,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,4,11,451,8,11,11,11,12,11,452,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11, - 1,11,1,11,3,11,471,8,11,1,11,0,3,2,4,6,12,0,2,4,6,8,10,12,14,16, - 18,20,22,0,0,539,0,26,1,0,0,0,2,28,1,0,0,0,4,54,1,0,0,0,6,68,1,0, - 0,0,8,90,1,0,0,0,10,97,1,0,0,0,12,126,1,0,0,0,14,308,1,0,0,0,16, - 359,1,0,0,0,18,397,1,0,0,0,20,399,1,0,0,0,22,470,1,0,0,0,24,27,3, - 12,6,0,25,27,3,2,1,0,26,24,1,0,0,0,26,25,1,0,0,0,27,1,1,0,0,0,28, - 29,6,1,-1,0,29,30,3,4,2,0,30,51,1,0,0,0,31,32,10,7,0,0,32,33,5,67, - 0,0,33,50,3,4,2,0,34,35,10,6,0,0,35,36,5,66,0,0,36,50,3,4,2,0,37, - 38,10,5,0,0,38,39,5,69,0,0,39,50,3,4,2,0,40,41,10,4,0,0,41,42,5, - 68,0,0,42,50,3,4,2,0,43,44,10,3,0,0,44,45,5,70,0,0,45,50,3,4,2,0, - 46,47,10,2,0,0,47,48,5,71,0,0,48,50,3,4,2,0,49,31,1,0,0,0,49,34, - 1,0,0,0,49,37,1,0,0,0,49,40,1,0,0,0,49,43,1,0,0,0,49,46,1,0,0,0, - 50,53,1,0,0,0,51,49,1,0,0,0,51,52,1,0,0,0,52,3,1,0,0,0,53,51,1,0, - 0,0,54,55,6,2,-1,0,55,56,3,6,3,0,56,65,1,0,0,0,57,58,10,3,0,0,58, - 59,5,60,0,0,59,64,3,6,3,0,60,61,10,2,0,0,61,62,5,61,0,0,62,64,3, - 6,3,0,63,57,1,0,0,0,63,60,1,0,0,0,64,67,1,0,0,0,65,63,1,0,0,0,65, - 66,1,0,0,0,66,5,1,0,0,0,67,65,1,0,0,0,68,69,6,3,-1,0,69,70,3,8,4, - 0,70,82,1,0,0,0,71,72,10,4,0,0,72,73,5,62,0,0,73,81,3,8,4,0,74,75, - 10,3,0,0,75,76,5,63,0,0,76,81,3,8,4,0,77,78,10,2,0,0,78,79,5,64, - 0,0,79,81,3,8,4,0,80,71,1,0,0,0,80,74,1,0,0,0,80,77,1,0,0,0,81,84, - 1,0,0,0,82,80,1,0,0,0,82,83,1,0,0,0,83,7,1,0,0,0,84,82,1,0,0,0,85, - 86,3,10,5,0,86,87,5,65,0,0,87,88,3,8,4,0,88,91,1,0,0,0,89,91,3,10, - 5,0,90,85,1,0,0,0,90,89,1,0,0,0,91,9,1,0,0,0,92,93,5,60,0,0,93,98, - 3,10,5,0,94,95,5,61,0,0,95,98,3,10,5,0,96,98,3,12,6,0,97,92,1,0, - 0,0,97,94,1,0,0,0,97,96,1,0,0,0,98,11,1,0,0,0,99,127,3,14,7,0,100, - 127,3,16,8,0,101,127,3,18,9,0,102,127,3,20,10,0,103,127,3,22,11, - 0,104,127,5,75,0,0,105,127,5,74,0,0,106,127,5,73,0,0,107,108,5,1, - 0,0,108,109,3,0,0,0,109,110,5,2,0,0,110,127,1,0,0,0,111,112,5,72, - 0,0,112,113,3,0,0,0,113,114,5,72,0,0,114,127,1,0,0,0,115,116,5,3, - 0,0,116,121,3,0,0,0,117,118,5,4,0,0,118,120,3,0,0,0,119,117,1,0, - 0,0,120,123,1,0,0,0,121,119,1,0,0,0,121,122,1,0,0,0,122,124,1,0, - 0,0,123,121,1,0,0,0,124,125,5,5,0,0,125,127,1,0,0,0,126,99,1,0,0, - 0,126,100,1,0,0,0,126,101,1,0,0,0,126,102,1,0,0,0,126,103,1,0,0, - 0,126,104,1,0,0,0,126,105,1,0,0,0,126,106,1,0,0,0,126,107,1,0,0, - 0,126,111,1,0,0,0,126,115,1,0,0,0,127,13,1,0,0,0,128,129,5,6,0,0, - 129,130,5,1,0,0,130,131,3,0,0,0,131,132,5,2,0,0,132,309,1,0,0,0, - 133,134,5,7,0,0,134,135,5,1,0,0,135,136,3,0,0,0,136,137,5,2,0,0, - 137,309,1,0,0,0,138,139,5,8,0,0,139,140,5,1,0,0,140,141,3,0,0,0, - 141,142,5,2,0,0,142,309,1,0,0,0,143,144,5,9,0,0,144,145,5,1,0,0, - 145,146,3,0,0,0,146,147,5,2,0,0,147,309,1,0,0,0,148,149,5,10,0,0, - 149,150,5,1,0,0,150,151,3,0,0,0,151,152,5,2,0,0,152,309,1,0,0,0, - 153,154,5,11,0,0,154,155,5,1,0,0,155,156,3,0,0,0,156,157,5,2,0,0, - 157,309,1,0,0,0,158,159,5,13,0,0,159,160,5,1,0,0,160,161,3,0,0,0, - 161,162,5,2,0,0,162,309,1,0,0,0,163,164,5,14,0,0,164,165,5,1,0,0, - 165,166,3,0,0,0,166,167,5,2,0,0,167,309,1,0,0,0,168,169,5,15,0,0, - 169,170,5,1,0,0,170,171,3,0,0,0,171,172,5,2,0,0,172,309,1,0,0,0, - 173,174,5,16,0,0,174,175,5,1,0,0,175,176,3,0,0,0,176,177,5,2,0,0, - 177,309,1,0,0,0,178,179,5,17,0,0,179,180,5,1,0,0,180,181,3,0,0,0, - 181,182,5,2,0,0,182,309,1,0,0,0,183,184,5,18,0,0,184,185,5,1,0,0, - 185,186,3,0,0,0,186,187,5,2,0,0,187,309,1,0,0,0,188,189,5,19,0,0, - 189,190,5,1,0,0,190,191,3,0,0,0,191,192,5,2,0,0,192,309,1,0,0,0, - 193,194,5,20,0,0,194,195,5,1,0,0,195,196,3,0,0,0,196,197,5,2,0,0, - 197,309,1,0,0,0,198,199,5,21,0,0,199,200,5,1,0,0,200,201,3,0,0,0, - 201,202,5,2,0,0,202,309,1,0,0,0,203,204,5,22,0,0,204,205,5,1,0,0, - 205,206,3,0,0,0,206,207,5,2,0,0,207,309,1,0,0,0,208,209,5,23,0,0, - 209,210,5,1,0,0,210,211,3,0,0,0,211,212,5,2,0,0,212,309,1,0,0,0, - 213,214,5,28,0,0,214,215,5,1,0,0,215,216,3,0,0,0,216,217,5,2,0,0, - 217,309,1,0,0,0,218,219,5,29,0,0,219,220,5,1,0,0,220,221,3,0,0,0, - 221,222,5,2,0,0,222,309,1,0,0,0,223,224,5,30,0,0,224,225,5,1,0,0, - 225,226,3,0,0,0,226,227,5,2,0,0,227,309,1,0,0,0,228,229,5,31,0,0, - 229,230,5,1,0,0,230,231,3,0,0,0,231,232,5,2,0,0,232,309,1,0,0,0, - 233,234,5,32,0,0,234,235,5,1,0,0,235,236,3,0,0,0,236,237,5,2,0,0, - 237,309,1,0,0,0,238,239,5,33,0,0,239,240,5,1,0,0,240,241,3,0,0,0, - 241,242,5,2,0,0,242,309,1,0,0,0,243,244,5,35,0,0,244,245,5,1,0,0, - 245,246,3,0,0,0,246,247,5,2,0,0,247,309,1,0,0,0,248,249,5,37,0,0, - 249,250,5,1,0,0,250,251,3,0,0,0,251,252,5,2,0,0,252,309,1,0,0,0, - 253,254,5,38,0,0,254,255,5,1,0,0,255,256,3,0,0,0,256,257,5,2,0,0, - 257,309,1,0,0,0,258,259,5,39,0,0,259,260,5,1,0,0,260,261,3,0,0,0, - 261,262,5,2,0,0,262,309,1,0,0,0,263,264,5,40,0,0,264,265,5,1,0,0, - 265,266,3,0,0,0,266,267,5,2,0,0,267,309,1,0,0,0,268,269,5,46,0,0, - 269,270,5,1,0,0,270,271,3,0,0,0,271,272,5,2,0,0,272,309,1,0,0,0, - 273,274,5,47,0,0,274,275,5,1,0,0,275,276,3,0,0,0,276,277,5,2,0,0, - 277,309,1,0,0,0,278,279,5,48,0,0,279,280,5,1,0,0,280,281,3,0,0,0, - 281,282,5,2,0,0,282,309,1,0,0,0,283,284,5,49,0,0,284,285,5,1,0,0, - 285,286,3,0,0,0,286,287,5,2,0,0,287,309,1,0,0,0,288,289,5,50,0,0, - 289,290,5,1,0,0,290,291,3,0,0,0,291,292,5,2,0,0,292,309,1,0,0,0, - 293,294,5,41,0,0,294,295,5,1,0,0,295,296,3,0,0,0,296,297,5,2,0,0, - 297,309,1,0,0,0,298,299,5,42,0,0,299,300,5,1,0,0,300,301,3,0,0,0, - 301,302,5,2,0,0,302,309,1,0,0,0,303,304,5,59,0,0,304,305,5,1,0,0, - 305,306,3,0,0,0,306,307,5,2,0,0,307,309,1,0,0,0,308,128,1,0,0,0, - 308,133,1,0,0,0,308,138,1,0,0,0,308,143,1,0,0,0,308,148,1,0,0,0, - 308,153,1,0,0,0,308,158,1,0,0,0,308,163,1,0,0,0,308,168,1,0,0,0, - 308,173,1,0,0,0,308,178,1,0,0,0,308,183,1,0,0,0,308,188,1,0,0,0, - 308,193,1,0,0,0,308,198,1,0,0,0,308,203,1,0,0,0,308,208,1,0,0,0, - 308,213,1,0,0,0,308,218,1,0,0,0,308,223,1,0,0,0,308,228,1,0,0,0, - 308,233,1,0,0,0,308,238,1,0,0,0,308,243,1,0,0,0,308,248,1,0,0,0, - 308,253,1,0,0,0,308,258,1,0,0,0,308,263,1,0,0,0,308,268,1,0,0,0, - 308,273,1,0,0,0,308,278,1,0,0,0,308,283,1,0,0,0,308,288,1,0,0,0, - 308,293,1,0,0,0,308,298,1,0,0,0,308,303,1,0,0,0,309,15,1,0,0,0,310, - 311,5,34,0,0,311,312,5,1,0,0,312,313,3,0,0,0,313,314,5,4,0,0,314, - 315,3,0,0,0,315,316,5,2,0,0,316,360,1,0,0,0,317,318,5,12,0,0,318, - 319,5,1,0,0,319,320,3,0,0,0,320,321,5,4,0,0,321,322,3,0,0,0,322, - 323,5,2,0,0,323,360,1,0,0,0,324,325,5,26,0,0,325,326,5,1,0,0,326, - 327,3,0,0,0,327,328,5,4,0,0,328,329,3,0,0,0,329,330,5,2,0,0,330, - 360,1,0,0,0,331,332,5,27,0,0,332,333,5,1,0,0,333,334,3,0,0,0,334, - 335,5,4,0,0,335,336,3,0,0,0,336,337,5,2,0,0,337,360,1,0,0,0,338, - 339,5,44,0,0,339,340,5,1,0,0,340,341,3,0,0,0,341,342,5,4,0,0,342, - 343,3,0,0,0,343,344,5,2,0,0,344,360,1,0,0,0,345,346,5,57,0,0,346, - 347,5,1,0,0,347,348,3,0,0,0,348,349,5,4,0,0,349,350,3,0,0,0,350, - 351,5,2,0,0,351,360,1,0,0,0,352,353,5,58,0,0,353,354,5,1,0,0,354, - 355,3,0,0,0,355,356,5,4,0,0,356,357,3,0,0,0,357,358,5,2,0,0,358, - 360,1,0,0,0,359,310,1,0,0,0,359,317,1,0,0,0,359,324,1,0,0,0,359, - 331,1,0,0,0,359,338,1,0,0,0,359,345,1,0,0,0,359,352,1,0,0,0,360, - 17,1,0,0,0,361,362,5,36,0,0,362,363,5,1,0,0,363,364,3,0,0,0,364, - 365,5,4,0,0,365,366,3,0,0,0,366,367,5,4,0,0,367,368,3,0,0,0,368, - 369,5,2,0,0,369,398,1,0,0,0,370,371,5,43,0,0,371,372,5,1,0,0,372, - 373,3,0,0,0,373,374,5,4,0,0,374,375,3,0,0,0,375,376,5,4,0,0,376, - 377,3,0,0,0,377,378,5,2,0,0,378,398,1,0,0,0,379,380,5,45,0,0,380, - 381,5,1,0,0,381,382,3,0,0,0,382,383,5,4,0,0,383,384,3,0,0,0,384, - 385,5,4,0,0,385,386,3,0,0,0,386,387,5,2,0,0,387,398,1,0,0,0,388, - 389,5,56,0,0,389,390,5,1,0,0,390,391,3,0,0,0,391,392,5,4,0,0,392, - 393,3,0,0,0,393,394,5,4,0,0,394,395,3,0,0,0,395,396,5,2,0,0,396, - 398,1,0,0,0,397,361,1,0,0,0,397,370,1,0,0,0,397,379,1,0,0,0,397, - 388,1,0,0,0,398,19,1,0,0,0,399,400,5,53,0,0,400,401,5,1,0,0,401, - 402,3,0,0,0,402,403,5,4,0,0,403,404,3,0,0,0,404,405,5,4,0,0,405, - 406,3,0,0,0,406,407,5,4,0,0,407,408,3,0,0,0,408,409,5,2,0,0,409, - 21,1,0,0,0,410,411,5,24,0,0,411,412,5,1,0,0,412,417,3,0,0,0,413, - 414,5,4,0,0,414,416,3,0,0,0,415,413,1,0,0,0,416,419,1,0,0,0,417, - 415,1,0,0,0,417,418,1,0,0,0,418,420,1,0,0,0,419,417,1,0,0,0,420, - 421,5,2,0,0,421,471,1,0,0,0,422,423,5,25,0,0,423,424,5,1,0,0,424, - 429,3,0,0,0,425,426,5,4,0,0,426,428,3,0,0,0,427,425,1,0,0,0,428, - 431,1,0,0,0,429,427,1,0,0,0,429,430,1,0,0,0,430,432,1,0,0,0,431, - 429,1,0,0,0,432,433,5,2,0,0,433,471,1,0,0,0,434,435,5,51,0,0,435, - 436,5,1,0,0,436,439,3,0,0,0,437,438,5,4,0,0,438,440,3,0,0,0,439, - 437,1,0,0,0,440,441,1,0,0,0,441,439,1,0,0,0,441,442,1,0,0,0,442, - 443,1,0,0,0,443,444,5,2,0,0,444,471,1,0,0,0,445,446,5,52,0,0,446, - 447,5,1,0,0,447,450,3,0,0,0,448,449,5,4,0,0,449,451,3,0,0,0,450, - 448,1,0,0,0,451,452,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453, - 454,1,0,0,0,454,455,5,2,0,0,455,471,1,0,0,0,456,457,5,54,0,0,457, - 458,5,1,0,0,458,459,3,0,0,0,459,460,5,4,0,0,460,461,3,0,0,0,461, - 462,5,2,0,0,462,471,1,0,0,0,463,464,5,55,0,0,464,465,5,1,0,0,465, - 466,3,0,0,0,466,467,5,4,0,0,467,468,3,0,0,0,468,469,5,2,0,0,469, - 471,1,0,0,0,470,410,1,0,0,0,470,422,1,0,0,0,470,434,1,0,0,0,470, - 445,1,0,0,0,470,456,1,0,0,0,470,463,1,0,0,0,471,23,1,0,0,0,19,26, - 49,51,63,65,80,82,90,97,121,126,308,359,397,417,429,441,452,470 + 1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,393,8,9,1,10,1,10,1,10,1, + 10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,5, + 11,411,8,11,10,11,12,11,414,9,11,1,11,1,11,1,11,1,11,1,11,1,11,1, + 11,5,11,423,8,11,10,11,12,11,426,9,11,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,4,11,435,8,11,11,11,12,11,436,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,4,11,446,8,11,11,11,12,11,447,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,4,11,457,8,11,11,11,12,11,458,1,11,1,11,1,11,1,11,1,11,1, + 11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,3,11,477,8, + 11,1,11,0,3,2,4,6,12,0,2,4,6,8,10,12,14,16,18,20,22,0,0,546,0,26, + 1,0,0,0,2,28,1,0,0,0,4,54,1,0,0,0,6,68,1,0,0,0,8,90,1,0,0,0,10,97, + 1,0,0,0,12,126,1,0,0,0,14,303,1,0,0,0,16,354,1,0,0,0,18,392,1,0, + 0,0,20,394,1,0,0,0,22,476,1,0,0,0,24,27,3,12,6,0,25,27,3,2,1,0,26, + 24,1,0,0,0,26,25,1,0,0,0,27,1,1,0,0,0,28,29,6,1,-1,0,29,30,3,4,2, + 0,30,51,1,0,0,0,31,32,10,7,0,0,32,33,5,67,0,0,33,50,3,4,2,0,34,35, + 10,6,0,0,35,36,5,66,0,0,36,50,3,4,2,0,37,38,10,5,0,0,38,39,5,69, + 0,0,39,50,3,4,2,0,40,41,10,4,0,0,41,42,5,68,0,0,42,50,3,4,2,0,43, + 44,10,3,0,0,44,45,5,70,0,0,45,50,3,4,2,0,46,47,10,2,0,0,47,48,5, + 71,0,0,48,50,3,4,2,0,49,31,1,0,0,0,49,34,1,0,0,0,49,37,1,0,0,0,49, + 40,1,0,0,0,49,43,1,0,0,0,49,46,1,0,0,0,50,53,1,0,0,0,51,49,1,0,0, + 0,51,52,1,0,0,0,52,3,1,0,0,0,53,51,1,0,0,0,54,55,6,2,-1,0,55,56, + 3,6,3,0,56,65,1,0,0,0,57,58,10,3,0,0,58,59,5,60,0,0,59,64,3,6,3, + 0,60,61,10,2,0,0,61,62,5,61,0,0,62,64,3,6,3,0,63,57,1,0,0,0,63,60, + 1,0,0,0,64,67,1,0,0,0,65,63,1,0,0,0,65,66,1,0,0,0,66,5,1,0,0,0,67, + 65,1,0,0,0,68,69,6,3,-1,0,69,70,3,8,4,0,70,82,1,0,0,0,71,72,10,4, + 0,0,72,73,5,62,0,0,73,81,3,8,4,0,74,75,10,3,0,0,75,76,5,63,0,0,76, + 81,3,8,4,0,77,78,10,2,0,0,78,79,5,64,0,0,79,81,3,8,4,0,80,71,1,0, + 0,0,80,74,1,0,0,0,80,77,1,0,0,0,81,84,1,0,0,0,82,80,1,0,0,0,82,83, + 1,0,0,0,83,7,1,0,0,0,84,82,1,0,0,0,85,86,3,10,5,0,86,87,5,65,0,0, + 87,88,3,8,4,0,88,91,1,0,0,0,89,91,3,10,5,0,90,85,1,0,0,0,90,89,1, + 0,0,0,91,9,1,0,0,0,92,93,5,60,0,0,93,98,3,10,5,0,94,95,5,61,0,0, + 95,98,3,10,5,0,96,98,3,12,6,0,97,92,1,0,0,0,97,94,1,0,0,0,97,96, + 1,0,0,0,98,11,1,0,0,0,99,127,3,14,7,0,100,127,3,16,8,0,101,127,3, + 18,9,0,102,127,3,20,10,0,103,127,3,22,11,0,104,127,5,75,0,0,105, + 127,5,74,0,0,106,127,5,73,0,0,107,108,5,1,0,0,108,109,3,0,0,0,109, + 110,5,2,0,0,110,127,1,0,0,0,111,112,5,72,0,0,112,113,3,0,0,0,113, + 114,5,72,0,0,114,127,1,0,0,0,115,116,5,3,0,0,116,121,3,0,0,0,117, + 118,5,4,0,0,118,120,3,0,0,0,119,117,1,0,0,0,120,123,1,0,0,0,121, + 119,1,0,0,0,121,122,1,0,0,0,122,124,1,0,0,0,123,121,1,0,0,0,124, + 125,5,5,0,0,125,127,1,0,0,0,126,99,1,0,0,0,126,100,1,0,0,0,126,101, + 1,0,0,0,126,102,1,0,0,0,126,103,1,0,0,0,126,104,1,0,0,0,126,105, + 1,0,0,0,126,106,1,0,0,0,126,107,1,0,0,0,126,111,1,0,0,0,126,115, + 1,0,0,0,127,13,1,0,0,0,128,129,5,6,0,0,129,130,5,1,0,0,130,131,3, + 0,0,0,131,132,5,2,0,0,132,304,1,0,0,0,133,134,5,7,0,0,134,135,5, + 1,0,0,135,136,3,0,0,0,136,137,5,2,0,0,137,304,1,0,0,0,138,139,5, + 8,0,0,139,140,5,1,0,0,140,141,3,0,0,0,141,142,5,2,0,0,142,304,1, + 0,0,0,143,144,5,9,0,0,144,145,5,1,0,0,145,146,3,0,0,0,146,147,5, + 2,0,0,147,304,1,0,0,0,148,149,5,10,0,0,149,150,5,1,0,0,150,151,3, + 0,0,0,151,152,5,2,0,0,152,304,1,0,0,0,153,154,5,11,0,0,154,155,5, + 1,0,0,155,156,3,0,0,0,156,157,5,2,0,0,157,304,1,0,0,0,158,159,5, + 13,0,0,159,160,5,1,0,0,160,161,3,0,0,0,161,162,5,2,0,0,162,304,1, + 0,0,0,163,164,5,14,0,0,164,165,5,1,0,0,165,166,3,0,0,0,166,167,5, + 2,0,0,167,304,1,0,0,0,168,169,5,15,0,0,169,170,5,1,0,0,170,171,3, + 0,0,0,171,172,5,2,0,0,172,304,1,0,0,0,173,174,5,16,0,0,174,175,5, + 1,0,0,175,176,3,0,0,0,176,177,5,2,0,0,177,304,1,0,0,0,178,179,5, + 17,0,0,179,180,5,1,0,0,180,181,3,0,0,0,181,182,5,2,0,0,182,304,1, + 0,0,0,183,184,5,18,0,0,184,185,5,1,0,0,185,186,3,0,0,0,186,187,5, + 2,0,0,187,304,1,0,0,0,188,189,5,19,0,0,189,190,5,1,0,0,190,191,3, + 0,0,0,191,192,5,2,0,0,192,304,1,0,0,0,193,194,5,20,0,0,194,195,5, + 1,0,0,195,196,3,0,0,0,196,197,5,2,0,0,197,304,1,0,0,0,198,199,5, + 21,0,0,199,200,5,1,0,0,200,201,3,0,0,0,201,202,5,2,0,0,202,304,1, + 0,0,0,203,204,5,22,0,0,204,205,5,1,0,0,205,206,3,0,0,0,206,207,5, + 2,0,0,207,304,1,0,0,0,208,209,5,23,0,0,209,210,5,1,0,0,210,211,3, + 0,0,0,211,212,5,2,0,0,212,304,1,0,0,0,213,214,5,28,0,0,214,215,5, + 1,0,0,215,216,3,0,0,0,216,217,5,2,0,0,217,304,1,0,0,0,218,219,5, + 29,0,0,219,220,5,1,0,0,220,221,3,0,0,0,221,222,5,2,0,0,222,304,1, + 0,0,0,223,224,5,30,0,0,224,225,5,1,0,0,225,226,3,0,0,0,226,227,5, + 2,0,0,227,304,1,0,0,0,228,229,5,31,0,0,229,230,5,1,0,0,230,231,3, + 0,0,0,231,232,5,2,0,0,232,304,1,0,0,0,233,234,5,32,0,0,234,235,5, + 1,0,0,235,236,3,0,0,0,236,237,5,2,0,0,237,304,1,0,0,0,238,239,5, + 33,0,0,239,240,5,1,0,0,240,241,3,0,0,0,241,242,5,2,0,0,242,304,1, + 0,0,0,243,244,5,35,0,0,244,245,5,1,0,0,245,246,3,0,0,0,246,247,5, + 2,0,0,247,304,1,0,0,0,248,249,5,37,0,0,249,250,5,1,0,0,250,251,3, + 0,0,0,251,252,5,2,0,0,252,304,1,0,0,0,253,254,5,38,0,0,254,255,5, + 1,0,0,255,256,3,0,0,0,256,257,5,2,0,0,257,304,1,0,0,0,258,259,5, + 39,0,0,259,260,5,1,0,0,260,261,3,0,0,0,261,262,5,2,0,0,262,304,1, + 0,0,0,263,264,5,40,0,0,264,265,5,1,0,0,265,266,3,0,0,0,266,267,5, + 2,0,0,267,304,1,0,0,0,268,269,5,45,0,0,269,270,5,1,0,0,270,271,3, + 0,0,0,271,272,5,2,0,0,272,304,1,0,0,0,273,274,5,46,0,0,274,275,5, + 1,0,0,275,276,3,0,0,0,276,277,5,2,0,0,277,304,1,0,0,0,278,279,5, + 47,0,0,279,280,5,1,0,0,280,281,3,0,0,0,281,282,5,2,0,0,282,304,1, + 0,0,0,283,284,5,48,0,0,284,285,5,1,0,0,285,286,3,0,0,0,286,287,5, + 2,0,0,287,304,1,0,0,0,288,289,5,49,0,0,289,290,5,1,0,0,290,291,3, + 0,0,0,291,292,5,2,0,0,292,304,1,0,0,0,293,294,5,41,0,0,294,295,5, + 1,0,0,295,296,3,0,0,0,296,297,5,2,0,0,297,304,1,0,0,0,298,299,5, + 59,0,0,299,300,5,1,0,0,300,301,3,0,0,0,301,302,5,2,0,0,302,304,1, + 0,0,0,303,128,1,0,0,0,303,133,1,0,0,0,303,138,1,0,0,0,303,143,1, + 0,0,0,303,148,1,0,0,0,303,153,1,0,0,0,303,158,1,0,0,0,303,163,1, + 0,0,0,303,168,1,0,0,0,303,173,1,0,0,0,303,178,1,0,0,0,303,183,1, + 0,0,0,303,188,1,0,0,0,303,193,1,0,0,0,303,198,1,0,0,0,303,203,1, + 0,0,0,303,208,1,0,0,0,303,213,1,0,0,0,303,218,1,0,0,0,303,223,1, + 0,0,0,303,228,1,0,0,0,303,233,1,0,0,0,303,238,1,0,0,0,303,243,1, + 0,0,0,303,248,1,0,0,0,303,253,1,0,0,0,303,258,1,0,0,0,303,263,1, + 0,0,0,303,268,1,0,0,0,303,273,1,0,0,0,303,278,1,0,0,0,303,283,1, + 0,0,0,303,288,1,0,0,0,303,293,1,0,0,0,303,298,1,0,0,0,304,15,1,0, + 0,0,305,306,5,34,0,0,306,307,5,1,0,0,307,308,3,0,0,0,308,309,5,4, + 0,0,309,310,3,0,0,0,310,311,5,2,0,0,311,355,1,0,0,0,312,313,5,12, + 0,0,313,314,5,1,0,0,314,315,3,0,0,0,315,316,5,4,0,0,316,317,3,0, + 0,0,317,318,5,2,0,0,318,355,1,0,0,0,319,320,5,26,0,0,320,321,5,1, + 0,0,321,322,3,0,0,0,322,323,5,4,0,0,323,324,3,0,0,0,324,325,5,2, + 0,0,325,355,1,0,0,0,326,327,5,27,0,0,327,328,5,1,0,0,328,329,3,0, + 0,0,329,330,5,4,0,0,330,331,3,0,0,0,331,332,5,2,0,0,332,355,1,0, + 0,0,333,334,5,43,0,0,334,335,5,1,0,0,335,336,3,0,0,0,336,337,5,4, + 0,0,337,338,3,0,0,0,338,339,5,2,0,0,339,355,1,0,0,0,340,341,5,57, + 0,0,341,342,5,1,0,0,342,343,3,0,0,0,343,344,5,4,0,0,344,345,3,0, + 0,0,345,346,5,2,0,0,346,355,1,0,0,0,347,348,5,58,0,0,348,349,5,1, + 0,0,349,350,3,0,0,0,350,351,5,4,0,0,351,352,3,0,0,0,352,353,5,2, + 0,0,353,355,1,0,0,0,354,305,1,0,0,0,354,312,1,0,0,0,354,319,1,0, + 0,0,354,326,1,0,0,0,354,333,1,0,0,0,354,340,1,0,0,0,354,347,1,0, + 0,0,355,17,1,0,0,0,356,357,5,36,0,0,357,358,5,1,0,0,358,359,3,0, + 0,0,359,360,5,4,0,0,360,361,3,0,0,0,361,362,5,4,0,0,362,363,3,0, + 0,0,363,364,5,2,0,0,364,393,1,0,0,0,365,366,5,42,0,0,366,367,5,1, + 0,0,367,368,3,0,0,0,368,369,5,4,0,0,369,370,3,0,0,0,370,371,5,4, + 0,0,371,372,3,0,0,0,372,373,5,2,0,0,373,393,1,0,0,0,374,375,5,44, + 0,0,375,376,5,1,0,0,376,377,3,0,0,0,377,378,5,4,0,0,378,379,3,0, + 0,0,379,380,5,4,0,0,380,381,3,0,0,0,381,382,5,2,0,0,382,393,1,0, + 0,0,383,384,5,56,0,0,384,385,5,1,0,0,385,386,3,0,0,0,386,387,5,4, + 0,0,387,388,3,0,0,0,388,389,5,4,0,0,389,390,3,0,0,0,390,391,5,2, + 0,0,391,393,1,0,0,0,392,356,1,0,0,0,392,365,1,0,0,0,392,374,1,0, + 0,0,392,383,1,0,0,0,393,19,1,0,0,0,394,395,5,53,0,0,395,396,5,1, + 0,0,396,397,3,0,0,0,397,398,5,4,0,0,398,399,3,0,0,0,399,400,5,4, + 0,0,400,401,3,0,0,0,401,402,5,4,0,0,402,403,3,0,0,0,403,404,5,2, + 0,0,404,21,1,0,0,0,405,406,5,24,0,0,406,407,5,1,0,0,407,412,3,0, + 0,0,408,409,5,4,0,0,409,411,3,0,0,0,410,408,1,0,0,0,411,414,1,0, + 0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0, + 0,0,415,416,5,2,0,0,416,477,1,0,0,0,417,418,5,25,0,0,418,419,5,1, + 0,0,419,424,3,0,0,0,420,421,5,4,0,0,421,423,3,0,0,0,422,420,1,0, + 0,0,423,426,1,0,0,0,424,422,1,0,0,0,424,425,1,0,0,0,425,427,1,0, + 0,0,426,424,1,0,0,0,427,428,5,2,0,0,428,477,1,0,0,0,429,430,5,50, + 0,0,430,431,5,1,0,0,431,434,3,0,0,0,432,433,5,4,0,0,433,435,3,0, + 0,0,434,432,1,0,0,0,435,436,1,0,0,0,436,434,1,0,0,0,436,437,1,0, + 0,0,437,438,1,0,0,0,438,439,5,2,0,0,439,477,1,0,0,0,440,441,5,51, + 0,0,441,442,5,1,0,0,442,445,3,0,0,0,443,444,5,4,0,0,444,446,3,0, + 0,0,445,443,1,0,0,0,446,447,1,0,0,0,447,445,1,0,0,0,447,448,1,0, + 0,0,448,449,1,0,0,0,449,450,5,2,0,0,450,477,1,0,0,0,451,452,5,52, + 0,0,452,453,5,1,0,0,453,456,3,0,0,0,454,455,5,4,0,0,455,457,3,0, + 0,0,456,454,1,0,0,0,457,458,1,0,0,0,458,456,1,0,0,0,458,459,1,0, + 0,0,459,460,1,0,0,0,460,461,5,2,0,0,461,477,1,0,0,0,462,463,5,54, + 0,0,463,464,5,1,0,0,464,465,3,0,0,0,465,466,5,4,0,0,466,467,3,0, + 0,0,467,468,5,2,0,0,468,477,1,0,0,0,469,470,5,55,0,0,470,471,5,1, + 0,0,471,472,3,0,0,0,472,473,5,4,0,0,473,474,3,0,0,0,474,475,5,2, + 0,0,475,477,1,0,0,0,476,405,1,0,0,0,476,417,1,0,0,0,476,429,1,0, + 0,0,476,440,1,0,0,0,476,451,1,0,0,0,476,462,1,0,0,0,476,469,1,0, + 0,0,477,23,1,0,0,0,20,26,49,51,63,65,80,82,90,97,121,126,303,354, + 392,412,424,436,447,458,476 ] class MathExprParser ( Parser ): @@ -195,10 +198,10 @@ class MathExprParser ( Parser ): "'smin'", "'smax'", "'tmin'", "'tmax'", "'tnorm'", "'snorm'", "'floor'", "'ceil'", "'round'", "'gamma'", "'pow'", "'sigm'", "'clamp'", "'fft'", "'ifft'", "'angle'", - "'print'", "'print_shape'", "'pshp'", "'lerp'", "'step'", - "'smoothstep'", "'fract'", "'relu'", "'softplus'", - "'gelu'", "'sign'", "'map'", "'conv'", "'swap'", "'permute'", - "'reshape'", "'range'", "'topk'", "'botk'", "'pinv'", + "'print'", "", "'lerp'", "'step'", "'smoothstep'", + "'fract'", "'relu'", "'softplus'", "'gelu'", "'sign'", + "'map'", "", "", "'swap'", "", + "", "'range'", "'topk'", "'botk'", "'pinv'", "'+'", "'-'", "'*'", "'/'", "'%'", "'^'", "'>='", "'>'", "'<='", "'<'", "'=='", "'!='", "'|'" ] @@ -208,13 +211,13 @@ class MathExprParser ( Parser ): "ACOSH", "ATANH", "ABS", "SQRT", "LN", "LOG", "EXP", "SMIN", "SMAX", "TMIN", "TMAX", "TNORM", "SNORM", "FLOOR", "CEIL", "ROUND", "GAMMA", "POWE", "SIGM", - "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE_L", - "PRINT_SHAPE", "LERP", "STEP", "SMOOTHSTEP", "FRACT", - "RELU", "SOFTPLUS", "GELU", "SIGN", "MAP", "CONV", - "SWAP", "PERM", "RESHAPE", "RANGE", "TOPK", "BOTK", - "PINV", "PLUS", "MINUS", "MULT", "DIV", "MOD", "POW", - "GE", "GT", "LE", "LT", "EQ", "NE", "PIPE", "CONSTANT", - "NUMBER", "VARIABLE", "WS" ] + "CLAMP", "SFFT", "SIFFT", "ANGL", "PRNT", "PRINT_SHAPE", + "LERP", "STEP", "SMOOTHSTEP", "FRACT", "RELU", "SOFTPLUS", + "GELU", "SIGN", "MAP", "EZCONV", "CONV", "SWAP", "PERM", + "RESHAPE", "RANGE", "TOPK", "BOTK", "PINV", "PLUS", + "MINUS", "MULT", "DIV", "MOD", "POW", "GE", "GT", + "LE", "LT", "EQ", "NE", "PIPE", "CONSTANT", "NUMBER", + "VARIABLE", "WS" ] RULE_expr = 0 RULE_compExpr = 1 @@ -274,17 +277,17 @@ class MathExprParser ( Parser ): SIFFT=38 ANGL=39 PRNT=40 - PRINT_SHAPE_L=41 - PRINT_SHAPE=42 - LERP=43 - STEP=44 - SMOOTHSTEP=45 - FRACT=46 - RELU=47 - SOFTPLUS=48 - GELU=49 - SIGN=50 - MAP=51 + PRINT_SHAPE=41 + LERP=42 + STEP=43 + SMOOTHSTEP=44 + FRACT=45 + RELU=46 + SOFTPLUS=47 + GELU=48 + SIGN=49 + MAP=50 + EZCONV=51 CONV=52 SWAP=53 PERM=54 @@ -338,14 +341,6 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_expr - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterExpr" ): - listener.enterExpr(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitExpr" ): - listener.exitExpr(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExpr" ): return visitor.visitExpr(self) @@ -396,7 +391,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_compExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -416,14 +411,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterLtExp" ): - listener.enterLtExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitLtExp" ): - listener.exitLtExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLtExp" ): return visitor.visitLtExp(self) @@ -446,14 +433,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterEqExp" ): - listener.enterEqExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitEqExp" ): - listener.exitEqExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitEqExp" ): return visitor.visitEqExp(self) @@ -471,14 +450,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterToAdd" ): - listener.enterToAdd(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitToAdd" ): - listener.exitToAdd(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToAdd" ): return visitor.visitToAdd(self) @@ -501,14 +472,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterGeExp" ): - listener.enterGeExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitGeExp" ): - listener.exitGeExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGeExp" ): return visitor.visitGeExp(self) @@ -531,14 +494,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterLeExp" ): - listener.enterLeExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitLeExp" ): - listener.exitLeExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLeExp" ): return visitor.visitLeExp(self) @@ -561,14 +516,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterNeExp" ): - listener.enterNeExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitNeExp" ): - listener.exitNeExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNeExp" ): return visitor.visitNeExp(self) @@ -591,14 +538,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AddExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterGtExp" ): - listener.enterGtExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitGtExp" ): - listener.exitGtExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGtExp" ): return visitor.visitGtExp(self) @@ -712,7 +651,7 @@ class MathExprParser ( Parser ): self.addExpr(0) pass - + self.state = 53 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,2,self._ctx) @@ -737,7 +676,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_addExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -757,14 +696,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAddExp" ): - listener.enterAddExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAddExp" ): - listener.exitAddExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAddExp" ): return visitor.visitAddExp(self) @@ -782,14 +713,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterToMul" ): - listener.enterToMul(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitToMul" ): - listener.exitToMul(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToMul" ): return visitor.visitToMul(self) @@ -812,14 +735,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.MulExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSubExp" ): - listener.enterSubExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSubExp" ): - listener.exitSubExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSubExp" ): return visitor.visitSubExp(self) @@ -881,7 +796,7 @@ class MathExprParser ( Parser ): self.mulExpr(0) pass - + self.state = 67 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,4,self._ctx) @@ -906,7 +821,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_mulExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -926,14 +841,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterMulExp" ): - listener.enterMulExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitMulExp" ): - listener.exitMulExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMulExp" ): return visitor.visitMulExp(self) @@ -956,14 +863,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterModExp" ): - listener.enterModExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitModExp" ): - listener.exitModExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitModExp" ): return visitor.visitModExp(self) @@ -986,14 +885,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterDivExp" ): - listener.enterDivExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitDivExp" ): - listener.exitDivExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitDivExp" ): return visitor.visitDivExp(self) @@ -1011,14 +902,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterToPow" ): - listener.enterToPow(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitToPow" ): - listener.exitToPow(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToPow" ): return visitor.visitToPow(self) @@ -1093,7 +976,7 @@ class MathExprParser ( Parser ): self.powExpr() pass - + self.state = 84 self._errHandler.sync(self) _alt = self._interp.adaptivePredict(self._input,6,self._ctx) @@ -1118,7 +1001,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_powExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1139,14 +1022,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.PowExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterPowExp" ): - listener.enterPowExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitPowExp" ): - listener.exitPowExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPowExp" ): return visitor.visitPowExp(self) @@ -1164,14 +1039,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterToUnary" ): - listener.enterToUnary(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitToUnary" ): - listener.exitToUnary(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToUnary" ): return visitor.visitToUnary(self) @@ -1227,7 +1094,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_unaryExpr - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1245,14 +1112,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterUnaryPlus" ): - listener.enterUnaryPlus(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitUnaryPlus" ): - listener.exitUnaryPlus(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUnaryPlus" ): return visitor.visitUnaryPlus(self) @@ -1272,14 +1131,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.UnaryExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterUnaryMinus" ): - listener.enterUnaryMinus(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitUnaryMinus" ): - listener.exitUnaryMinus(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitUnaryMinus" ): return visitor.visitUnaryMinus(self) @@ -1297,14 +1148,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.AtomContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterToAtom" ): - listener.enterToAtom(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitToAtom" ): - listener.exitToAtom(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitToAtom" ): return visitor.visitToAtom(self) @@ -1366,7 +1209,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_atom - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1382,14 +1225,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.Func4Context,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFunc4Exp" ): - listener.enterFunc4Exp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFunc4Exp" ): - listener.exitFunc4Exp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc4Exp" ): return visitor.visitFunc4Exp(self) @@ -1407,14 +1242,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.Func2Context,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFunc2Exp" ): - listener.enterFunc2Exp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFunc2Exp" ): - listener.exitFunc2Exp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc2Exp" ): return visitor.visitFunc2Exp(self) @@ -1431,14 +1258,6 @@ class MathExprParser ( Parser ): def VARIABLE(self): return self.getToken(MathExprParser.VARIABLE, 0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterVariableExp" ): - listener.enterVariableExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitVariableExp" ): - listener.exitVariableExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitVariableExp" ): return visitor.visitVariableExp(self) @@ -1456,14 +1275,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.Func3Context,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFunc3Exp" ): - listener.enterFunc3Exp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFunc3Exp" ): - listener.exitFunc3Exp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc3Exp" ): return visitor.visitFunc3Exp(self) @@ -1481,14 +1292,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterParenExp" ): - listener.enterParenExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitParenExp" ): - listener.exitParenExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitParenExp" ): return visitor.visitParenExp(self) @@ -1505,14 +1308,6 @@ class MathExprParser ( Parser ): def CONSTANT(self): return self.getToken(MathExprParser.CONSTANT, 0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterConstantExp" ): - listener.enterConstantExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitConstantExp" ): - listener.exitConstantExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitConstantExp" ): return visitor.visitConstantExp(self) @@ -1530,14 +1325,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.Func1Context,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFunc1Exp" ): - listener.enterFunc1Exp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFunc1Exp" ): - listener.exitFunc1Exp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFunc1Exp" ): return visitor.visitFunc1Exp(self) @@ -1555,14 +1342,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.FuncNContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFuncNExp" ): - listener.enterFuncNExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFuncNExp" ): - listener.exitFuncNExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFuncNExp" ): return visitor.visitFuncNExp(self) @@ -1579,14 +1358,6 @@ class MathExprParser ( Parser ): def NUMBER(self): return self.getToken(MathExprParser.NUMBER, 0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterNumberExp" ): - listener.enterNumberExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitNumberExp" ): - listener.exitNumberExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitNumberExp" ): return visitor.visitNumberExp(self) @@ -1609,14 +1380,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAbsExp" ): - listener.enterAbsExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAbsExp" ): - listener.exitAbsExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAbsExp" ): return visitor.visitAbsExp(self) @@ -1637,14 +1400,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterListExp" ): - listener.enterListExp(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitListExp" ): - listener.exitListExp(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitListExp" ): return visitor.visitListExp(self) @@ -1662,19 +1417,19 @@ class MathExprParser ( Parser ): self.state = 126 self._errHandler.sync(self) token = self._input.LA(1) - if token in [6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 35, 37, 38, 39, 40, 41, 42, 46, 47, 48, 49, 50, 59]: + if token in [6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 35, 37, 38, 39, 40, 41, 45, 46, 47, 48, 49, 59]: localctx = MathExprParser.Func1ExpContext(self, localctx) self.enterOuterAlt(localctx, 1) self.state = 99 self.func1() pass - elif token in [12, 26, 27, 34, 44, 57, 58]: + elif token in [12, 26, 27, 34, 43, 57, 58]: localctx = MathExprParser.Func2ExpContext(self, localctx) self.enterOuterAlt(localctx, 2) self.state = 100 self.func2() pass - elif token in [36, 43, 45, 56]: + elif token in [36, 42, 44, 56]: localctx = MathExprParser.Func3ExpContext(self, localctx) self.enterOuterAlt(localctx, 3) self.state = 101 @@ -1686,7 +1441,7 @@ class MathExprParser ( Parser ): self.state = 102 self.func4() pass - elif token in [24, 25, 51, 52, 54, 55]: + elif token in [24, 25, 50, 51, 52, 54, 55]: localctx = MathExprParser.FuncNExpContext(self, localctx) self.enterOuterAlt(localctx, 5) self.state = 103 @@ -1775,7 +1530,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func1 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -1793,14 +1548,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSoftplusFunc" ): - listener.enterSoftplusFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSoftplusFunc" ): - listener.exitSoftplusFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSoftplusFunc" ): return visitor.visitSoftplusFunc(self) @@ -1820,14 +1567,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterTanhFunc" ): - listener.enterTanhFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitTanhFunc" ): - listener.exitTanhFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTanhFunc" ): return visitor.visitTanhFunc(self) @@ -1847,14 +1586,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAcoshFunc" ): - listener.enterAcoshFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAcoshFunc" ): - listener.exitAcoshFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAcoshFunc" ): return visitor.visitAcoshFunc(self) @@ -1874,14 +1605,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSqrtFunc" ): - listener.enterSqrtFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSqrtFunc" ): - listener.exitSqrtFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSqrtFunc" ): return visitor.visitSqrtFunc(self) @@ -1901,14 +1624,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFloorFunc" ): - listener.enterFloorFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFloorFunc" ): - listener.exitFloorFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFloorFunc" ): return visitor.visitFloorFunc(self) @@ -1928,14 +1643,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterRoundFunc" ): - listener.enterRoundFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitRoundFunc" ): - listener.exitRoundFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRoundFunc" ): return visitor.visitRoundFunc(self) @@ -1955,14 +1662,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterCeilFunc" ): - listener.enterCeilFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitCeilFunc" ): - listener.exitCeilFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCeilFunc" ): return visitor.visitCeilFunc(self) @@ -1982,14 +1681,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterGeluFunc" ): - listener.enterGeluFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitGeluFunc" ): - listener.exitGeluFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGeluFunc" ): return visitor.visitGeluFunc(self) @@ -2009,14 +1700,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterPrintFunc" ): - listener.enterPrintFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitPrintFunc" ): - listener.exitPrintFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPrintFunc" ): return visitor.visitPrintFunc(self) @@ -2036,14 +1719,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAbsFunc" ): - listener.enterAbsFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAbsFunc" ): - listener.exitAbsFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAbsFunc" ): return visitor.visitAbsFunc(self) @@ -2063,14 +1738,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAtanFunc" ): - listener.enterAtanFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAtanFunc" ): - listener.exitAtanFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAtanFunc" ): return visitor.visitAtanFunc(self) @@ -2090,14 +1757,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterReluFunc" ): - listener.enterReluFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitReluFunc" ): - listener.exitReluFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReluFunc" ): return visitor.visitReluFunc(self) @@ -2117,14 +1776,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSinhFunc" ): - listener.enterSinhFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSinhFunc" ): - listener.exitSinhFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSinhFunc" ): return visitor.visitSinhFunc(self) @@ -2144,14 +1795,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSigmoidFunc" ): - listener.enterSigmoidFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSigmoidFunc" ): - listener.exitSigmoidFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSigmoidFunc" ): return visitor.visitSigmoidFunc(self) @@ -2171,14 +1814,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterLogFunc" ): - listener.enterLogFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitLogFunc" ): - listener.exitLogFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLogFunc" ): return visitor.visitLogFunc(self) @@ -2198,14 +1833,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterLnFunc" ): - listener.enterLnFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitLnFunc" ): - listener.exitLnFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLnFunc" ): return visitor.visitLnFunc(self) @@ -2225,14 +1852,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterTNormFunc" ): - listener.enterTNormFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitTNormFunc" ): - listener.exitTNormFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTNormFunc" ): return visitor.visitTNormFunc(self) @@ -2252,14 +1871,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSNormFunc" ): - listener.enterSNormFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSNormFunc" ): - listener.exitSNormFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSNormFunc" ): return visitor.visitSNormFunc(self) @@ -2279,14 +1890,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSinFunc" ): - listener.enterSinFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSinFunc" ): - listener.exitSinFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSinFunc" ): return visitor.visitSinFunc(self) @@ -2306,14 +1909,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAcosFunc" ): - listener.enterAcosFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAcosFunc" ): - listener.exitAcosFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAcosFunc" ): return visitor.visitAcosFunc(self) @@ -2333,14 +1928,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterCoshFunc" ): - listener.enterCoshFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitCoshFunc" ): - listener.exitCoshFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCoshFunc" ): return visitor.visitCoshFunc(self) @@ -2360,14 +1947,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAnglFunc" ): - listener.enterAnglFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAnglFunc" ): - listener.exitAnglFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAnglFunc" ): return visitor.visitAnglFunc(self) @@ -2387,14 +1966,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSignFunc" ): - listener.enterSignFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSignFunc" ): - listener.exitSignFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSignFunc" ): return visitor.visitSignFunc(self) @@ -2414,14 +1985,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterTanFunc" ): - listener.enterTanFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitTanFunc" ): - listener.exitTanFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTanFunc" ): return visitor.visitTanFunc(self) @@ -2441,14 +2004,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterPinvFunc" ): - listener.enterPinvFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitPinvFunc" ): - listener.exitPinvFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPinvFunc" ): return visitor.visitPinvFunc(self) @@ -2468,14 +2023,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSifftFunc" ): - listener.enterSifftFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSifftFunc" ): - listener.exitSifftFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSifftFunc" ): return visitor.visitSifftFunc(self) @@ -2495,14 +2042,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterFractFunc" ): - listener.enterFractFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitFractFunc" ): - listener.exitFractFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitFractFunc" ): return visitor.visitFractFunc(self) @@ -2522,14 +2061,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterGammaFunc" ): - listener.enterGammaFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitGammaFunc" ): - listener.exitGammaFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitGammaFunc" ): return visitor.visitGammaFunc(self) @@ -2549,14 +2080,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterCosFunc" ): - listener.enterCosFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitCosFunc" ): - listener.exitCosFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitCosFunc" ): return visitor.visitCosFunc(self) @@ -2576,14 +2099,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAsinFunc" ): - listener.enterAsinFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAsinFunc" ): - listener.exitAsinFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAsinFunc" ): return visitor.visitAsinFunc(self) @@ -2603,14 +2118,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAsinhFunc" ): - listener.enterAsinhFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAsinhFunc" ): - listener.exitAsinhFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAsinhFunc" ): return visitor.visitAsinhFunc(self) @@ -2630,14 +2137,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSfftFunc" ): - listener.enterSfftFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSfftFunc" ): - listener.exitSfftFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSfftFunc" ): return visitor.visitSfftFunc(self) @@ -2657,14 +2156,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAtanhFunc" ): - listener.enterAtanhFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAtanhFunc" ): - listener.exitAtanhFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAtanhFunc" ): return visitor.visitAtanhFunc(self) @@ -2684,14 +2175,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterExpFunc" ): - listener.enterExpFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitExpFunc" ): - listener.exitExpFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitExpFunc" ): return visitor.visitExpFunc(self) @@ -2705,21 +2188,11 @@ class MathExprParser ( Parser ): super().__init__(parser) self.copyFrom(ctx) - def PRINT_SHAPE_L(self): - return self.getToken(MathExprParser.PRINT_SHAPE_L, 0) + def PRINT_SHAPE(self): + return self.getToken(MathExprParser.PRINT_SHAPE, 0) def expr(self): return self.getTypedRuleContext(MathExprParser.ExprContext,0) - def PRINT_SHAPE(self): - return self.getToken(MathExprParser.PRINT_SHAPE, 0) - - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterPrintShapeFunc" ): - listener.enterPrintShapeFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitPrintShapeFunc" ): - listener.exitPrintShapeFunc(self) def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPrintShapeFunc" ): @@ -2734,7 +2207,7 @@ class MathExprParser ( Parser ): localctx = MathExprParser.Func1Context(self, self._ctx, self.state) self.enterRule(localctx, 14, self.RULE_func1) try: - self.state = 308 + self.state = 303 self._errHandler.sync(self) token = self._input.LA(1) if token in [6]: @@ -3073,7 +2546,7 @@ class MathExprParser ( Parser ): self.state = 266 self.match(MathExprParser.T__1) pass - elif token in [46]: + elif token in [45]: localctx = MathExprParser.FractFuncContext(self, localctx) self.enterOuterAlt(localctx, 29) self.state = 268 @@ -3085,7 +2558,7 @@ class MathExprParser ( Parser ): self.state = 271 self.match(MathExprParser.T__1) pass - elif token in [47]: + elif token in [46]: localctx = MathExprParser.ReluFuncContext(self, localctx) self.enterOuterAlt(localctx, 30) self.state = 273 @@ -3097,7 +2570,7 @@ class MathExprParser ( Parser ): self.state = 276 self.match(MathExprParser.T__1) pass - elif token in [48]: + elif token in [47]: localctx = MathExprParser.SoftplusFuncContext(self, localctx) self.enterOuterAlt(localctx, 31) self.state = 278 @@ -3109,7 +2582,7 @@ class MathExprParser ( Parser ): self.state = 281 self.match(MathExprParser.T__1) pass - elif token in [49]: + elif token in [48]: localctx = MathExprParser.GeluFuncContext(self, localctx) self.enterOuterAlt(localctx, 32) self.state = 283 @@ -3121,7 +2594,7 @@ class MathExprParser ( Parser ): self.state = 286 self.match(MathExprParser.T__1) pass - elif token in [50]: + elif token in [49]: localctx = MathExprParser.SignFuncContext(self, localctx) self.enterOuterAlt(localctx, 33) self.state = 288 @@ -3137,7 +2610,7 @@ class MathExprParser ( Parser ): localctx = MathExprParser.PrintShapeFuncContext(self, localctx) self.enterOuterAlt(localctx, 34) self.state = 293 - self.match(MathExprParser.PRINT_SHAPE_L) + self.match(MathExprParser.PRINT_SHAPE) self.state = 294 self.match(MathExprParser.T__0) self.state = 295 @@ -3145,11 +2618,11 @@ class MathExprParser ( Parser ): self.state = 296 self.match(MathExprParser.T__1) pass - elif token in [42]: - localctx = MathExprParser.PrintShapeFuncContext(self, localctx) + elif token in [59]: + localctx = MathExprParser.PinvFuncContext(self, localctx) self.enterOuterAlt(localctx, 35) self.state = 298 - self.match(MathExprParser.PRINT_SHAPE) + self.match(MathExprParser.PINV) self.state = 299 self.match(MathExprParser.T__0) self.state = 300 @@ -3157,18 +2630,6 @@ class MathExprParser ( Parser ): self.state = 301 self.match(MathExprParser.T__1) pass - elif token in [59]: - localctx = MathExprParser.PinvFuncContext(self, localctx) - self.enterOuterAlt(localctx, 36) - self.state = 303 - self.match(MathExprParser.PINV) - self.state = 304 - self.match(MathExprParser.T__0) - self.state = 305 - self.expr() - self.state = 306 - self.match(MathExprParser.T__1) - pass else: raise NoViableAltException(self) @@ -3192,7 +2653,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func2 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -3213,14 +2674,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterTopkFunc" ): - listener.enterTopkFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitTopkFunc" ): - listener.exitTopkFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTopkFunc" ): return visitor.visitTopkFunc(self) @@ -3243,14 +2696,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterBotkFunc" ): - listener.enterBotkFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitBotkFunc" ): - listener.exitBotkFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitBotkFunc" ): return visitor.visitBotkFunc(self) @@ -3273,14 +2718,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterTMaxFunc" ): - listener.enterTMaxFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitTMaxFunc" ): - listener.exitTMaxFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTMaxFunc" ): return visitor.visitTMaxFunc(self) @@ -3303,14 +2740,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterPowFunc" ): - listener.enterPowFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitPowFunc" ): - listener.exitPowFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPowFunc" ): return visitor.visitPowFunc(self) @@ -3333,14 +2762,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterStepFunc" ): - listener.enterStepFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitStepFunc" ): - listener.exitStepFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitStepFunc" ): return visitor.visitStepFunc(self) @@ -3363,14 +2784,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterAtan2Func" ): - listener.enterAtan2Func(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitAtan2Func" ): - listener.exitAtan2Func(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitAtan2Func" ): return visitor.visitAtan2Func(self) @@ -3393,14 +2806,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterTMinFunc" ): - listener.enterTMinFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitTMinFunc" ): - listener.exitTMinFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitTMinFunc" ): return visitor.visitTMinFunc(self) @@ -3414,119 +2819,119 @@ class MathExprParser ( Parser ): localctx = MathExprParser.Func2Context(self, self._ctx, self.state) self.enterRule(localctx, 16, self.RULE_func2) try: - self.state = 359 + self.state = 354 self._errHandler.sync(self) token = self._input.LA(1) if token in [34]: localctx = MathExprParser.PowFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 310 + self.state = 305 self.match(MathExprParser.POWE) - self.state = 311 + self.state = 306 self.match(MathExprParser.T__0) - self.state = 312 + self.state = 307 self.expr() - self.state = 313 + self.state = 308 self.match(MathExprParser.T__3) - self.state = 314 + self.state = 309 self.expr() - self.state = 315 + self.state = 310 self.match(MathExprParser.T__1) pass elif token in [12]: localctx = MathExprParser.Atan2FuncContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 317 + self.state = 312 self.match(MathExprParser.ATAN2) - self.state = 318 + self.state = 313 self.match(MathExprParser.T__0) - self.state = 319 + self.state = 314 self.expr() - self.state = 320 + self.state = 315 self.match(MathExprParser.T__3) - self.state = 321 + self.state = 316 self.expr() - self.state = 322 + self.state = 317 self.match(MathExprParser.T__1) pass elif token in [26]: localctx = MathExprParser.TMinFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 324 + self.state = 319 self.match(MathExprParser.TMIN) - self.state = 325 + self.state = 320 self.match(MathExprParser.T__0) - self.state = 326 + self.state = 321 self.expr() - self.state = 327 + self.state = 322 self.match(MathExprParser.T__3) - self.state = 328 + self.state = 323 self.expr() - self.state = 329 + self.state = 324 self.match(MathExprParser.T__1) pass elif token in [27]: localctx = MathExprParser.TMaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 331 + self.state = 326 self.match(MathExprParser.TMAX) - self.state = 332 + self.state = 327 self.match(MathExprParser.T__0) - self.state = 333 + self.state = 328 self.expr() - self.state = 334 + self.state = 329 self.match(MathExprParser.T__3) + self.state = 330 + self.expr() + self.state = 331 + self.match(MathExprParser.T__1) + pass + elif token in [43]: + localctx = MathExprParser.StepFuncContext(self, localctx) + self.enterOuterAlt(localctx, 5) + self.state = 333 + self.match(MathExprParser.STEP) + self.state = 334 + self.match(MathExprParser.T__0) self.state = 335 self.expr() self.state = 336 - self.match(MathExprParser.T__1) - pass - elif token in [44]: - localctx = MathExprParser.StepFuncContext(self, localctx) - self.enterOuterAlt(localctx, 5) - self.state = 338 - self.match(MathExprParser.STEP) - self.state = 339 - self.match(MathExprParser.T__0) - self.state = 340 - self.expr() - self.state = 341 self.match(MathExprParser.T__3) - self.state = 342 + self.state = 337 self.expr() - self.state = 343 + self.state = 338 self.match(MathExprParser.T__1) pass elif token in [57]: localctx = MathExprParser.TopkFuncContext(self, localctx) self.enterOuterAlt(localctx, 6) - self.state = 345 + self.state = 340 self.match(MathExprParser.TOPK) - self.state = 346 + self.state = 341 self.match(MathExprParser.T__0) - self.state = 347 + self.state = 342 self.expr() - self.state = 348 + self.state = 343 self.match(MathExprParser.T__3) - self.state = 349 + self.state = 344 self.expr() - self.state = 350 + self.state = 345 self.match(MathExprParser.T__1) pass elif token in [58]: localctx = MathExprParser.BotkFuncContext(self, localctx) self.enterOuterAlt(localctx, 7) - self.state = 352 + self.state = 347 self.match(MathExprParser.BOTK) - self.state = 353 + self.state = 348 self.match(MathExprParser.T__0) - self.state = 354 + self.state = 349 self.expr() - self.state = 355 + self.state = 350 self.match(MathExprParser.T__3) - self.state = 356 + self.state = 351 self.expr() - self.state = 357 + self.state = 352 self.match(MathExprParser.T__1) pass else: @@ -3552,7 +2957,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func3 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -3573,14 +2978,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterLerpFunc" ): - listener.enterLerpFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitLerpFunc" ): - listener.exitLerpFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitLerpFunc" ): return visitor.visitLerpFunc(self) @@ -3603,14 +3000,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSmoothstepFunc" ): - listener.enterSmoothstepFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSmoothstepFunc" ): - listener.exitSmoothstepFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSmoothstepFunc" ): return visitor.visitSmoothstepFunc(self) @@ -3633,14 +3022,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterRangeFunc" ): - listener.enterRangeFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitRangeFunc" ): - listener.exitRangeFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitRangeFunc" ): return visitor.visitRangeFunc(self) @@ -3663,14 +3044,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterClampFunc" ): - listener.enterClampFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitClampFunc" ): - listener.exitClampFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitClampFunc" ): return visitor.visitClampFunc(self) @@ -3684,87 +3057,87 @@ class MathExprParser ( Parser ): localctx = MathExprParser.Func3Context(self, self._ctx, self.state) self.enterRule(localctx, 18, self.RULE_func3) try: - self.state = 397 + self.state = 392 self._errHandler.sync(self) token = self._input.LA(1) if token in [36]: localctx = MathExprParser.ClampFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 361 + self.state = 356 self.match(MathExprParser.CLAMP) - self.state = 362 + self.state = 357 self.match(MathExprParser.T__0) + self.state = 358 + self.expr() + self.state = 359 + self.match(MathExprParser.T__3) + self.state = 360 + self.expr() + self.state = 361 + self.match(MathExprParser.T__3) + self.state = 362 + self.expr() self.state = 363 - self.expr() - self.state = 364 - self.match(MathExprParser.T__3) + self.match(MathExprParser.T__1) + pass + elif token in [42]: + localctx = MathExprParser.LerpFuncContext(self, localctx) + self.enterOuterAlt(localctx, 2) self.state = 365 - self.expr() + self.match(MathExprParser.LERP) self.state = 366 - self.match(MathExprParser.T__3) + self.match(MathExprParser.T__0) self.state = 367 self.expr() self.state = 368 + self.match(MathExprParser.T__3) + self.state = 369 + self.expr() + self.state = 370 + self.match(MathExprParser.T__3) + self.state = 371 + self.expr() + self.state = 372 self.match(MathExprParser.T__1) pass - elif token in [43]: - localctx = MathExprParser.LerpFuncContext(self, localctx) - self.enterOuterAlt(localctx, 2) - self.state = 370 - self.match(MathExprParser.LERP) - self.state = 371 - self.match(MathExprParser.T__0) - self.state = 372 - self.expr() - self.state = 373 - self.match(MathExprParser.T__3) + elif token in [44]: + localctx = MathExprParser.SmoothstepFuncContext(self, localctx) + self.enterOuterAlt(localctx, 3) self.state = 374 - self.expr() + self.match(MathExprParser.SMOOTHSTEP) self.state = 375 - self.match(MathExprParser.T__3) + self.match(MathExprParser.T__0) self.state = 376 self.expr() self.state = 377 - self.match(MathExprParser.T__1) - pass - elif token in [45]: - localctx = MathExprParser.SmoothstepFuncContext(self, localctx) - self.enterOuterAlt(localctx, 3) + self.match(MathExprParser.T__3) + self.state = 378 + self.expr() self.state = 379 - self.match(MathExprParser.SMOOTHSTEP) + self.match(MathExprParser.T__3) self.state = 380 - self.match(MathExprParser.T__0) + self.expr() self.state = 381 - self.expr() - self.state = 382 - self.match(MathExprParser.T__3) - self.state = 383 - self.expr() - self.state = 384 - self.match(MathExprParser.T__3) - self.state = 385 - self.expr() - self.state = 386 self.match(MathExprParser.T__1) pass elif token in [56]: localctx = MathExprParser.RangeFuncContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 388 + self.state = 383 self.match(MathExprParser.RANGE) - self.state = 389 + self.state = 384 self.match(MathExprParser.T__0) + self.state = 385 + self.expr() + self.state = 386 + self.match(MathExprParser.T__3) + self.state = 387 + self.expr() + self.state = 388 + self.match(MathExprParser.T__3) + self.state = 389 + self.expr() self.state = 390 - self.expr() - self.state = 391 - self.match(MathExprParser.T__3) - self.state = 392 - self.expr() - self.state = 393 - self.match(MathExprParser.T__3) - self.state = 394 - self.expr() - self.state = 395 self.match(MathExprParser.T__1) pass else: @@ -3790,7 +3163,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_func4 - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -3811,14 +3184,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSwapFunc" ): - listener.enterSwapFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSwapFunc" ): - listener.exitSwapFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSwapFunc" ): return visitor.visitSwapFunc(self) @@ -3834,25 +3199,25 @@ class MathExprParser ( Parser ): try: localctx = MathExprParser.SwapFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 399 + self.state = 394 self.match(MathExprParser.SWAP) - self.state = 400 + self.state = 395 self.match(MathExprParser.T__0) + self.state = 396 + self.expr() + self.state = 397 + self.match(MathExprParser.T__3) + self.state = 398 + self.expr() + self.state = 399 + self.match(MathExprParser.T__3) + self.state = 400 + self.expr() self.state = 401 - self.expr() + self.match(MathExprParser.T__3) self.state = 402 - self.match(MathExprParser.T__3) + self.expr() self.state = 403 - self.expr() - self.state = 404 - self.match(MathExprParser.T__3) - self.state = 405 - self.expr() - self.state = 406 - self.match(MathExprParser.T__3) - self.state = 407 - self.expr() - self.state = 408 self.match(MathExprParser.T__1) except RecognitionException as re: localctx.exception = re @@ -3874,7 +3239,7 @@ class MathExprParser ( Parser ): def getRuleIndex(self): return MathExprParser.RULE_funcN - + def copyFrom(self, ctx:ParserRuleContext): super().copyFrom(ctx) @@ -3895,14 +3260,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSMaxFunc" ): - listener.enterSMaxFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSMaxFunc" ): - listener.exitSMaxFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSMaxFunc" ): return visitor.visitSMaxFunc(self) @@ -3925,14 +3282,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterMapFunc" ): - listener.enterMapFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitMapFunc" ): - listener.exitMapFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitMapFunc" ): return visitor.visitMapFunc(self) @@ -3940,6 +3289,28 @@ class MathExprParser ( Parser ): return visitor.visitChildren(self) + class EzConvFuncContext(FuncNContext): + + def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext + super().__init__(parser) + self.copyFrom(ctx) + + def EZCONV(self): + return self.getToken(MathExprParser.EZCONV, 0) + def expr(self, i:int=None): + if i is None: + return self.getTypedRuleContexts(MathExprParser.ExprContext) + else: + return self.getTypedRuleContext(MathExprParser.ExprContext,i) + + + def accept(self, visitor:ParseTreeVisitor): + if hasattr( visitor, "visitEzConvFunc" ): + return visitor.visitEzConvFunc(self) + else: + return visitor.visitChildren(self) + + class PermuteFuncContext(FuncNContext): def __init__(self, parser, ctx:ParserRuleContext): # actually a MathExprParser.FuncNContext @@ -3955,14 +3326,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterPermuteFunc" ): - listener.enterPermuteFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitPermuteFunc" ): - listener.exitPermuteFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitPermuteFunc" ): return visitor.visitPermuteFunc(self) @@ -3985,14 +3348,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterReshapeFunc" ): - listener.enterReshapeFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitReshapeFunc" ): - listener.exitReshapeFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitReshapeFunc" ): return visitor.visitReshapeFunc(self) @@ -4015,14 +3370,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterSMinFunc" ): - listener.enterSMinFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitSMinFunc" ): - listener.exitSMinFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitSMinFunc" ): return visitor.visitSMinFunc(self) @@ -4045,14 +3392,6 @@ class MathExprParser ( Parser ): return self.getTypedRuleContext(MathExprParser.ExprContext,i) - def enterRule(self, listener:ParseTreeListener): - if hasattr( listener, "enterConvFunc" ): - listener.enterConvFunc(self) - - def exitRule(self, listener:ParseTreeListener): - if hasattr( listener, "exitConvFunc" ): - listener.exitConvFunc(self) - def accept(self, visitor:ParseTreeVisitor): if hasattr( visitor, "visitConvFunc" ): return visitor.visitConvFunc(self) @@ -4067,139 +3406,165 @@ class MathExprParser ( Parser ): self.enterRule(localctx, 22, self.RULE_funcN) self._la = 0 # Token type try: - self.state = 470 + self.state = 476 self._errHandler.sync(self) token = self._input.LA(1) if token in [24]: localctx = MathExprParser.SMinFuncContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 410 + self.state = 405 self.match(MathExprParser.SMIN) - self.state = 411 + self.state = 406 self.match(MathExprParser.T__0) - self.state = 412 + self.state = 407 self.expr() - self.state = 417 + self.state = 412 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 413 + self.state = 408 self.match(MathExprParser.T__3) - self.state = 414 + self.state = 409 self.expr() - self.state = 419 + self.state = 414 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 420 + self.state = 415 self.match(MathExprParser.T__1) pass elif token in [25]: localctx = MathExprParser.SMaxFuncContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 422 + self.state = 417 self.match(MathExprParser.SMAX) - self.state = 423 + self.state = 418 self.match(MathExprParser.T__0) - self.state = 424 + self.state = 419 self.expr() - self.state = 429 + self.state = 424 self._errHandler.sync(self) _la = self._input.LA(1) while _la==4: - self.state = 425 + self.state = 420 self.match(MathExprParser.T__3) - self.state = 426 + self.state = 421 self.expr() - self.state = 431 + self.state = 426 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 432 + self.state = 427 self.match(MathExprParser.T__1) pass - elif token in [51]: + elif token in [50]: localctx = MathExprParser.MapFuncContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 434 + self.state = 429 self.match(MathExprParser.MAP) - self.state = 435 + self.state = 430 self.match(MathExprParser.T__0) - self.state = 436 + self.state = 431 self.expr() - self.state = 439 + self.state = 434 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 437 + self.state = 432 self.match(MathExprParser.T__3) - self.state = 438 + self.state = 433 self.expr() - self.state = 441 + self.state = 436 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==4): break - self.state = 443 + self.state = 438 + self.match(MathExprParser.T__1) + pass + elif token in [51]: + localctx = MathExprParser.EzConvFuncContext(self, localctx) + self.enterOuterAlt(localctx, 4) + self.state = 440 + self.match(MathExprParser.EZCONV) + self.state = 441 + self.match(MathExprParser.T__0) + self.state = 442 + self.expr() + self.state = 445 + self._errHandler.sync(self) + _la = self._input.LA(1) + while True: + self.state = 443 + self.match(MathExprParser.T__3) + self.state = 444 + self.expr() + self.state = 447 + self._errHandler.sync(self) + _la = self._input.LA(1) + if not (_la==4): + break + + self.state = 449 self.match(MathExprParser.T__1) pass elif token in [52]: localctx = MathExprParser.ConvFuncContext(self, localctx) - self.enterOuterAlt(localctx, 4) - self.state = 445 + self.enterOuterAlt(localctx, 5) + self.state = 451 self.match(MathExprParser.CONV) - self.state = 446 + self.state = 452 self.match(MathExprParser.T__0) - self.state = 447 + self.state = 453 self.expr() - self.state = 450 + self.state = 456 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 448 + self.state = 454 self.match(MathExprParser.T__3) - self.state = 449 + self.state = 455 self.expr() - self.state = 452 + self.state = 458 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==4): break - self.state = 454 + self.state = 460 self.match(MathExprParser.T__1) pass elif token in [54]: localctx = MathExprParser.PermuteFuncContext(self, localctx) - self.enterOuterAlt(localctx, 5) - self.state = 456 + self.enterOuterAlt(localctx, 6) + self.state = 462 self.match(MathExprParser.PERM) - self.state = 457 + self.state = 463 self.match(MathExprParser.T__0) - self.state = 458 + self.state = 464 self.expr() - self.state = 459 + self.state = 465 self.match(MathExprParser.T__3) - self.state = 460 + self.state = 466 self.expr() - self.state = 461 + self.state = 467 self.match(MathExprParser.T__1) pass elif token in [55]: localctx = MathExprParser.ReshapeFuncContext(self, localctx) - self.enterOuterAlt(localctx, 6) - self.state = 463 + self.enterOuterAlt(localctx, 7) + self.state = 469 self.match(MathExprParser.RESHAPE) - self.state = 464 + self.state = 470 self.match(MathExprParser.T__0) - self.state = 465 + self.state = 471 self.expr() - self.state = 466 + self.state = 472 self.match(MathExprParser.T__3) - self.state = 467 + self.state = 473 self.expr() - self.state = 468 + self.state = 474 self.match(MathExprParser.T__1) pass else: @@ -4230,49 +3595,49 @@ class MathExprParser ( Parser ): def compExpr_sempred(self, localctx:CompExprContext, predIndex:int): if predIndex == 0: return self.precpred(self._ctx, 7) - + if predIndex == 1: return self.precpred(self._ctx, 6) - + if predIndex == 2: return self.precpred(self._ctx, 5) - + if predIndex == 3: return self.precpred(self._ctx, 4) - + if predIndex == 4: return self.precpred(self._ctx, 3) - + if predIndex == 5: return self.precpred(self._ctx, 2) - + def addExpr_sempred(self, localctx:AddExprContext, predIndex:int): if predIndex == 6: return self.precpred(self._ctx, 3) - + if predIndex == 7: return self.precpred(self._ctx, 2) - + def mulExpr_sempred(self, localctx:MulExprContext, predIndex:int): if predIndex == 8: return self.precpred(self._ctx, 4) - + if predIndex == 9: return self.precpred(self._ctx, 3) - + if predIndex == 10: return self.precpred(self._ctx, 2) - + diff --git a/more_math/Parser/MathExprVisitor.py b/more_math/Parser/MathExprVisitor.py index 28d6e47..1328c5c 100644 --- a/more_math/Parser/MathExprVisitor.py +++ b/more_math/Parser/MathExprVisitor.py @@ -1,4 +1,4 @@ -# Generated from ./MathExpr.g4 by ANTLR 4.13.2 +# Generated from MathExpr.g4 by ANTLR 4.13.2 from antlr4 import * if "." in __name__: from .MathExprParser import MathExprParser @@ -414,6 +414,11 @@ class MathExprVisitor(ParseTreeVisitor): return self.visitChildren(ctx) + # Visit a parse tree produced by MathExprParser#EzConvFunc. + def visitEzConvFunc(self, ctx:MathExprParser.EzConvFuncContext): + return self.visitChildren(ctx) + + # Visit a parse tree produced by MathExprParser#ConvFunc. def visitConvFunc(self, ctx:MathExprParser.ConvFuncContext): return self.visitChildren(ctx) diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index fbc8354..f5b672d 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -648,44 +648,9 @@ class UnifiedMathVisitor(MathExprVisitor): final_shape = list(leading_shape) + list(actual_spatial) return output.reshape(final_shape) - def _apply_conv_internal(self, conv_input, kernel_val, kernel_sizes, spatial_dims_count): - """ - Executes the convolution with asymmetric padding support for even kernels. - Input: [Batch, Channel, Spatial...] - Kernel: [Spatial...] (to be promoted/repeated) - kernel_sizes: [W, H, D] - """ - in_channels = conv_input.size(1) - - pads = [] - for k in kernel_sizes: - p_total = k - 1 - p_low = k // 2 - p_high = p_total - p_low - pads.extend([p_low, p_high]) - - padded_input = torch.nn.functional.pad(conv_input, tuple(pads), mode="constant", value=0) - - actual_kernel_sizes = kernel_sizes[::-1] - - if kernel_val.numel() == 1: - kernel_val = kernel_val.expand(tuple(actual_kernel_sizes)) - elif kernel_val.ndim != spatial_dims_count: - kernel_val = kernel_val.reshape(tuple(actual_kernel_sizes)) - - final_kernel = kernel_val.unsqueeze(0).unsqueeze(0) - final_kernel = final_kernel.to(conv_input.dtype) - final_kernel = final_kernel.repeat(in_channels, 1, *([1] * spatial_dims_count)) - - conv_fn = F.conv1d if spatial_dims_count == 1 else (F.conv2d if spatial_dims_count == 2 else F.conv3d) - - result = conv_fn(padded_input, final_kernel, padding=0, groups=in_channels) - return result - - def visitConvFunc(self, ctx): + def _parse_conv_args(self, ctx): input_raw = self.visit(ctx.expr(0)) tensor = self._promote_to_tensor(input_raw) - input_ndim = tensor.ndim num_args = len(ctx.expr()) if num_args < 3: raise ValueError("conv() requires at least 3 arguments") @@ -730,6 +695,46 @@ class UnifiedMathVisitor(MathExprVisitor): self.shape = original_shape self.variables = old_vars + return tensor, kernel_val, kernel_sizes, spatial_dims_count + + def _apply_conv_internal(self, conv_input, kernel_val, kernel_sizes, spatial_dims_count): + """ + Executes the convolution with asymmetric padding support for even kernels. + Input: [Batch, Channel, Spatial...] + Kernel: [Spatial...] (to be promoted/repeated) + kernel_sizes: [W, H, D] + """ + in_channels = conv_input.size(1) + + pads = [] + for k in kernel_sizes: + p_total = k - 1 + p_low = k // 2 + p_high = p_total - p_low + pads.extend([p_low, p_high]) + + padded_input = torch.nn.functional.pad(conv_input, tuple(pads), mode="constant", value=0) + + actual_kernel_sizes = kernel_sizes[::-1] + + if kernel_val.numel() == 1: + kernel_val = kernel_val.expand(tuple(actual_kernel_sizes)) + elif kernel_val.ndim != spatial_dims_count: + kernel_val = kernel_val.reshape(tuple(actual_kernel_sizes)) + + final_kernel = kernel_val.unsqueeze(0).unsqueeze(0) + final_kernel = final_kernel.to(conv_input.dtype) + final_kernel = final_kernel.repeat(in_channels, 1, *([1] * spatial_dims_count)) + + conv_fn = F.conv1d if spatial_dims_count == 1 else (F.conv2d if spatial_dims_count == 2 else F.conv3d) + + result = conv_fn(padded_input, final_kernel, padding=0, groups=in_channels) + return result + + def visitEzConvFunc(self, ctx): + tensor, kernel_val, kernel_sizes, spatial_dims_count = self._parse_conv_args(ctx) + input_ndim = tensor.ndim + is_channels_first = False if tensor.ndim == spatial_dims_count + 2: c_front = tensor.shape[1] @@ -791,3 +796,27 @@ class UnifiedMathVisitor(MathExprVisitor): out = out.permute(0, 4, 1, 2, 3) return out + + def visitConvFunc(self, ctx): + tensor, kernel_val, kernel_sizes, spatial_dims_count = self._parse_conv_args(ctx) + + # Expect (Batch..., Channel, Spatial...) + # spatial_dims_count = 1, 2, or 3 + # Must have at least Channel + Spatial dims + min_dims = spatial_dims_count + 1 + if tensor.ndim < min_dims: + raise ValueError(f"convolution() input requires at least Channels + Spatial dimensions. Got shape {tensor.shape} for {spatial_dims_count}D conv.") + + spatial_shape = tensor.shape[-spatial_dims_count:] + in_channels = tensor.shape[-(spatial_dims_count + 1)] + batch_shape = tensor.shape[:-(spatial_dims_count + 1)] + + total_batch = 1 + for s in batch_shape: + total_batch *= s + + conv_input = tensor.reshape(total_batch, in_channels, *spatial_shape) + + result = self._apply_conv_internal(conv_input, kernel_val, kernel_sizes, spatial_dims_count) + + return result.reshape(*batch_shape, in_channels, *spatial_shape)