Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-3764

Incorrect scalar propagation w/ multi-return functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemDS 3.3
    • None
    • None

    Description

      The following script incorrectly produces -Inf.

      foo = function(matrix[double] A) return (Double minsc, matrix[double] B) {
        while(FALSE) {} # prevent inlining
        minsc = min(A);
        B = A + 7;
      }
      
      X = seq(1,7);
      minsc = -Inf;
      if( avg(X) <= 5 ) {
        [minsc, X] = foo(X)
      }
      
      # bug: minsc was incorrectly propagated as -Inf, leading to -Inf instead of 2
      R = as.matrix(minsc + 1);
      write(R, $1);
      
      

      Attachments

        Activity

          People

            mboehm7 Matthias Boehm
            mboehm7 Matthias Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: