public static double testNeuralNetwork() {
    { double errorSum = 0.0;
      int numTesting = Logic.$TESTING_EXAMPLES$.length();

      { TrainingExample example = null;
        Cons iter000 = Logic.$TESTING_EXAMPLES$.theConsList;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          example = ((TrainingExample)(iter000.value));
          if (!(example.module == null)) {
            example.module.changeModule();
          }
          { Cons form = ((Cons)(Stella_Object.copyConsTree(example.query)));
            QueryIterator query = Logic.makeQuery(Stella.NIL, Logic.coerceToTree(form), Stella.NIL, Stella.NIL);
            double output = QueryIterator.returnPartialTruth(query, true);
            double error = example.score - output;

            errorSum = errorSum + (((error < 0.0) ? (0.0 - error) : error));
          }
        }
      }
      errorSum = errorSum / numTesting;
      return (errorSum);
    }
  }