data/full_repos/permissive/20401628/ball_color.v
 line:79: before: "."
1: b'%Error: data/full_repos/permissive/20401628/ball_color.v:79: syntax error, unexpected begin\n     case (color(.hue(huebuf), .val(valbuf), .sat(satbuf)) begin\n                                                           ^~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:84: syntax error, unexpected default\n      default:\n      ^~~~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:97: syntax error, unexpected begin\n     case (color(.hue(huebuf), .val(valbuf), .sat(satbuf)) begin\n                                                           ^~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:102: syntax error, unexpected default\n      default:\n      ^~~~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:115: syntax error, unexpected begin\n     case (color(.hue(huebuf), .val(valbuf), .sat(satbuf)) begin\n                                                           ^~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:120: syntax error, unexpected default\n      default:\n      ^~~~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:133: syntax error, unexpected begin\n     case (color(.hue(huebuf), .val(valbuf), .sat(satbuf)) begin\n                                                           ^~~~~\n%Error: data/full_repos/permissive/20401628/ball_color.v:138: syntax error, unexpected default\n      default:\n      ^~~~~~~\n%Error: Cannot continue\n'
function [3:0] color;
	input [7:0] hue;
	input [4:0] sat;
	input [4:0] val;
	begin
		if ((val > MIN_VAL) && (sat > MIN_SAT)) begin
			if ((0 <= hue && hue < RED_HIGH) || (RED_LOW < hue && hue <= 360)) begin
				color = RED;
			end else if (BLUE_LOW <= hue && hue <= BLUE_HIGH) begin
				color = BLUE;
			end else if (YELLOW_LOW <= hue && hue <= YE_HIGH) begin
				color = YELLOW;
			end else begin
				color = VOID;
			end
		end else if (val < BLACK_VAL) begin
			color = BLACK;
		end else begin
			color = VOID;
		end
	end
endfunction
function [3:0] color;

	input [7:0] hue;
	input [4:0] sat;
	input [4:0] val;
	begin
		if ((val > MIN_VAL) && (sat > MIN_SAT)) begin
			if ((0 <= hue && hue < RED_HIGH) || (RED_LOW < hue && hue <= 360)) begin
				color = RED;
			end else if (BLUE_LOW <= hue && hue <= BLUE_HIGH) begin
				color = BLUE;
			end else if (YELLOW_LOW <= hue && hue <= YE_HIGH) begin
				color = YELLOW;
			end else begin
				color = VOID;
			end
		end else if (val < BLACK_VAL) begin
			color = BLACK;
		end else begin
			color = VOID;
		end
	end
endfunction