You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by du...@apache.org on 2016/01/26 02:12:32 UTC

[08/55] [partial] incubator-systemml git commit: [SYSTEMML-482] [SYSTEMML-480] Adding a Git attributes file to enfore Unix-styled line endings, and normalizing all of the line endings.

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/RewriteColSumsMVMult.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/RewriteColSumsMVMult.dml b/src/test/scripts/functions/misc/RewriteColSumsMVMult.dml
index 8dd9dc3..8c5eda3 100644
--- a/src/test/scripts/functions/misc/RewriteColSumsMVMult.dml
+++ b/src/test/scripts/functions/misc/RewriteColSumsMVMult.dml
@@ -19,8 +19,8 @@
 #
 #-------------------------------------------------------------
 
-
-X = read($1);
-R = colSums( X * seq(1,nrow(X)) );
-
+
+X = read($1);
+R = colSums( X * seq(1,nrow(X)) );
+
 write(R, $2);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/RewriteRowSumsMVMult.R
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/RewriteRowSumsMVMult.R b/src/test/scripts/functions/misc/RewriteRowSumsMVMult.R
index c40c8da..d06adc6 100644
--- a/src/test/scripts/functions/misc/RewriteRowSumsMVMult.R
+++ b/src/test/scripts/functions/misc/RewriteRowSumsMVMult.R
@@ -19,12 +19,12 @@
 #
 #-------------------------------------------------------------
 
-
-args <- commandArgs(TRUE)
-options(digits=22)
-library("Matrix")
-
-X = as.matrix(readMM(paste(args[1], "X.mtx", sep="")))
-R = rowSums( X * matrix(1,nrow(X),1) %*% t(seq(1,ncol(X))) );
-
-writeMM(as(R, "CsparseMatrix"), paste(args[2], "R", sep="")); 
+
+args <- commandArgs(TRUE)
+options(digits=22)
+library("Matrix")
+
+X = as.matrix(readMM(paste(args[1], "X.mtx", sep="")))
+R = rowSums( X * matrix(1,nrow(X),1) %*% t(seq(1,ncol(X))) );
+
+writeMM(as(R, "CsparseMatrix"), paste(args[2], "R", sep="")); 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/RewriteRowSumsMVMult.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/RewriteRowSumsMVMult.dml b/src/test/scripts/functions/misc/RewriteRowSumsMVMult.dml
index c7fac95..8be42ac 100644
--- a/src/test/scripts/functions/misc/RewriteRowSumsMVMult.dml
+++ b/src/test/scripts/functions/misc/RewriteRowSumsMVMult.dml
@@ -19,8 +19,8 @@
 #
 #-------------------------------------------------------------
 
-
-X = read($1);
-R = rowSums( X * t(seq(1,ncol(X))) );
-
+
+X = read($1);
+R = rowSums( X * t(seq(1,ncol(X))) );
+
 write(R, $2);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.R
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.R b/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.R
index ac92edc..70ec017 100644
--- a/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.R
+++ b/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.R
@@ -1,33 +1,33 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-
-args <- commandArgs(TRUE)
-options(digits=22)
-library("Matrix")
-
-A = as.matrix(readMM(paste(args[1], "A.mtx", sep="")));
-B = as.matrix(readMM(paste(args[1], "B.mtx", sep="")));
-
-C = A %*% B;
-R = C[1,1];
-
-writeMM(as(R, "CsparseMatrix"), paste(args[2], "R", sep="")); 
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+
+args <- commandArgs(TRUE)
+options(digits=22)
+library("Matrix")
+
+A = as.matrix(readMM(paste(args[1], "A.mtx", sep="")));
+B = as.matrix(readMM(paste(args[1], "B.mtx", sep="")));
+
+C = A %*% B;
+R = C[1,1];
+
+writeMM(as(R, "CsparseMatrix"), paste(args[2], "R", sep="")); 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.dml b/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.dml
index 8cec002..130d5ff 100644
--- a/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.dml
+++ b/src/test/scripts/functions/misc/RewriteSlicedMatrixMult.dml
@@ -1,29 +1,29 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-
-A = read($1);
-B = read($2);
-
-C = A %*% B;
-R = C[1,1];
-
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+
+A = read($1);
+B = read($2);
+
+C = A %*% B;
+R = C[1,1];
+
 write(R, $3);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/ScalarFunctionTest1.R
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/ScalarFunctionTest1.R b/src/test/scripts/functions/misc/ScalarFunctionTest1.R
index 50a10b0..5d48d0b 100644
--- a/src/test/scripts/functions/misc/ScalarFunctionTest1.R
+++ b/src/test/scripts/functions/misc/ScalarFunctionTest1.R
@@ -1,35 +1,35 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-
-args <- commandArgs(TRUE)
-options(digits=22)
-library("Matrix")
-
-square <- function(a) {
-   b = a*a;   
-   return(b);
-}
-
-y = square(1.9/2.9);
-R = as.matrix(y);
-
-writeMM(as(R, "CsparseMatrix"), paste(args[1], "R", sep="")); 
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+
+args <- commandArgs(TRUE)
+options(digits=22)
+library("Matrix")
+
+square <- function(a) {
+   b = a*a;   
+   return(b);
+}
+
+y = square(1.9/2.9);
+R = as.matrix(y);
+
+writeMM(as(R, "CsparseMatrix"), paste(args[1], "R", sep="")); 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/ScalarFunctionTest1.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/ScalarFunctionTest1.dml b/src/test/scripts/functions/misc/ScalarFunctionTest1.dml
index a11fff8..75c5db2 100644
--- a/src/test/scripts/functions/misc/ScalarFunctionTest1.dml
+++ b/src/test/scripts/functions/misc/ScalarFunctionTest1.dml
@@ -1,29 +1,29 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-square = function (double a) return (double b) {
-  b = a*a;
-}
-
-y = square(1.9/2.9);
-R = as.matrix(y);
-
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+square = function (double a) return (double b) {
+  b = a*a;
+}
+
+y = square(1.9/2.9);
+R = as.matrix(y);
+
 write(R, $1);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/ScalarFunctionTest2.R
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/ScalarFunctionTest2.R b/src/test/scripts/functions/misc/ScalarFunctionTest2.R
index dd3f323..ac3c5f2 100644
--- a/src/test/scripts/functions/misc/ScalarFunctionTest2.R
+++ b/src/test/scripts/functions/misc/ScalarFunctionTest2.R
@@ -1,36 +1,36 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-
-args <- commandArgs(TRUE)
-options(digits=22)
-library("Matrix")
-
-square <- function(a) {
-   b = a*a;   
-   return(b);
-}
-
-x = 1.9/2.9;
-y = square(x);
-R = as.matrix(y);
-
-writeMM(as(R, "CsparseMatrix"), paste(args[1], "R", sep="")); 
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+
+args <- commandArgs(TRUE)
+options(digits=22)
+library("Matrix")
+
+square <- function(a) {
+   b = a*a;   
+   return(b);
+}
+
+x = 1.9/2.9;
+y = square(x);
+R = as.matrix(y);
+
+writeMM(as(R, "CsparseMatrix"), paste(args[1], "R", sep="")); 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/ScalarFunctionTest2.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/ScalarFunctionTest2.dml b/src/test/scripts/functions/misc/ScalarFunctionTest2.dml
index e51ef18..bfe6208 100644
--- a/src/test/scripts/functions/misc/ScalarFunctionTest2.dml
+++ b/src/test/scripts/functions/misc/ScalarFunctionTest2.dml
@@ -1,30 +1,30 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-square = function (double a) return (double b) {
-  b = a*a;
-}
-
-x = 1.9/2.9;
-y = square(x);
-R = as.matrix(y);
-
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+square = function (double a) return (double b) {
+  b = a*a;
+}
+
+x = 1.9/2.9;
+y = square(x);
+R = as.matrix(y);
+
 write(R, $1);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/TableExpandTest.R
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/TableExpandTest.R b/src/test/scripts/functions/misc/TableExpandTest.R
index 5197d3b..b6d74b8 100644
--- a/src/test/scripts/functions/misc/TableExpandTest.R
+++ b/src/test/scripts/functions/misc/TableExpandTest.R
@@ -1,41 +1,41 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-
-args <- commandArgs(TRUE)
-options(digits=22)
-library("Matrix")
-
-A = as.matrix(readMM(paste(args[1], "A.mtx", sep="")))
-m = as.integer(args[2]);
-left = as.logical(args[3]);
-
-#note: this outer formulation is equivalent to table but does not 
-#  require padding and convertion from R's factor-based table
-
-if( left ){
-   C = outer(as.vector(A), seq(1,m), "==");
-} else {
-   C = outer(seq(1,m), as.vector(A), "==");
-}
-
-
-writeMM(as(as.matrix(C), "CsparseMatrix"), paste(args[4], "C", sep="")); 
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+
+args <- commandArgs(TRUE)
+options(digits=22)
+library("Matrix")
+
+A = as.matrix(readMM(paste(args[1], "A.mtx", sep="")))
+m = as.integer(args[2]);
+left = as.logical(args[3]);
+
+#note: this outer formulation is equivalent to table but does not 
+#  require padding and convertion from R's factor-based table
+
+if( left ){
+   C = outer(as.vector(A), seq(1,m), "==");
+} else {
+   C = outer(seq(1,m), as.vector(A), "==");
+}
+
+
+writeMM(as(as.matrix(C), "CsparseMatrix"), paste(args[4], "C", sep="")); 

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/TableExpandTest.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/TableExpandTest.dml b/src/test/scripts/functions/misc/TableExpandTest.dml
index 9df7188..4b7299b 100644
--- a/src/test/scripts/functions/misc/TableExpandTest.dml
+++ b/src/test/scripts/functions/misc/TableExpandTest.dml
@@ -1,34 +1,34 @@
-#-------------------------------------------------------------
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#-------------------------------------------------------------
-
-
-A = read($1);
-m = $2;
-left = $3;
-
-if( left ){
-   C = table(seq(1,nrow(A)), A, nrow(A), m);
-}
-else{
-   C = table(A, seq(1,nrow(A)), m, nrow(A));
-}
-
+#-------------------------------------------------------------
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#-------------------------------------------------------------
+
+
+A = read($1);
+m = $2;
+left = $3;
+
+if( left ){
+   C = table(seq(1,nrow(A)), A, nrow(A), m);
+}
+else{
+   C = table(A, seq(1,nrow(A)), m, nrow(A));
+}
+
 write(C, $4);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/WhileScalarAssignmentTest.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/WhileScalarAssignmentTest.dml b/src/test/scripts/functions/misc/WhileScalarAssignmentTest.dml
index 6e0977b..858f6c0 100644
--- a/src/test/scripts/functions/misc/WhileScalarAssignmentTest.dml
+++ b/src/test/scripts/functions/misc/WhileScalarAssignmentTest.dml
@@ -19,12 +19,12 @@
 #
 #-------------------------------------------------------------
 
-
-val = $1;
-i = 1;
-while( i<=10 ){
-   val = $1;
-   i = i+1;
-}
-
+
+val = $1;
+i = 1;
+while( i<=10 ){
+   val = $1;
+   i = i+1;
+}
+
 print(val);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/castBoolean.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/castBoolean.dml b/src/test/scripts/functions/misc/castBoolean.dml
index 39bb9e8..9c5bdd2 100644
--- a/src/test/scripts/functions/misc/castBoolean.dml
+++ b/src/test/scripts/functions/misc/castBoolean.dml
@@ -19,7 +19,7 @@
 #
 #-------------------------------------------------------------
 
-
-X = read($1);
-Y = as.logical(X);
-write(Y, $2);
+
+X = read($1);
+Y = as.logical(X);
+write(Y, $2);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/castDouble.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/castDouble.dml b/src/test/scripts/functions/misc/castDouble.dml
index 7986bdc..d4d92af 100644
--- a/src/test/scripts/functions/misc/castDouble.dml
+++ b/src/test/scripts/functions/misc/castDouble.dml
@@ -19,7 +19,7 @@
 #
 #-------------------------------------------------------------
 
-
-X = read($1);
-Y = as.double(X);
-write(Y, $2);
+
+X = read($1);
+Y = as.double(X);
+write(Y, $2);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/castInteger.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/castInteger.dml b/src/test/scripts/functions/misc/castInteger.dml
index c0deb89..d68baa3 100644
--- a/src/test/scripts/functions/misc/castInteger.dml
+++ b/src/test/scripts/functions/misc/castInteger.dml
@@ -19,7 +19,7 @@
 #
 #-------------------------------------------------------------
 
-
-X = read($1);
-Y = as.integer(X);
-write(Y, $2);
+
+X = read($1);
+Y = as.integer(X);
+write(Y, $2);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/castMatrixScalar.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/castMatrixScalar.dml b/src/test/scripts/functions/misc/castMatrixScalar.dml
index 06c82c9..cc031a5 100644
--- a/src/test/scripts/functions/misc/castMatrixScalar.dml
+++ b/src/test/scripts/functions/misc/castMatrixScalar.dml
@@ -19,7 +19,7 @@
 #
 #-------------------------------------------------------------
 
-
-X = read($1, rows=$2, cols=$3);
-x = as.scalar(X);
-write(x, $4);
+
+X = read($1, rows=$2, cols=$3);
+x = as.scalar(X);
+write(x, $4);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/castScalarMatrix.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/castScalarMatrix.dml b/src/test/scripts/functions/misc/castScalarMatrix.dml
index bc60cca..2e5e4c2 100644
--- a/src/test/scripts/functions/misc/castScalarMatrix.dml
+++ b/src/test/scripts/functions/misc/castScalarMatrix.dml
@@ -19,7 +19,7 @@
 #
 #-------------------------------------------------------------
 
-
-x = read($1, rows=$2, cols=$3);
-X = as.matrix(x);
-write(X, $4);
+
+x = read($1, rows=$2, cols=$3);
+X = as.matrix(x);
+write(X, $4);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/conditionalPredicateIf.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/conditionalPredicateIf.dml b/src/test/scripts/functions/misc/conditionalPredicateIf.dml
index ee607b7..a736aee 100644
--- a/src/test/scripts/functions/misc/conditionalPredicateIf.dml
+++ b/src/test/scripts/functions/misc/conditionalPredicateIf.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-val1 = $1;
-
-# test auto casting constant propagation
-if( val1 ) {
-   val1 = 1;
-}
-val1 = val1 + 7.0; 
-
-# test auto casting with variables
-if( val1 ) {
-   val1 = 1;
+
+val1 = $1;
+
+# test auto casting constant propagation
+if( val1 ) {
+   val1 = 1;
+}
+val1 = val1 + 7.0; 
+
+# test auto casting with variables
+if( val1 ) {
+   val1 = 1;
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/conditionalPredicateWhile.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/conditionalPredicateWhile.dml b/src/test/scripts/functions/misc/conditionalPredicateWhile.dml
index 380fbb4..d0b21c5 100644
--- a/src/test/scripts/functions/misc/conditionalPredicateWhile.dml
+++ b/src/test/scripts/functions/misc/conditionalPredicateWhile.dml
@@ -19,10 +19,10 @@
 #
 #-------------------------------------------------------------
 
-
-val1 = $1;
-
-# test auto casting with variables
-while( val1 ) {
-   val1 = FALSE;
-}
+
+val1 = $1;
+
+# test auto casting with variables
+while( val1 ) {
+   val1 = FALSE;
+}

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/conditionalValidate1.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/conditionalValidate1.dml b/src/test/scripts/functions/misc/conditionalValidate1.dml
index 9e7946b..e6e03bf 100644
--- a/src/test/scripts/functions/misc/conditionalValidate1.dml
+++ b/src/test/scripts/functions/misc/conditionalValidate1.dml
@@ -19,7 +19,7 @@
 #
 #-------------------------------------------------------------
 
-
-Y = read($1);
-
-print("Result: "+sum(Y));
+
+Y = read($1);
+
+print("Result: "+sum(Y));

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/conditionalValidate2.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/conditionalValidate2.dml b/src/test/scripts/functions/misc/conditionalValidate2.dml
index 12e7845..5f65769 100644
--- a/src/test/scripts/functions/misc/conditionalValidate2.dml
+++ b/src/test/scripts/functions/misc/conditionalValidate2.dml
@@ -19,14 +19,14 @@
 #
 #-------------------------------------------------------------
 
-
-if( 1==0 )
-{
-   Y = read($1);
-}
-else
-{
-   Y = matrix(1, rows=10, cols=10);
-}
-
-print("Result: "+sum(Y));
+
+if( 1==0 )
+{
+   Y = read($1);
+}
+else
+{
+   Y = matrix(1, rows=10, cols=10);
+}
+
+print("Result: "+sum(Y));

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/conditionalValidate3.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/conditionalValidate3.dml b/src/test/scripts/functions/misc/conditionalValidate3.dml
index e912035..94d8cdc 100644
--- a/src/test/scripts/functions/misc/conditionalValidate3.dml
+++ b/src/test/scripts/functions/misc/conditionalValidate3.dml
@@ -19,12 +19,12 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-
-for( i in 1:0 ) {
-   Y = read($1);
-}   
-   
-print("Result: "+sum(Y));
+
+Y = matrix(1, rows=10, cols=10);
+
+
+for( i in 1:0 ) {
+   Y = read($1);
+}   
+   
+print("Result: "+sum(Y));

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/conditionalValidate4.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/conditionalValidate4.dml b/src/test/scripts/functions/misc/conditionalValidate4.dml
index 1aba752..aff86ec 100644
--- a/src/test/scripts/functions/misc/conditionalValidate4.dml
+++ b/src/test/scripts/functions/misc/conditionalValidate4.dml
@@ -19,12 +19,12 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-i = 1;
-while( i<1 ) {
-   Y = read($1);
-}   
-   
-print("Result: "+sum(Y));
+
+Y = matrix(1, rows=10, cols=10);
+
+i = 1;
+while( i<1 ) {
+   Y = read($1);
+}   
+   
+print("Result: "+sum(Y));

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1a.dml b/src/test/scripts/functions/misc/dt_change_1a.dml
index aa3ef32..e98f2c6 100644
--- a/src/test/scripts/functions/misc/dt_change_1a.dml
+++ b/src/test/scripts/functions/misc/dt_change_1a.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-if( 1==1 ) {
-   X = 7;
-}
-else {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+
+if( 1==1 ) {
+   X = 7;
+}
+else {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1b.dml b/src/test/scripts/functions/misc/dt_change_1b.dml
index 0c05a84..cb3923a 100644
--- a/src/test/scripts/functions/misc/dt_change_1b.dml
+++ b/src/test/scripts/functions/misc/dt_change_1b.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-if( 1==1 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-else {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+
+if( 1==1 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+else {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1c.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1c.dml b/src/test/scripts/functions/misc/dt_change_1c.dml
index 73ccc67..9279e81 100644
--- a/src/test/scripts/functions/misc/dt_change_1c.dml
+++ b/src/test/scripts/functions/misc/dt_change_1c.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-if( 1==1 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-else {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+
+if( 1==1 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+else {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1d.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1d.dml b/src/test/scripts/functions/misc/dt_change_1d.dml
index 6992a6f..bf05714 100644
--- a/src/test/scripts/functions/misc/dt_change_1d.dml
+++ b/src/test/scripts/functions/misc/dt_change_1d.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-if( 1==1 ) {
-   X = 7;
-}
-else {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+
+if( 1==1 ) {
+   X = 7;
+}
+else {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1e.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1e.dml b/src/test/scripts/functions/misc/dt_change_1e.dml
index 4e39aeb..c2a69fa 100644
--- a/src/test/scripts/functions/misc/dt_change_1e.dml
+++ b/src/test/scripts/functions/misc/dt_change_1e.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-if( 1!=1 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-else {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+
+if( 1!=1 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+else {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1f.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1f.dml b/src/test/scripts/functions/misc/dt_change_1f.dml
index 712f504..bfdfc61 100644
--- a/src/test/scripts/functions/misc/dt_change_1f.dml
+++ b/src/test/scripts/functions/misc/dt_change_1f.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-
-if( 1!=1 ) {
-   X = 7;
-}
-else {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+
+if( 1!=1 ) {
+   X = 7;
+}
+else {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1g.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1g.dml b/src/test/scripts/functions/misc/dt_change_1g.dml
index 67acdd7..f0b640a 100644
--- a/src/test/scripts/functions/misc/dt_change_1g.dml
+++ b/src/test/scripts/functions/misc/dt_change_1g.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-
-if( 1==1 ) {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+
+if( 1==1 ) {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_1h.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_1h.dml b/src/test/scripts/functions/misc/dt_change_1h.dml
index 2230427..cb8403d 100644
--- a/src/test/scripts/functions/misc/dt_change_1h.dml
+++ b/src/test/scripts/functions/misc/dt_change_1h.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-
-if( 1==1 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+
+if( 1==1 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_2a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_2a.dml b/src/test/scripts/functions/misc/dt_change_2a.dml
index 0cfa128..86966aa 100644
--- a/src/test/scripts/functions/misc/dt_change_2a.dml
+++ b/src/test/scripts/functions/misc/dt_change_2a.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-
-for( i in 1:1 ) {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+
+for( i in 1:1 ) {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_2b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_2b.dml b/src/test/scripts/functions/misc/dt_change_2b.dml
index 7737c3e..5a775a3 100644
--- a/src/test/scripts/functions/misc/dt_change_2b.dml
+++ b/src/test/scripts/functions/misc/dt_change_2b.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-
-for( i in 1:1 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+
+for( i in 1:1 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_2c.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_2c.dml b/src/test/scripts/functions/misc/dt_change_2c.dml
index dadda6e..ebc6079 100644
--- a/src/test/scripts/functions/misc/dt_change_2c.dml
+++ b/src/test/scripts/functions/misc/dt_change_2c.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-
-for( i in 1:1 ) {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+
+for( i in 1:1 ) {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_2d.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_2d.dml b/src/test/scripts/functions/misc/dt_change_2d.dml
index 03f3ae3..ba0d50b 100644
--- a/src/test/scripts/functions/misc/dt_change_2d.dml
+++ b/src/test/scripts/functions/misc/dt_change_2d.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-
-for( i in 1:1 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+
+for( i in 1:1 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_2e.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_2e.dml b/src/test/scripts/functions/misc/dt_change_2e.dml
index 7d7e6a0..3efba8f 100644
--- a/src/test/scripts/functions/misc/dt_change_2e.dml
+++ b/src/test/scripts/functions/misc/dt_change_2e.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-
-for( i in 1:0 ) {
-   X = 7;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+
+for( i in 1:0 ) {
+   X = 7;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_2f.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_2f.dml b/src/test/scripts/functions/misc/dt_change_2f.dml
index 0826d62..3a71f05 100644
--- a/src/test/scripts/functions/misc/dt_change_2f.dml
+++ b/src/test/scripts/functions/misc/dt_change_2f.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-
-for( i in 1:0 ) {
-   X = matrix(7, rows=10, cols=10);
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+
+for( i in 1:0 ) {
+   X = matrix(7, rows=10, cols=10);
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_3a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_3a.dml b/src/test/scripts/functions/misc/dt_change_3a.dml
index 0f35e4b..334404c 100644
--- a/src/test/scripts/functions/misc/dt_change_3a.dml
+++ b/src/test/scripts/functions/misc/dt_change_3a.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-i = 1;
-
-while( i<=1 ) {
-   X = 7;
-   i = i+1;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+i = 1;
+
+while( i<=1 ) {
+   X = 7;
+   i = i+1;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_3b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_3b.dml b/src/test/scripts/functions/misc/dt_change_3b.dml
index d729675..652c7d4 100644
--- a/src/test/scripts/functions/misc/dt_change_3b.dml
+++ b/src/test/scripts/functions/misc/dt_change_3b.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-
-i = 1;
-
-while( i<=1 ) {
-   X = matrix(7, rows=10, cols=10);
-   i = i+1;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+
+i = 1;
+
+while( i<=1 ) {
+   X = matrix(7, rows=10, cols=10);
+   i = i+1;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_3c.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_3c.dml b/src/test/scripts/functions/misc/dt_change_3c.dml
index b31b616..ab17a3f 100644
--- a/src/test/scripts/functions/misc/dt_change_3c.dml
+++ b/src/test/scripts/functions/misc/dt_change_3c.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-i = 1;
-
-while( i<=1 ) {
-   X = 7;
-   i = i+1;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+i = 1;
+
+while( i<=1 ) {
+   X = 7;
+   i = i+1;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_3d.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_3d.dml b/src/test/scripts/functions/misc/dt_change_3d.dml
index 099b107..405184c 100644
--- a/src/test/scripts/functions/misc/dt_change_3d.dml
+++ b/src/test/scripts/functions/misc/dt_change_3d.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-i = 1;
-
-while( i<=1 ) {
-   X = matrix(7, rows=10, cols=10);
-   i = i+1;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+i = 1;
+
+while( i<=1 ) {
+   X = matrix(7, rows=10, cols=10);
+   i = i+1;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_3e.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_3e.dml b/src/test/scripts/functions/misc/dt_change_3e.dml
index 4278af9..0e7a749 100644
--- a/src/test/scripts/functions/misc/dt_change_3e.dml
+++ b/src/test/scripts/functions/misc/dt_change_3e.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-i = 1;
-
-while( i<=0 ) {
-   X = 7;
-   i = i+1;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+i = 1;
+
+while( i<=0 ) {
+   X = 7;
+   i = i+1;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_3f.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_3f.dml b/src/test/scripts/functions/misc/dt_change_3f.dml
index 3096e71..3655aa6 100644
--- a/src/test/scripts/functions/misc/dt_change_3f.dml
+++ b/src/test/scripts/functions/misc/dt_change_3f.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-i = 1;
-
-while( i<=0 ) {
-   X = matrix(7, rows=10, cols=10);
-   i = i+1;
-}
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+i = 1;
+
+while( i<=0 ) {
+   X = matrix(7, rows=10, cols=10);
+   i = i+1;
+}
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_4a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_4a.dml b/src/test/scripts/functions/misc/dt_change_4a.dml
index 7702122..6d0fff5 100644
--- a/src/test/scripts/functions/misc/dt_change_4a.dml
+++ b/src/test/scripts/functions/misc/dt_change_4a.dml
@@ -19,10 +19,10 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-X = matrix(X, rows=10, cols=10);
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+X = matrix(X, rows=10, cols=10);
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_4b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_4b.dml b/src/test/scripts/functions/misc/dt_change_4b.dml
index 4381ad4..c5d8c7e 100644
--- a/src/test/scripts/functions/misc/dt_change_4b.dml
+++ b/src/test/scripts/functions/misc/dt_change_4b.dml
@@ -19,10 +19,10 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-X = castAsScalar(X[1,1]);
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+X = castAsScalar(X[1,1]);
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_4c.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_4c.dml b/src/test/scripts/functions/misc/dt_change_4c.dml
index 6067ede..ba561bf 100644
--- a/src/test/scripts/functions/misc/dt_change_4c.dml
+++ b/src/test/scripts/functions/misc/dt_change_4c.dml
@@ -19,17 +19,17 @@
 #
 #-------------------------------------------------------------
 
-
-foo = function(Matrix[Double] input) return (Double out) 
-{
-   if( 1==1 ){} #prevent inlining
-  
-   out = castAsScalar(input[1,1]);
-}
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-X = foo(X);
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+foo = function(Matrix[Double] input) return (Double out) 
+{
+   if( 1==1 ){} #prevent inlining
+  
+   out = castAsScalar(input[1,1]);
+}
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+X = foo(X);
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_4d.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_4d.dml b/src/test/scripts/functions/misc/dt_change_4d.dml
index feb1a47..e04683d 100644
--- a/src/test/scripts/functions/misc/dt_change_4d.dml
+++ b/src/test/scripts/functions/misc/dt_change_4d.dml
@@ -19,18 +19,18 @@
 #
 #-------------------------------------------------------------
 
-
-foo = function(Integer input) return (Matrix[Double] out) 
-{
-   if( 1==1 ){} #prevent inlining
-   out = matrix(1, rows=10, cols=10);
-   out = out*input;
-   #out = matrix(input, rows=10, cols=10); unsupported expression in rand
-}
-
-Y = matrix(1, rows=10, cols=10);
-X = 7;
-X = foo(X);
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+foo = function(Integer input) return (Matrix[Double] out) 
+{
+   if( 1==1 ){} #prevent inlining
+   out = matrix(1, rows=10, cols=10);
+   out = out*input;
+   #out = matrix(input, rows=10, cols=10); unsupported expression in rand
+}
+
+Y = matrix(1, rows=10, cols=10);
+X = 7;
+X = foo(X);
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_4e.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_4e.dml b/src/test/scripts/functions/misc/dt_change_4e.dml
index 68c29af..413bc12 100644
--- a/src/test/scripts/functions/misc/dt_change_4e.dml
+++ b/src/test/scripts/functions/misc/dt_change_4e.dml
@@ -19,11 +19,11 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-if(1==1){}
-X = 7;
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+if(1==1){}
+X = 7;
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/dt_change_4f.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/dt_change_4f.dml b/src/test/scripts/functions/misc/dt_change_4f.dml
index 04138c5..71f083c 100644
--- a/src/test/scripts/functions/misc/dt_change_4f.dml
+++ b/src/test/scripts/functions/misc/dt_change_4f.dml
@@ -19,11 +19,11 @@
 #
 #-------------------------------------------------------------
 
-
-Y = matrix(1, rows=10, cols=10);
-X = matrix(7, rows=10, cols=10);
-if(1==1){}
-X = castAsScalar(X[1,1]);
-
-print("Result: "+sum(X + Y));
-#expected: "Result: 800.0"
+
+Y = matrix(1, rows=10, cols=10);
+X = matrix(7, rows=10, cols=10);
+if(1==1){}
+X = castAsScalar(X[1,1]);
+
+print("Result: "+sum(X + Y));
+#expected: "Result: 800.0"

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/functionInlining.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/functionInlining.dml b/src/test/scripts/functions/misc/functionInlining.dml
index 81bfc7d..fe7dd73 100644
--- a/src/test/scripts/functions/misc/functionInlining.dml
+++ b/src/test/scripts/functions/misc/functionInlining.dml
@@ -19,25 +19,25 @@
 #
 #-------------------------------------------------------------
 
-
-foo = function(Double input) return (Double out)
-{
-   out = input + input; #will be inlined
-}
-
-foo2 = function(Integer input) return (Double out)
-{ 
-   out = input + input; #will be inlined
-}
-
-x = $1;
-
-if( 1!=1 ){
-  x = x;
-}
-
-ret1 = foo(x);
-ret2 = foo2(x);
- 
-print("Result1: "+ret1);
-print("Result2: "+ret2);
+
+foo = function(Double input) return (Double out)
+{
+   out = input + input; #will be inlined
+}
+
+foo2 = function(Integer input) return (Double out)
+{ 
+   out = input + input; #will be inlined
+}
+
+x = $1;
+
+if( 1!=1 ){
+  x = x;
+}
+
+ret1 = foo(x);
+ret2 = foo2(x);
+ 
+print("Result1: "+ret1);
+print("Result2: "+ret2);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/functionNoInlining.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/functionNoInlining.dml b/src/test/scripts/functions/misc/functionNoInlining.dml
index 97ff1e8..cdcc67b 100644
--- a/src/test/scripts/functions/misc/functionNoInlining.dml
+++ b/src/test/scripts/functions/misc/functionNoInlining.dml
@@ -19,29 +19,29 @@
 #
 #-------------------------------------------------------------
 
-
-foo = function(Double input) return (Double out)
-{
-   if( 1==1 ){ #prevent inlining
-      out = input + input;
-   }
-}
-
-foo2 = function(Integer input) return (Double out)
-{ 
-   if( 1==1 ){ #prevent inlining
-      out = input + input;
-   }
-}
-
-x = $1;
-
-if( 1!=1 ){
-  x = 7;
-}
-
-ret1 = foo(x);
-ret2 = foo2(x);
- 
-print("Result1: "+ret1);
-print("Result2: "+ret2);
+
+foo = function(Double input) return (Double out)
+{
+   if( 1==1 ){ #prevent inlining
+      out = input + input;
+   }
+}
+
+foo2 = function(Integer input) return (Double out)
+{ 
+   if( 1==1 ){ #prevent inlining
+      out = input + input;
+   }
+}
+
+x = $1;
+
+if( 1!=1 ){
+  x = 7;
+}
+
+ret1 = foo(x);
+ret2 = foo2(x);
+ 
+print("Result1: "+ret1);
+print("Result2: "+ret2);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/function_chain_inlining.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/function_chain_inlining.dml b/src/test/scripts/functions/misc/function_chain_inlining.dml
index b051599..10a084c 100644
--- a/src/test/scripts/functions/misc/function_chain_inlining.dml
+++ b/src/test/scripts/functions/misc/function_chain_inlining.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-foo1 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = foo2(B+2);
-}
-foo2 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = B+B;
-}
-
-X = matrix($3, rows=$1, cols=$2);
-Y = foo1(X);
-z = sum(Y);
-
-write(z, $4);
+
+foo1 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = foo2(B+2);
+}
+foo2 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = B+B;
+}
+
+X = matrix($3, rows=$1, cols=$2);
+Y = foo1(X);
+z = sum(Y);
+
+write(z, $4);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/function_chain_non_inlining.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/function_chain_non_inlining.dml b/src/test/scripts/functions/misc/function_chain_non_inlining.dml
index fac2e7b..896513f 100644
--- a/src/test/scripts/functions/misc/function_chain_non_inlining.dml
+++ b/src/test/scripts/functions/misc/function_chain_non_inlining.dml
@@ -19,21 +19,21 @@
 #
 #-------------------------------------------------------------
 
-
-foo1 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = foo2(B+2);
-}
-foo2 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   if(sum(B)>0){
-      V = B+B;
-   }
-   else{
-      V = B
-   }
-}
-
-X = matrix($3, rows=$1, cols=$2);
-Y = foo1(X);
-z = sum(Y);
-
-write(z, $4);
+
+foo1 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = foo2(B+2);
+}
+foo2 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   if(sum(B)>0){
+      V = B+B;
+   }
+   else{
+      V = B
+   }
+}
+
+X = matrix($3, rows=$1, cols=$2);
+Y = foo1(X);
+z = sum(Y);
+
+write(z, $4);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/function_recursive_inlining.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/function_recursive_inlining.dml b/src/test/scripts/functions/misc/function_recursive_inlining.dml
index 6f5db7a..b01a14b 100644
--- a/src/test/scripts/functions/misc/function_recursive_inlining.dml
+++ b/src/test/scripts/functions/misc/function_recursive_inlining.dml
@@ -19,29 +19,29 @@
 #
 #-------------------------------------------------------------
 
-
-foo1 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = foo2(B+1);
-}
-
-foo2 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = foo3(B+1);
-}
-
-foo3 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = foo4(B+1);
-}
-
-foo4 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = foo5(B+1);
-}
-
-foo5 = function( Matrix[Double] B ) return (Matrix[Double] V) {
-   V = B+1;
-}
-
-X = matrix($3, rows=$1, cols=$2);
-Y = foo1(X);
-z = sum(Y);
-
-write(z, $4);
+
+foo1 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = foo2(B+1);
+}
+
+foo2 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = foo3(B+1);
+}
+
+foo3 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = foo4(B+1);
+}
+
+foo4 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = foo5(B+1);
+}
+
+foo5 = function( Matrix[Double] B ) return (Matrix[Double] V) {
+   V = B+1;
+}
+
+X = matrix($3, rows=$1, cols=$2);
+Y = foo1(X);
+z = sum(Y);
+
+write(z, $4);

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/misc/iterablePredicate.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/misc/iterablePredicate.dml b/src/test/scripts/functions/misc/iterablePredicate.dml
index 6b1aef8..5e579fd 100644
--- a/src/test/scripts/functions/misc/iterablePredicate.dml
+++ b/src/test/scripts/functions/misc/iterablePredicate.dml
@@ -19,20 +19,20 @@
 #
 #-------------------------------------------------------------
 
-
-from = $1;
-to = $2;
-
-# test auto casting constant propagation
-for( i in from:to ) {
-   print( "Result: "+i );
-}
-
-# test auto casting with variables
-if( 1==1 ){
-   from = 1 + from;
-   to = 10 + to;
-}
-for( i in from:to ) {
-   print( "Result: "+i );
-}
+
+from = $1;
+to = $2;
+
+# test auto casting constant propagation
+for( i in from:to ) {
+   print( "Result: "+i );
+}
+
+# test auto casting with variables
+if( 1==1 ){
+   from = 1 + from;
+   to = 10 + to;
+}
+for( i in from:to ) {
+   print( "Result: "+i );
+}

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/for_pred1a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/for_pred1a.dml b/src/test/scripts/functions/parfor/for_pred1a.dml
index 0602846..f7d0b4b 100644
--- a/src/test/scripts/functions/parfor/for_pred1a.dml
+++ b/src/test/scripts/functions/parfor/for_pred1a.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-sum = 0;
-for( i in $1:$2 ) 
-{
-   sum = sum + 1; 
-}  
-
-R = matrix(1, rows=1, cols=1);
-R = R * sum;
+
+sum = 0;
+for( i in $1:$2 ) 
+{
+   sum = sum + 1; 
+}  
+
+R = matrix(1, rows=1, cols=1);
+R = R * sum;
 write(R, $4);       
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/for_pred1b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/for_pred1b.dml b/src/test/scripts/functions/parfor/for_pred1b.dml
index c64bf43..b2f0837 100644
--- a/src/test/scripts/functions/parfor/for_pred1b.dml
+++ b/src/test/scripts/functions/parfor/for_pred1b.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-sum = 0;
-for( i in seq($1,$2,$3) ) 
-{
-   sum = sum + 1; 
-}  
-
-R = matrix(1, rows=1, cols=1);
-R = R * sum;
+
+sum = 0;
+for( i in seq($1,$2,$3) ) 
+{
+   sum = sum + 1; 
+}  
+
+R = matrix(1, rows=1, cols=1);
+R = R * sum;
 write(R, $4);       
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/for_pred2a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/for_pred2a.dml b/src/test/scripts/functions/parfor/for_pred2a.dml
index 08d2bd0..4f936bd 100644
--- a/src/test/scripts/functions/parfor/for_pred2a.dml
+++ b/src/test/scripts/functions/parfor/for_pred2a.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-a = $1+1-1;
-b = $2+1-1;
-
-sum = 0;
-for( i in a:b ) 
-{
-   sum = sum + 1; 
-}  
-
-R = matrix(1, rows=1, cols=1);
-R = R * sum;
+
+a = $1+1-1;
+b = $2+1-1;
+
+sum = 0;
+for( i in a:b ) 
+{
+   sum = sum + 1; 
+}  
+
+R = matrix(1, rows=1, cols=1);
+R = R * sum;
 write(R, $4);       
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/for_pred2b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/for_pred2b.dml b/src/test/scripts/functions/parfor/for_pred2b.dml
index 4c02550..067b43c 100644
--- a/src/test/scripts/functions/parfor/for_pred2b.dml
+++ b/src/test/scripts/functions/parfor/for_pred2b.dml
@@ -19,17 +19,17 @@
 #
 #-------------------------------------------------------------
 
-
-a = $1+1-1;
-b = $2+1-1;
-c = $3+1-1;
-
-sum = 0;
-for( i in seq(a,b,c) ) 
-{
-   sum = sum + 1; 
-}  
-
-R = matrix(1, rows=1, cols=1);
-R = R * sum;
+
+a = $1+1-1;
+b = $2+1-1;
+c = $3+1-1;
+
+sum = 0;
+for( i in seq(a,b,c) ) 
+{
+   sum = sum + 1; 
+}  
+
+R = matrix(1, rows=1, cols=1);
+R = R * sum;
 write(R, $4);       
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/for_pred3a.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/for_pred3a.dml b/src/test/scripts/functions/parfor/for_pred3a.dml
index 59ef382..cac9e44 100644
--- a/src/test/scripts/functions/parfor/for_pred3a.dml
+++ b/src/test/scripts/functions/parfor/for_pred3a.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-sum = 0;
-for( i in ($1+1-1):($2+1-1) ) 
-{
-   sum = sum + 1; 
-}  
-
-R = matrix(1, rows=1, cols=1);
-R = R * sum;
+
+sum = 0;
+for( i in ($1+1-1):($2+1-1) ) 
+{
+   sum = sum + 1; 
+}  
+
+R = matrix(1, rows=1, cols=1);
+R = R * sum;
 write(R, $4);       
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/for_pred3b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/for_pred3b.dml b/src/test/scripts/functions/parfor/for_pred3b.dml
index 1c615b8..86843ff 100644
--- a/src/test/scripts/functions/parfor/for_pred3b.dml
+++ b/src/test/scripts/functions/parfor/for_pred3b.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-sum = 0;
-for( i in seq(($1+1-1),($2+1-1),($3+1-1)) ) 
-{
-   sum = sum + 1; 
-}  
-
-R = matrix(1, rows=1, cols=1);
-R = R * sum;
+
+sum = 0;
+for( i in seq(($1+1-1),($2+1-1),($3+1-1)) ) 
+{
+   sum = sum + 1; 
+}  
+
+R = matrix(1, rows=1, cols=1);
+R = R * sum;
 write(R, $4);       
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor1.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor1.dml b/src/test/scripts/functions/parfor/parfor1.dml
index d4dab06..311d1c0 100644
--- a/src/test/scripts/functions/parfor/parfor1.dml
+++ b/src/test/scripts/functions/parfor/parfor1.dml
@@ -19,12 +19,12 @@
 #
 #-------------------------------------------------------------
 
-
-a = 1;
-
-parfor( i in 1:10 )
-{
-   b = i + a;
-   #print(b);
-}
+
+a = 1;
+
+parfor( i in 1:10 )
+{
+   b = i + a;
+   #print(b);
+}
  
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor10.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor10.dml b/src/test/scripts/functions/parfor/parfor10.dml
index b4a7861..c4d77da 100644
--- a/src/test/scripts/functions/parfor/parfor10.dml
+++ b/src/test/scripts/functions/parfor/parfor10.dml
@@ -19,14 +19,14 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=10,cols=1);
-dummy = matrix(1, rows=1,cols=1);
-
-parfor( i in 1:10 )
-{ 
-   a = i;
-   A[i,1] = dummy*a;
-}
-
+
+A = matrix(0,rows=10,cols=1);
+dummy = matrix(1, rows=1,cols=1);
+
+parfor( i in 1:10 )
+{ 
+   a = i;
+   A[i,1] = dummy*a;
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor11.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor11.dml b/src/test/scripts/functions/parfor/parfor11.dml
index b1cffe2..afd88c5 100644
--- a/src/test/scripts/functions/parfor/parfor11.dml
+++ b/src/test/scripts/functions/parfor/parfor11.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0, rows=10,cols=1);
-B = Rand(rows=10,cols=1);
-
-parfor( i in 1:10 )
-{ 
-   A[i,1] = B[i,1];
-}
-
+
+A = matrix(0, rows=10,cols=1);
+B = Rand(rows=10,cols=1);
+
+parfor( i in 1:10 )
+{ 
+   A[i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor12.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor12.dml b/src/test/scripts/functions/parfor/parfor12.dml
index 8dd500f..8c257dd 100644
--- a/src/test/scripts/functions/parfor/parfor12.dml
+++ b/src/test/scripts/functions/parfor/parfor12.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=10,cols=1);
-B = Rand(rows=10,cols=1);
-
-parfor( i in 1:9 )
-{ 
-   A[i,1] = B[i+1,1];
-}
-
+
+A = matrix(0,rows=10,cols=1);
+B = Rand(rows=10,cols=1);
+
+parfor( i in 1:9 )
+{ 
+   A[i,1] = B[i+1,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor13.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor13.dml b/src/test/scripts/functions/parfor/parfor13.dml
index af2b2cb..d0dcadf 100644
--- a/src/test/scripts/functions/parfor/parfor13.dml
+++ b/src/test/scripts/functions/parfor/parfor13.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=10,cols=1);
-B = Rand(rows=10,cols=1);
-
-parfor( i in 1:9 )
-{ 
-   A[i,1] = B[i,1] + B[i+1,1];
-}
-
+
+A = matrix(0,rows=10,cols=1);
+B = Rand(rows=10,cols=1);
+
+parfor( i in 1:9 )
+{ 
+   A[i,1] = B[i,1] + B[i+1,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor14.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor14.dml b/src/test/scripts/functions/parfor/parfor14.dml
index bb4db22..bbc1a7c 100644
--- a/src/test/scripts/functions/parfor/parfor14.dml
+++ b/src/test/scripts/functions/parfor/parfor14.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=10,cols=1);
-B = Rand(rows=10,cols=1);
-
-parfor( i in 2:10 )
-{ 
-   A[i,1] = B[i,1] + A[i-1,1];
-}
-
+
+A = matrix(0,rows=10,cols=1);
+B = Rand(rows=10,cols=1);
+
+parfor( i in 2:10 )
+{ 
+   A[i,1] = B[i,1] + A[i-1,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor15.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor15.dml b/src/test/scripts/functions/parfor/parfor15.dml
index a8bc2a6..5c11ed1 100644
--- a/src/test/scripts/functions/parfor/parfor15.dml
+++ b/src/test/scripts/functions/parfor/parfor15.dml
@@ -19,14 +19,14 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-parfor( i in 1:10 )
-{ 
-   A[i,1] = B[i,1];
-   A[i+10,1] = B[i+10,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+parfor( i in 1:10 )
+{ 
+   A[i,1] = B[i,1];
+   A[i+10,1] = B[i+10,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor16.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor16.dml b/src/test/scripts/functions/parfor/parfor16.dml
index db55b28..ce29503 100644
--- a/src/test/scripts/functions/parfor/parfor16.dml
+++ b/src/test/scripts/functions/parfor/parfor16.dml
@@ -19,14 +19,14 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-parfor( i in 1:10 )
-{ 
-   A[i,1] = B[i,1];
-   A[i*2,1] = B[i*2,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+parfor( i in 1:10 )
+{ 
+   A[i,1] = B[i,1];
+   A[i*2,1] = B[i*2,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor17.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor17.dml b/src/test/scripts/functions/parfor/parfor17.dml
index e1d7704..a635271 100644
--- a/src/test/scripts/functions/parfor/parfor17.dml
+++ b/src/test/scripts/functions/parfor/parfor17.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0, rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-#GCD true, Banerjee true
-parfor( i in 1:10 )
-{ 
-   A[2*i+10,1] = B[i,1];
-   A[5*i,1] = B[i,1];
-}
-
+
+A = matrix(0, rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+#GCD true, Banerjee true
+parfor( i in 1:10 )
+{ 
+   A[2*i+10,1] = B[i,1];
+   A[5*i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor18.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor18.dml b/src/test/scripts/functions/parfor/parfor18.dml
index ae6711e..d04c6b1 100644
--- a/src/test/scripts/functions/parfor/parfor18.dml
+++ b/src/test/scripts/functions/parfor/parfor18.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-#GCD true, Banerjee false
-parfor( i in 1:2 )
-{ 
-   A[2*i+10,1] = B[i,1];
-   A[5*i,1] = B[i,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+#GCD true, Banerjee false
+parfor( i in 1:2 )
+{ 
+   A[2*i+10,1] = B[i,1];
+   A[5*i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor19.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor19.dml b/src/test/scripts/functions/parfor/parfor19.dml
index df20243..7f63218 100644
--- a/src/test/scripts/functions/parfor/parfor19.dml
+++ b/src/test/scripts/functions/parfor/parfor19.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-#GCD false
-parfor( i in 1:4 )
-{ 
-   A[7*i+1,1] = B[i,1];
-   A[13*i+1,1] = B[i,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+#GCD false
+parfor( i in 1:4 )
+{ 
+   A[7*i+1,1] = B[i,1];
+   A[13*i+1,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor2.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor2.dml b/src/test/scripts/functions/parfor/parfor2.dml
index da4e83c..62bc86b 100644
--- a/src/test/scripts/functions/parfor/parfor2.dml
+++ b/src/test/scripts/functions/parfor/parfor2.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-a = 1;
-
-parfor( i in 1:10 )
-{
-   b = i + a;
-   a = b;
-   #print(a);
-   #print(b);
-}
-
-#print(a);
+
+a = 1;
+
+parfor( i in 1:10 )
+{
+   b = i + a;
+   a = b;
+   #print(a);
+   #print(b);
+}
+
+#print(a);
  
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor20.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor20.dml b/src/test/scripts/functions/parfor/parfor20.dml
index bc987da..c7eb9af 100644
--- a/src/test/scripts/functions/parfor/parfor20.dml
+++ b/src/test/scripts/functions/parfor/parfor20.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-#GCD false
-parfor( i in 10:15 )
-{ 
-
-   B[i,1] = A[i-10,1];
-   A[i,1] = B[i,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+#GCD false
+parfor( i in 10:15 )
+{ 
+
+   B[i,1] = A[i-10,1];
+   A[i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor21.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor21.dml b/src/test/scripts/functions/parfor/parfor21.dml
index d087d2b..5038caa 100644
--- a/src/test/scripts/functions/parfor/parfor21.dml
+++ b/src/test/scripts/functions/parfor/parfor21.dml
@@ -19,16 +19,16 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-#GCD false
-parfor( i in 10:15 )
-{ 
-
-   B[i,1] = A[i-5,1];
-   A[i,1] = B[i,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+#GCD false
+parfor( i in 10:15 )
+{ 
+
+   B[i,1] = A[i-5,1];
+   A[i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor22.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor22.dml b/src/test/scripts/functions/parfor/parfor22.dml
index e3425b0..83d6cf9 100644
--- a/src/test/scripts/functions/parfor/parfor22.dml
+++ b/src/test/scripts/functions/parfor/parfor22.dml
@@ -19,18 +19,18 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-
-#GCD false
-parfor( i in 10:15 )
-{ 
-
-   B[i,1] = A[i-10,1];
-   #print(B[i,1]);
-   B[i,1] = A[i-10,1]+1;
-   A[i,1] = B[i,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+
+#GCD false
+parfor( i in 10:15 )
+{ 
+
+   B[i,1] = A[i-10,1];
+   #print(B[i,1]);
+   B[i,1] = A[i-10,1]+1;
+   A[i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor23.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor23.dml b/src/test/scripts/functions/parfor/parfor23.dml
index 15305a0..0761afb 100644
--- a/src/test/scripts/functions/parfor/parfor23.dml
+++ b/src/test/scripts/functions/parfor/parfor23.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-dummy = matrix(1,rows=1,cols=1);
-
-parfor( i in seq(2,10,2) )
-{ 
-   B[i,1] = dummy*i;
-   A[i,1] = B[i,1];
-}
-
+
+A = matrix(0,rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+dummy = matrix(1,rows=1,cols=1);
+
+parfor( i in seq(2,10,2) )
+{ 
+   B[i,1] = dummy*i;
+   A[i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor24.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor24.dml b/src/test/scripts/functions/parfor/parfor24.dml
index 506ede8..50d1cd2 100644
--- a/src/test/scripts/functions/parfor/parfor24.dml
+++ b/src/test/scripts/functions/parfor/parfor24.dml
@@ -19,15 +19,15 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0, rows=20,cols=1);
-B = Rand(rows=20,cols=1);
-dummy = matrix(1, rows=1,cols=1);
-
-parfor( i in seq(1,10,1) )
-{ 
-   B[i,1] = dummy*i;
-   A[i,1] = B[i,1];
-}
-
+
+A = matrix(0, rows=20,cols=1);
+B = Rand(rows=20,cols=1);
+dummy = matrix(1, rows=1,cols=1);
+
+parfor( i in seq(1,10,1) )
+{ 
+   B[i,1] = dummy*i;
+   A[i,1] = B[i,1];
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor25.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor25.dml b/src/test/scripts/functions/parfor/parfor25.dml
index 7d15541..0617606 100644
--- a/src/test/scripts/functions/parfor/parfor25.dml
+++ b/src/test/scripts/functions/parfor/parfor25.dml
@@ -19,14 +19,14 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=2,cols=20);
-dummy = matrix(1, rows=1,cols=1);
-
-parfor( i in 1:20 )
-{ 
-   A[1,i] = dummy*i;
-   A[2,i] = dummy*i; 
-}
-
+
+A = matrix(0,rows=2,cols=20);
+dummy = matrix(1, rows=1,cols=1);
+
+parfor( i in 1:20 )
+{ 
+   A[1,i] = dummy*i;
+   A[2,i] = dummy*i; 
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor26.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor26.dml b/src/test/scripts/functions/parfor/parfor26.dml
index 214283b..c5c07fb 100644
--- a/src/test/scripts/functions/parfor/parfor26.dml
+++ b/src/test/scripts/functions/parfor/parfor26.dml
@@ -19,14 +19,14 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=20,cols=2);
-dummy = matrix(1,rows=1,cols=1);
-
-parfor( i in 1:20 )
-{ 
-   A[i,1] = dummy*i;
-   A[i,2] = dummy*i; 
-}
-
+
+A = matrix(0,rows=20,cols=2);
+dummy = matrix(1,rows=1,cols=1);
+
+parfor( i in 1:20 )
+{ 
+   A[i,1] = dummy*i;
+   A[i,2] = dummy*i; 
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor26b.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor26b.dml b/src/test/scripts/functions/parfor/parfor26b.dml
index 802a412..d40dde2 100644
--- a/src/test/scripts/functions/parfor/parfor26b.dml
+++ b/src/test/scripts/functions/parfor/parfor26b.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=10,cols=10);
-
-parfor( i in 2:10 )
-{ 
-   B = A[1,i-1];
-   A[1,i] = B*i; 
-}
-
+
+A = matrix(0,rows=10,cols=10);
+
+parfor( i in 2:10 )
+{ 
+   B = A[1,i-1];
+   A[1,i] = B*i; 
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor26c.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor26c.dml b/src/test/scripts/functions/parfor/parfor26c.dml
index 1125fde..23d3e44 100644
--- a/src/test/scripts/functions/parfor/parfor26c.dml
+++ b/src/test/scripts/functions/parfor/parfor26c.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0, rows=10,cols=10);
-
-parfor( i in 1:4 )
-{ 
-   B = A[2*i+1,1];
-   A[2*i,1] = B*i; 
-}
-
+
+A = matrix(0, rows=10,cols=10);
+
+parfor( i in 1:4 )
+{ 
+   B = A[2*i+1,1];
+   A[2*i,1] = B*i; 
+}
+
 #print(A);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/816e2db8/src/test/scripts/functions/parfor/parfor26c2.dml
----------------------------------------------------------------------
diff --git a/src/test/scripts/functions/parfor/parfor26c2.dml b/src/test/scripts/functions/parfor/parfor26c2.dml
index 9832da5..f10155e 100644
--- a/src/test/scripts/functions/parfor/parfor26c2.dml
+++ b/src/test/scripts/functions/parfor/parfor26c2.dml
@@ -19,13 +19,13 @@
 #
 #-------------------------------------------------------------
 
-
-A = matrix(0,rows=10,cols=10);
-
-parfor( i in 1:4 )
-{ 
-   B = A[2*i+1, ];
-   A[2*i, ] = B*i; 
-}
-
+
+A = matrix(0,rows=10,cols=10);
+
+parfor( i in 1:4 )
+{ 
+   B = A[2*i+1, ];
+   A[2*i, ] = B*i; 
+}
+
 #print(A);
\ No newline at end of file