data/full_repos/permissive/42434302/ivltests/mixed_type_div_mod.v
1: b'%Error: data/full_repos/permissive/42434302/ivltests/mixed_type_div_mod.v:24: Unknown $display-like format code: \'%r\'\n      $display("Failed: int%real, expected 1.0, got %g", result);\n      ^~~~~~~~\n%Error: data/full_repos/permissive/42434302/ivltests/mixed_type_div_mod.v:31: Unknown $display-like format code: \'%i\'\n      $display("Failed: real%int, expected 1.0, got %g", result);\n      ^~~~~~~~\n%Error: Exiting due to 2 error(s)\n'
module top;
  reg pass;
  real result;
  initial begin
    pass = 1'b1;


    result = 1/2.0;
    if (result != 0.5) begin
      $display("Failed: int/real, expected 0.5, got %g", result);
      pass = 1'b0;
    end


    result = 1.0/2;
    if (result != 0.5) begin
      $display("Failed: real/int, expected 0.5, got %g", result);
      pass = 1'b0;
    end


    result = 1%2.0;
    if (result != 1.0) begin
      $display("Failed: int%real, expected 1.0, got %g", result);
      pass = 1'b0;
    end


    result = 1.0%2;
    if (result != 1.0) begin
      $display("Failed: real%int, expected 1.0, got %g", result);
      pass = 1'b0;
    end

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

  reg pass;
  real result;
  initial begin
    pass = 1'b1;


    result = 1/2.0;
    if (result != 0.5) begin
      $display("Failed: int/real, expected 0.5, got %g", result);
      pass = 1'b0;
    end


    result = 1.0/2;
    if (result != 0.5) begin
      $display("Failed: real/int, expected 0.5, got %g", result);
      pass = 1'b0;
    end


    result = 1%2.0;
    if (result != 1.0) begin
      $display("Failed: int%real, expected 1.0, got %g", result);
      pass = 1'b0;
    end


    result = 1.0%2;
    if (result != 1.0) begin
      $display("Failed: real%int, expected 1.0, got %g", result);
      pass = 1'b0;
    end

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