data/full_repos/permissive/143278/ivltests/pr3022502.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr3022502.v:35: Unsupported: Ignoring delay on this delayed statement.\n      #1;\n      ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg pass;
  real vout;
  integer j;

  always @(j) begin
    vout = (j ==  0) ? 0.0 :
           (j ==  1) ? 0.1 :
           (j ==  2) ? 0.2 :
           (j ==  3) ? 0.3 :
           (j ==  4) ? 0.4 :
           (j ==  5) ? 0.5 :
           (j ==  6) ? 0.6 :
           (j ==  7) ? 0.7 :
           (j ==  8) ? 0.8 :
           (j ==  9) ? 0.9 :
           (j == 10) ? 1.0 :
           (j == 11) ? 1.1 :
           (j == 12) ? 1.2 :
           (j == 13) ? 1.3 :
           (j == 14) ? 1.4 :
           (j == 15) ? 1.5 :
           (j == 16) ? 1.6 :
           (j == 17) ? 1.7 :
           (j == 18) ? 1.8 :
           (j == 19) ? 1.9 : 0.0;
  end

  initial begin
    pass = 1'b1;

    for (j=0; j<20; j=j+1) begin
      #1;
      if (vout != j/10.0) begin
        $display("Failed: at %0d, got %f", j, vout);
        pass = 1'b0;
      end
    end

    if (pass) $display("PASSED");
  end
endmodule
module top;

  reg pass;
  real vout;
  integer j;

  always @(j) begin
    vout = (j ==  0) ? 0.0 :
           (j ==  1) ? 0.1 :
           (j ==  2) ? 0.2 :
           (j ==  3) ? 0.3 :
           (j ==  4) ? 0.4 :
           (j ==  5) ? 0.5 :
           (j ==  6) ? 0.6 :
           (j ==  7) ? 0.7 :
           (j ==  8) ? 0.8 :
           (j ==  9) ? 0.9 :
           (j == 10) ? 1.0 :
           (j == 11) ? 1.1 :
           (j == 12) ? 1.2 :
           (j == 13) ? 1.3 :
           (j == 14) ? 1.4 :
           (j == 15) ? 1.5 :
           (j == 16) ? 1.6 :
           (j == 17) ? 1.7 :
           (j == 18) ? 1.8 :
           (j == 19) ? 1.9 : 0.0;
  end

  initial begin
    pass = 1'b1;

    for (j=0; j<20; j=j+1) begin
      #1;
      if (vout != j/10.0) begin
        $display("Failed: at %0d, got %f", j, vout);
        pass = 1'b0;
      end
    end

    if (pass) $display("PASSED");
  end
endmodule