X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FTransformation2.scl;h=84e0c0b4f90dc1d04cd77a4c60e336174facb34c;hp=dbb1609a9c79e1f6c16e256085dafd1a7e0e2597;hb=HEAD;hpb=dcca7344e1da6f975859fd79fbc6cead7d363042 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Transformation2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Transformation2.scl index dbb1609a9..84e0c0b4f 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Transformation2.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Transformation2.scl @@ -10,16 +10,38 @@ rule FibRecurrence where @where Fib (?n+2) (?a + 1) -/* + rule PrintIt where @when Fib ?n ?a @to Execute (print "\(?n) -> \(?a)") -*/ + main = transformation OneShotForward where Fib 0 1 Fib 1 1 -- -() +21 -> 11 +20 -> 11 +19 -> 10 +18 -> 10 +17 -> 9 +16 -> 9 +15 -> 8 +14 -> 8 +13 -> 7 +12 -> 7 +11 -> 6 +10 -> 6 +9 -> 5 +8 -> 5 +7 -> 4 +6 -> 4 +5 -> 3 +4 -> 3 +3 -> 2 +2 -> 2 +1 -> 1 +0 -> 1 +() \ No newline at end of file