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

/* Variables and functions */
scalar_t__ EOF;
int config_open(int /*<<< orphan*/ **, char *);
int /*<<< orphan*/ config_string_set(char *, char *, char *);
int /*<<< orphan*/ config_uint_set(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char *);
scalar_t__ isdigit(char);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strtoul(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int32_t config_read(void) {
  FILE *config_file = NULL;
  char section[1024];
  char key[1024];
  char buffer[1024];
  uint32_t length;
  if (config_open(&config_file, "r") == -1) {
    return -1;
  }
  if (config_file == NULL) {
    return 0;
  }
  while (fscanf(config_file, "%1023s", buffer) != EOF) {
    length = strlen(buffer);
    if (buffer[0] == '[' && buffer[length - 1] == ']') {
      buffer[length - 1] = '\0';
      strcpy(section, &buffer[1]);
    } else {
      strcpy(key, buffer);
      if (fscanf(config_file, "%1023s", buffer) == EOF) {
        fprintf(stderr, "Error: Unexpected end of file.\n");
        return -1;
      }
      if (strcmp(buffer, "=") != 0) {
        fprintf(stderr, "Error: Expected \"=\", found \"%s\".\n", buffer);
        return -1;
      }
      if (fscanf(config_file, " %1023[^\n]", buffer) == EOF) {
        fprintf(stderr, "Error: Unexpected end of file.\n");
        return -1;
      }
      length = strlen(buffer);
      if (buffer[0] == '"' && buffer[length - 1] == '"') {
        buffer[length - 1] = '\0';
        config_string_set(section, key, &buffer[1]);
      } else if (isdigit(buffer[0])) {
        config_uint_set(section, key, strtoul(buffer, NULL, 0));
      } else {
        fprintf(stderr, "Error: Unknown data type: \"%s\"\n", buffer);
        return -1;
      }
    }
  }
  fclose(config_file);
  return 0;
}


x86 assembly (clang, -O0):
<config_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc30,%rsp
movq   $0x0,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xe32(%rip),%rsi
call   10d0 <config_open@plt>
cmp    $0xffffffff,%eax
jne    11e8 <config_read+0x38>
movl   $0xffffffff,-0x4(%rbp)
jmp    14a1 <config_read+0x2f1>
cmpq   $0x0,-0x10(%rbp)
jne    11ff <config_read+0x4f>
movl   $0x0,-0x4(%rbp)
jmp    14a1 <config_read+0x2f1>
jmp    1204 <config_read+0x54>
mov    -0x10(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xdec(%rip),%rsi
call   1080 <fscanf@plt>
mov    0x2dc6(%rip),%rcx
cmp    (%rcx),%rax
je     1491 <config_read+0x2e1>
lea    -0xc10(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,-0xc14(%rbp)
movsbl -0xc10(%rbp),%eax
cmp    $0x5b,%eax
jne    1298 <config_read+0xe8>
mov    -0xc14(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0xc10(%rbp,%rax,1),%eax
ff
cmp    $0x5d,%eax
jne    1298 <config_read+0xe8>
mov    -0xc14(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0xc10(%rbp,%rax,1)
lea    -0x410(%rbp),%rdi
lea    -0xc10(%rbp),%rsi
add    $0x1,%rsi
call   1040 <strcpy@plt>
jmp    148c <config_read+0x2dc>
lea    -0x810(%rbp),%rdi
lea    -0xc10(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xd45(%rip),%rsi
call   1080 <fscanf@plt>
mov    0x2d1f(%rip),%rcx
cmp    (%rcx),%rax
jne    12f5 <config_read+0x145>
mov    0x2cff(%rip),%rax
mov    (%rax),%edi
lea    0xd27(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14a1 <config_read+0x2f1>
lea    -0xc10(%rbp),%rdi
lea    0xd26(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     133c <config_read+0x18c>
mov    0x2cbf(%rip),%rax
mov    (%rax),%edi
lea    -0xc10(%rbp),%rdx
lea    0xd02(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14a1 <config_read+0x2f1>
mov    -0x10(%rbp),%rdi
lea    -0xc10(%rbp),%rdx
lea    0xcff(%rip),%rsi
call   1080 <fscanf@plt>
mov    0x2c8e(%rip),%rcx
cmp    (%rcx),%rax
jne    1386 <config_read+0x1d6>
mov    0x2c6e(%rip),%rax
mov    (%rax),%edi
lea    0xc96(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14a1 <config_read+0x2f1>
lea    -0xc10(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,-0xc14(%rbp)
movsbl -0xc10(%rbp),%eax
cmp    $0x22,%eax
jne    13fa <config_read+0x24a>
mov    -0xc14(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0xc10(%rbp,%rax,1),%eax
ff
cmp    $0x22,%eax
jne    13fa <config_read+0x24a>
mov    -0xc14(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0xc10(%rbp,%rax,1)
lea    -0x410(%rbp),%rdi
lea    -0x810(%rbp),%rsi
lea    -0xc10(%rbp),%rdx
add    $0x1,%rdx
call   10b0 <config_string_set@plt>
jmp    1487 <config_read+0x2d7>
movsbl -0xc10(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1458 <config_read+0x2a8>
lea    -0x410(%rbp),%rax
mov    %rax,-0xc28(%rbp)
lea    -0x810(%rbp),%rax
mov    %rax,-0xc20(%rbp)
lea    -0xc10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10c0 <strtoul@plt>
mov    -0xc28(%rbp),%rdi
mov    -0xc20(%rbp),%rsi
mov    %eax,%edx
call   1050 <config_uint_set@plt>
jmp    1482 <config_read+0x2d2>
mov    0x2b79(%rip),%rax
mov    (%rax),%edi
lea    -0xc10(%rbp),%rdx
lea    0xbe9(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    14a1 <config_read+0x2f1>
jmp    1487 <config_read+0x2d7>
jmp    148c <config_read+0x2dc>
jmp    1204 <config_read+0x54>
mov    -0x10(%rbp),%rdi
call   1060 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_read>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc18,%rsp
movq   $0x0,0x8(%rsp)
lea    0xe2f(%rip),%rsi
lea    0x8(%rsp),%rdi
call   10d0 <config_open@plt>
mov    $0xffffffff,%ebp
cmp    $0xffffffff,%eax
je     1397 <config_read+0x1e7>
mov    0x8(%rsp),%rdi
xor    %ebp,%ebp
test   %rdi,%rdi
je     1397 <config_read+0x1e7>
lea    0xe02(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdx
call   1080 <fscanf@plt>
mov    0x2dd4(%rip),%r14
cmp    (%r14),%rax
jne    1228 <config_read+0x78>
mov    0x8(%rsp),%rdi
call   1060 <fclose@plt>
jmp    1397 <config_read+0x1e7>
lea    0x810(%rsp),%r15
lea    0xdcb(%rip),%r12
lea    0x410(%rsp),%r13
jmp    1277 <config_read+0xc7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movb   $0x0,0xf(%rsp,%rax,1)
mov    %r15,%rdi
lea    0x11(%rsp),%rsi
call   1040 <strcpy@plt>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1080 <fscanf@plt>
cmp    (%r14),%rax
je     1219 <config_read+0x69>
mov    %rbx,%rdi
call   1070 <strlen@plt>
cmpb   $0x5b,0x10(%rsp)
jne    128f <config_read+0xdf>
cltq
cmpb   $0x5d,-0x1(%rax,%rbx,1)
je     1250 <config_read+0xa0>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1040 <strcpy@plt>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1080 <fscanf@plt>
cmp    (%r14),%rax
je     134b <config_read+0x19b>
mov    %rbx,%rdi
lea    0xd6c(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    1364 <config_read+0x1b4>
mov    0x8(%rsp),%rdi
lea    0xd76(%rip),%rsi
mov    %rbx,%rdx
call   1080 <fscanf@plt>
cmp    (%r14),%rax
je     134b <config_read+0x19b>
mov    %rbx,%rdi
call   1070 <strlen@plt>
movzbl 0x10(%rsp),%ecx
cmp    $0x22,%cl
jne    1320 <config_read+0x170>
cltq
cmpb   $0x22,-0x1(%rax,%rbx,1)
jne    1320 <config_read+0x170>
movb   $0x0,0xf(%rsp,%rax,1)
mov    %r15,%rdi
mov    %r13,%rsi
lea    0x11(%rsp),%rdx
call   10b0 <config_string_set@plt>
jmp    1262 <config_read+0xb2>
nopl   0x0(%rax)
movsbl %cl,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     1376 <config_read+0x1c6>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10c0 <strtoul@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %eax,%edx
call   1050 <config_uint_set@plt>
jmp    1262 <config_read+0xb2>
mov    0x2c86(%rip),%rax
mov    (%rax),%edi
lea    0xcae(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    1392 <config_read+0x1e2>
mov    0x2c6d(%rip),%rax
mov    (%rax),%edi
lea    0xcb7(%rip),%rsi
jmp    1386 <config_read+0x1d6>
mov    0x2c5b(%rip),%rax
mov    (%rax),%edi
lea    0xcd2(%rip),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
add    $0xc18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [7 x i8] c"%1023s\00"
@EOF = global i64 0
@stderr = global i32 0
@.str.2 = [32 x i8] c"Error: Unexpected end of file.\0A\00"
@.str.3 = [2 x i8] c"=\00"
@.str.4 = [34 x i8] c"Error: Expected \22=\22, found \22%s\22.\0A\00"
@.str.5 = [11 x i8] c" %1023[^\0A]\00"
@.str.6 = [32 x i8] c"Error: Unknown data type: \22%s\22\0A\00"
define i32 @config_read() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [1024 x i8]
%4 = alloca [1024 x i8]
%5 = alloca [1024 x i8]
%6 = alloca i32
store i32* null, i32** %2
%7 = call i32 @config_open(i32** %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, i32* %1
br label %118
10: ; preds = %0
%11 = load i32*, i32** %2
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 0, i32* %1
br label %118
14: ; preds = %10
br label %15
15: ; preds = %114, %14
%16 = load i32*, i32** %2
%17 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%18 = call i64 @fscanf(i32* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = load i64, i64* @EOF
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %115
21: ; preds = %15
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%23 = call i32 @strlen(i8* %22)
store i32 %23, i32* %6
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 91
br i1 %27, label %28, label %44
28: ; preds = %21
%29 = load i32, i32* %6
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 93
br i1 %35, label %36, label %44
36: ; preds = %28
%37 = load i32, i32* %6
%38 = sub nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %39
store i8 0, i8* %40
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%42 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 1
%43 = call i32 @strcpy(i8* %41, i8* %42)
br label %114
44: ; preds = %28, %21
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%47 = call i32 @strcpy(i8* %45, i8* %46)
%48 = load i32*, i32** %2
%49 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%50 = call i64 @fscanf(i32* %48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %49)
%51 = load i64, i64* @EOF
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %56
53: ; preds = %44
%54 = load i32, i32* @stderr
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %118
56: ; preds = %44
%57 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %62)
store i32 -1, i32* %1
br label %118
64: ; preds = %56
%65 = load i32*, i32** %2
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%67 = call i64 @fscanf(i32* %65, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %66)
%68 = load i64, i64* @EOF
%69 = icmp eq i64 %67, %68
br i1 %69, label %70, label %73
70: ; preds = %64
%71 = load i32, i32* @stderr
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %118
73: ; preds = %64
%74 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%75 = call i32 @strlen(i8* %74)
store i32 %75, i32* %6
%76 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 34
br i1 %79, label %80, label %97
80: ; preds = %73
%81 = load i32, i32* %6
%82 = sub nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %83
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 34
br i1 %87, label %88, label %97
88: ; preds = %80
%89 = load i32, i32* %6
%90 = sub nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %91
store i8 0, i8* %92
%93 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%94 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%95 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 1
%96 = call i32 @config_string_set(i8* %93, i8* %94, i8* %95)
br label %113
97: ; preds = %80, %73
%98 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%99 = load i8, i8* %98
%100 = call i64 @isdigit(i8 signext %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %108
102: ; preds = %97
%103 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%104 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%105 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%106 = call i32 @strtoul(i8* %105, i32* null, i32 0)
%107 = call i32 @config_uint_set(i8* %103, i8* %104, i32 %106)
br label %112
108: ; preds = %97
%109 = load i32, i32* @stderr
%110 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %110)
store i32 -1, i32* %1
br label %118
112: ; preds = %102
br label %113
113: ; preds = %112, %88
br label %114
114: ; preds = %113, %36
br label %15
115: ; preds = %15
%116 = load i32*, i32** %2
%117 = call i32 @fclose(i32* %116)
store i32 0, i32* %1
br label %118
118: ; preds = %115, %108, %70, %60, %53, %13, %9
%119 = load i32, i32* %1
ret i32 %119
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [7 x i8] c"%1023s\00"
@EOF = global i64 0
@stderr = global i32 0
@.str.2 = [32 x i8] c"Error: Unexpected end of file.\0A\00"
@.str.3 = [2 x i8] c"=\00"
@.str.4 = [34 x i8] c"Error: Expected \22=\22, found \22%s\22.\0A\00"
@.str.5 = [11 x i8] c" %1023[^\0A]\00"
@.str.6 = [32 x i8] c"Error: Unknown data type: \22%s\22\0A\00"
define i32 @config_read() {
%1 = alloca i32*
%2 = alloca [1024 x i8]
%3 = alloca [1024 x i8]
%4 = alloca [1024 x i8]
%5 = bitcast i32** %1 to i8*
store i32* null, i32** %1
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%9 = call i32 @config_open(i32** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %9, -1
br i1 %10, label %84, label %11
11: ; preds = %0
%12 = load i32*, i32** %1
%13 = icmp eq i32* %12, null
br i1 %13, label %84, label %14
14: ; preds = %11
%15 = call i64 @fscanf(i32* %12, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%16 = load i64, i64* @EOF
%17 = icmp eq i64 %15, %16
br i1 %17, label %81, label %18
18: ; preds = %14
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 1
br label %20
20: ; preds = %18, %76
%21 = call i32 @strlen(i8* %8)
%22 = load i8, i8* %8
%23 = icmp eq i8 %22, 91
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = add nsw i32 %21, -1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, 93
br i1 %29, label %30, label %32
30: ; preds = %24
store i8 0, i8* %27
%31 = call i32 @strcpy(i8* %6, i8* %19)
br label %76
32: ; preds = %24, %20
%33 = call i32 @strcpy(i8* %7, i8* %8)
%34 = load i32*, i32** %1
%35 = call i64 @fscanf(i32* %34, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%36 = load i64, i64* @EOF
%37 = icmp eq i64 %35, %36
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %84
41: ; preds = %32
%42 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %8)
br label %84
47: ; preds = %41
%48 = load i32*, i32** %1
%49 = call i64 @fscanf(i32* %48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %8)
%50 = load i64, i64* @EOF
%51 = icmp eq i64 %49, %50
br i1 %51, label %52, label %55
52: ; preds = %47
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %84
55: ; preds = %47
%56 = call i32 @strlen(i8* %8)
%57 = load i8, i8* %8
%58 = icmp eq i8 %57, 34
br i1 %58, label %59, label %67
59: ; preds = %55
%60 = add nsw i32 %56, -1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = icmp eq i8 %63, 34
br i1 %64, label %65, label %67
65: ; preds = %59
store i8 0, i8* %62
%66 = call i32 @config_string_set(i8* %6, i8* %7, i8* %19)
br label %76
67: ; preds = %59, %55
%68 = call i64 @isdigit(i8 signext %57)
%69 = icmp eq i64 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %67
%71 = call i32 @strtoul(i8* nocapture %8, i32* null, i32 0)
%72 = call i32 @config_uint_set(i8* %6, i8* %7, i32 %71)
br label %76
73: ; preds = %67
%74 = load i32, i32* @stderr
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %8)
br label %84
76: ; preds = %65, %70, %30
%77 = load i32*, i32** %1
%78 = call i64 @fscanf(i32* %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%79 = load i64, i64* @EOF
%80 = icmp eq i64 %78, %79
br i1 %80, label %81, label %20
81: ; preds = %76, %14
%82 = load i32*, i32** %1
%83 = call i32 @fclose(i32* %82)
br label %84
84: ; preds = %11, %0, %81, %73, %52, %44, %38
%85 = phi i32 [ -1, %38 ], [ -1, %44 ], [ -1, %52 ], [ -1, %73 ], [ 0, %81 ], [ -1, %0 ], [ 0, %11 ]
ret i32 %85
}