data/full_repos/permissive/143278/ivltests/pr995.v
1: b'%Error: data/full_repos/permissive/143278/ivltests/pr995.v:16: Unsupported: Seeding $random doesn\'t map to C++, use $c("srand")\n      result=$random(seed);\n             ^~~~~~~\n%Error: Internal Error: data/full_repos/permissive/143278/ivltests/pr995.v:16: ../V3Ast.cpp:358: Null item passed to setOp1p\n      result=$random(seed);\n            ^\n                        ... See the manual and https://verilator.org for more assistance.\n'
module pr995 ();
   integer seed;
   integer i;
   integer result;

   initial begin
      seed = 1;
      $display ("Start sequence: seed=%h", seed);

      result=$random(seed);
      $display ("seed=%h result=%h", seed, result);

      for (i=0; i<30; i=i+1) begin
	 result=$random(seed);
	 $display ("seed=%h result=%h", seed, result);
      end

      seed = 2;
      $display ("Start sequence: seed=%h", seed);

      result=$random(seed);
      $display ("seed=%h result=%h", seed, result);

      for (i=0; i<30; i=i+1) begin
	 result=$random(seed);
	 $display ("seed=%h result=%h", seed, result);
      end

      seed = 1;
      $display ("Start sequence: seed=%h", seed);

      result=$random(seed);
      $display ("seed=%h result=%h", seed, result);

      for (i=0; i<30; i=i+1) begin
	 result=$random(seed);
	 $display ("seed=%h result=%h", seed, result);
      end
   end
endmodule
module pr995 ();

   integer seed;
   integer i;
   integer result;

   initial begin
      seed = 1;
      $display ("Start sequence: seed=%h", seed);

      result=$random(seed);
      $display ("seed=%h result=%h", seed, result);

      for (i=0; i<30; i=i+1) begin
	 result=$random(seed);
	 $display ("seed=%h result=%h", seed, result);
      end

      seed = 2;
      $display ("Start sequence: seed=%h", seed);

      result=$random(seed);
      $display ("seed=%h result=%h", seed, result);

      for (i=0; i<30; i=i+1) begin
	 result=$random(seed);
	 $display ("seed=%h result=%h", seed, result);
      end

      seed = 1;
      $display ("Start sequence: seed=%h", seed);

      result=$random(seed);
      $display ("seed=%h result=%h", seed, result);

      for (i=0; i<30; i=i+1) begin
	 result=$random(seed);
	 $display ("seed=%h result=%h", seed, result);
      end
   end
endmodule