#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 BUFSIZ;
int atoi(char *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
char *strchr(char *, char);
scalar_t__ strcmp(char *, char *);
scalar_t__ strncmp(char *, char *, int);
char *strtok_r(char *, char *, char **);
int main(int argc, char **argv) {
  int span = 1;
  int start = 0;
  int step = 0;
  char line[BUFSIZ];
  while (fgets(line, BUFSIZ, stdin) != NULL) {
    if (strncmp(line, "track", 5) == 0) {
      printf("%s", line);
      continue;
    }
    if (strncmp(line, "fixedStep", 9) == 0) {
      span = 1;
      fputs("variableStep", stdout);
      char *saveptr = NULL;
      char *token = line;
      char *ptr;
      while ((ptr = strtok_r(token, " \n\t", &saveptr)) != NULL) {
        char *key = ptr;
        char *value = strchr(ptr, '=');
        if (value == NULL) {
          token = saveptr;
          continue;
        }
        *value = 0;
        value++;
        if (strcmp(key, "chrom") == 0) {
          printf(" %s=%s", key, value);
        } else if (strcmp(key, "span") == 0) {
          span = atoi(value);
        } else if (strcmp(key, "start") == 0) {
          start = atoi(value);
        } else if (strcmp(key, "step") == 0) {
          step = atoi(value);
        }
        token = saveptr;
      }
      printf(" span=%d\n", span);
      continue;
    }
    if (strncmp(line, "0", 1) != 0) {
      printf("%d\t%s", start, line);
    }
    start += step;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0x2e26(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x60(%rbp),%rdi
mov    0x2df6(%rip),%rax
mov    (%rax),%esi
mov    0x2dfd(%rip),%rax
mov    (%rax),%edx
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     1409 <main+0x289>
mov    -0x60(%rbp),%rdi
lea    0xdf9(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1232 <main+0xb2>
mov    -0x60(%rbp),%rsi
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11d7 <main+0x57>
mov    -0x60(%rbp),%rdi
lea    0xdc9(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13c7 <main+0x247>
movl   $0x1,-0x14(%rbp)
mov    0x2d71(%rip),%rax
mov    (%rax),%esi
lea    0xda8(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x60(%rbp),%rax
movq   $0x0,-0x38(%rbp)
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xd95(%rip),%rsi
lea    -0x38(%rbp),%rdx
call   1070 <strtok_r@plt>
mov    %rax,-0x48(%rbp)
cmp    $0x0,%rax
je     13b1 <main+0x231>
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rdi
mov    $0x3d,%esi
call   1040 <strchr@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    12d1 <main+0x151>
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    127d <main+0xfd>
mov    -0x58(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rdi
lea    0xd32(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1319 <main+0x199>
mov    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%rdx
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13a4 <main+0x224>
mov    -0x50(%rbp),%rdi
lea    0xd0a(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1344 <main+0x1c4>
mov    -0x58(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x14(%rbp)
jmp    139f <main+0x21f>
mov    -0x50(%rbp),%rdi
lea    0xce4(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    136f <main+0x1ef>
mov    -0x58(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x18(%rbp)
jmp    139a <main+0x21a>
mov    -0x50(%rbp),%rdi
lea    0xcbf(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1395 <main+0x215>
mov    -0x58(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
jmp    139a <main+0x21a>
jmp    139f <main+0x21f>
jmp    13a4 <main+0x224>
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    127d <main+0xfd>
mov    -0x14(%rbp),%esi
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11d7 <main+0x57>
mov    -0x60(%rbp),%rdi
lea    0xc76(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     13fb <main+0x27b>
mov    -0x60(%rbp),%rdx
mov    -0x18(%rbp),%esi
lea    0xc56(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    11d7 <main+0x57>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0x2e40(%rip),%r12
mov    (%r12),%esi
mov    %rsp,%rbx
mov    %rsi,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x2e31(%rip),%r13
mov    0x0(%r13),%edx
mov    %rbx,%rdi
call   1080 <fgets@plt>
test   %rax,%rax
je     13c5 <main+0x245>
lea    0xe2d(%rip),%r14
lea    0xe73(%rip),%r15
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    122c <main+0xac>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r12),%esi
mov    0x0(%r13),%edx
mov    %rbx,%rdi
call   1080 <fgets@plt>
test   %rax,%rax
jne    11f0 <main+0x70>
jmp    13c5 <main+0x245>
mov    %rbx,%rdi
lea    0xdd0(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1287 <main+0x107>
mov    %rbx,%rdi
lea    0xdf9(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
mov    -0x30(%rbp),%r12d
je     1276 <main+0xf6>
lea    0xde1(%rip),%rdi
mov    %r12d,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
add    -0x3c(%rbp),%r12d
mov    %r12d,-0x30(%rbp)
mov    0x2d53(%rip),%r12
jmp    1212 <main+0x92>
mov    0x2d42(%rip),%rax
mov    (%rax),%esi
lea    0xd79(%rip),%rdi
call   1060 <fputs@plt>
movq   $0x0,-0x50(%rbp)
mov    %rbx,%rdi
lea    0xd6f(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1070 <strtok_r@plt>
test   %rax,%rax
je     13a8 <main+0x228>
movl   $0x1,-0x2c(%rbp)
jmp    12fc <main+0x17c>
lea    0xd57(%rip),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x50(%rbp),%rdi
lea    0xd33(%rip),%rsi
lea    -0x50(%rbp),%rdx
call   1070 <strtok_r@plt>
test   %rax,%rax
je     13af <main+0x22f>
mov    %rax,-0x38(%rbp)
mov    %rax,%rdi
mov    $0x3d,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     12df <main+0x15f>
movb   $0x0,(%rax)
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xcf9(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     12c9 <main+0x149>
mov    -0x38(%rbp),%rdi
lea    0xcf1(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1386 <main+0x206>
mov    -0x38(%rbp),%rdi
lea    0xce1(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1397 <main+0x217>
mov    -0x38(%rbp),%rdi
lea    0xcd2(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    12df <main+0x15f>
mov    -0x48(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x3c(%rbp)
jmp    12df <main+0x15f>
mov    -0x48(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x2c(%rbp)
jmp    12df <main+0x15f>
mov    -0x48(%rbp),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x30(%rbp)
jmp    12df <main+0x15f>
movl   $0x1,-0x2c(%rbp)
lea    0xc88(%rip),%rdi
mov    -0x2c(%rbp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1212 <main+0x92>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@BUFSIZ = global i32 0
@stdin = global i32 0
@.str = [6 x i8] c"track\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [10 x i8] c"fixedStep\00"
@.str.3 = [13 x i8] c"variableStep\00"
@stdout = global i32 0
@.str.4 = [4 x i8] c" \0A\09\00"
@.str.5 = [6 x i8] c"chrom\00"
@.str.6 = [7 x i8] c" %s=%s\00"
@.str.7 = [5 x i8] c"span\00"
@.str.8 = [6 x i8] c"start\00"
@.str.9 = [5 x i8] c"step\00"
@.str.10 = [10 x i8] c" span=%d\0A\00"
@.str.11 = [2 x i8] c"0\00"
@.str.12 = [6 x i8] c"%d\09%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%16 = load i32, i32* @BUFSIZ
%17 = zext i32 %16 to i64
%18 = call i8* @llvm.stacksave()
store i8* %18, i8** %9
%19 = alloca i8, i64 %17
store i64 %17, i64* %10
br label %20
20: ; preds = %94, %85, %28, %2
%21 = load i32, i32* @BUFSIZ
%22 = load i32, i32* @stdin
%23 = call i32* @fgets(i8* %19, i32 %21, i32 %22)
%24 = icmp ne i32* %23, null
br i1 %24, label %25, label %98
25: ; preds = %20
%26 = call i64 @strncmp(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %19)
br label %20
30: ; preds = %25
%31 = call i64 @strncmp(i8* %19, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %88
33: ; preds = %30
store i32 1, i32* %6
%34 = load i32, i32* @stdout
%35 = call i32 @fputs(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %34)
store i8* null, i8** %11
store i8* %19, i8** %12
br label %36
36: ; preds = %83, %46, %33
%37 = load i8*, i8** %12
%38 = call i8* @strtok_r(i8* %37, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %11)
store i8* %38, i8** %13
%39 = icmp ne i8* %38, null
br i1 %39, label %40, label %85
40: ; preds = %36
%41 = load i8*, i8** %13
store i8* %41, i8** %14
%42 = load i8*, i8** %13
%43 = call i8* @strchr(i8* %42, i8 signext 61)
store i8* %43, i8** %15
%44 = load i8*, i8** %15
%45 = icmp eq i8* %44, null
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = load i8*, i8** %11
store i8* %47, i8** %12
br label %36
48: ; preds = %40
%49 = load i8*, i8** %15
store i8 0, i8* %49
%50 = load i8*, i8** %15
%51 = getelementptr inbounds i8, i8* %50, i32 1
store i8* %51, i8** %15
%52 = load i8*, i8** %14
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %48
%56 = load i8*, i8** %14
%57 = load i8*, i8** %15
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %56, i8* %57)
br label %83
59: ; preds = %48
%60 = load i8*, i8** %14
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i8*, i8** %15
%65 = call i32 @atoi(i8* %64)
store i32 %65, i32* %6
br label %82
66: ; preds = %59
%67 = load i8*, i8** %14
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = load i8*, i8** %15
%72 = call i32 @atoi(i8* %71)
store i32 %72, i32* %7
br label %81
73: ; preds = %66
%74 = load i8*, i8** %14
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = load i8*, i8** %15
%79 = call i32 @atoi(i8* %78)
store i32 %79, i32* %8
br label %80
80: ; preds = %77, %73
br label %81
81: ; preds = %80, %70
br label %82
82: ; preds = %81, %63
br label %83
83: ; preds = %82, %55
%84 = load i8*, i8** %11
store i8* %84, i8** %12
br label %36
85: ; preds = %36
%86 = load i32, i32* %6
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i32 %86)
br label %20
88: ; preds = %30
%89 = call i64 @strncmp(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i32 1)
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %88
%92 = load i32, i32* %7
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %92, i8* %19)
br label %94
94: ; preds = %91, %88
%95 = load i32, i32* %8
%96 = load i32, i32* %7
%97 = add nsw i32 %96, %95
store i32 %97, i32* %7
br label %20
98: ; preds = %20
store i32 0, i32* %3
%99 = load i8*, i8** %9
%100 = load i32, i32* %3
ret i32 %100
}

LLVM IR (-O2):
@BUFSIZ = global i32 0
@stdin = global i32 0
@.str = [6 x i8] c"track\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [10 x i8] c"fixedStep\00"
@.str.3 = [13 x i8] c"variableStep\00"
@stdout = global i32 0
@.str.4 = [4 x i8] c" \0A\09\00"
@.str.5 = [6 x i8] c"chrom\00"
@.str.6 = [7 x i8] c" %s=%s\00"
@.str.7 = [5 x i8] c"span\00"
@.str.8 = [6 x i8] c"start\00"
@.str.9 = [5 x i8] c"step\00"
@.str.10 = [10 x i8] c" span=%d\0A\00"
@.str.11 = [2 x i8] c"0\00"
@.str.12 = [6 x i8] c"%d\09%s\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = load i32, i32* @BUFSIZ
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5
%7 = load i32, i32* @stdin
%8 = call i32* @fgets(i8* %6, i32 %4, i32 %7)
%9 = icmp eq i32* %8, null
br i1 %9, label %89, label %10
10: ; preds = %2
%11 = bitcast i8** %3 to i8*
br label %12
12: ; preds = %10, %69
%13 = phi i32 [ 0, %10 ], [ %71, %69 ]
%14 = phi i32 [ 0, %10 ], [ %70, %69 ]
br label %15
15: ; preds = %12, %83
%16 = phi i32 [ %13, %12 ], [ %84, %83 ]
br label %17
17: ; preds = %15, %20
%18 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%22 = load i32, i32* @BUFSIZ
%23 = load i32, i32* @stdin
%24 = call i32* @fgets(i8* %6, i32 %22, i32 %23)
%25 = icmp eq i32* %24, null
br i1 %25, label %89, label %17
26: ; preds = %17
%27 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %78
29: ; preds = %26
%30 = load i32, i32* @stdout
%31 = call i32 @fputs(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %30)
store i8* null, i8** %3
%32 = call i8* @strtok_r(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %3)
%33 = icmp eq i8* %32, null
br i1 %33, label %69, label %34
34: ; preds = %29, %62
%35 = phi i8* [ %67, %62 ], [ %32, %29 ]
%36 = phi i32 [ %65, %62 ], [ 1, %29 ]
%37 = phi i32 [ %64, %62 ], [ %16, %29 ]
%38 = phi i32 [ %63, %62 ], [ %14, %29 ]
%39 = call i8* @strchr(i8* %35, i8 signext 61)
%40 = icmp eq i8* %39, null
br i1 %40, label %62, label %41
41: ; preds = %34
store i8 0, i8* %39
%42 = getelementptr inbounds i8, i8* %39, i64 1
%43 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %35, i8* %42)
br label %62
47: ; preds = %41
%48 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @atoi(i8* %42)
br label %62
52: ; preds = %47
%53 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @atoi(i8* %42)
br label %62
57: ; preds = %52
%58 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @atoi(i8* %42)
br label %62
62: ; preds = %45, %55, %60, %57, %50, %34
%63 = phi i32 [ %38, %34 ], [ %38, %45 ], [ %38, %50 ], [ %38, %55 ], [ %61, %60 ], [ %38, %57 ]
%64 = phi i32 [ %37, %34 ], [ %37, %45 ], [ %37, %50 ], [ %56, %55 ], [ %37, %60 ], [ %37, %57 ]
%65 = phi i32 [ %36, %34 ], [ %36, %45 ], [ %51, %50 ], [ %36, %55 ], [ %36, %60 ], [ %36, %57 ]
%66 = load i8*, i8** %3
%67 = call i8* @strtok_r(i8* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %3)
%68 = icmp eq i8* %67, null
br i1 %68, label %69, label %34
69: ; preds = %62, %29
%70 = phi i32 [ %14, %29 ], [ %63, %62 ]
%71 = phi i32 [ %16, %29 ], [ %64, %62 ]
%72 = phi i32 [ 1, %29 ], [ %65, %62 ]
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i32 %72)
%74 = load i32, i32* @BUFSIZ
%75 = load i32, i32* @stdin
%76 = call i32* @fgets(i8* %6, i32 %74, i32 %75)
%77 = icmp eq i32* %76, null
br i1 %77, label %89, label %12
78: ; preds = %26
%79 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i32 1)
%80 = icmp eq i64 %79, 0
br i1 %80, label %83, label %81
81: ; preds = %78
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %16, i8* %6)
br label %83
83: ; preds = %81, %78
%84 = add nsw i32 %16, %14
%85 = load i32, i32* @BUFSIZ
%86 = load i32, i32* @stdin
%87 = call i32* @fgets(i8* %6, i32 %85, i32 %86)
%88 = icmp eq i32* %87, null
br i1 %88, label %89, label %15
89: ; preds = %69, %83, %20, %2
ret i32 0
}