data/full_repos/permissive/191565347/counter60/counter.v
data/verilator_xmls/089451a9-8efa-405e-b9fd-a9d10077c513.xml
module counter(qout,cout,cin);
	output[7:0] qout;
	output cout;
	input cin;
	
	reg[7:0] qout;
	reg cout;
	always@(posedge cin) begin
		cout<=0;
		if(qout[3:0]==9) begin
			if(qout[7:4]==5) begin
				qout<=0;
				cout<=1;
			end
			else begin
				qout[3:0]<=0;
				qout[7:4]<=qout[7:4]+1'b1;
			end
		end
		else
			qout[3:0]<=qout[3:0]+1'b1;
	end
endmodule
module counter(qout,cout,cin);

	output[7:0] qout;
	output cout;
	input cin;
	
	reg[7:0] qout;
	reg cout;
	always@(posedge cin) begin
		cout<=0;
		if(qout[3:0]==9) begin
			if(qout[7:4]==5) begin
				qout<=0;
				cout<=1;
			end
			else begin
				qout[3:0]<=0;
				qout[7:4]<=qout[7:4]+1'b1;
			end
		end
		else
			qout[3:0]<=qout[3:0]+1'b1;
	end
endmodule