Search in sources :

Example 1 with NestedExplodedLoopTestNode

use of org.graalvm.compiler.truffle.test.nodes.NestedExplodedLoopTestNode in project graal by oracle.

the class SimplePartialEvaluationTest method nestedLoopExplosion.

@Test
public void nestedLoopExplosion() {
    FrameDescriptor fd = new FrameDescriptor();
    AbstractTestNode result = new AddTestNode(new NestedExplodedLoopTestNode(5), new ConstantTestNode(17));
    assertPartialEvalEquals("constant42", new RootTestNode(fd, "nestedLoopExplosion", result));
}
Also used : FrameDescriptor(com.oracle.truffle.api.frame.FrameDescriptor) AbstractTestNode(org.graalvm.compiler.truffle.test.nodes.AbstractTestNode) ConstantTestNode(org.graalvm.compiler.truffle.test.nodes.ConstantTestNode) NestedExplodedLoopTestNode(org.graalvm.compiler.truffle.test.nodes.NestedExplodedLoopTestNode) RootTestNode(org.graalvm.compiler.truffle.test.nodes.RootTestNode) AddTestNode(org.graalvm.compiler.truffle.test.nodes.AddTestNode) Test(org.junit.Test)

Aggregations

FrameDescriptor (com.oracle.truffle.api.frame.FrameDescriptor)1 AbstractTestNode (org.graalvm.compiler.truffle.test.nodes.AbstractTestNode)1 AddTestNode (org.graalvm.compiler.truffle.test.nodes.AddTestNode)1 ConstantTestNode (org.graalvm.compiler.truffle.test.nodes.ConstantTestNode)1 NestedExplodedLoopTestNode (org.graalvm.compiler.truffle.test.nodes.NestedExplodedLoopTestNode)1 RootTestNode (org.graalvm.compiler.truffle.test.nodes.RootTestNode)1 Test (org.junit.Test)1