src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/SubstitutionNodeSourcePositionTest.java
author dlong
Thu, 31 Oct 2019 16:54:16 -0700
changeset 58877 aec7bf35d6f5
parent 58299 6df94ce3ab2f
permissions -rw-r--r--
8233273: Update Graal Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     1
/*
58299
6df94ce3ab2f 8229201: Update Graal
dlong
parents: 54601
diff changeset
     2
 * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     4
 *
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     7
 * published by the Free Software Foundation.
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     8
 *
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    13
 * accompanied this code).
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    14
 *
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    18
 *
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    21
 * questions.
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    22
 */
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    23
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    24
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    25
package org.graalvm.compiler.replacements.test;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    26
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    27
import static org.graalvm.compiler.core.GraalCompiler.compileGraph;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    28
import static org.graalvm.compiler.core.common.GraalOptions.TrackNodeSourcePosition;
54601
c40b2a190173 8221598: Update Graal
jwilhelm
parents: 52578
diff changeset
    29
import static org.graalvm.compiler.core.common.GraalOptions.UseEncodedGraphs;
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    30
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    31
import java.util.List;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    32
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    33
import org.graalvm.compiler.api.directives.GraalDirectives;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    34
import org.graalvm.compiler.api.replacements.ClassSubstitution;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    35
import org.graalvm.compiler.api.replacements.MethodSubstitution;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    36
import org.graalvm.compiler.code.CompilationResult;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    37
import org.graalvm.compiler.code.SourceMapping;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    38
import org.graalvm.compiler.graph.Node;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    39
import org.graalvm.compiler.graph.NodeSourcePosition;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    40
import org.graalvm.compiler.lir.asm.CompilationResultBuilderFactory;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    41
import org.graalvm.compiler.nodes.StructuredGraph;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    42
import org.graalvm.compiler.nodes.debug.BlackholeNode;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    43
import org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    44
import org.graalvm.compiler.options.OptionValues;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    45
import org.graalvm.compiler.phases.OptimisticOptimizations;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    46
import org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    47
import org.junit.Assert;
54601
c40b2a190173 8221598: Update Graal
jwilhelm
parents: 52578
diff changeset
    48
import org.junit.Assume;
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    49
import org.junit.Test;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    50
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    51
import jdk.vm.ci.meta.ResolvedJavaMethod;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    52
import jdk.vm.ci.meta.ResolvedJavaType;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    53
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    54
/**
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    55
 * Test that various substitution implementations produce the expected
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    56
 * {@link org.graalvm.compiler.graph.NodeSourcePosition} structure. Method substitutions and method
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    57
 * plugins should leave behind a frame for the substitution. Method substitutions should have
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    58
 * bytecodes below the substitution. Snippet lowerings should just have the bytecodes without a
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    59
 * marker frame.
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    60
 */
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    61
public class SubstitutionNodeSourcePositionTest extends ReplacementsTest {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    62
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    63
    private static class TestMethod {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    64
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    65
        public static int test(int i) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    66
            return i;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    67
        }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    68
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    69
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    70
    @ClassSubstitution(TestMethod.class)
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    71
    public static class TestMethodSubstitution {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    72
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    73
        @MethodSubstitution
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    74
        public static int test(int i) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    75
            blackhole(i);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    76
            return i;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    77
        }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    78
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    79
        @Node.NodeIntrinsic(BlackholeNode.class)
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    80
        private static native void blackhole(int i);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    81
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    82
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    83
    @Override
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    84
    protected void registerInvocationPlugins(InvocationPlugins invocationPlugins) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    85
        new PluginFactory_SubstitutionNodeSourcePositionTest().registerPlugins(invocationPlugins, null);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    86
        ClassfileBytecodeProvider bytecodeProvider = getSystemClassLoaderBytecodeProvider();
58877
aec7bf35d6f5 8233273: Update Graal
dlong
parents: 58299
diff changeset
    87
        InvocationPlugins.Registration r = new InvocationPlugins.Registration(invocationPlugins, TestMethod.class, getReplacements(), bytecodeProvider);
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    88
        r.registerMethodSubstitution(TestMethodSubstitution.class, "test", int.class);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    89
        super.registerInvocationPlugins(invocationPlugins);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    90
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    91
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    92
    public int methodSubstitution() {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    93
        return TestMethod.test(42);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    94
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    95
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    96
    @Test
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    97
    public void testMethodSubstitution() {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    98
        // @formatter:off
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
    99
        // Expect mappings of the form:
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   100
        //   at org.graalvm.compiler.replacements.test.SubstitutionNodeSourcePositionTest$TestMethodSubstitution.blackhole(int) [bci: -1]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   101
        //   at org.graalvm.compiler.replacements.test.SubstitutionNodeSourcePositionTest$TestMethodSubstitution.test(SubstitutionNodeSourcePositionTest.java:71) [bci: 1] Substitution
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   102
        //   at org.graalvm.compiler.replacements.test.SubstitutionNodeSourcePositionTest$TestMethod.test(int) [bci: -1]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   103
        //   at org.graalvm.compiler.replacements.test.SubstitutionNodeSourcePositionTest.methodSubstitution(SubstitutionNodeSourcePositionTest.java:89) [bci: 2]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   104
        // @formatter:on
54601
c40b2a190173 8221598: Update Graal
jwilhelm
parents: 52578
diff changeset
   105
        Assume.assumeFalse(UseEncodedGraphs.getValue(getInitialOptions()));
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   106
        checkMappings("methodSubstitution", true, TestMethod.class, "test");
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   107
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   108
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   109
    public void snippetLowering(String[] array, String value) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   110
        array[0] = value;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   111
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   112
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   113
    @Test
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   114
    public void testSnippetLowering() {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   115
        // @formatter:off
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   116
        // Expect mappings of the form:
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   117
        //   at org.graalvm.compiler.hotspot.replacements.WriteBarrierSnippets.serialWriteBarrier(WriteBarrierSnippets.java:140) [bci: 18]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   118
        //   at org.graalvm.compiler.hotspot.replacements.WriteBarrierSnippets.serialPreciseWriteBarrier(WriteBarrierSnippets.java:158) [bci: 5] Substitution
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   119
        //   at org.graalvm.compiler.hotspot.replacements.WriteBarrierSnippets.serialPreciseWriteBarrier(AddressNode$Address, WriteBarrierSnippets$Counters) [bci: -1] Substitution
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   120
        //   at org.graalvm.compiler.replacements.test.SubstitutionNodeSourcePositionTest.snippetLowering(SubstitutionNodeSourcePositionTest.java:99) [bci: 3]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   121
        // @formatter:on
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   122
        //
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   123
        // The precise snippet bytecodes don't matter, just ensure that some actually appear after
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   124
        // lowering.
54601
c40b2a190173 8221598: Update Graal
jwilhelm
parents: 52578
diff changeset
   125
        Assume.assumeFalse(UseEncodedGraphs.getValue(getInitialOptions()));
52578
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   126
        checkMappings("snippetLowering", true, SubstitutionNodeSourcePositionTest.class, "snippetLowering");
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   127
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   128
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   129
    public int methodPlugin(int i) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   130
        GraalDirectives.blackhole(i);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   131
        return i;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   132
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   133
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   134
    @Test
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   135
    public void testMethodPlugin() {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   136
        // @formatter:off
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   137
        // Expect mappings of the form:
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   138
        //   at org.graalvm.compiler.api.directives.GraalDirectives.blackhole(int) [bci: -1]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   139
        //   at org.graalvm.compiler.replacements.test.SubstitutionNodeSourcePositionTest.methodPlugin(SubstitutionNodeSourcePositionTest.java:109) [bci: 1]
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   140
        // @formatter:on
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   141
        checkMappings("methodPlugin", false, GraalDirectives.class, "blackhole");
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   142
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   143
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   144
    private void checkMappings(String snippetMethod, boolean hasBytecodes, Class<?> boundaryClass, String boundaryMethod) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   145
        List<SourceMapping> mappings = getSourceMappings(snippetMethod);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   146
        ResolvedJavaType resolvedJavaType = getMetaAccess().lookupJavaType(boundaryClass);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   147
        boolean found = false;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   148
        Assert.assertTrue("must have mappings", !mappings.isEmpty());
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   149
        for (SourceMapping mapping : mappings) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   150
            NodeSourcePosition callee = null;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   151
            for (NodeSourcePosition pos = mapping.getSourcePosition(); pos != null; pos = pos.getCaller()) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   152
                ResolvedJavaMethod method = pos.getMethod();
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   153
                if (method.getName().equals(boundaryMethod) && method.getDeclaringClass().equals(resolvedJavaType)) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   154
                    if ((callee != null) == hasBytecodes) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   155
                        if (hasBytecodes) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   156
                            assertTrue(callee.isSubstitution());
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   157
                        }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   158
                        assertTrue(pos.trim() == pos);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   159
                        assertTrue(mapping.getSourcePosition().trim() == pos);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   160
                        found = true;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   161
                    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   162
                }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   163
                callee = pos;
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   164
            }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   165
        }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   166
        Assert.assertTrue("must have substitution for " + resolvedJavaType + "." + boundaryMethod, found);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   167
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   168
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   169
    private List<SourceMapping> getSourceMappings(String name) {
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   170
        final ResolvedJavaMethod method = getResolvedJavaMethod(name);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   171
        final OptionValues options = new OptionValues(getInitialOptions(), TrackNodeSourcePosition, true);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   172
        final StructuredGraph graph = parseEager(method, StructuredGraph.AllowAssumptions.YES, options);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   173
        final CompilationResult cr = compileGraph(graph, graph.method(), getProviders(), getBackend(), getDefaultGraphBuilderSuite(), OptimisticOptimizations.ALL, graph.getProfilingInfo(),
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   174
                        createSuites(graph.getOptions()), createLIRSuites(graph.getOptions()), new CompilationResult(graph.compilationId()), CompilationResultBuilderFactory.Default, true);
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   175
        return cr.getSourceMappings();
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   176
    }
7dd81e82d083 8210777: Update Graal
dlong
parents:
diff changeset
   177
}