data/full_repos/permissive/143278/ivltests/function_exp.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/function_exp.v:35: Unsupported: Ignoring delay on this delayed statement.\n    #1;\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 main;

  function [3:0] foo;
    input [3:0] x;
    begin
      foo = ~x + 1;
    end
  endfunction

  reg [3:0] x;
  wire [3:0] y;

  assign y = foo(x);

  initial begin
    x = 4'b0110;
    #1;
    if (y==4'b1010)
      $display("PASSED");
    else
      $display("FAILED");
  end

endmodule
module main;


  function [3:0] foo;
    input [3:0] x;
    begin
      foo = ~x + 1;
    end
  endfunction

  reg [3:0] x;
  wire [3:0] y;

  assign y = foo(x);

  initial begin
    x = 4'b0110;
    #1;
    if (y==4'b1010)
      $display("PASSED");
    else
      $display("FAILED");
  end

endmodule