#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  size_t rm_eo;
  int rm_so;
};
typedef TYPE_1__ regmatch_t;
typedef int /*<<< orphan*/ regex_t;
typedef int /*<<< orphan*/ line;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ CompileRegex(int /*<<< orphan*/ *, char *,
                                int /*<<< orphan*/);
int /*<<< orphan*/ Config_AddValue(char *, char *);
int /*<<< orphan*/ REG_EXTENDED;
scalar_t__ RunRegex(int /*<<< orphan*/ *, char *, int, TYPE_1__ *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
scalar_t__ isspace(char);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ regfree(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int Config_ParseFile(const char *Filename) {
  char line[128];
  regex_t regexp_option;
  regex_t regexp_empty;
  CompileRegex(&regexp_option, "^\\s*([^ \t]+)\\s+(.+)$", REG_EXTENDED);
  CompileRegex(&regexp_empty, "^\\s*$", REG_EXTENDED);
  FILE *fp = fopen(Filename, "r");
  if (!fp) {
    fprintf(stderr, "Unable to open config file '%s'\n", Filename);
    perror("Config_ParseFile");
    return 1;
  }
  while (fgets(line, sizeof(line), fp)) {
    regmatch_t matches[3];
    {
      int i;
      for (i = 0; line[i]; i++) {
        if (line[i] == '#' || line[i] == ';') {
          line[i] = '\0';
          break;
        }
      }
      while (i-- && isspace(line[i]))
        line[i] = '\0';
    }
    if (line[0] == '\0')
      continue;
    if (RunRegex(&regexp_option, line, 3, matches,
                 "Parsing configuration file")) {
      fprintf(stderr, "Syntax error\n- %s", line);
      continue;
    }
    line[matches[1].rm_eo] = 0;
    line[matches[2].rm_eo] = 0;
    Config_AddValue(line + matches[1].rm_so, line + matches[2].rm_so);
  }
  fclose(fp);
  regfree(&regexp_option);
  regfree(&regexp_empty);
  return 0;
}


x86 assembly (clang, -O0):
<Config_ParseFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x10(%rbp)
mov    0x2e22(%rip),%rax
mov    (%rax),%edx
lea    -0x94(%rbp),%rdi
lea    0xe3a(%rip),%rsi
call   10c0 <CompileRegex@plt>
mov    0x2e06(%rip),%rax
mov    (%rax),%edx
lea    -0x98(%rbp),%rdi
lea    0xe33(%rip),%rsi
call   10c0 <CompileRegex@plt>
mov    -0x10(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xa0(%rbp)
cmpq   $0x0,-0xa0(%rbp)
jne    123d <Config_ParseFile+0x9d>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdfd(%rip),%rsi
call   1090 <fprintf@plt>
lea    0xe12(%rip),%rdi
call   10b0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    142a <Config_ParseFile+0x28a>
jmp    1242 <Config_ParseFile+0xa2>
lea    -0x90(%rbp),%rdi
mov    -0xa0(%rbp),%rdx
mov    $0x80,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     13ff <Config_ParseFile+0x25f>
movl   $0x0,-0xd4(%rbp)
movslq -0xd4(%rbp),%rax
cmpb   $0x0,-0x90(%rbp,%rax,1)
je     12e0 <Config_ParseFile+0x140>
movslq -0xd4(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
cmp    $0x23,%eax
je     12b3 <Config_ParseFile+0x113>
movslq -0xd4(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%eax
ff
cmp    $0x3b,%eax
jne    12c7 <Config_ParseFile+0x127>
movslq -0xd4(%rbp),%rax
movb   $0x0,-0x90(%rbp,%rax,1)
jmp    12e0 <Config_ParseFile+0x140>
jmp    12cc <Config_ParseFile+0x12c>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    126e <Config_ParseFile+0xce>
jmp    12e5 <Config_ParseFile+0x145>
mov    -0xd4(%rbp),%ecx
mov    %ecx,%eax
add    $0xffffffff,%eax
mov    %eax,-0xd4(%rbp)
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xd5(%rbp)
je     1328 <Config_ParseFile+0x188>
movslq -0xd4(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%edi
ff
call   1060 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0xd5(%rbp)
mov    -0xd5(%rbp),%al
test   $0x1,%al
jne    133b <Config_ParseFile+0x19b>
jmp    134f <Config_ParseFile+0x1af>
movslq -0xd4(%rbp),%rax
movb   $0x0,-0x90(%rbp,%rax,1)
jmp    12e5 <Config_ParseFile+0x145>
movsbl -0x90(%rbp),%eax
cmp    $0x0,%eax
jne    1364 <Config_ParseFile+0x1c4>
jmp    1242 <Config_ParseFile+0xa2>
lea    -0x90(%rbp),%rsi
lea    -0xd0(%rbp),%rcx
lea    -0x94(%rbp),%rdi
mov    $0x3,%edx
lea    0xcca(%rip),%r8
call   1080 <RunRegex@plt>
cmp    $0x0,%rax
je     13b5 <Config_ParseFile+0x215>
mov    0x2c45(%rip),%rax
mov    (%rax),%edi
lea    -0x90(%rbp),%rdx
lea    0xcbf(%rip),%rsi
call   1090 <fprintf@plt>
jmp    1242 <Config_ParseFile+0xa2>
mov    -0xc0(%rbp),%rax
movb   $0x0,-0x90(%rbp,%rax,1)
mov    -0xb0(%rbp),%rax
movb   $0x0,-0x90(%rbp,%rax,1)
lea    -0x90(%rbp),%rdi
movslq -0xb8(%rbp),%rax
add    %rax,%rdi
lea    -0x90(%rbp),%rsi
movslq -0xa8(%rbp),%rax
add    %rax,%rsi
call   1030 <Config_AddValue@plt>
jmp    1242 <Config_ParseFile+0xa2>
mov    -0xa0(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x94(%rbp),%rdi
call   1050 <regfree@plt>
lea    -0x98(%rbp),%rdi
call   1050 <regfree@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Config_ParseFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %rdi,%rbp
mov    0x2e1d(%rip),%rbx
mov    (%rbx),%edx
lea    0xe3c(%rip),%rsi
lea    0x8(%rsp),%rdi
call   10c0 <CompileRegex@plt>
mov    (%rbx),%edx
lea    0xe3e(%rip),%rsi
lea    0xc(%rsp),%rdi
call   10c0 <CompileRegex@plt>
lea    0xe33(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <fopen@plt>
test   %rax,%rax
je     136f <Config_ParseFile+0x1cf>
mov    %rax,%rbx
lea    0x40(%rsp),%rdi
mov    $0x80,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     133f <Config_ParseFile+0x19f>
lea    0x40(%rsp),%r14
movabs $0x100000000,%rbp
jmp    127c <Config_ParseFile+0xdc>
nopl   0x0(%rax,%rax,1)
mov    0x20(%rsp),%rax
mov    0x30(%rsp),%rcx
movb   $0x0,0x40(%rsp,%rax,1)
movb   $0x0,0x40(%rsp,%rcx,1)
movslq 0x28(%rsp),%rax
lea    (%rsp,%rax,1),%rdi
add    $0x40,%rdi
movslq 0x38(%rsp),%rax
lea    (%rsp,%rax,1),%rsi
add    $0x40,%rsi
call   1030 <Config_AddValue@plt>
mov    %r14,%rdi
mov    $0x80,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     133f <Config_ParseFile+0x19f>
xor    %eax,%eax
xor    %ecx,%ecx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl 0x40(%rsp,%r15,1),%edx
test   %dl,%dl
je     12b8 <Config_ParseFile+0x118>
cmp    $0x3b,%dl
je     12b0 <Config_ParseFile+0x110>
cmp    $0x23,%dl
je     12b0 <Config_ParseFile+0x110>
add    $0x1,%r15
add    %rbp,%rcx
add    $0x1,%eax
jmp    1290 <Config_ParseFile+0xf0>
mov    %r15d,%ecx
movb   $0x0,0x40(%rsp,%rcx,1)
test   %r15d,%r15d
je     12f0 <Config_ParseFile+0x150>
movslq %eax,%r12
lea    0x3f(%rsp),%rax
add    %rax,%r12
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
movsbl (%r12,%r13,1),%edi
call   1060 <isspace@plt>
test   %rax,%rax
je     12f0 <Config_ParseFile+0x150>
movb   $0x0,(%r12,%r13,1)
add    $0xffffffffffffffff,%r13
mov    %r13d,%eax
add    %r15d,%eax
jne    12d0 <Config_ParseFile+0x130>
cmpb   $0x0,0x40(%rsp)
je     1263 <Config_ParseFile+0xc3>
lea    0x8(%rsp),%rdi
mov    %r14,%rsi
mov    $0x3,%edx
lea    0x10(%rsp),%rcx
lea    0xd3b(%rip),%r8
call   1080 <RunRegex@plt>
test   %rax,%rax
je     1230 <Config_ParseFile+0x90>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
lea    0xd38(%rip),%rsi
mov    %r14,%rdx
call   1090 <fprintf@plt>
jmp    1263 <Config_ParseFile+0xc3>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0x8(%rsp),%rdi
call   1050 <regfree@plt>
lea    0xc(%rsp),%rdi
call   1050 <regfree@plt>
xor    %eax,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c6a(%rip),%rax
mov    (%rax),%edi
lea    0xc9e(%rip),%rsi
mov    %rbp,%rdx
call   1090 <fprintf@plt>
lea    0xcb0(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%eax
jmp    135d <Config_ParseFile+0x1bd>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i64, i32 }
@.str = [21 x i8] c"^\\s*([^ \09]+)\\s+(.+)$\00"
@REG_EXTENDED = global i32 0
@.str.1 = [6 x i8] c"^\\s*$\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [33 x i8] c"Unable to open config file '%s'\0A\00"
@.str.4 = [17 x i8] c"Config_ParseFile\00"
@.str.5 = [27 x i8] c"Parsing configuration file\00"
@.str.6 = [18 x i8] c"Syntax error\0A- %s\00"
define i32 @Config_ParseFile(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [128 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca [3 x %struct.TYPE_3__]
%9 = alloca i32
store i8* %0, i8** %3
%10 = load i32, i32* @REG_EXTENDED
%11 = call i32 @CompileRegex(i32* %5, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @REG_EXTENDED
%13 = call i32 @CompileRegex(i32* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = load i8*, i8** %3
%15 = call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %15, i32** %7
%16 = load i32*, i32** %7
%17 = icmp ne i32* %16, null
br i1 %17, label %23, label %18
18: ; preds = %1
%19 = load i32, i32* @stderr
%20 = load i8*, i8** %3
%21 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %20)
%22 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %2
br label %118
23: ; preds = %1
br label %24
24: ; preds = %91, %87, %81, %23
%25 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%26 = load i32*, i32** %7
%27 = call i64 @fgets(i8* %25, i32 128, i32* %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %113
29: ; preds = %24
store i32 0, i32* %9
br label %30
30: ; preds = %55, %29
%31 = load i32, i32* %9
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = icmp ne i8 %34, 0
br i1 %35, label %36, label %58
36: ; preds = %30
%37 = load i32, i32* %9
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %38
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 35
br i1 %42, label %50, label %43
43: ; preds = %36
%44 = load i32, i32* %9
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 59
br i1 %49, label %50, label %54
50: ; preds = %43, %36
%51 = load i32, i32* %9
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %52
store i8 0, i8* %53
br label %58
54: ; preds = %43
br label %55
55: ; preds = %54
%56 = load i32, i32* %9
%57 = add nsw i32 %56, 1
store i32 %57, i32* %9
br label %30
58: ; preds = %50, %30
br label %59
59: ; preds = %72, %58
%60 = load i32, i32* %9
%61 = add nsw i32 %60, -1
store i32 %61, i32* %9
%62 = icmp ne i32 %60, 0
br i1 %62, label %63, label %70
63: ; preds = %59
%64 = load i32, i32* %9
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %65
%67 = load i8, i8* %66
%68 = call i64 @isspace(i8 signext %67)
%69 = icmp ne i64 %68, 0
br label %70
70: ; preds = %63, %59
%71 = phi i1 [ false, %59 ], [ %69, %63 ]
br i1 %71, label %72, label %76
72: ; preds = %70
%73 = load i32, i32* %9
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %74
store i8 0, i8* %75
br label %59
76: ; preds = %70
%77 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %76
br label %24
82: ; preds = %76
%83 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%84 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 0
%85 = call i64 @RunRegex(i32* %5, i8* %83, i32 3, %struct.TYPE_3__* %84, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %82
%88 = load i32, i32* @stderr
%89 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%90 = call i32 @fprintf(i32 %88, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %89)
br label %24
91: ; preds = %82
%92 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 1
%93 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %92, i32 0, i32 0
%94 = load i64, i64* %93
%95 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %94
store i8 0, i8* %95
%96 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 2
%97 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %96, i32 0, i32 0
%98 = load i64, i64* %97
%99 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 %98
store i8 0, i8* %99
%100 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%101 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 1
%102 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %101, i32 0, i32 1
%103 = load i32, i32* %102
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, i8* %100, i64 %104
%106 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%107 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 2
%108 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %107, i32 0, i32 1
%109 = load i32, i32* %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %106, i64 %110
%112 = call i32 @Config_AddValue(i8* %105, i8* %111)
br label %24
113: ; preds = %24
%114 = load i32*, i32** %7
%115 = call i32 @fclose(i32* %114)
%116 = call i32 @regfree(i32* %5)
%117 = call i32 @regfree(i32* %6)
store i32 0, i32* %2
br label %118
118: ; preds = %113, %18
%119 = load i32, i32* %2
ret i32 %119
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i64, i32 }
@.str = [21 x i8] c"^\\s*([^ \09]+)\\s+(.+)$\00"
@REG_EXTENDED = global i32 0
@.str.1 = [6 x i8] c"^\\s*$\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [33 x i8] c"Unable to open config file '%s'\0A\00"
@.str.4 = [17 x i8] c"Config_ParseFile\00"
@.str.5 = [27 x i8] c"Parsing configuration file\00"
@.str.6 = [18 x i8] c"Syntax error\0A- %s\00"
define i32 @Config_ParseFile(i8* %0) {
%2 = alloca [128 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [3 x %struct.TYPE_3__]
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = load i32, i32* @REG_EXTENDED
%10 = call i32 @CompileRegex(i32* %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @REG_EXTENDED
%12 = call i32 @CompileRegex(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %25, label %15
15: ; preds = %1
%16 = call i64 @fgets(i8* %6, i32 128, i32* %13)
%17 = icmp eq i64 %16, 0
br i1 %17, label %79, label %18
18: ; preds = %15
%19 = bitcast [3 x %struct.TYPE_3__]* %5 to i8*
%20 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %5, i64 0, i64 0
%21 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %5, i64 0, i64 1, i32 0
%22 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %5, i64 0, i64 2, i32 0
%23 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %5, i64 0, i64 1, i32 1
%24 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %5, i64 0, i64 2, i32 1
br label %29
25: ; preds = %1
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%28 = call i32 @perror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
br label %83
29: ; preds = %18, %76
br label %30
30: ; preds = %37, %29
%31 = phi i64 [ %38, %37 ], [ 0, %29 ]
%32 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %31
%33 = load i8, i8* %32
switch i8 %33, label %37 [
i8 0, label %39
i8 35, label %34
i8 59, label %34
]
34: ; preds = %30, %30
%35 = and i64 %31, 4294967295
%36 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %35
store i8 0, i8* %36
br label %39
37: ; preds = %30
%38 = add nuw i64 %31, 1
br label %30
39: ; preds = %30, %34
%40 = trunc i64 %31 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label %55, label %42
42: ; preds = %39
%43 = shl i64 %31, 32
%44 = ashr exact i64 %43, 32
br label %45
45: ; preds = %42, %52
%46 = phi i64 [ %44, %42 ], [ %47, %52 ]
%47 = add nsw i64 %46, -1
%48 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %47
%49 = load i8, i8* %48
%50 = call i64 @isspace(i8 signext %49)
%51 = icmp eq i64 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %45
store i8 0, i8* %48
%53 = trunc i64 %47 to i32
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %45
55: ; preds = %45, %52, %39
%56 = load i8, i8* %6
%57 = icmp eq i8 %56, 0
br i1 %57, label %76, label %58
58: ; preds = %55
%59 = call i64 @RunRegex(i32* %3, i8* %6, i32 3, %struct.TYPE_3__* %20, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %64, label %61
61: ; preds = %58
%62 = load i32, i32* @stderr
%63 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %6)
br label %76
64: ; preds = %58
%65 = load i64, i64* %21
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %65
store i8 0, i8* %66
%67 = load i64, i64* %22
%68 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %67
store i8 0, i8* %68
%69 = load i32, i32* %23
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %70
%72 = load i32, i32* %24
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %73
%75 = call i32 @Config_AddValue(i8* %71, i8* %74)
br label %76
76: ; preds = %55, %64, %61
%77 = call i64 @fgets(i8* %6, i32 128, i32* %13)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %29
79: ; preds = %76, %15
%80 = call i32 @fclose(i32* %13)
%81 = call i32 @regfree(i32* %3)
%82 = call i32 @regfree(i32* %4)
br label %83
83: ; preds = %79, %25
%84 = phi i32 [ 0, %79 ], [ 1, %25 ]
ret i32 %84
}