#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, int *, ...);
char *strchr(char *, char);
int main(int argc, char *argv[]) {
  FILE *fp;
  char linebuf[1024];
  int slot;
  int sn, cn, group;
  char name[64];
  char i;
  char *p;
  if (argc < 2) {
    printf("parameter 1: UserCard.txt\n");
    return 0;
  }
  fp = fopen(argv[1], "r");
  fgets(linebuf, 1024, fp);
  while (fgets(linebuf, 1024, fp) != NULL) {
    sscanf(linebuf, "%d", &slot);
    p = strchr(linebuf, ';');
    sscanf(p + 1, "%d:%d", &sn, &cn);
    p = strchr(p + 1, ';');
    for (i = 0; i < 63 && *(p + i + 1) != ';'; i++) {
      name[i] = *(p + i + 1);
    }
    i--;
    while (i >= 0 && name[i] == ' ') {
      i--;
    }
    name[i + 1] = 0;
    p = strchr(p + 1, ';');
    p = strchr(p + 1, ';');
    p = strchr(p + 1, ';');
    sscanf(p + 1, "%d", &group);
    if (cn != 0 || sn != 0) {
      printf("INSERT INTO card (`address`,`site`,`number`,`user`,`group`) "
             "VALUES (%d,%d,%d,'%s',%d);\n",
             slot, sn, cn, name, group);
    }
  }
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x490,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    119d <main+0x3d>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1438 <main+0x2d8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    -0x420(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x400,%esi
call   1060 <fgets@plt>
lea    -0x420(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x400,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1428 <main+0x2c8>
lea    -0x420(%rbp),%rdi
lea    0xe29(%rip),%rsi
lea    -0x424(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
lea    -0x420(%rbp),%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
mov    %rax,-0x480(%rbp)
mov    -0x480(%rbp),%rdi
add    $0x1,%rdi
lea    0xdee(%rip),%rsi
lea    -0x428(%rbp),%rdx
lea    -0x42c(%rbp),%rcx
mov    $0x0,%al
call   1070 <sscanf@plt>
mov    -0x480(%rbp),%rdi
add    $0x1,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
mov    %rax,-0x480(%rbp)
movb   $0x0,-0x471(%rbp)
movsbl -0x471(%rbp),%ecx
xor    %eax,%eax
cmp    $0x3f,%ecx
mov    %al,-0x481(%rbp)
jge    12a1 <main+0x141>
mov    -0x480(%rbp),%rax
movsbl -0x471(%rbp),%ecx
movslq %ecx,%rcx
movsbl 0x1(%rax,%rcx,1),%eax
cmp    $0x3b,%eax
setne  %al
mov    %al,-0x481(%rbp)
mov    -0x481(%rbp),%al
test   $0x1,%al
jne    12b4 <main+0x154>
jmp    12eb <main+0x18b>
mov    -0x480(%rbp),%rax
movsbl -0x471(%rbp),%ecx
movslq %ecx,%rcx
mov    0x1(%rax,%rcx,1),%cl
movsbq -0x471(%rbp),%rax
ff
mov    %cl,-0x470(%rbp,%rax,1)
mov    -0x471(%rbp),%al
add    $0x1,%al
mov    %al,-0x471(%rbp)
jmp    1267 <main+0x107>
mov    -0x471(%rbp),%al
add    $0xff,%al
mov    %al,-0x471(%rbp)
movsbl -0x471(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x482(%rbp)
jl     132d <main+0x1cd>
movsbq -0x471(%rbp),%rax
ff
movsbl -0x470(%rbp,%rax,1),%eax
ff
cmp    $0x20,%eax
sete   %al
mov    %al,-0x482(%rbp)
mov    -0x482(%rbp),%al
test   $0x1,%al
jne    1340 <main+0x1e0>
jmp    1353 <main+0x1f3>
mov    -0x471(%rbp),%al
add    $0xff,%al
mov    %al,-0x471(%rbp)
jmp    12f9 <main+0x199>
movsbl -0x471(%rbp),%eax
add    $0x1,%eax
cltq
movb   $0x0,-0x470(%rbp,%rax,1)
mov    -0x480(%rbp),%rdi
add    $0x1,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
mov    %rax,-0x480(%rbp)
mov    -0x480(%rbp),%rdi
add    $0x1,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
mov    %rax,-0x480(%rbp)
mov    -0x480(%rbp),%rdi
add    $0x1,%rdi
mov    $0x3b,%esi
call   1040 <strchr@plt>
mov    %rax,-0x480(%rbp)
mov    -0x480(%rbp),%rdi
add    $0x1,%rdi
lea    0xc53(%rip),%rsi
lea    -0x430(%rbp),%rdx
mov    $0x0,%al
call   1070 <sscanf@plt>
cmpl   $0x0,-0x42c(%rbp)
jne    13f5 <main+0x295>
cmpl   $0x0,-0x428(%rbp)
je     1423 <main+0x2c3>
mov    -0x424(%rbp),%esi
mov    -0x428(%rbp),%edx
mov    -0x42c(%rbp),%ecx
lea    -0x470(%rbp),%r8
mov    -0x430(%rbp),%r9d
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11ca <main+0x6a>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x490,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x458,%rsp
cmp    $0x1,%edi
jg     1197 <main+0x27>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
jmp    1363 <main+0x1f3>
mov    0x8(%rsi),%rdi
lea    0xe5e(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r15
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     135b <main+0x1eb>
lea    0xe26(%rip),%r14
lea    0x50(%rsp),%rbx
lea    0x10(%rsp),%r13
mov    %rsp,%rbp
jmp    1209 <main+0x99>
xchg   %ax,%ax
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     135b <main+0x1eb>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0xc(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    %rbx,%rdi
mov    $0x3b,%esi
call   1050 <strchr@plt>
lea    0x1(%rax),%r12
mov    %r12,%rdi
lea    0xdcc(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    %r12,%rdi
mov    $0x3b,%esi
call   1050 <strchr@plt>
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movzbl 0x1(%rax,%rcx,1),%edx
cmp    $0x3b,%dl
je     12b4 <main+0x144>
mov    %dl,0x10(%rsp,%rcx,1)
movzbl 0x2(%rax,%rcx,1),%edx
cmp    $0x3b,%dl
je     12a0 <main+0x130>
mov    %dl,0x11(%rsp,%rcx,1)
movzbl 0x3(%rax,%rcx,1),%edx
cmp    $0x3b,%dl
je     12b0 <main+0x140>
mov    %dl,0x12(%rsp,%rcx,1)
add    $0x3,%rcx
cmp    $0x3f,%rcx
jne    1260 <main+0xf0>
mov    $0x3f,%ecx
jmp    12b4 <main+0x144>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rcx
jmp    12b4 <main+0x144>
cs nopw 0x0(%rax,%rax,1)
add    $0x2,%rcx
movzbl %cl,%ecx
nopw   0x0(%rax,%rax,1)
test   %rcx,%rcx
jle    12e0 <main+0x170>
lea    -0x1(%rcx),%rdx
cmpb   $0x20,0xf(%rsp,%rcx,1)
mov    %rdx,%rcx
je     12c0 <main+0x150>
jmp    12e7 <main+0x177>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xffffffffffffffff,%rdx
movb   $0x0,0x1(%rdx,%r13,1)
add    $0x1,%rax
mov    %rax,%rdi
mov    $0x3b,%esi
call   1050 <strchr@plt>
lea    0x1(%rax),%rdi
mov    $0x3b,%esi
call   1050 <strchr@plt>
lea    0x1(%rax),%rdi
mov    $0x3b,%esi
call   1050 <strchr@plt>
lea    0x1(%rax),%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%edx
mov    %ecx,%eax
or     %edx,%eax
je     11f0 <main+0x80>
mov    0xc(%rsp),%esi
mov    (%rsp),%r9d
lea    0xcbc(%rip),%rdi
mov    %r13,%r8
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11f0 <main+0x80>
mov    %r15,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x458,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"parameter 1: UserCard.txt\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [6 x i8] c"%d:%d\00"
@.str.4 = [88 x i8] c"INSERT INTO card (`address`,`site`,`number`,`user`,`group`) VALUES (%d,%d,%d,'%s',%d);\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [1024 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [64 x i8]
%13 = alloca i8
%14 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %126
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %6
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%25 = load i32*, i32** %6
%26 = call i32* @fgets(i8* %24, i32 1024, i32* %25)
br label %27
27: ; preds = %122, %19
%28 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%29 = load i32*, i32** %6
%30 = call i32* @fgets(i8* %28, i32 1024, i32* %29)
%31 = icmp ne i32* %30, null
br i1 %31, label %32, label %123
32: ; preds = %27
%33 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%34 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%36 = call i8* @strchr(i8* %35, i8 signext 59)
store i8* %36, i8** %14
%37 = load i8*, i8** %14
%38 = getelementptr inbounds i8, i8* %37, i64 1
%39 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32* %9, i32* %10)
%40 = load i8*, i8** %14
%41 = getelementptr inbounds i8, i8* %40, i64 1
%42 = call i8* @strchr(i8* %41, i8 signext 59)
store i8* %42, i8** %14
store i8 0, i8* %13
br label %43
43: ; preds = %70, %32
%44 = load i8, i8* %13
%45 = sext i8 %44 to i32
%46 = icmp slt i32 %45, 63
br i1 %46, label %47, label %57
47: ; preds = %43
%48 = load i8*, i8** %14
%49 = load i8, i8* %13
%50 = sext i8 %49 to i32
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %48, i64 %51
%53 = getelementptr inbounds i8, i8* %52, i64 1
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 59
br label %57
57: ; preds = %47, %43
%58 = phi i1 [ false, %43 ], [ %56, %47 ]
br i1 %58, label %59, label %73
59: ; preds = %57
%60 = load i8*, i8** %14
%61 = load i8, i8* %13
%62 = sext i8 %61 to i32
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %60, i64 %63
%65 = getelementptr inbounds i8, i8* %64, i64 1
%66 = load i8, i8* %65
%67 = load i8, i8* %13
%68 = sext i8 %67 to i64
%69 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 %68
store i8 %66, i8* %69
br label %70
70: ; preds = %59
%71 = load i8, i8* %13
%72 = add i8 %71, 1
store i8 %72, i8* %13
br label %43
73: ; preds = %57
%74 = load i8, i8* %13
%75 = add i8 %74, -1
store i8 %75, i8* %13
br label %76
76: ; preds = %89, %73
%77 = load i8, i8* %13
%78 = sext i8 %77 to i32
%79 = icmp sge i32 %78, 0
br i1 %79, label %80, label %87
80: ; preds = %76
%81 = load i8, i8* %13
%82 = sext i8 %81 to i64
%83 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 %82
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 32
br label %87
87: ; preds = %80, %76
%88 = phi i1 [ false, %76 ], [ %86, %80 ]
br i1 %88, label %89, label %92
89: ; preds = %87
%90 = load i8, i8* %13
%91 = add i8 %90, -1
store i8 %91, i8* %13
br label %76
92: ; preds = %87
%93 = load i8, i8* %13
%94 = sext i8 %93 to i32
%95 = add nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 %96
store i8 0, i8* %97
%98 = load i8*, i8** %14
%99 = getelementptr inbounds i8, i8* %98, i64 1
%100 = call i8* @strchr(i8* %99, i8 signext 59)
store i8* %100, i8** %14
%101 = load i8*, i8** %14
%102 = getelementptr inbounds i8, i8* %101, i64 1
%103 = call i8* @strchr(i8* %102, i8 signext 59)
store i8* %103, i8** %14
%104 = load i8*, i8** %14
%105 = getelementptr inbounds i8, i8* %104, i64 1
%106 = call i8* @strchr(i8* %105, i8 signext 59)
store i8* %106, i8** %14
%107 = load i8*, i8** %14
%108 = getelementptr inbounds i8, i8* %107, i64 1
%109 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %11)
%110 = load i32, i32* %10
%111 = icmp ne i32 %110, 0
br i1 %111, label %115, label %112
112: ; preds = %92
%113 = load i32, i32* %9
%114 = icmp ne i32 %113, 0
br i1 %114, label %115, label %122
115: ; preds = %112, %92
%116 = load i32, i32* %8
%117 = load i32, i32* %9
%118 = load i32, i32* %10
%119 = getelementptr inbounds [64 x i8], [64 x i8]* %12, i64 0, i64 0
%120 = load i32, i32* %11
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0), i32 %116, i32 %117, i32 %118, i8* %119, i32 %120)
br label %122
122: ; preds = %115, %112
br label %27
123: ; preds = %27
%124 = load i32*, i32** %6
%125 = call i32 @fclose(i32* %124)
store i32 0, i32* %3
br label %126
126: ; preds = %123, %17
%127 = load i32, i32* %3
ret i32 %127
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [6 x i8] c"%d:%d\00"
@.str.4 = [88 x i8] c"INSERT INTO card (`address`,`site`,`number`,`user`,`group`) VALUES (%d,%d,%d,'%s',%d);\0A\00"
@str = [26 x i8] c"parameter 1: UserCard.txt\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1024 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [64 x i8]
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 0
%15 = icmp slt i32 %0, 2
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
br label %90
18: ; preds = %2
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = tail call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32* @fgets(i8* %9, i32 1024, i32* %21)
%23 = call i32* @fgets(i8* %9, i32 1024, i32* %21)
%24 = icmp eq i32* %23, null
br i1 %24, label %88, label %25
25: ; preds = %18, %85
%26 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%27 = call i8* @strchr(i8* %9, i8 signext 59)
%28 = getelementptr inbounds i8, i8* %27, i64 1
%29 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %28, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32* %5, i32* %6)
%30 = call i8* @strchr(i8* %28, i8 signext 59)
%31 = getelementptr inbounds i8, i8* %30, i64 1
br label %32
32: ; preds = %49, %25
%33 = phi i64 [ 0, %25 ], [ %51, %49 ]
%34 = getelementptr inbounds i8, i8* %31, i64 %33
%35 = load i8, i8* %34
%36 = icmp eq i8 %35, 59
br i1 %36, label %53, label %37
37: ; preds = %32
%38 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %33
store i8 %35, i8* %38
%39 = add nuw nsw i64 %33, 1
%40 = getelementptr inbounds i8, i8* %31, i64 %39
%41 = load i8, i8* %40
%42 = icmp eq i8 %41, 59
br i1 %42, label %53, label %43
43: ; preds = %37
%44 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %39
store i8 %41, i8* %44
%45 = add nuw nsw i64 %33, 2
%46 = getelementptr inbounds i8, i8* %31, i64 %45
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, 59
br i1 %48, label %53, label %49
49: ; preds = %43
%50 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %45
store i8 %47, i8* %50
%51 = add nuw nsw i64 %33, 3
%52 = icmp eq i64 %51, 63
br i1 %52, label %53, label %32
53: ; preds = %49, %43, %37, %32
%54 = phi i64 [ %33, %32 ], [ %39, %37 ], [ %45, %43 ], [ 63, %49 ]
%55 = and i64 %54, 255
br label %56
56: ; preds = %60, %53
%57 = phi i64 [ %58, %60 ], [ %55, %53 ]
%58 = add nsw i64 %57, -1
%59 = icmp sgt i64 %57, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %58
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 32
br i1 %63, label %56, label %64
64: ; preds = %56, %60
%65 = phi i64 [ -1, %56 ], [ %58, %60 ]
%66 = add nsw i64 %65, 1
%67 = getelementptr inbounds [64 x i8], [64 x i8]* %8, i64 0, i64 %66
store i8 0, i8* %67
%68 = getelementptr inbounds i8, i8* %30, i64 1
%69 = call i8* @strchr(i8* %68, i8 signext 59)
%70 = getelementptr inbounds i8, i8* %69, i64 1
%71 = call i8* @strchr(i8* %70, i8 signext 59)
%72 = getelementptr inbounds i8, i8* %71, i64 1
%73 = call i8* @strchr(i8* %72, i8 signext 59)
%74 = getelementptr inbounds i8, i8* %73, i64 1
%75 = call i32 (i8*, i8*, i32*, ...) @sscanf(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%76 = load i32, i32* %6
%77 = icmp ne i32 %76, 0
%78 = load i32, i32* %5
%79 = icmp ne i32 %78, 0
%80 = select i1 %77, i1 true, i1 %79
br i1 %80, label %81, label %85
81: ; preds = %64
%82 = load i32, i32* %4
%83 = load i32, i32* %7
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0), i32 %82, i32 %78, i32 %76, i8* %14, i32 %83)
br label %85
85: ; preds = %64, %81
%86 = call i32* @fgets(i8* %9, i32 1024, i32* %21)
%87 = icmp eq i32* %86, null
br i1 %87, label %88, label %25
88: ; preds = %85, %18
%89 = call i32 @fclose(i32* %21)
br label %90
90: ; preds = %88, %16
ret i32 0
}