data/full_repos/permissive/184332405/compare.v
1: b"%Error: data/full_repos/permissive/184332405/compare.v:21: Input/output/inout does not appear in port list: 'overflow'\noutput overflow;  \n       ^~~~~~~~\n%Error: Exiting due to 1 error(s)\n"
module compare( s, a, b, ctrl );
input signed [7:0] a;
input signed [7:0] b;
output reg   [7:0] s;
output overflow;
input [3:0] ctrl;

always @( ctrl or a or b) begin
	case (ctrl)
		4'd2:  s = a;
		4'd3:  s = a + 1;
		4'd4:  s = a - 1;
		4'd5:
		begin
			if(a < 0)
				s = a + 1;
			else
				s = a;
		end
		4'd6:  s = ~(a | b);
		4'd7:  s = a^b;
		4'd8:  s = a^~b;
		4'd9:  s = (a > b);
		4'd10: s = (a < b);
		4'd11: s = (a == b);
		default: s = 0;
	endcase
end

endmodule
module compare( s, a, b, ctrl );

input signed [7:0] a;
input signed [7:0] b;
output reg   [7:0] s;
output overflow;
input [3:0] ctrl;

always @( ctrl or a or b) begin
	case (ctrl)
		4'd2:  s = a;
		4'd3:  s = a + 1;
		4'd4:  s = a - 1;
		4'd5:
		begin
			if(a < 0)
				s = a + 1;
			else
				s = a;
		end
		4'd6:  s = ~(a | b);
		4'd7:  s = a^b;
		4'd8:  s = a^~b;
		4'd9:  s = (a > b);
		4'd10: s = (a < b);
		4'd11: s = (a == b);
		default: s = 0;
	endcase
end

endmodule