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


x86 assembly (clang, -O0):
<conf_parse_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1040 <memset@plt>
lea    -0x160(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1040 <memset@plt>
movl   $0x0,-0x184(%rbp)
movl   $0x0,-0x188(%rbp)
lea    -0xe0(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0xc8,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     152d <conf_parse_file+0x3cd>
mov    -0x184(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x184(%rbp)
lea    -0xe0(%rbp),%rax
mov    %rax,-0x168(%rbp)
cmpl   $0x1,-0x184(%rbp)
jne    124d <conf_parse_file+0xed>
mov    -0x168(%rbp),%rax
movzbl (%rax),%eax
cmp    $0xef,%eax
jne    124d <conf_parse_file+0xed>
mov    -0x168(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xbb,%eax
jne    124d <conf_parse_file+0xed>
mov    -0x168(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xbf,%eax
jne    124d <conf_parse_file+0xed>
mov    -0x168(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x168(%rbp)
mov    -0x168(%rbp),%rdi
call   1030 <rstrip@plt>
mov    %rax,%rdi
call   1080 <lskip@plt>
mov    %rax,-0x168(%rbp)
mov    -0x168(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    1280 <conf_parse_file+0x120>
jmp    1528 <conf_parse_file+0x3c8>
movsbl -0x160(%rbp),%eax
cmp    $0x0,%eax
je     1300 <conf_parse_file+0x1a0>
mov    -0x168(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1300 <conf_parse_file+0x1a0>
mov    -0x168(%rbp),%rax
lea    -0xe0(%rbp),%rcx
cmp    %rcx,%rax
jbe    1300 <conf_parse_file+0x1a0>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rsi
lea    -0x160(%rbp),%rdx
mov    -0x168(%rbp),%rcx
call   *%rax
cmp    $0x0,%eax
jne    12fb <conf_parse_file+0x19b>
cmpl   $0x0,-0x188(%rbp)
jne    12fb <conf_parse_file+0x19b>
mov    -0x184(%rbp),%eax
mov    %eax,-0x188(%rbp)
jmp    1523 <conf_parse_file+0x3c3>
mov    -0x168(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    1397 <conf_parse_file+0x237>
mov    -0x168(%rbp),%rdi
add    $0x1,%rdi
mov    $0x5d,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x170(%rbp)
mov    -0x170(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
jne    1374 <conf_parse_file+0x214>
mov    -0x170(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x120(%rbp),%rdi
mov    -0x168(%rbp),%rsi
add    $0x1,%rsi
mov    $0x32,%edx
call   1070 <strncpy0@plt>
movb   $0x0,-0x160(%rbp)
jmp    1392 <conf_parse_file+0x232>
cmpl   $0x0,-0x188(%rbp)
jne    138d <conf_parse_file+0x22d>
mov    -0x184(%rbp),%eax
mov    %eax,-0x188(%rbp)
jmp    1392 <conf_parse_file+0x232>
jmp    151e <conf_parse_file+0x3be>
mov    -0x168(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1519 <conf_parse_file+0x3b9>
mov    -0x168(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     1519 <conf_parse_file+0x3b9>
mov    -0x168(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x170(%rbp)
mov    -0x170(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     1400 <conf_parse_file+0x2a0>
mov    -0x168(%rbp),%rdi
mov    $0x3a,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x170(%rbp)
mov    -0x170(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     1426 <conf_parse_file+0x2c6>
mov    -0x170(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    14f6 <conf_parse_file+0x396>
mov    -0x170(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x168(%rbp),%rdi
call   1030 <rstrip@plt>
mov    %rax,-0x178(%rbp)
mov    -0x170(%rbp),%rdi
add    $0x1,%rdi
call   1080 <lskip@plt>
mov    %rax,-0x180(%rbp)
mov    -0x180(%rbp),%rdi
xor    %esi,%esi
call   1060 <find_char_or_comment@plt>
mov    %rax,-0x170(%rbp)
mov    -0x170(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    148c <conf_parse_file+0x32c>
mov    -0x170(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x180(%rbp),%rdi
call   1030 <rstrip@plt>
lea    -0x160(%rbp),%rdi
mov    -0x178(%rbp),%rsi
mov    $0x32,%edx
call   1070 <strncpy0@plt>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rsi
mov    -0x178(%rbp),%rdx
mov    -0x180(%rbp),%rcx
call   *%rax
cmp    $0x0,%eax
jne    14f1 <conf_parse_file+0x391>
cmpl   $0x0,-0x188(%rbp)
jne    14f1 <conf_parse_file+0x391>
mov    -0x184(%rbp),%eax
mov    %eax,-0x188(%rbp)
jmp    1514 <conf_parse_file+0x3b4>
cmpl   $0x0,-0x188(%rbp)
jne    150f <conf_parse_file+0x3af>
mov    -0x184(%rbp),%eax
mov    %eax,-0x188(%rbp)
jmp    1514 <conf_parse_file+0x3b4>
jmp    1519 <conf_parse_file+0x3b9>
jmp    151e <conf_parse_file+0x3be>
jmp    1523 <conf_parse_file+0x3c3>
jmp    1528 <conf_parse_file+0x3c8>
jmp    11b1 <conf_parse_file+0x51>
mov    -0x188(%rbp),%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conf_parse_file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x158,%rsp
mov    %rdx,0x8(%rsp)
mov    %rsi,%rbp
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),%rbx
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %r12,%rdx
call   1040 <fgets@plt>
xor    %r15d,%r15d
test   %rax,%rax
je     137f <conf_parse_file+0x22f>
mov    $0x1,%r14d
mov    %rbp,(%rsp)
jmp    120d <conf_parse_file+0xbd>
movb   $0x0,(%rax)
lea    0x50(%rsp),%rdi
mov    %r13,%rsi
mov    $0x32,%edx
call   1060 <strncpy0@plt>
movb   $0x0,0x10(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    %r12,%rdx
call   1040 <fgets@plt>
add    $0x1,%r14d
test   %rax,%rax
je     137f <conf_parse_file+0x22f>
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
lea    0x93(%rsp),%rdi
je     123e <conf_parse_file+0xee>
mov    %rbx,%rdi
cmp    $0x1,%r14d
cmovne %rbx,%rdi
call   1030 <rstrip@plt>
mov    %rax,%rdi
call   1070 <lskip@plt>
mov    %rax,%r13
movzbl (%rax),%eax
cmp    $0x23,%al
je     11f0 <conf_parse_file+0xa0>
cmpb   $0x0,0x10(%rsp)
je     1290 <conf_parse_file+0x140>
cmp    %rbx,%r13
jbe    1290 <conf_parse_file+0x140>
test   %al,%al
je     1290 <conf_parse_file+0x140>
mov    0x8(%rsp),%rdi
lea    0x50(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %r13,%rcx
jmp    1357 <conf_parse_file+0x207>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   %al,%al
je     11f0 <conf_parse_file+0xa0>
cmp    $0x5b,%al
jne    12c9 <conf_parse_file+0x179>
add    $0x1,%r13
mov    %r13,%rdi
mov    $0x5d,%esi
call   1050 <find_char_or_comment@plt>
cmpb   $0x5d,(%rax)
je     11ce <conf_parse_file+0x7e>
mov    %r14d,%eax
test   %r15d,%r15d
je     12c1 <conf_parse_file+0x171>
mov    %r15d,%eax
mov    %eax,%r15d
jmp    11f0 <conf_parse_file+0xa0>
mov    %r13,%rdi
mov    $0x3d,%esi
call   1050 <find_char_or_comment@plt>
mov    %rax,%rbp
cmpb   $0x3d,(%rax)
je     12f9 <conf_parse_file+0x1a9>
mov    %r13,%rdi
mov    $0x3a,%esi
call   1050 <find_char_or_comment@plt>
mov    %rax,%rbp
movzbl (%rax),%eax
cmp    $0x3d,%al
je     12f9 <conf_parse_file+0x1a9>
cmp    $0x3a,%al
jne    136a <conf_parse_file+0x21a>
movb   $0x0,0x0(%rbp)
mov    %r13,%rdi
call   1030 <rstrip@plt>
mov    %rax,%r13
add    $0x1,%rbp
mov    %rbp,%rdi
call   1070 <lskip@plt>
mov    %rax,%rbp
mov    %rax,%rdi
xor    %esi,%esi
call   1050 <find_char_or_comment@plt>
cmpb   $0x23,(%rax)
jne    1329 <conf_parse_file+0x1d9>
movb   $0x0,(%rax)
mov    %rbp,%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    %rbp,%rcx
mov    (%rsp),%rbp
call   *%rbp
or     %r15d,%eax
jne    11f0 <conf_parse_file+0xa0>
mov    %r14d,%r15d
jmp    11f0 <conf_parse_file+0xa0>
mov    %r14d,%eax
test   %r15d,%r15d
mov    (%rsp),%rbp
jne    12be <conf_parse_file+0x16e>
jmp    12c1 <conf_parse_file+0x171>
mov    %r15d,%eax
add    $0x158,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @conf_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 [200 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 = %188, %3
%19 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%20 = load i32*, i32** %4
%21 = call i32* @fgets(i8* %19, i32 200, i32* %20)
%22 = icmp ne i32* %21, null
br i1 %22, label %23, label %189
23: ; preds = %18
%24 = load i32, i32* %14
%25 = add nsw i32 %24, 1
store i32 %25, i32* %14
%26 = getelementptr inbounds [200 x i8], [200 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, 35
br i1 %57, label %58, label %59
58: ; preds = %50
br label %188
59: ; preds = %50
%60 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %87
64: ; preds = %59
%65 = load i8*, i8** %10
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %87
69: ; preds = %64
%70 = load i8*, i8** %10
%71 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%72 = icmp ugt i8* %70, %71
br i1 %72, label %73, label %87
73: ; preds = %69
%74 = load i32 (i8*, i8*, i8*, i8*)*, i32 (i8*, i8*, i8*, i8*)** %5
%75 = load i8*, i8** %6
%76 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%77 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%78 = load i8*, i8** %10
%79 = call i32 %74(i8* %75, i8* %76, i8* %77, i8* %78)
%80 = icmp ne i32 %79, 0
br i1 %80, label %86, label %81
81: ; preds = %73
%82 = load i32, i32* %15
%83 = icmp ne i32 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = load i32, i32* %14
store i32 %85, i32* %15
br label %86
86: ; preds = %84, %81, %73
br label %187
87: ; preds = %69, %64, %59
%88 = load i8*, i8** %10
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp eq i32 %90, 91
br i1 %91, label %92, label %114
92: ; preds = %87
%93 = load i8*, i8** %10
%94 = getelementptr inbounds i8, i8* %93, i64 1
%95 = call i8* @find_char_or_comment(i8* %94, i8 signext 93)
store i8* %95, i8** %11
%96 = load i8*, i8** %11
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 93
br i1 %99, label %100, label %107
100: ; preds = %92
%101 = load i8*, i8** %11
store i8 0, i8* %101
%102 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%103 = load i8*, i8** %10
%104 = getelementptr inbounds i8, i8* %103, i64 1
%105 = call i32 @strncpy0(i8* %102, i8* %104, i32 50)
%106 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
store i8 0, i8* %106
br label %113
107: ; preds = %92
%108 = load i32, i32* %15
%109 = icmp ne i32 %108, 0
br i1 %109, label %112, label %110
110: ; preds = %107
%111 = load i32, i32* %14
store i32 %111, i32* %15
br label %112
112: ; preds = %110, %107
br label %113
113: ; preds = %112, %100
br label %186
114: ; preds = %87
%115 = load i8*, i8** %10
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %185
119: ; preds = %114
%120 = load i8*, i8** %10
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 35
br i1 %123, label %124, label %185
124: ; preds = %119
%125 = load i8*, i8** %10
%126 = call i8* @find_char_or_comment(i8* %125, i8 signext 61)
store i8* %126, i8** %11
%127 = load i8*, i8** %11
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = icmp ne i32 %129, 61
br i1 %130, label %131, label %134
131: ; preds = %124
%132 = load i8*, i8** %10
%133 = call i8* @find_char_or_comment(i8* %132, i8 signext 58)
store i8* %133, i8** %11
br label %134
134: ; preds = %131, %124
%135 = load i8*, i8** %11
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp eq i32 %137, 61
br i1 %138, label %144, label %139
139: ; preds = %134
%140 = load i8*, i8** %11
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 58
br i1 %143, label %144, label %178
144: ; preds = %139, %134
%145 = load i8*, i8** %11
store i8 0, i8* %145
%146 = load i8*, i8** %10
%147 = call i8* @rstrip(i8* %146)
store i8* %147, i8** %12
%148 = load i8*, i8** %11
%149 = getelementptr inbounds i8, i8* %148, i64 1
%150 = call i8* @lskip(i8* %149)
store i8* %150, i8** %13
%151 = load i8*, i8** %13
%152 = call i8* @find_char_or_comment(i8* %151, i8 signext 0)
store i8* %152, i8** %11
%153 = load i8*, i8** %11
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 35
br i1 %156, label %157, label %159
157: ; preds = %144
%158 = load i8*, i8** %11
store i8 0, i8* %158
br label %159
159: ; preds = %157, %144
%160 = load i8*, i8** %13
%161 = call i8* @rstrip(i8* %160)
%162 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%163 = load i8*, i8** %12
%164 = call i32 @strncpy0(i8* %162, i8* %163, i32 50)
%165 = load i32 (i8*, i8*, i8*, i8*)*, i32 (i8*, i8*, i8*, i8*)** %5
%166 = load i8*, i8** %6
%167 = getelementptr inbounds [50 x i8], [50 x i8]* %8, i64 0, i64 0
%168 = load i8*, i8** %12
%169 = load i8*, i8** %13
%170 = call i32 %165(i8* %166, i8* %167, i8* %168, i8* %169)
%171 = icmp ne i32 %170, 0
br i1 %171, label %177, label %172
172: ; preds = %159
%173 = load i32, i32* %15
%174 = icmp ne i32 %173, 0
br i1 %174, label %177, label %175
175: ; preds = %172
%176 = load i32, i32* %14
store i32 %176, i32* %15
br label %177
177: ; preds = %175, %172, %159
br label %184
178: ; preds = %139
%179 = load i32, i32* %15
%180 = icmp ne i32 %179, 0
br i1 %180, label %183, label %181
181: ; preds = %178
%182 = load i32, i32* %14
store i32 %182, i32* %15
br label %183
183: ; preds = %181, %178
br label %184
184: ; preds = %183, %177
br label %185
185: ; preds = %184, %119, %114
br label %186
186: ; preds = %185, %113
br label %187
187: ; preds = %186, %86
br label %188
188: ; preds = %187, %58
br label %18
189: ; preds = %18
%190 = load i32, i32* %15
ret i32 %190
}

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