data/full_repos/permissive/160024456/day02/checker.v
 line:5: before: ")"
1: b"%Error: data/full_repos/permissive/160024456/day02/checker.v:1: Unsupported: SystemVerilog 2009 reserved word not implemented: 'checker'\nmodule checker (\n       ^~~~~~~\n%Error: data/full_repos/permissive/160024456/day02/checker.v:2: syntax error, unexpected '(', expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER\n  data,\n  ^~~~\n%Error: data/full_repos/permissive/160024456/day02/checker.v:15: syntax error, unexpected genvar\ngenvar i;\n^~~~~~\n%Error: data/full_repos/permissive/160024456/day02/checker.v:34: syntax error, unexpected assign\nassign p[0] = (counts[0] === 2);\n^~~~~~\n%Error: Exiting due to 4 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n"
module checker (
  data,
  pair,
  triplet,
);
input [25:0][7:0] data;
output pair;
output triplet;



wire [25:0][25:0] cells;
wire [25:0][5:0] counts;

genvar i;
genvar j;
for (i=0; i<26; i = i + 1) begin
  for (j=0; j<26; j = j + 1) begin
    assign cells[i][j] = (data[i] === data[j]);
  end
end



for (i=0; i<26; i = i + 1) begin
  bit_counter t (.data({6'b0, cells[i]}), .r(counts[i]));
end



wire [0:25] p;
wire [0:25] t;

assign p[0] = (counts[0] === 2);
assign t[0] = (counts[0] === 3);

for (i=1; i<26; i = i + 1) begin
  assign p[i] = ((counts[i] === 2) | p[i-1]);
  assign t[i] = ((counts[i] === 3) | t[i-1]);
end

assign pair = p[25];
assign triplet = t[25];

endmodule
module checker (
  data,
  pair,
  triplet,
);

input [25:0][7:0] data;
output pair;
output triplet;



wire [25:0][25:0] cells;
wire [25:0][5:0] counts;

genvar i;
genvar j;
for (i=0; i<26; i = i + 1) begin
  for (j=0; j<26; j = j + 1) begin
    assign cells[i][j] = (data[i] === data[j]);
  end
end



for (i=0; i<26; i = i + 1) begin
  bit_counter t (.data({6'b0, cells[i]}), .r(counts[i]));
end



wire [0:25] p;
wire [0:25] t;

assign p[0] = (counts[0] === 2);
assign t[0] = (counts[0] === 3);

for (i=1; i<26; i = i + 1) begin
  assign p[i] = ((counts[i] === 2) | p[i-1]);
  assign t[i] = ((counts[i] === 3) | t[i-1]);
end

assign pair = p[25];
assign triplet = t[25];

endmodule