data/full_repos/permissive/143278/ivltests/comp1001_fail5.v
1: b'%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/comp1001_fail5.v:11: Operator DIV expects 8 bits on the LHS, but LHS\'s LOGNOT generates 1 bits.\n                                                                              : ... In instance top\n    res = !1\'b0/1\'b0;\n               ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/comp1001_fail5.v:11: Operator DIV expects 8 bits on the RHS, but RHS\'s CONST \'1\'h0\' generates 1 bits.\n                                                                              : ... In instance top\n    res = !1\'b0/1\'b0;\n               ^\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/comp1001_fail5.v:18: Operator DIV expects 8 bits on the LHS, but LHS\'s LOGNOT generates 1 bits.\n                                                                              : ... In instance top\n    res = !1\'b0/zero;\n               ^\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/comp1001_fail5.v:18: Operator DIV expects 8 bits on the RHS, but RHS\'s VARREF \'zero\' generates 1 bits.\n                                                                              : ... In instance top\n    res = !1\'b0/zero;\n               ^\n%Error: Exiting due to 4 warning(s)\n'
module top;
  reg passed;
  reg [7:0] res;
  reg zero;
  reg one;
  initial begin
    passed = 1'b1;
    zero = 1'b0;
    one = 1'b1;

    res = !1'b0/1'b0;
    if (res !== 8'bx) begin
      $display("FAILED: compiler.");
      passed = 1'b0;
    end


    res = !1'b0/zero;
    if (res !== 8'bx) begin
      $display("FAILED: run-time.");
      passed = 1'b0;
    end

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

  reg passed;
  reg [7:0] res;
  reg zero;
  reg one;
  initial begin
    passed = 1'b1;
    zero = 1'b0;
    one = 1'b1;

    res = !1'b0/1'b0;
    if (res !== 8'bx) begin
      $display("FAILED: compiler.");
      passed = 1'b0;
    end


    res = !1'b0/zero;
    if (res !== 8'bx) begin
      $display("FAILED: run-time.");
      passed = 1'b0;
    end

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