#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
scalar_t__ get_line(char *, int /*<<< orphan*/);
scalar_t__ piece(char *, char, char *, int);
int /*<<< orphan*/ piece_quote_comma(char *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int main(int argc, char **argv) {
  char buffer[65536];
  char offset_str[128];
  char component[4096];
  char *offset_list_string;
  int offset, i;
  char destination_delimiter = ',';
  if (argc < 2) {
    fprintf(stderr,
            "Usage: %s offset_1[,...,offset_n] [destination_delimiter]\n",
            argv[0]);
    exit(1);
  }
  offset_list_string = argv[1];
  if (argc == 3)
    destination_delimiter = *argv[2];
  while (get_line(buffer, stdin)) {
    if (*offset_list_string) {
      for (i = 0; piece(offset_str, ',', offset_list_string, i); i++) {
        offset = atoi(offset_str);
        if (offset < 0) {
          fprintf(stderr, "ERROR in :%s: Offset (%d) is less than zero\n",
                  argv[0], offset);
          exit(1);
        }
        if (!piece_quote_comma(component, buffer, offset)) {
          fprintf(stderr,
                  "Warning %s: piece_quote_comma(%d) failed with [%s]\n",
                  argv[0], offset, buffer);
        } else {
          if (i == 0)
            printf("%s", component);
          else
            printf("%c%s", destination_delimiter, component);
        }
      }
    } else {
      for (offset = 0;; offset++) {
        if (!piece_quote_comma(component, buffer, offset)) {
          break;
        } else {
          if (offset == 0)
            printf("%s", component);
          else
            printf("%c%s", destination_delimiter, component);
        }
      }
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x2c,-0x110a1(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11c2 <main+0x52>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe4f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x11098(%rbp)
cmpl   $0x3,-0x8(%rbp)
jne    11eb <main+0x7b>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%al
mov    %al,-0x110a1(%rbp)
jmp    11f0 <main+0x80>
lea    -0x10010(%rbp),%rdi
mov    0x2dea(%rip),%rax
mov    (%rax),%esi
call   1030 <get_line@plt>
cmp    $0x0,%rax
je     1400 <main+0x290>
mov    -0x11098(%rbp),%rax
cmpb   $0x0,(%rax)
je     1356 <main+0x1e6>
movl   $0x0,-0x110a0(%rbp)
lea    -0x10090(%rbp),%rdi
mov    -0x11098(%rbp),%rdx
mov    -0x110a0(%rbp),%ecx
mov    $0x2c,%esi
call   1090 <piece@plt>
cmp    $0x0,%rax
je     1351 <main+0x1e1>
lea    -0x10090(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x1109c(%rbp)
cmpl   $0x0,-0x1109c(%rbp)
jge    129e <main+0x12e>
mov    0x2d61(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x1109c(%rbp),%ecx
lea    0xdae(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
lea    -0x11090(%rbp),%rdi
lea    -0x10010(%rbp),%rsi
mov    -0x1109c(%rbp),%edx
call   1060 <piece_quote_comma@plt>
cmp    $0x0,%eax
jne    12f0 <main+0x180>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x1109c(%rbp),%ecx
lea    -0x10010(%rbp),%r8
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1338 <main+0x1c8>
cmpl   $0x0,-0x110a0(%rbp)
jne    1317 <main+0x1a7>
lea    -0x11090(%rbp),%rsi
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1333 <main+0x1c3>
movsbl -0x110a1(%rbp),%esi
lea    -0x11090(%rbp),%rdx
lea    0xd70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1338 <main+0x1c8>
jmp    133d <main+0x1cd>
mov    -0x110a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x110a0(%rbp)
jmp    1229 <main+0xb9>
jmp    13ed <main+0x27d>
movl   $0x0,-0x1109c(%rbp)
lea    -0x11090(%rbp),%rdi
lea    -0x10010(%rbp),%rsi
mov    -0x1109c(%rbp),%edx
call   1060 <piece_quote_comma@plt>
cmp    $0x0,%eax
jne    1387 <main+0x217>
jmp    13e8 <main+0x278>
cmpl   $0x0,-0x1109c(%rbp)
jne    13ae <main+0x23e>
lea    -0x11090(%rbp),%rsi
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13ca <main+0x25a>
movsbl -0x110a1(%rbp),%esi
lea    -0x11090(%rbp),%rdx
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13cf <main+0x25f>
jmp    13d4 <main+0x264>
mov    -0x1109c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1109c(%rbp)
jmp    1360 <main+0x1f0>
jmp    13ed <main+0x27d>
lea    0xc45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11f0 <main+0x80>
xor    %eax,%eax
add    $0x110b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x11098,%rsp
mov    %rsi,0x8(%rsp)
cmp    $0x1,%edi
jle    1438 <main+0x2b8>
movl   $0x2c,0x4(%rsp)
cmp    $0x3,%edi
jne    11bc <main+0x3c>
mov    0x8(%rsp),%rax
mov    0x10(%rax),%rax
movsbl (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x8(%rsp),%rax
mov    0x8(%rax),%r15
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
lea    0x1090(%rsp),%rdi
call   1040 <get_line@plt>
test   %rax,%rax
je     13f8 <main+0x278>
lea    0x90(%rsp),%r12
lea    0x10(%rsp),%rbp
jmp    1229 <main+0xa9>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
lea    0x1090(%rsp),%rdi
call   1040 <get_line@plt>
test   %rax,%rax
je     13f8 <main+0x278>
cmpb   $0x0,(%r15)
je     1290 <main+0x110>
mov    %rbp,%rdi
mov    $0x2c,%esi
mov    %r15,%rdx
xor    %ecx,%ecx
call   10a0 <piece@plt>
test   %rax,%rax
je     1200 <main+0x80>
mov    %rbp,%rbx
mov    %rbp,%rdi
call   1080 <atoi@plt>
mov    %eax,%r13d
test   %eax,%eax
js     140c <main+0x28c>
mov    %r12,%rdi
lea    0x1090(%rsp),%rbp
mov    %rbp,%rsi
mov    %r13d,%edx
call   1070 <piece_quote_comma@plt>
test   %eax,%eax
je     1313 <main+0x193>
lea    0xe1d(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1338 <main+0x1b8>
mov    %r12,%rdi
lea    0x1090(%rsp),%rsi
xor    %edx,%edx
call   1070 <piece_quote_comma@plt>
test   %eax,%eax
je     1200 <main+0x80>
lea    0xded(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x1090(%rsp),%rsi
mov    $0x1,%edx
call   1070 <piece_quote_comma@plt>
test   %eax,%eax
je     1200 <main+0x80>
mov    $0x2,%ebx
nopl   (%rax)
lea    0xdb5(%rip),%rdi
mov    0x4(%rsp),%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x1090(%rsp),%rsi
mov    %ebx,%edx
call   1070 <piece_quote_comma@plt>
add    $0x1,%ebx
test   %eax,%eax
jne    12e0 <main+0x160>
jmp    1200 <main+0x80>
mov    0x2cbe(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rsp),%rax
mov    (%rax),%rdx
lea    0xd3d(%rip),%rsi
mov    %r13d,%ecx
mov    %rbp,%r8
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rbp
mov    %rbx,%rdi
mov    $0x2c,%esi
mov    %r15,%rdx
mov    $0x1,%ecx
call   10a0 <piece@plt>
test   %rax,%rax
je     1200 <main+0x80>
mov    $0x2,%r14d
jmp    13a8 <main+0x228>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xd25(%rip),%rdi
mov    0x4(%rsp),%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rbp
mov    %rbx,%rdi
mov    $0x2c,%esi
mov    %r15,%rdx
mov    %r14d,%ecx
call   10a0 <piece@plt>
add    $0x1,%r14d
test   %rax,%rax
je     1200 <main+0x80>
mov    %rbp,%rdi
call   1080 <atoi@plt>
mov    %eax,%r13d
test   %eax,%eax
js     140c <main+0x28c>
mov    %r12,%rdi
lea    0x1090(%rsp),%rbp
mov    %rbp,%rsi
mov    %r13d,%edx
call   1070 <piece_quote_comma@plt>
test   %eax,%eax
jne    1370 <main+0x1f0>
mov    0x2c00(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rsp),%rax
mov    (%rax),%rdx
lea    0xc7f(%rip),%rsi
mov    %r13d,%ecx
mov    %rbp,%r8
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1385 <main+0x205>
xor    %eax,%eax
add    $0x11098,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bc5(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rsp),%rax
mov    (%rax),%rdx
lea    0xc17(%rip),%rsi
mov    %r13d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2b99(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rsp),%rax
mov    (%rax),%rdx
lea    0xbb0(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [59 x i8] c"Usage: %s offset_1[,...,offset_n] [destination_delimiter]\0A\00"
@stdin = global i32 0
@.str.1 = [45 x i8] c"ERROR in :%s: Offset (%d) is less than zero\0A\00"
@.str.2 = [52 x i8] c"Warning %s: piece_quote_comma(%d) failed with [%s]\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [5 x i8] c"%c%s\00"
@.str.5 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [65536 x i8]
%7 = alloca [128 x i8]
%8 = alloca [4096 x i8]
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 44, i8* %12
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = call i32 @exit(i32 1)
unreachable
22: ; preds = %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
store i8* %25, i8** %9
%26 = load i32, i32* %4
%27 = icmp eq i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %22
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = load i8, i8* %31
store i8 %32, i8* %12
br label %33
33: ; preds = %28, %22
br label %34
34: ; preds = %119, %33
%35 = getelementptr inbounds [65536 x i8], [65536 x i8]* %6, i64 0, i64 0
%36 = load i32, i32* @stdin
%37 = call i64 @get_line(i8* %35, i32 %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %121
39: ; preds = %34
%40 = load i8*, i8** %9
%41 = load i8, i8* %40
%42 = icmp ne i8 %41, 0
br i1 %42, label %43, label %94
43: ; preds = %39
store i32 0, i32* %11
br label %44
44: ; preds = %90, %43
%45 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%46 = load i8*, i8** %9
%47 = load i32, i32* %11
%48 = call i64 @piece(i8* %45, i8 signext 44, i8* %46, i32 %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %93
50: ; preds = %44
%51 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%52 = call i32 @atoi(i8* %51)
store i32 %52, i32* %10
%53 = load i32, i32* %10
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %50
%56 = load i32, i32* @stderr
%57 = load i8**, i8*** %5
%58 = getelementptr inbounds i8*, i8** %57, i64 0
%59 = load i8*, i8** %58
%60 = load i32, i32* %10
%61 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i8* %59, i32 %60)
%62 = call i32 @exit(i32 1)
unreachable
63: ; preds = %50
%64 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%65 = getelementptr inbounds [65536 x i8], [65536 x i8]* %6, i64 0, i64 0
%66 = load i32, i32* %10
%67 = call i32 @piece_quote_comma(i8* %64, i8* %65, i32 %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %77, label %69
69: ; preds = %63
%70 = load i32, i32* @stderr
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 0
%73 = load i8*, i8** %72
%74 = load i32, i32* %10
%75 = getelementptr inbounds [65536 x i8], [65536 x i8]* %6, i64 0, i64 0
%76 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %73, i32 %74, i8* %75)
br label %89
77: ; preds = %63
%78 = load i32, i32* %11
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %81)
br label %88
83: ; preds = %77
%84 = load i8, i8* %12
%85 = sext i8 %84 to i32
%86 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %85, i8* %86)
br label %88
88: ; preds = %83, %80
br label %89
89: ; preds = %88, %69
br label %90
90: ; preds = %89
%91 = load i32, i32* %11
%92 = add nsw i32 %91, 1
store i32 %92, i32* %11
br label %44
93: ; preds = %44
br label %119
94: ; preds = %39
store i32 0, i32* %10
br label %95
95: ; preds = %115, %94
%96 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%97 = getelementptr inbounds [65536 x i8], [65536 x i8]* %6, i64 0, i64 0
%98 = load i32, i32* %10
%99 = call i32 @piece_quote_comma(i8* %96, i8* %97, i32 %98)
%100 = icmp ne i32 %99, 0
br i1 %100, label %102, label %101
101: ; preds = %95
br label %118
102: ; preds = %95
%103 = load i32, i32* %10
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %106)
br label %113
108: ; preds = %102
%109 = load i8, i8* %12
%110 = sext i8 %109 to i32
%111 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %110, i8* %111)
br label %113
113: ; preds = %108, %105
br label %114
114: ; preds = %113
br label %115
115: ; preds = %114
%116 = load i32, i32* %10
%117 = add nsw i32 %116, 1
store i32 %117, i32* %10
br label %95
118: ; preds = %101
br label %119
119: ; preds = %118, %93
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %34
121: ; preds = %34
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [59 x i8] c"Usage: %s offset_1[,...,offset_n] [destination_delimiter]\0A\00"
@stdin = global i32 0
@.str.1 = [45 x i8] c"ERROR in :%s: Offset (%d) is less than zero\0A\00"
@.str.2 = [52 x i8] c"Warning %s: piece_quote_comma(%d) failed with [%s]\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [5 x i8] c"%c%s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [65536 x i8]
%4 = alloca [128 x i8]
%5 = alloca [4096 x i8]
%6 = getelementptr inbounds [65536 x i8], [65536 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [4096 x i8], [4096 x i8]* %5, i64 0, i64 0
%9 = icmp slt i32 %0, 2
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %1
%13 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = icmp eq i32 %0, 3
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
br label %24
24: ; preds = %19, %15
%25 = phi i32 [ %23, %19 ], [ 44, %15 ]
%26 = load i32, i32* @stdin
%27 = call i64 @get_line(i8* %6, i32 %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %91, label %29
29: ; preds = %24, %86
%30 = load i8, i8* %17
%31 = icmp eq i8 %30, 0
br i1 %31, label %50, label %32
32: ; preds = %29
%33 = call i64 @piece(i8* %7, i8 signext 44, i8* %17, i32 0)
%34 = icmp eq i64 %33, 0
br i1 %34, label %86, label %35
35: ; preds = %32
%36 = call i32 @atoi(i8* %7)
%37 = icmp slt i32 %36, 0
br i1 %37, label %61, label %38
38: ; preds = %35
%39 = call i32 @piece_quote_comma(i8* %8, i8* %6, i32 %36)
%40 = icmp eq i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %8)
br label %47
43: ; preds = %38
%44 = load i32, i32* @stderr
%45 = load i8*, i8** %1
%46 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %45, i32 %36, i8* %6)
br label %47
47: ; preds = %43, %41
%48 = call i64 @piece(i8* %7, i8 signext 44, i8* %17, i32 1)
%49 = icmp eq i64 %48, 0
br i1 %49, label %86, label %57
50: ; preds = %29
%51 = call i32 @piece_quote_comma(i8* %8, i8* %6, i32 0)
%52 = icmp eq i32 %51, 0
br i1 %52, label %86, label %53
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %8)
%55 = call i32 @piece_quote_comma(i8* %8, i8* %6, i32 1)
%56 = icmp eq i32 %55, 0
br i1 %56, label %86, label %80
57: ; preds = %47, %76
%58 = phi i32 [ %77, %76 ], [ 1, %47 ]
%59 = call i32 @atoi(i8* %7)
%60 = icmp slt i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %35, %57
%62 = phi i32 [ %59, %57 ], [ %36, %35 ]
%63 = load i32, i32* @stderr
%64 = load i8*, i8** %1
%65 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i8* %64, i32 %62)
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %57
%68 = call i32 @piece_quote_comma(i8* %8, i8* %6, i32 %59)
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %67
%71 = load i32, i32* @stderr
%72 = load i8*, i8** %1
%73 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %72, i32 %59, i8* %6)
br label %76
74: ; preds = %67
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %25, i8* %8)
br label %76
76: ; preds = %70, %74
%77 = add nuw nsw i32 %58, 1
%78 = call i64 @piece(i8* %7, i8 signext 44, i8* %17, i32 %77)
%79 = icmp eq i64 %78, 0
br i1 %79, label %86, label %57
80: ; preds = %53, %80
%81 = phi i32 [ %83, %80 ], [ 1, %53 ]
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %25, i8* %8)
%83 = add nuw nsw i32 %81, 1
%84 = call i32 @piece_quote_comma(i8* %8, i8* %6, i32 %83)
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %80
86: ; preds = %76, %80, %47, %53, %32, %50
%87 = call i32 @putchar(i32 10)
%88 = load i32, i32* @stdin
%89 = call i64 @get_line(i8* %6, i32 %88)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %29
91: ; preds = %86, %24
ret i32 0
}