data/full_repos/permissive/42434302/ivltests/pr1990269.v
1: b'%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr1990269.v:12: Selection index out of range: 11:4 outside 7:0\n                                                                              : ... In instance top\n    val[11:4] = 8\'hfe;\n       ^\n                   ... Use "/* verilator lint_off SELRANGE */" and lint_on around source to disable this message.\n%Warning-SELRANGE: data/full_repos/permissive/42434302/ivltests/pr1990269.v:6: Selection index out of range: 11:4 outside 7:0\n                                                                             : ... In instance top\n    val[3:-4] = 8\'h6f;\n       ^\n%Error: Exiting due to 2 warning(s)\n'
module top;
  reg pass = 1'b1;
  reg [7:0] val;

  initial begin
    val[3:-4] = 8'h6f;
    if (val !== 8'hx6) begin
      $display("FAILED underflow, got %h, expected 8'hx6", val);
      pass = 1'b0;
    end

    val[11:4] = 8'hfe;
    if (val !== 8'he6) begin
      $display("FAILED overflow, got %h, expected 8'he6", val);
      pass = 1'b0;
    end

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

  reg pass = 1'b1;
  reg [7:0] val;

  initial begin
    val[3:-4] = 8'h6f;
    if (val !== 8'hx6) begin
      $display("FAILED underflow, got %h, expected 8'hx6", val);
      pass = 1'b0;
    end

    val[11:4] = 8'hfe;
    if (val !== 8'he6) begin
      $display("FAILED overflow, got %h, expected 8'he6", val);
      pass = 1'b0;
    end

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