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

/* Variables and functions */
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
char *find_char_or_comment(char *, char);
char *lskip(char *);
char *rstrip(char *);
int /*<<< orphan*/ strncpy0(char *, char *, int);
int ini_parse_file(FILE *file,
                   int (*handler)(void *, const char *, const char *,
                                  const char *),
                   void *user) {
  char line[4096];
  char section[50] = "";
  char prev_name[50] = "";
  char *start;
  char *end;
  char *name;
  char *value;
  int lineno = 0;
  int error = 0;
  while (fgets(line, 4096, file) != NULL) {
    lineno++;
    start = line;
    if (lineno == 1 && (unsigned char)start[0] == 0xEF &&
        (unsigned char)start[1] == 0xBB && (unsigned char)start[2] == 0xBF) {
      start += 3;
    }
    start = lskip(rstrip(start));
    if (*start == ';' || *start == '#') {
    } else if (*start == '[') {
      end = find_char_or_comment(start + 1, ']');
      if (*end == ']') {
        *end = '\0';
        strncpy0(section, start + 1, sizeof(section));
        *prev_name = '\0';
      } else if (!error) {
        error = lineno;
      }
    } else if (*start && *start != ';') {
      end = find_char_or_comment(start, '=');
      if (*end != '=') {
        end = find_char_or_comment(start, ':');
      }
      if (*end == '=' || *end == ':') {
        *end = '\0';
        name = rstrip(start);
        value = lskip(end + 1);
        end = find_char_or_comment(value, '\0');
        if (*end == ';')
          *end = '\0';
        rstrip(value);
        strncpy0(prev_name, name, sizeof(prev_name));
        if (!handler(user, section, name, value) && !error)
          error = lineno;
      } else if (!error) {
        error = lineno;
      }
    }
    if (error)
      break;
  }
  return error;
}


x86 assembly (clang, -O0):
<ini_parse_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10d0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x1060(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1040 <memset@plt>
lea    -0x10a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1040 <memset@plt>
movl   $0x0,-0x10c4(%rbp)
movl   $0x0,-0x10c8(%rbp)
lea    -0x1020(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x1000,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     14cd <ini_parse_file+0x36d>
mov    -0x10c4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10c4(%rbp)
lea    -0x1020(%rbp),%rax
mov    %rax,-0x10a8(%rbp)
cmpl   $0x1,-0x10c4(%rbp)
jne    124d <ini_parse_file+0xed>
mov    -0x10a8(%rbp),%rax
movzbl (%rax),%eax
cmp    $0xef,%eax
jne    124d <ini_parse_file+0xed>
mov    -0x10a8(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xbb,%eax
jne    124d <ini_parse_file+0xed>
mov    -0x10a8(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xbf,%eax
jne    124d <ini_parse_file+0xed>
mov    -0x10a8(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x10a8(%rbp)
mov    -0x10a8(%rbp),%rdi
call   1030 <rstrip@plt>
mov    %rax,%rdi
call   1080 <lskip@plt>
mov    %rax,-0x10a8(%rbp)
mov    -0x10a8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     128e <ini_parse_file+0x12e>
mov    -0x10a8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1293 <ini_parse_file+0x133>
jmp    14b6 <ini_parse_file+0x356>
mov    -0x10a8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    132a <ini_parse_file+0x1ca>
mov    -0x10a8(%rbp),%rdi
add    $0x1,%rdi
mov    $0x5d,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x10b0(%rbp)
mov    -0x10b0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
jne    1307 <ini_parse_file+0x1a7>
mov    -0x10b0(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x1060(%rbp),%rdi
mov    -0x10a8(%rbp),%rsi
add    $0x1,%rsi
mov    $0x32,%edx
call   1070 <strncpy0@plt>
movb   $0x0,-0x10a0(%rbp)
jmp    1325 <ini_parse_file+0x1c5>
cmpl   $0x0,-0x10c8(%rbp)
jne    1320 <ini_parse_file+0x1c0>
mov    -0x10c4(%rbp),%eax
mov    %eax,-0x10c8(%rbp)
jmp    1325 <ini_parse_file+0x1c5>
jmp    14b1 <ini_parse_file+0x351>
mov    -0x10a8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     14ac <ini_parse_file+0x34c>
mov    -0x10a8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     14ac <ini_parse_file+0x34c>
mov    -0x10a8(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x10b0(%rbp)
mov    -0x10b0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     1393 <ini_parse_file+0x233>
mov    -0x10a8(%rbp),%rdi
mov    $0x3a,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x10b0(%rbp)
mov    -0x10b0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     13b9 <ini_parse_file+0x259>
mov    -0x10b0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    1489 <ini_parse_file+0x329>
mov    -0x10b0(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10a8(%rbp),%rdi
call   1030 <rstrip@plt>
mov    %rax,-0x10b8(%rbp)
mov    -0x10b0(%rbp),%rdi
add    $0x1,%rdi
call   1080 <lskip@plt>
mov    %rax,-0x10c0(%rbp)
mov    -0x10c0(%rbp),%rdi
xor    %esi,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x10b0(%rbp)
mov    -0x10b0(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
jne    141f <ini_parse_file+0x2bf>
mov    -0x10b0(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10c0(%rbp),%rdi
call   1030 <rstrip@plt>
lea    -0x10a0(%rbp),%rdi
mov    -0x10b8(%rbp),%rsi
mov    $0x32,%edx
call   1070 <strncpy0@plt>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
lea    -0x1060(%rbp),%rsi
mov    -0x10b8(%rbp),%rdx
mov    -0x10c0(%rbp),%rcx
call   *%rax
cmp    $0x0,%eax
jne    1484 <ini_parse_file+0x324>
cmpl   $0x0,-0x10c8(%rbp)
jne    1484 <ini_parse_file+0x324>
mov    -0x10c4(%rbp),%eax
mov    %eax,-0x10c8(%rbp)
jmp    14a7 <ini_parse_file+0x347>
cmpl   $0x0,-0x10c8(%rbp)
jne    14a2 <ini_parse_file+0x342>
mov    -0x10c4(%rbp),%eax
mov    %eax,-0x10c8(%rbp)
jmp    14a7 <ini_parse_file+0x347>
jmp    14ac <ini_parse_file+0x34c>
jmp    14b1 <ini_parse_file+0x351>
jmp    14b6 <ini_parse_file+0x356>
cmpl   $0x0,-0x10c8(%rbp)
je     14c8 <ini_parse_file+0x368>
jmp    14cd <ini_parse_file+0x36d>
jmp    11b1 <ini_parse_file+0x51>
mov    -0x10c8(%rbp),%eax
add    $0x10d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ini_parse_file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1098,%rsp
mov    %rdx,0x8(%rsp)
mov    %rsi,(%rsp)
mov    %rdi,%r12
xorps  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movw   $0x0,0x80(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x0,0x40(%rsp)
lea    0x90(%rsp),%r14
mov    %r14,%rdi
mov    $0x1000,%esi
mov    %r12,%rdx
call   1040 <fgets@plt>
test   %rax,%rax
je     1348 <ini_parse_file+0x1f8>
xor    %r15d,%r15d
mov    $0x1,%ebp
lea    0x93(%rsp),%rbx
jmp    122c <ini_parse_file+0xdc>
mov    %rbx,%rdi
call   1030 <rstrip@plt>
lea    0x10(%rsp),%rdi
mov    %r13,%rsi
mov    $0x32,%edx
call   1060 <strncpy0@plt>
mov    0x8(%rsp),%rdi
lea    0x50(%rsp),%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
call   *(%rsp)
test   %eax,%eax
lea    0x93(%rsp),%rbx
je     135e <ini_parse_file+0x20e>
nop
mov    %r14,%rdi
mov    $0x1000,%esi
mov    %r12,%rdx
call   1040 <fgets@plt>
add    $0x1,%ebp
test   %rax,%rax
je     1348 <ini_parse_file+0x1f8>
add    $0x1,%r15d
movzbl 0x90(%rsp),%eax
movzbl 0x91(%rsp),%ecx
xor    $0xef,%al
xor    $0xbb,%cl
movzbl 0x92(%rsp),%edx
xor    $0xbf,%dl
or     %cl,%dl
or     %al,%dl
mov    %r14,%rdi
cmove  %rbx,%rdi
cmp    $0x1,%ebp
cmovne %r14,%rdi
call   1030 <rstrip@plt>
mov    %rax,%rdi
call   1070 <lskip@plt>
mov    %rax,%r13
movzbl (%rax),%eax
cmp    $0x3a,%al
jg     1290 <ini_parse_file+0x140>
test   %al,%al
je     1210 <ini_parse_file+0xc0>
cmp    $0x23,%al
je     1210 <ini_parse_file+0xc0>
jmp    12e0 <ini_parse_file+0x190>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x3b,%al
je     1210 <ini_parse_file+0xc0>
cmp    $0x5b,%al
jne    12e0 <ini_parse_file+0x190>
add    $0x1,%r13
mov    %r13,%rdi
mov    $0x5d,%esi
call   1050 <find_char_or_comment@plt>
cmpb   $0x5d,(%rax)
jne    134a <ini_parse_file+0x1fa>
movb   $0x0,(%rax)
lea    0x50(%rsp),%rdi
mov    %r13,%rsi
mov    $0x32,%edx
call   1060 <strncpy0@plt>
movb   $0x0,0x10(%rsp)
jmp    1210 <ini_parse_file+0xc0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13,%rdi
mov    $0x3d,%esi
call   1050 <find_char_or_comment@plt>
mov    %rax,%rbx
cmpb   $0x3d,(%rax)
je     1310 <ini_parse_file+0x1c0>
mov    %r13,%rdi
mov    $0x3a,%esi
call   1050 <find_char_or_comment@plt>
mov    %rax,%rbx
movzbl (%rax),%eax
cmp    $0x3d,%al
je     1310 <ini_parse_file+0x1c0>
cmp    $0x3a,%al
jne    135e <ini_parse_file+0x20e>
movb   $0x0,(%rbx)
mov    %r13,%rdi
call   1030 <rstrip@plt>
mov    %rax,%r13
add    $0x1,%rbx
mov    %rbx,%rdi
call   1070 <lskip@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   1050 <find_char_or_comment@plt>
cmpb   $0x3b,(%rax)
jne    11d2 <ini_parse_file+0x82>
movb   $0x0,(%rax)
jmp    11d2 <ini_parse_file+0x82>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x1098,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r15d,%ebp
jmp    134a <ini_parse_file+0x1fa>

LLVM IR (-O0):
define i32 @ini_parse_file(i32* %0, i32 (i8*, i8*, i8*, i8*)* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i32 (i8*, i8*, i8*, i8*)*
%6 = alloca i8*
%7 = alloca [4096 x i8]
%8 = alloca [50 x i8]
%9 = alloca [50 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
store i32* %0, i32** %4
store i32 (i8*, i8*, i8*, i8*)* %1, i32 (i8*, i8*, i8*, i8*)** %5
store i8* %2, i8** %6
%16 = bitcast [50 x i8]* %8 to i8*
%17 = bitcast [50 x i8]* %9 to i8*
store i32 0, i32* %14
store i32 0, i32* %15
br label %18
18: ; preds = %168, %3
%19 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
%20 = load i32*, i32** %4
%21 = call i32* @fgets(i8* %19, i32 4096, i32* %20)
%22 = icmp ne i32* %21, null
br i1 %22, label %23, label %169
23: ; preds = %18
%24 = load i32, i32* %14
%25 = add nsw i32 %24, 1
store i32 %25, i32* %14
%26 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
store i8* %26, i8** %10
%27 = load i32, i32* %14
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %50
29: ; preds = %23
%30 = load i8*, i8** %10
%31 = getelementptr inbounds i8, i8* %30, i64 0
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = icmp eq i32 %33, 239
br i1 %34, label %35, label %50
35: ; preds = %29
%36 = load i8*, i8** %10
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = icmp eq i32 %39, 187
br i1 %40, label %41, label %50
41: ; preds = %35
%42 = load i8*, i8** %10
%43 = getelementptr inbounds i8, i8* %42, i64 2
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = icmp eq i32 %45, 191
br i1 %46, label %47, label %50
47: ; preds = %41
%48 = load i8*, i8** %10
%49 = getelementptr inbounds i8, i8* %48, i64 3
store i8* %49, i8** %10
br label %50
50: ; preds = %47, %41, %35, %29, %23
%51 = load i8*, i8** %10
%52 = call i8* @rstrip(i8* %51)
%53 = call i8* @lskip(i8* %52)
store i8* %53, i8** %10
%54 = load i8*, i8** %10
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 59
br i1 %57, label %63, label %58
58: ; preds = %50
%59 = load i8*, i8** %10
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 35
br i1 %62, label %63, label %64
63: ; preds = %58, %50
br label %164
64: ; preds = %58
%65 = load i8*, i8** %10
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 91
br i1 %68, label %69, label %91
69: ; preds = %64
%70 = load i8*, i8** %10
%71 = getelementptr inbounds i8, i8* %70, i64 1
%72 = call i8* @find_char_or_comment(i8* %71, i8 signext 93)
store i8* %72, i8** %11
%73 = load i8*, i8** %11
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 93
br i1 %76, label %77, label %84
77: ; preds = %69
%78 = load i8*, i8** %11
store i8 0, i8* %78
%79 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%80 = load i8*, i8** %10
%81 = getelementptr inbounds i8, i8* %80, i64 1
%82 = call i32 @strncpy0(i8* %79, i8* %81, i32 50)
%83 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
store i8 0, i8* %83
br label %90
84: ; preds = %69
%85 = load i32, i32* %15
%86 = icmp ne i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %84
%88 = load i32, i32* %14
store i32 %88, i32* %15
br label %89
89: ; preds = %87, %84
br label %90
90: ; preds = %89, %77
br label %163
91: ; preds = %64
%92 = load i8*, i8** %10
%93 = load i8, i8* %92
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %162
96: ; preds = %91
%97 = load i8*, i8** %10
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp ne i32 %99, 59
br i1 %100, label %101, label %162
101: ; preds = %96
%102 = load i8*, i8** %10
%103 = call i8* @find_char_or_comment(i8* %102, i8 signext 61)
store i8* %103, i8** %11
%104 = load i8*, i8** %11
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 61
br i1 %107, label %108, label %111
108: ; preds = %101
%109 = load i8*, i8** %10
%110 = call i8* @find_char_or_comment(i8* %109, i8 signext 58)
store i8* %110, i8** %11
br label %111
111: ; preds = %108, %101
%112 = load i8*, i8** %11
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 61
br i1 %115, label %121, label %116
116: ; preds = %111
%117 = load i8*, i8** %11
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 58
br i1 %120, label %121, label %155
121: ; preds = %116, %111
%122 = load i8*, i8** %11
store i8 0, i8* %122
%123 = load i8*, i8** %10
%124 = call i8* @rstrip(i8* %123)
store i8* %124, i8** %12
%125 = load i8*, i8** %11
%126 = getelementptr inbounds i8, i8* %125, i64 1
%127 = call i8* @lskip(i8* %126)
store i8* %127, i8** %13
%128 = load i8*, i8** %13
%129 = call i8* @find_char_or_comment(i8* %128, i8 signext 0)
store i8* %129, i8** %11
%130 = load i8*, i8** %11
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 59
br i1 %133, label %134, label %136
134: ; preds = %121
%135 = load i8*, i8** %11
store i8 0, i8* %135
br label %136
136: ; preds = %134, %121
%137 = load i8*, i8** %13
%138 = call i8* @rstrip(i8* %137)
%139 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%140 = load i8*, i8** %12
%141 = call i32 @strncpy0(i8* %139, i8* %140, i32 50)
%142 = load i32 (i8*, i8*, i8*, i8*)*, i32 (i8*, i8*, i8*, i8*)** %5
%143 = load i8*, i8** %6
%144 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%145 = load i8*, i8** %12
%146 = load i8*, i8** %13
%147 = call i32 %142(i8* %143, i8* %144, i8* %145, i8* %146)
%148 = icmp ne i32 %147, 0
br i1 %148, label %154, label %149
149: ; preds = %136
%150 = load i32, i32* %15
%151 = icmp ne i32 %150, 0
br i1 %151, label %154, label %152
152: ; preds = %149
%153 = load i32, i32* %14
store i32 %153, i32* %15
br label %154
154: ; preds = %152, %149, %136
br label %161
155: ; preds = %116
%156 = load i32, i32* %15
%157 = icmp ne i32 %156, 0
br i1 %157, label %160, label %158
158: ; preds = %155
%159 = load i32, i32* %14
store i32 %159, i32* %15
br label %160
160: ; preds = %158, %155
br label %161
161: ; preds = %160, %154
br label %162
162: ; preds = %161, %96, %91
br label %163
163: ; preds = %162, %90
br label %164
164: ; preds = %163, %63
%165 = load i32, i32* %15
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %168
167: ; preds = %164
br label %169
168: ; preds = %164
br label %18
169: ; preds = %167, %18
%170 = load i32, i32* %15
ret i32 %170
}

LLVM IR (-O2):
define i32 @ini_parse_file(i32* nocapture %0, i32 (i8*, i8*, i8*, i8*)* nocapture %1, i8* %2) {
%4 = alloca [4096 x i8]
%5 = alloca [50 x i8]
%6 = alloca [50 x i8]
%7 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%10 = call i32* @fgets(i8* %7, i32 4096, i32* %0)
%11 = icmp eq i32* %10, null
br i1 %11, label %64, label %12
12: ; preds = %3
%13 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 1
%14 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 2
%15 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 3
br label %16
16: ; preds = %12, %61
%17 = phi i32 [ 0, %12 ], [ %18, %61 ]
%18 = add nuw nsw i32 %17, 1
%19 = icmp eq i32 %17, 0
%20 = load i8, i8* %7
%21 = icmp eq i8 %20, -17
%22 = select i1 %19, i1 %21, i1 false
%23 = load i8, i8* %13
%24 = icmp eq i8 %23, -69
%25 = select i1 %22, i1 %24, i1 false
%26 = load i8, i8* %14
%27 = icmp eq i8 %26, -65
%28 = select i1 %25, i1 %27, i1 false
%29 = select i1 %28, i8* %15, i8* %7
%30 = call i8* @rstrip(i8* %29)
%31 = call i8* @lskip(i8* %30)
%32 = load i8, i8* %31
switch i8 %32, label %40 [
i8 59, label %61
i8 35, label %61
i8 91, label %33
i8 0, label %61
]
33: ; preds = %16
%34 = getelementptr inbounds i8, i8* %31, i64 1
%35 = call i8* @find_char_or_comment(i8* %34, i8 signext 93)
%36 = load i8, i8* %35
%37 = icmp eq i8 %36, 93
br i1 %37, label %38, label %64
38: ; preds = %33
store i8 0, i8* %35
%39 = call i32 @strncpy0(i8* %8, i8* %34, i32 50)
store i8 0, i8* %9
br label %61
40: ; preds = %16
%41 = call i8* @find_char_or_comment(i8* %31, i8 signext 61)
%42 = load i8, i8* %41
%43 = icmp eq i8 %42, 61
br i1 %43, label %47, label %44
44: ; preds = %40
%45 = call i8* @find_char_or_comment(i8* %31, i8 signext 58)
%46 = load i8, i8* %45
switch i8 %46, label %64 [
i8 61, label %47
i8 58, label %47
]
47: ; preds = %40, %44, %44
%48 = phi i8* [ %45, %44 ], [ %45, %44 ], [ %41, %40 ]
store i8 0, i8* %48
%49 = call i8* @rstrip(i8* %31)
%50 = getelementptr inbounds i8, i8* %48, i64 1
%51 = call i8* @lskip(i8* %50)
%52 = call i8* @find_char_or_comment(i8* %51, i8 signext 0)
%53 = load i8, i8* %52
%54 = icmp eq i8 %53, 59
br i1 %54, label %55, label %56
55: ; preds = %47
store i8 0, i8* %52
br label %56
56: ; preds = %55, %47
%57 = call i8* @rstrip(i8* %51)
%58 = call i32 @strncpy0(i8* %9, i8* %49, i32 50)
%59 = call i32 %1(i8* %2, i8* %8, i8* %49, i8* %51)
%60 = icmp eq i32 %59, 0
br i1 %60, label %64, label %61
61: ; preds = %56, %16, %16, %16, %38
%62 = call i32* @fgets(i8* %7, i32 4096, i32* %0)
%63 = icmp eq i32* %62, null
br i1 %63, label %64, label %16
64: ; preds = %61, %33, %44, %56, %3
%65 = phi i32 [ 0, %3 ], [ %18, %56 ], [ %18, %44 ], [ %18, %33 ], [ 0, %61 ]
ret i32 %65
}