#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*/ line;
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 *, const char *),
                   void *user, const char *tx_section) {
  char line[200];
  char section[50] = "";
  char prev_name[50] = "";
  char *start;
  char *end;
  char *name;
  char *value;
  int lineno = 0;
  int error = 0;
  int ret_value = -1;
  while (fgets(line, sizeof(line), file) != NULL) {
    lineno++;
    start = lskip(rstrip(line));
    if (*start == ';' || *start == '#') {
    } else if (*prev_name && *start && start > line) {
      if (!handler(user, section, prev_name, start, tx_section) && !error)
        error = lineno;
    } 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, tx_section) && !error)
          error = lineno;
      } else if (!error) {
        error = lineno;
      }
    }
    ret_value = error;
  }
  return ret_value;
}


x86 assembly (clang, -O0):
<ini_parse_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1040 <memset@plt>
lea    -0x170(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1040 <memset@plt>
movl   $0x0,-0x194(%rbp)
movl   $0x0,-0x198(%rbp)
movl   $0xffffffff,-0x19c(%rbp)
ff ff ff
lea    -0xf0(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0xc8,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     14f4 <ini_parse_file+0x394>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
lea    -0xf0(%rbp),%rdi
call   1030 <rstrip@plt>
mov    %rax,%rdi
call   1080 <lskip@plt>
mov    %rax,-0x178(%rbp)
mov    -0x178(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     122e <ini_parse_file+0xce>
mov    -0x178(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1233 <ini_parse_file+0xd3>
jmp    14e3 <ini_parse_file+0x383>
movsbl -0x170(%rbp),%eax
cmp    $0x0,%eax
je     12b7 <ini_parse_file+0x157>
mov    -0x178(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     12b7 <ini_parse_file+0x157>
mov    -0x178(%rbp),%rax
lea    -0xf0(%rbp),%rcx
cmp    %rcx,%rax
jbe    12b7 <ini_parse_file+0x157>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
lea    -0x130(%rbp),%rsi
lea    -0x170(%rbp),%rdx
mov    -0x178(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   *%rax
cmp    $0x0,%eax
jne    12b2 <ini_parse_file+0x152>
cmpl   $0x0,-0x198(%rbp)
jne    12b2 <ini_parse_file+0x152>
mov    -0x194(%rbp),%eax
mov    %eax,-0x198(%rbp)
jmp    14de <ini_parse_file+0x37e>
mov    -0x178(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    134e <ini_parse_file+0x1ee>
mov    -0x178(%rbp),%rdi
add    $0x1,%rdi
mov    $0x5d,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x180(%rbp)
mov    -0x180(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
jne    132b <ini_parse_file+0x1cb>
mov    -0x180(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x130(%rbp),%rdi
mov    -0x178(%rbp),%rsi
add    $0x1,%rsi
mov    $0x32,%edx
call   1070 <strncpy0@plt>
movb   $0x0,-0x170(%rbp)
jmp    1349 <ini_parse_file+0x1e9>
cmpl   $0x0,-0x198(%rbp)
jne    1344 <ini_parse_file+0x1e4>
mov    -0x194(%rbp),%eax
mov    %eax,-0x198(%rbp)
jmp    1349 <ini_parse_file+0x1e9>
jmp    14d9 <ini_parse_file+0x379>
mov    -0x178(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     14d4 <ini_parse_file+0x374>
mov    -0x178(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     14d4 <ini_parse_file+0x374>
mov    -0x178(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x180(%rbp)
mov    -0x180(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     13b7 <ini_parse_file+0x257>
mov    -0x178(%rbp),%rdi
mov    $0x3a,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x180(%rbp)
mov    -0x180(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     13dd <ini_parse_file+0x27d>
mov    -0x180(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    14b1 <ini_parse_file+0x351>
mov    -0x180(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x178(%rbp),%rdi
call   1030 <rstrip@plt>
mov    %rax,-0x188(%rbp)
mov    -0x180(%rbp),%rdi
add    $0x1,%rdi
call   1080 <lskip@plt>
mov    %rax,-0x190(%rbp)
mov    -0x190(%rbp),%rdi
xor    %esi,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x180(%rbp)
mov    -0x180(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
jne    1443 <ini_parse_file+0x2e3>
mov    -0x180(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x190(%rbp),%rdi
call   1030 <rstrip@plt>
lea    -0x170(%rbp),%rdi
mov    -0x188(%rbp),%rsi
mov    $0x32,%edx
call   1070 <strncpy0@plt>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
lea    -0x130(%rbp),%rsi
mov    -0x188(%rbp),%rdx
mov    -0x190(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   *%rax
cmp    $0x0,%eax
jne    14ac <ini_parse_file+0x34c>
cmpl   $0x0,-0x198(%rbp)
jne    14ac <ini_parse_file+0x34c>
mov    -0x194(%rbp),%eax
mov    %eax,-0x198(%rbp)
jmp    14cf <ini_parse_file+0x36f>
cmpl   $0x0,-0x198(%rbp)
jne    14ca <ini_parse_file+0x36a>
mov    -0x194(%rbp),%eax
mov    %eax,-0x198(%rbp)
jmp    14cf <ini_parse_file+0x36f>
jmp    14d4 <ini_parse_file+0x374>
jmp    14d9 <ini_parse_file+0x379>
jmp    14de <ini_parse_file+0x37e>
jmp    14e3 <ini_parse_file+0x383>
mov    -0x198(%rbp),%eax
mov    %eax,-0x19c(%rbp)
jmp    11bf <ini_parse_file+0x5f>
mov    -0x19c(%rbp),%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ini_parse_file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
mov    %rcx,%r15
mov    %rdx,%rbp
mov    %rsi,0x10(%rsp)
mov    %rdi,%r13
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movw   $0x0,0x90(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movw   $0x0,0x50(%rsp)
lea    0xa0(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %r13,%rdx
call   1040 <fgets@plt>
test   %rax,%rax
je     1362 <ini_parse_file+0x212>
movl   $0x0,0x4(%rsp)
mov    $0x1,%r12d
mov    %r15,0x18(%rsp)
mov    %rbp,0x8(%rsp)
jmp    122d <ini_parse_file+0xdd>
mov    %rbp,%rdi
lea    0x60(%rsp),%rsi
lea    0x20(%rsp),%rdx
mov    %r14,%rcx
mov    %r15,%r8
call   *0x10(%rsp)
mov    0x4(%rsp),%ecx
or     %ecx,%eax
cmove  %r12d,%ecx
mov    %ecx,0x4(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %r13,%rdx
call   1040 <fgets@plt>
add    $0x1,%r12d
test   %rax,%rax
je     136a <ini_parse_file+0x21a>
mov    %rbx,%rdi
call   1030 <rstrip@plt>
mov    %rax,%rdi
call   1070 <lskip@plt>
mov    %rax,%r14
movzbl (%rax),%eax
cmp    $0x23,%al
je     1210 <ini_parse_file+0xc0>
cmp    $0x3b,%al
je     1210 <ini_parse_file+0xc0>
cmpb   $0x0,0x20(%rsp)
je     125b <ini_parse_file+0x10b>
cmp    %rbx,%r14
jbe    125b <ini_parse_file+0x10b>
test   %al,%al
jne    11df <ini_parse_file+0x8f>
test   %al,%al
je     1210 <ini_parse_file+0xc0>
cmp    $0x3b,%al
je     1210 <ini_parse_file+0xc0>
cmp    $0x5b,%al
jne    12a0 <ini_parse_file+0x150>
add    $0x1,%r14
mov    %r14,%rdi
mov    $0x5d,%esi
call   1050 <find_char_or_comment@plt>
cmpb   $0x5d,(%rax)
jne    1337 <ini_parse_file+0x1e7>
movb   $0x0,(%rax)
lea    0x60(%rsp),%rdi
mov    %r14,%rsi
mov    $0x32,%edx
call   1060 <strncpy0@plt>
movb   $0x0,0x20(%rsp)
jmp    1210 <ini_parse_file+0xc0>
mov    %r14,%rdi
mov    $0x3d,%esi
call   1050 <find_char_or_comment@plt>
mov    %rax,%rbp
cmpb   $0x3d,(%rax)
je     12d0 <ini_parse_file+0x180>
mov    %r14,%rdi
mov    $0x3a,%esi
call   1050 <find_char_or_comment@plt>
mov    %rax,%rbp
movzbl (%rax),%eax
cmp    $0x3d,%al
je     12d0 <ini_parse_file+0x180>
cmp    $0x3a,%al
jne    134a <ini_parse_file+0x1fa>
movb   $0x0,0x0(%rbp)
mov    %r14,%rdi
call   1030 <rstrip@plt>
mov    %rax,%r14
add    $0x1,%rbp
mov    %rbp,%rdi
call   1070 <lskip@plt>
mov    %rax,%r15
mov    %rax,%rdi
xor    %esi,%esi
call   1050 <find_char_or_comment@plt>
cmpb   $0x3b,(%rax)
jne    1300 <ini_parse_file+0x1b0>
movb   $0x0,(%rax)
mov    %r15,%rdi
call   1030 <rstrip@plt>
lea    0x20(%rsp),%rdi
mov    %r14,%rsi
mov    $0x32,%edx
call   1060 <strncpy0@plt>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
lea    0x60(%rsp),%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    0x18(%rsp),%r15
jmp    11ef <ini_parse_file+0x9f>
mov    0x4(%rsp),%eax
test   %eax,%eax
cmove  %r12d,%eax
mov    %eax,0x4(%rsp)
jmp    1210 <ini_parse_file+0xc0>
mov    0x4(%rsp),%eax
test   %eax,%eax
cmove  %r12d,%eax
mov    %eax,0x4(%rsp)
mov    0x8(%rsp),%rbp
jmp    1210 <ini_parse_file+0xc0>
movl   $0xffffffff,0x4(%rsp)
ff
mov    0x4(%rsp),%eax
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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