data/full_repos/permissive/143278/ivltests/genvar_inc_dec.v
 line:3: before: "["
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/genvar_inc_dec.v:29: Unsupported: Ignoring delay on this delayed statement.\n  #1 failed = 0;\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 test();

integer array1[0:3];
integer array2[1:4];
integer array3[0:3];
integer array4[1:4];

integer i;

reg failed;

for (genvar i = 0; i < 4; ++i) begin
  initial array1[i] = i;
end

for (genvar i = 4; i > 0; --i) begin
  initial array2[i] = i;
end

for (genvar i = 0; i < 4; i++) begin
  initial array3[i] = i;
end

for (genvar i = 4; i > 0; i--) begin
  initial array4[i] = i;
end

initial begin
  #1 failed = 0;

  for (i = 0; i < 4; ++i) begin
    $display(array1[i]);
    if (array1[i] !== i) failed = 1;
  end

  for (i = 1; i < 5; ++i) begin
    $display(array2[i]);
    if (array2[i] !== i) failed = 1;
  end

  for (i = 0; i < 4; ++i) begin
    $display(array3[i]);
    if (array3[i] !== i) failed = 1;
  end

  for (i = 1; i < 5; ++i) begin
    $display(array4[i]);
    if (array4[i] !== i) failed = 1;
  end

  if (failed)
    $display("FAILED");
  else
    $display("PASSED");
end

endmodule
module test();


integer array1[0:3];
integer array2[1:4];
integer array3[0:3];
integer array4[1:4];

integer i;

reg failed;

for (genvar i = 0; i < 4; ++i) begin
  initial array1[i] = i;
end

for (genvar i = 4; i > 0; --i) begin
  initial array2[i] = i;
end

for (genvar i = 0; i < 4; i++) begin
  initial array3[i] = i;
end

for (genvar i = 4; i > 0; i--) begin
  initial array4[i] = i;
end

initial begin
  #1 failed = 0;

  for (i = 0; i < 4; ++i) begin
    $display(array1[i]);
    if (array1[i] !== i) failed = 1;
  end

  for (i = 1; i < 5; ++i) begin
    $display(array2[i]);
    if (array2[i] !== i) failed = 1;
  end

  for (i = 0; i < 4; ++i) begin
    $display(array3[i]);
    if (array3[i] !== i) failed = 1;
  end

  for (i = 1; i < 5; ++i) begin
    $display(array4[i]);
    if (array4[i] !== i) failed = 1;
  end

  if (failed)
    $display("FAILED");
  else
    $display("PASSED");
end

endmodule