diff --git a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Ackermann.sl b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Ackermann.sl index 9154926141a0..cf612101584a 100644 --- a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Ackermann.sl +++ b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Ackermann.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function ack(m,n) { if (m == 0) { return n + 1; @@ -17,4 +22,3 @@ function execute() { function main() { return execute; } - diff --git a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Fibonacci.sl b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Fibonacci.sl index 7cd80f38451d..f1d8aef1cee2 100644 --- a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Fibonacci.sl +++ b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/Fibonacci.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function fib(num) { if (num < 1) {return 0;} n1 = 0; diff --git a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax01.sl b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax01.sl index 7ce421414040..cb1d5814e363 100644 --- a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax01.sl +++ b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax01.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { return -1; } diff --git a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax02.sl b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax02.sl index 2f5969d36699..7dead5b6a824 100644 --- a/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax02.sl +++ b/truffle/src/com.oracle.truffle.sl.tck/src/com/oracle/truffle/sl/tck/resources/InvalidSyntax02.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function test(n) { a = 1; if (a > 0) { diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Add.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Add.sl index 58d9114c6d27..f422ffa31128 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Add.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Add.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println(3 + 4); println(3 + "4"); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Arithmetic.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Arithmetic.sl index 6a336ae3aedb..49969c231696 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Arithmetic.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Arithmetic.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println(3 + 4 - 2); println(3 - 4 + 2); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Break.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Break.sl index acfa69326175..3e330355aad1 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Break.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Break.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { i = 0; while (i < 1000) { diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Builtins.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Builtins.sl index cdefcdec6db8..4b2891ebf2a3 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Builtins.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Builtins.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println("Hello World!"); nanoTime(); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Call.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Call.sl index 30ffc6cbf827..b93548adabff 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Call.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Call.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function ret(a) { return a; } function dub(a) { return a * 2; } function inc(a) { return a + 1; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Comparison.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Comparison.sl index f46e4e371658..f291da7c895b 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Comparison.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Comparison.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println("<"); println(4 < 20); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/ControlFlow.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/ControlFlow.sl index 125f36532c26..17255f7ff489 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/ControlFlow.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/ControlFlow.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function foo() {} function bar() {} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/DefineFunction.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/DefineFunction.sl index 0e9f48770351..c47b71e2032e 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/DefineFunction.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/DefineFunction.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function foo() { println(test(40, 2)); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Div.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Div.sl index 014b31d8ef06..1c73909a0b5b 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Div.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Div.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println(4 / 2); println(4 / 4000000000000); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Equal.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Equal.sl index 749cb8a17466..0d82537abe9e 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Equal.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Equal.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function e(a, b) { return a == b; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Eval.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Eval.sl index 988c014009b3..7f68b7cd8e69 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Eval.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Eval.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { eval("sl", "function foo() { return 14 + 2; }"); println(foo()); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Fibonacci.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Fibonacci.sl index 957d11987607..939f39fd44cf 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Fibonacci.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Fibonacci.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function fib(num) { if (num < 1) {return 0;} n1 = 0; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/FunctionLiteral.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/FunctionLiteral.sl index d59fd9695b22..2e7afd998d2e 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/FunctionLiteral.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/FunctionLiteral.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function add(a, b) { return a + b; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloEqualsWorld.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloEqualsWorld.sl index b2cb03ebf0ce..d8b2d207ffe2 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloEqualsWorld.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloEqualsWorld.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function doIt(a) { println("Initial stack trace:"); println(stacktrace()); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloWorld.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloWorld.sl index d2f2d205bcf2..c1e98401f7ca 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloWorld.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/HelloWorld.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println("Hello World!"); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Inlining.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Inlining.sl index 72c2b0579c67..0702190c0fcd 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Inlining.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Inlining.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function a() {return 42;} function b() {return a();} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/IsMetaInstance.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/IsMetaInstance.sl index 81403d8b6d5d..57d094a1f335 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/IsMetaInstance.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/IsMetaInstance.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function printTypes(type) { println(isInstance(type, 42)); println(isInstance(type, 42000000000000000000000000000000000000000)); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LocalTypeChange.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LocalTypeChange.sl index 3f210812f9fe..03e72b1e5245 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LocalTypeChange.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LocalTypeChange.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function recursion(n) { local = 42; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Logical.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Logical.sl index e3b2cb04bd50..0d54dbdb996e 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Logical.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Logical.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { t = 10 == 10; // true f = 10 != 10; // false diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Loop.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Loop.sl index 06d8014a24fb..d3d499a253b5 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Loop.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Loop.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { i = 0; while (i < 1000) { diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopCall.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopCall.sl index 0fa7ed7a774a..046055fe98bd 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopCall.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopCall.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function add(a, b) { return a + b; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopInvalidate.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopInvalidate.sl index 663304593b96..d222a610dc01 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopInvalidate.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopInvalidate.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function add(a, b) { return a + b; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObject.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObject.sl index 0a54ecd7b7aa..efe281b1c6d4 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObject.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObject.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function loop(n) { obj = new(); obj.i = 0; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObjectDyn.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObjectDyn.sl index e0558df1baa9..fcdf0c7a63a4 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObjectDyn.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopObjectDyn.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function loop(n, obj, name) { obj[name] = 0; while (obj[name] < n) { diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPolymorphic.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPolymorphic.sl index 3c6d2557aab6..f2e3aa91c3e6 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPolymorphic.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPolymorphic.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function add(a, b) { return a + b; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPrint.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPrint.sl index deb5c36446ee..d9944256f739 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPrint.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/LoopPrint.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function loop(n) { i = 0; while (i < n) { diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Mul.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Mul.sl index 5d4cbcea7e05..886b2db2e099 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Mul.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Mul.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println(3 * 4); println(3 * 4000000000000); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Null.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Null.sl index a5219855f239..a768866f5b05 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Null.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Null.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + /* The easiest way to generate null: a function without a return statement implicitly returns null. */ function null() { } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Object.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Object.sl index 4d696408198f..9a6071bde64d 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Object.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Object.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { obj1 = new(); obj1.x = 42; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/ObjectDyn.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/ObjectDyn.sl index c347700c7e88..8d0f1748dccd 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/ObjectDyn.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/ObjectDyn.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { obj1 = new(); obj1["x"] = 42; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/String.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/String.sl index e211e9c966b9..bb3de29d0171 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/String.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/String.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function null() { } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Sub.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Sub.sl index 81b836f52831..7f24d5fba61b 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Sub.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Sub.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println(3 - 4); println(3 - 4000000000000); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/Sum.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/Sum.sl index e2e3f0dc64e5..a888c3372498 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/Sum.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/Sum.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { i = 0; sum = 0; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/SumCall.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/SumCall.sl index 769cab9f3af8..47d7636e0ca5 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/SumCall.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/SumCall.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function add(a, b) { return a + b; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/SumObject.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/SumObject.sl index 36d9e98d5917..759cb2f25dcb 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/SumObject.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/SumObject.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function loop(n) { obj = new(); obj.i = 0; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/SumPrint.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/SumPrint.sl index 8b9ac33a2cd0..55abfb0989df 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/SumPrint.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/SumPrint.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function loop(n) { i = 0; sum = 0; diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/TypeOf.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/TypeOf.sl index 2aa23ac0bd64..5759ce042a26 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/TypeOf.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/TypeOf.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { println(typeOf(42)); println(typeOf(42000000000000000000000000000000000000000)); @@ -8,4 +13,4 @@ function main() { println(typeOf(null())); } function null() { -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInAssignment.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInAssignment.sl index 8188b40a8796..5f6a91a50c63 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInAssignment.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInAssignment.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { x = 42 = 42; -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBinOp.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBinOp.sl index f58398c28f01..03bfdb422bde 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBinOp.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBinOp.sl @@ -1,7 +1,12 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function double(x) { return 2 * x; } function main() { 5 + double(2) = 4; -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBlock.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBlock.sl index 60d2edda63d0..075bae99c206 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBlock.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInBlock.sl @@ -1,7 +1,12 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function double(x) { return 2 * x; } function main() { double(2) = 4; -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInIfCond.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInIfCond.sl index a9ed736b853d..a813fbae7a4b 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInIfCond.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInIfCond.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function double(x) { return 2 * x; } @@ -6,4 +11,4 @@ function main() { if (double(2) = 4) { 42; } -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInWhileCond.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInWhileCond.sl index 6f58f84ae718..98ad31d693f0 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInWhileCond.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidAssignmentInWhileCond.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function double(x) { return 2 * x; } @@ -6,4 +11,4 @@ function main() { while (double(2) = 4) { 42; } -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidBreak.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidBreak.sl index daebd8eea362..6fd4d64a2e19 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidBreak.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidBreak.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { break; -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidContinue.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidContinue.sl index 75e4a386fcac..6f18d6a4794b 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidContinue.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/InvalidContinue.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { continue; -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError01.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError01.sl index efb2d0bf3c37..cb1d5814e363 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError01.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError01.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { return -1; -} \ No newline at end of file +} diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError02.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError02.sl index 2f5969d36699..7dead5b6a824 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError02.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/ParseError02.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function test(n) { a = 1; if (a > 0) { diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError01.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError01.sl index 24f077a84253..25998e261853 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError01.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError01.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { 3 - "4"; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError02.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError02.sl index e512e59eb7ac..82e65f211d2d 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError02.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError02.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { if ("4") { } } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError03.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError03.sl index b38ce4ce896c..d0f8b7d8484e 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError03.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError03.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { "4" && 4; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError04.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError04.sl index 02d206304541..7da5ddf7faad 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError04.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError04.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { (1 > 2) || 4; } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError05.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError05.sl index 2ad6613e17bf..31a6d040e74a 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError05.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError05.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { f = 1 < 2; f(); diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError06.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError06.sl index e193855ceca9..956d547cbf55 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError06.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError06.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { defineFunction(3); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError07.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError07.sl index 3c5995173e24..7ef9fdc3987c 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError07.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/TypeError07.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { defineFunction(); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction01.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction01.sl index f89d019f333d..ee466cbb013d 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction01.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction01.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function main() { foo(); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction02.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction02.sl index 0fad3d05e084..cebb9f3bfab4 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction02.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction02.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function invoke(f) { f("hello"); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction03.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction03.sl index a9fe2b681b25..8f9fa38290e1 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction03.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests/error/UndefinedFunction03.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function invoke(f) { f("hello"); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/tests_disabled/CalcShell.sl b/truffle/src/com.oracle.truffle.sl.test/src/tests_disabled/CalcShell.sl index fad632f30b30..0e82645fbc6e 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/tests_disabled/CalcShell.sl +++ b/truffle/src/com.oracle.truffle.sl.test/src/tests_disabled/CalcShell.sl @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + */ + function iterations() { return 80; }