data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v
 line:13: before: "fork"
1: b'%Error: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:9: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:10: Unsupported: Ignoring delay on this delayed statement.\n      #3 result[3] = 1\'b1;\n      ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:11: Unsupported: Ignoring delay on this delayed statement.\n      #4 result[4] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:13: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:14: Unsupported: Ignoring delay on this delayed statement.\n      #1 result[1] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:15: Unsupported: Ignoring delay on this delayed statement.\n      #2 result[2] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:18: Unsupported: disable fork statements\n    disable fork;\n    ^~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/disable_fork_cmd.v:26: Unsupported: Ignoring delay on this delayed statement.\n    #10;\n    ^\n%Error: Exiting due to 3 error(s), 5 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg passed;
  reg [4:1] result;

  initial begin
    passed = 1'b1;
    result = 4'b0000;

    fork
      #3 result[3] = 1'b1;
      #4 result[4] = 1'b1;
    join_none
    fork
      #1 result[1] = 1'b1;
      #2 result[2] = 1'b1;
    join_any

    disable fork;

    if (result !== 4'b0001) begin
      $display("More than one process ran before the disable fork: %b", result);
      passed = 1'b0;
      result = 4'b0001;
    end

    #10;

    if (result !== 4'b0001) begin
      $display("Processes ran to completion after being disabled: %b", result);
      passed = 1'b0;
    end

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

  reg passed;
  reg [4:1] result;

  initial begin
    passed = 1'b1;
    result = 4'b0000;

    fork
      #3 result[3] = 1'b1;
      #4 result[4] = 1'b1;
    join_none
    fork
      #1 result[1] = 1'b1;
      #2 result[2] = 1'b1;
    join_any

    disable fork;

    if (result !== 4'b0001) begin
      $display("More than one process ran before the disable fork: %b", result);
      passed = 1'b0;
      result = 4'b0001;
    end

    #10;

    if (result !== 4'b0001) begin
      $display("Processes ran to completion after being disabled: %b", result);
      passed = 1'b0;
    end

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