private boolean runConstantCheck(DataIdentifier dat1) throws LanguageException {
  LOG.trace("PARFOR: runConstantCheck.");
  boolean ret=true;
  LinearFunction f1=getLinearFunction(dat1);
  if (f1 == null)   return true;
  LOG.trace("PARFOR: f1: " + f1.toString());
  boolean gcheck=true;
  for (  String var : _bounds._local) {
    if (var.startsWith(INTERAL_FN_INDEX_ROW) || var.startsWith(INTERAL_FN_INDEX_COL)) {
      continue;
    }
    boolean lcheck=false;
    for (int i=0; i < f1._vars.length; i++)     if (var.equals(f1._vars[i]))     if (f1._b[i] != 0)     lcheck=true;
    if (!lcheck) {
      gcheck=false;
      break;
    }
  }
  if (gcheck)   ret=false;
  return ret;
}

private boolean runConstantCheck ( DataIdentifier dat1 ) throws LanguageException { LOG . trace ( "PARFOR: runConstantCheck." ) ; boolean ret = true ; LinearFunction f1 = getLinearFunction ( dat1 ) ; if ( f1 == null ) return true ; LOG . trace ( "PARFOR: f1: " + f1 . toString ( ) ) ; boolean gcheck = true ; for ( String var : _bounds . _local ) { if ( var . startsWith ( INTERAL_FN_INDEX_ROW ) || var . startsWith ( INTERAL_FN_INDEX_COL ) ) { continue ; } boolean lcheck = false ; for ( int i = 0 ; i < f1 . _vars . length ; i ++ ) if ( var . equals ( f1 . _vars [ i ] ) ) if ( f1 . _b [ i ] != 0 ) lcheck = true ; if ( ! lcheck ) { gcheck = false ; break ; } } if ( gcheck ) ret = false ; return ret ; }
runs a constant check for a single data identifier ( target of assignment ) . if constant , then every iteration writes to the same cell .
