data/full_repos/permissive/143278/ivltests/non-polymorphic-abs.v
1: b'%Error: data/full_repos/permissive/143278/ivltests/non-polymorphic-abs.v:7: Unsupported or unknown PLI call: $abs\nlocalparam r = $abs((s ? a : b) / 2);\n               ^~~~\n%Error: Exiting due to 1 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module test();

localparam s = 0;
localparam a = 1.5;
localparam b = 1;
localparam r = $abs((s ? a : b) / 2);

initial begin
  $display("%g", r);
  if (r == 0.5)
    $display("PASSED");
  else
    $display("FAILED");
end

endmodule
module test();


localparam s = 0;
localparam a = 1.5;
localparam b = 1;
localparam r = $abs((s ? a : b) / 2);

initial begin
  $display("%g", r);
  if (r == 0.5)
    $display("PASSED");
  else
    $display("FAILED");
end

endmodule