data/full_repos/permissive/117436613/led.v
 line:39: before: "("
1: b'%Warning-LITENDIAN: data/full_repos/permissive/117436613/led.v:73: Little bit endian vector: MSB < LSB of bit range: 0:2\n function [7:0] sel2(input [0:2] pos, input [15:0] data);\n                           ^\n                    ... Use "/* verilator lint_off LITENDIAN */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:75: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SEL generates 4 bits.\n                                                             : ... In instance led\n  0: sel2 = data[15:12];\n          ^\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:76: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SEL generates 4 bits.\n                                                             : ... In instance led\n  1: sel2 = data[11:8];\n          ^\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:77: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SEL generates 4 bits.\n                                                             : ... In instance led\n  2: sel2 = data[7:4];\n          ^\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:78: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s SEL generates 4 bits.\n                                                             : ... In instance led\n  3: sel2 = data[3:0];\n          ^\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:31: Operator FUNCREF \'sel1\' expects 3 bits on the Function Argument, but Function Argument\'s VARREF \'state\' generates 2 bits.\n                                                             : ... In instance led\n assign dbg_led[30:24] = LED(sel2(0, sel1(state, data)));\n                                     ^~~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:31: Operator FUNCREF \'LED\' expects 4 bits on the Function Argument, but Function Argument\'s FUNCREF \'sel2\' generates 8 bits.\n                                                             : ... In instance led\n assign dbg_led[30:24] = LED(sel2(0, sel1(state, data)));\n                         ^~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:33: Operator FUNCREF \'sel1\' expects 3 bits on the Function Argument, but Function Argument\'s VARREF \'state\' generates 2 bits.\n                                                             : ... In instance led\n assign dbg_led[22:16] = LED(sel2(1, sel1(state, data)));\n                                     ^~~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:33: Operator FUNCREF \'LED\' expects 4 bits on the Function Argument, but Function Argument\'s FUNCREF \'sel2\' generates 8 bits.\n                                                             : ... In instance led\n assign dbg_led[22:16] = LED(sel2(1, sel1(state, data)));\n                         ^~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:35: Operator FUNCREF \'sel1\' expects 3 bits on the Function Argument, but Function Argument\'s VARREF \'state\' generates 2 bits.\n                                                             : ... In instance led\n assign dbg_led[14:8] = LED(sel2(2, sel1(state, data)));\n                                    ^~~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:35: Operator FUNCREF \'LED\' expects 4 bits on the Function Argument, but Function Argument\'s FUNCREF \'sel2\' generates 8 bits.\n                                                             : ... In instance led\n assign dbg_led[14:8] = LED(sel2(2, sel1(state, data)));\n                        ^~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:37: Operator FUNCREF \'sel1\' expects 3 bits on the Function Argument, but Function Argument\'s VARREF \'state\' generates 2 bits.\n                                                             : ... In instance led\n assign dbg_led[6:0] = LED(sel2(3, sel1(state, data)));\n                                   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/117436613/led.v:37: Operator FUNCREF \'LED\' expects 4 bits on the Function Argument, but Function Argument\'s FUNCREF \'sel2\' generates 8 bits.\n                                                             : ... In instance led\n assign dbg_led[6:0] = LED(sel2(3, sel1(state, data)));\n                       ^~~\n%Error: Exiting due to 13 warning(s)\n'
function [6:0] LED(input [3:0] in);
		begin
			case (in)
			4'h0: LED = ~7'b0111111;
			4'h1: LED = ~7'b0000110;
			4'h2: LED = ~7'b1011011;
			4'h3: LED = ~7'b1001111;
			4'h4: LED = ~7'b1100110;
			4'h5: LED = ~7'b1101101;
			4'h6: LED = ~7'b1111101;
			4'h7: LED = ~7'b0000111;
			4'h8: LED = ~7'b1111111;
			4'h9: LED = ~7'b1100111;
			4'ha: LED = ~7'b1110111;
			4'hb: LED = ~7'b1111100;
			4'hc: LED = ~7'b0111001;
			4'hd: LED = ~7'b1011110;
			4'he: LED = ~7'b1111001;
			4'hf: LED = ~7'b1110001;
			endcase
		end
	endfunction
function [6:0] LED(input [3:0] in);

		begin
			case (in)
			4'h0: LED = ~7'b0111111;
			4'h1: LED = ~7'b0000110;
			4'h2: LED = ~7'b1011011;
			4'h3: LED = ~7'b1001111;
			4'h4: LED = ~7'b1100110;
			4'h5: LED = ~7'b1101101;
			4'h6: LED = ~7'b1111101;
			4'h7: LED = ~7'b0000111;
			4'h8: LED = ~7'b1111111;
			4'h9: LED = ~7'b1100111;
			4'ha: LED = ~7'b1110111;
			4'hb: LED = ~7'b1111100;
			4'hc: LED = ~7'b0111001;
			4'hd: LED = ~7'b1011110;
			4'he: LED = ~7'b1111001;
			4'hf: LED = ~7'b1110001;
			endcase
		end
	endfunction