data/full_repos/permissive/181658840/1_Adders.v
 line:10: before: ":"
1: b'%Error: data/full_repos/permissive/181658840/1_Adders.v:29: syntax error, unexpected endgenerate\n    endgenerate\n    ^~~~~~~~~~~\n%Error: Cannot continue\n'
module adder(a, b, c);
    parameter N;
    input[N-1:0] a, b;
    output [N-1:0] c;
    wire[N-1:0] carry;
    generate for (genvar i=0; i<N; i=i+1) begin
        if (i==0) half_adder a(a[i], b[i], c[i], carry[i]);
        else full_adder a(a[i], b[i], carry[i-1], c[i], carry[i]);
    endgenerate
endmodule
module adder(a, b, c);

    parameter N;
    input[N-1:0] a, b;
    output [N-1:0] c;
    wire[N-1:0] carry;
    generate for (genvar i=0; i<N; i=i+1) begin
        if (i==0) half_adder a(a[i], b[i], c[i], carry[i]);
        else full_adder a(a[i], b[i], carry[i-1], c[i], carry[i]);
    endgenerate
endmodule