#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 */
struct configuration {
  int dummy;
};
typedef int /*<<< orphan*/ fields;
typedef int /*<<< orphan*/ buffer;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ __log_err(int, char *, char *, char const *, int);
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ check_cachename(char *);
int /*<<< orphan*/ check_files(struct configuration *, char *, int);
int /*<<< orphan*/ enable_cache(struct configuration *, char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int get_number(char *, int, int);
int get_policy(char *);
int get_yesno(char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ set_keep_hot_count(struct configuration *, char *, int);
int /*<<< orphan*/ set_negative_confidence_threshold(struct configuration *,
                                                     char *, int);
int /*<<< orphan*/ set_negative_policy(struct configuration *, char *, int);
int /*<<< orphan*/ set_negative_time_to_live(struct configuration *, char *,
                                             int);
int /*<<< orphan*/ set_perform_actual_lookups(struct configuration *, char *,
                                              int);
int /*<<< orphan*/ set_positive_confidence_threshold(struct configuration *,
                                                     char *, int);
int /*<<< orphan*/ set_positive_policy(struct configuration *, char *, int);
int /*<<< orphan*/ set_positive_time_to_live(struct configuration *, char *,
                                             int);
int /*<<< orphan*/ set_suggested_size(struct configuration *, char *, int);
int /*<<< orphan*/ set_threads_num(struct configuration *, int);
int strbreak(char *, char **, int);
int /*<<< orphan*/ strcmp(char *, char *);
int parse_config_file(struct configuration *config, const char *fname,
                      char const **error_str, int *error_line) {
  FILE *fin;
  char buffer[255];
  char *fields[128];
  int field_count, line_num, value;
  int res;
  (void)0;
  assert(config != NULL);
  assert(fname != NULL);
  fin = fopen(fname, "r");
  if (fin == NULL) {
    (void)0;
    return (-1);
  }
  res = 0;
  line_num = 0;
  memset(buffer, 0, sizeof(buffer));
  while ((res == 0) && (fgets(buffer, sizeof(buffer) - 1, fin) != NULL)) {
    field_count = strbreak(buffer, fields, sizeof(fields));
    ++line_num;
    if (field_count == 0)
      continue;
    switch (fields[0][0]) {
    case '#':
    case '\0':
      continue;
    case 'e':
      if ((field_count == 3) && (strcmp(fields[0], "enable-cache") == 0) &&
          (check_cachename(fields[1]) == 0) &&
          ((value = get_yesno(fields[2])) != -1)) {
        enable_cache(config, fields[1], value);
        continue;
      }
      break;
    case 'd':
      if ((field_count == 2) && (strcmp(fields[0], "debug-level") == 0) &&
          ((value = get_number(fields[1], 0, 10)) != -1)) {
        continue;
      }
      break;
    case 'p':
      if ((field_count == 3) &&
          (strcmp(fields[0], "positive-time-to-live") == 0) &&
          (check_cachename(fields[1]) == 0) &&
          ((value = get_number(fields[2], 0, -1)) != -1)) {
        set_positive_time_to_live(config, fields[1], value);
        continue;
      } else if ((field_count == 3) &&
                 (strcmp(fields[0], "positive-confidence-threshold") == 0) &&
                 ((value = get_number(fields[2], 1, -1)) != -1)) {
        set_positive_confidence_threshold(config, fields[1], value);
        continue;
      } else if ((field_count == 3) &&
                 (strcmp(fields[0], "positive-policy") == 0) &&
                 (check_cachename(fields[1]) == 0) &&
                 ((value = get_policy(fields[2])) != -1)) {
        set_positive_policy(config, fields[1], value);
        continue;
      } else if ((field_count == 3) &&
                 (strcmp(fields[0], "perform-actual-lookups") == 0) &&
                 (check_cachename(fields[1]) == 0) &&
                 ((value = get_yesno(fields[2])) != -1)) {
        set_perform_actual_lookups(config, fields[1], value);
        continue;
      }
      break;
    case 'n':
      if ((field_count == 3) &&
          (strcmp(fields[0], "negative-time-to-live") == 0) &&
          (check_cachename(fields[1]) == 0) &&
          ((value = get_number(fields[2], 0, -1)) != -1)) {
        set_negative_time_to_live(config, fields[1], value);
        continue;
      } else if ((field_count == 3) &&
                 (strcmp(fields[0], "negative-confidence-threshold") == 0) &&
                 ((value = get_number(fields[2], 1, -1)) != -1)) {
        set_negative_confidence_threshold(config, fields[1], value);
        continue;
      } else if ((field_count == 3) &&
                 (strcmp(fields[0], "negative-policy") == 0) &&
                 (check_cachename(fields[1]) == 0) &&
                 ((value = get_policy(fields[2])) != -1)) {
        set_negative_policy(config, fields[1], value);
        continue;
      }
      break;
    case 's':
      if ((field_count == 3) && (strcmp(fields[0], "suggested-size") == 0) &&
          (check_cachename(fields[1]) == 0) &&
          ((value = get_number(fields[2], 1, -1)) != -1)) {
        set_suggested_size(config, fields[1], value);
        continue;
      }
      break;
    case 't':
      if ((field_count == 2) && (strcmp(fields[0], "threads") == 0) &&
          ((value = get_number(fields[1], 1, -1)) != -1)) {
        set_threads_num(config, value);
        continue;
      }
      break;
    case 'k':
      if ((field_count == 3) && (strcmp(fields[0], "keep-hot-count") == 0) &&
          (check_cachename(fields[1]) == 0) &&
          ((value = get_number(fields[2], 0, -1)) != -1)) {
        set_keep_hot_count(config, fields[1], value);
        continue;
      }
      break;
    case 'c':
      if ((field_count == 3) && (strcmp(fields[0], "check-files") == 0) &&
          (check_cachename(fields[1]) == 0) &&
          ((value = get_yesno(fields[2])) != -1)) {
        check_files(config, fields[1], value);
        continue;
      }
      break;
    default:
      break;
    }
    __log_err(2, "config file parser",
              "error in file "
              "%s on line %d",
              fname, line_num);
    *error_str = "syntax error";
    *error_line = line_num;
    res = -1;
  }
  fclose(fin);
  (void)0;
  return (res);
}


x86 assembly (clang, -O0):
<parse_config_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x550,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1120 <assert@plt>
cmpq   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1120 <assert@plt>
mov    -0x18(%rbp),%rdi
lea    0xe31(%rip),%rsi
call   1170 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12ea <parse_config_file+0x6a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1acb <parse_config_file+0x84b>
movl   $0x0,-0x540(%rbp)
movl   $0x0,-0x538(%rbp)
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   10c0 <memset@plt>
xor    %eax,%eax
cmpl   $0x0,-0x540(%rbp)
mov    %al,-0x541(%rbp)
jne    1348 <parse_config_file+0xc8>
lea    -0x130(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    $0xfe,%esi
call   10f0 <fgets@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x541(%rbp)
mov    -0x541(%rbp),%al
test   $0x1,%al
jne    135b <parse_config_file+0xdb>
jmp    1ab9 <parse_config_file+0x839>
lea    -0x130(%rbp),%rdi
lea    -0x530(%rbp),%rsi
mov    $0x400,%edx
call   1040 <strbreak@plt>
mov    %eax,-0x534(%rbp)
mov    -0x538(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x538(%rbp)
cmpl   $0x0,-0x534(%rbp)
jne    139a <parse_config_file+0x11a>
jmp    1311 <parse_config_file+0x91>
mov    -0x530(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x548(%rbp)
test   %eax,%eax
je     146b <parse_config_file+0x1eb>
jmp    13b7 <parse_config_file+0x137>
mov    -0x548(%rbp),%eax
sub    $0x23,%eax
je     146b <parse_config_file+0x1eb>
jmp    13cb <parse_config_file+0x14b>
mov    -0x548(%rbp),%eax
sub    $0x63,%eax
je     19ef <parse_config_file+0x76f>
jmp    13df <parse_config_file+0x15f>
mov    -0x548(%rbp),%eax
sub    $0x64,%eax
je     14e9 <parse_config_file+0x269>
jmp    13f3 <parse_config_file+0x173>
mov    -0x548(%rbp),%eax
sub    $0x65,%eax
je     1470 <parse_config_file+0x1f0>
jmp    1407 <parse_config_file+0x187>
mov    -0x548(%rbp),%eax
sub    $0x6b,%eax
je     196f <parse_config_file+0x6ef>
jmp    141b <parse_config_file+0x19b>
mov    -0x548(%rbp),%eax
sub    $0x6e,%eax
je     171e <parse_config_file+0x49e>
jmp    142f <parse_config_file+0x1af>
mov    -0x548(%rbp),%eax
sub    $0x70,%eax
je     153e <parse_config_file+0x2be>
jmp    1443 <parse_config_file+0x1c3>
mov    -0x548(%rbp),%eax
sub    $0x73,%eax
je     1885 <parse_config_file+0x605>
jmp    1457 <parse_config_file+0x1d7>
mov    -0x548(%rbp),%eax
sub    $0x74,%eax
je     1908 <parse_config_file+0x688>
jmp    1a68 <parse_config_file+0x7e8>
jmp    1311 <parse_config_file+0x91>
cmpl   $0x3,-0x534(%rbp)
jne    14e4 <parse_config_file+0x264>
mov    -0x530(%rbp),%rdi
lea    0xb75(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    14e4 <parse_config_file+0x264>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    14e4 <parse_config_file+0x264>
mov    -0x520(%rbp),%rdi
call   10e0 <get_yesno@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     14e4 <parse_config_file+0x264>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1050 <enable_cache@plt>
jmp    1311 <parse_config_file+0x91>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x2,-0x534(%rbp)
jne    1539 <parse_config_file+0x2b9>
mov    -0x530(%rbp),%rdi
lea    0xb09(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1539 <parse_config_file+0x2b9>
mov    -0x528(%rbp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1539 <parse_config_file+0x2b9>
jmp    1311 <parse_config_file+0x91>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x3,-0x534(%rbp)
jne    15b9 <parse_config_file+0x339>
mov    -0x530(%rbp),%rdi
lea    0xac0(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    15b9 <parse_config_file+0x339>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    15b9 <parse_config_file+0x339>
mov    -0x520(%rbp),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     15b9 <parse_config_file+0x339>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   10a0 <set_positive_time_to_live@plt>
jmp    1311 <parse_config_file+0x91>
cmpl   $0x3,-0x534(%rbp)
jne    1622 <parse_config_file+0x3a2>
mov    -0x530(%rbp),%rdi
lea    0xa5b(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1622 <parse_config_file+0x3a2>
mov    -0x520(%rbp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1622 <parse_config_file+0x3a2>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1130 <set_positive_confidence_threshold@plt>
jmp    1311 <parse_config_file+0x91>
cmpl   $0x3,-0x534(%rbp)
jne    1696 <parse_config_file+0x416>
mov    -0x530(%rbp),%rdi
lea    0xa10(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1696 <parse_config_file+0x416>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    1696 <parse_config_file+0x416>
mov    -0x520(%rbp),%rdi
call   10b0 <get_policy@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1696 <parse_config_file+0x416>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1190 <set_positive_policy@plt>
jmp    1311 <parse_config_file+0x91>
cmpl   $0x3,-0x534(%rbp)
jne    170a <parse_config_file+0x48a>
mov    -0x530(%rbp),%rdi
lea    0x9ac(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    170a <parse_config_file+0x48a>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    170a <parse_config_file+0x48a>
mov    -0x520(%rbp),%rdi
call   10e0 <get_yesno@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     170a <parse_config_file+0x48a>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1180 <set_perform_actual_lookups@plt>
jmp    1311 <parse_config_file+0x91>
jmp    170f <parse_config_file+0x48f>
jmp    1714 <parse_config_file+0x494>
jmp    1719 <parse_config_file+0x499>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x3,-0x534(%rbp)
jne    1799 <parse_config_file+0x519>
mov    -0x530(%rbp),%rdi
lea    0x93b(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1799 <parse_config_file+0x519>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    1799 <parse_config_file+0x519>
mov    -0x520(%rbp),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1799 <parse_config_file+0x519>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1090 <set_negative_time_to_live@plt>
jmp    1311 <parse_config_file+0x91>
cmpl   $0x3,-0x534(%rbp)
jne    1802 <parse_config_file+0x582>
mov    -0x530(%rbp),%rdi
lea    0x8d6(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1802 <parse_config_file+0x582>
mov    -0x520(%rbp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1802 <parse_config_file+0x582>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1140 <set_negative_confidence_threshold@plt>
jmp    1311 <parse_config_file+0x91>
cmpl   $0x3,-0x534(%rbp)
jne    1876 <parse_config_file+0x5f6>
mov    -0x530(%rbp),%rdi
lea    0x88b(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1876 <parse_config_file+0x5f6>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    1876 <parse_config_file+0x5f6>
mov    -0x520(%rbp),%rdi
call   10b0 <get_policy@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1876 <parse_config_file+0x5f6>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   10d0 <set_negative_policy@plt>
jmp    1311 <parse_config_file+0x91>
jmp    187b <parse_config_file+0x5fb>
jmp    1880 <parse_config_file+0x600>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x3,-0x534(%rbp)
jne    1903 <parse_config_file+0x683>
mov    -0x530(%rbp),%rdi
lea    0x818(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1903 <parse_config_file+0x683>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    1903 <parse_config_file+0x683>
mov    -0x520(%rbp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1903 <parse_config_file+0x683>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1030 <set_suggested_size@plt>
jmp    1311 <parse_config_file+0x91>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x2,-0x534(%rbp)
jne    196a <parse_config_file+0x6ea>
mov    -0x530(%rbp),%rdi
lea    0x7a4(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    196a <parse_config_file+0x6ea>
mov    -0x528(%rbp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     196a <parse_config_file+0x6ea>
mov    -0x10(%rbp),%rdi
mov    -0x53c(%rbp),%esi
call   1080 <set_threads_num@plt>
jmp    1311 <parse_config_file+0x91>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x3,-0x534(%rbp)
jne    19ea <parse_config_file+0x76a>
mov    -0x530(%rbp),%rdi
lea    0x745(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    19ea <parse_config_file+0x76a>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    19ea <parse_config_file+0x76a>
mov    -0x520(%rbp),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     19ea <parse_config_file+0x76a>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   11a0 <set_keep_hot_count@plt>
jmp    1311 <parse_config_file+0x91>
jmp    1a6d <parse_config_file+0x7ed>
cmpl   $0x3,-0x534(%rbp)
jne    1a63 <parse_config_file+0x7e3>
mov    -0x530(%rbp),%rdi
lea    0x6d4(%rip),%rsi
call   1110 <strcmp@plt>
cmp    $0x0,%eax
jne    1a63 <parse_config_file+0x7e3>
mov    -0x528(%rbp),%rdi
call   1060 <check_cachename@plt>
cmp    $0x0,%eax
jne    1a63 <parse_config_file+0x7e3>
mov    -0x520(%rbp),%rdi
call   10e0 <get_yesno@plt>
mov    %eax,-0x53c(%rbp)
cmp    $0xffffffff,%eax
je     1a63 <parse_config_file+0x7e3>
mov    -0x10(%rbp),%rdi
mov    -0x528(%rbp),%rsi
mov    -0x53c(%rbp),%edx
call   1160 <check_files@plt>
jmp    1311 <parse_config_file+0x91>
jmp    1a6d <parse_config_file+0x7ed>
jmp    1a6d <parse_config_file+0x7ed>
mov    -0x18(%rbp),%rcx
mov    -0x538(%rbp),%r8d
mov    $0x2,%edi
lea    0x666(%rip),%rsi
lea    0x672(%rip),%rdx
call   1150 <__log_err@plt>
mov    -0x20(%rbp),%rax
lea    0x67e(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x538(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
movl   $0xffffffff,-0x540(%rbp)
ff ff ff
jmp    1311 <parse_config_file+0x91>
mov    -0x30(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x540(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x550,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_config_file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x528,%rsp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r13
xor    %edi,%edi
test   %r13,%r13
setne  %dil
call   1120 <assert@plt>
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1120 <assert@plt>
lea    0xf83(%rip),%rsi
mov    %rbx,%rdi
call   1170 <fopen@plt>
test   %rax,%rax
je     1320 <parse_config_file+0xa0>
mov    %rax,%r12
mov    %rbx,0x18(%rsp)
lea    0x420(%rsp),%rbx
xor    %ebp,%ebp
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   10c0 <memset@plt>
mov    %rbx,%rdi
mov    $0xfe,%esi
mov    %r12,%rdx
call   10f0 <fgets@plt>
test   %rax,%rax
je     183a <parse_config_file+0x5ba>
mov    %r14,0x10(%rsp)
mov    $0x1,%ebp
lea    0x420(%rsp),%r14
lea    0x20(%rsp),%rbx
jmp    135c <parse_config_file+0xdc>
mov    $0xffffffff,%ebp
jmp    1842 <parse_config_file+0x5c2>
test   %ecx,%ecx
jne    17ff <parse_config_file+0x57f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    $0xfe,%esi
mov    %r12,%rdx
call   10f0 <fgets@plt>
add    $0x1,%ebp
test   %rax,%rax
je     1838 <parse_config_file+0x5b8>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x400,%edx
call   1040 <strbreak@plt>
test   %eax,%eax
je     1340 <parse_config_file+0xc0>
mov    0x20(%rsp),%rdi
movsbl (%rdi),%ecx
lea    -0x23(%rcx),%edx
cmp    $0x51,%edx
ja     132a <parse_config_file+0xaa>
lea    0xc79(%rip),%rsi
movslq (%rsi,%rdx,4),%rcx
add    %rsi,%rcx
jmp    *%rcx
cmp    $0x3,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xe86(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x30(%rsp),%rdi
call   10e0 <get_yesno@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1160 <check_files@plt>
jmp    1340 <parse_config_file+0xc0>
cmp    $0x2,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xd5f(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
jne    1340 <parse_config_file+0xc0>
jmp    17ff <parse_config_file+0x57f>
cmp    $0x3,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xd16(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x30(%rsp),%rdi
call   10e0 <get_yesno@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1050 <enable_cache@plt>
jmp    1340 <parse_config_file+0xc0>
cmp    $0x3,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xd8f(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   11a0 <set_keep_hot_count@plt>
jmp    1340 <parse_config_file+0xc0>
cmp    $0x3,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xcd7(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    1500 <parse_config_file+0x280>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
je     1760 <parse_config_file+0x4e0>
mov    %r15,0x8(%rsp)
mov    %rbx,%r15
mov    0x20(%rsp),%rbx
mov    %rbx,%rdi
lea    0xcbb(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
je     16ee <parse_config_file+0x46e>
mov    %rbx,%rdi
lea    0xcc2(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
mov    %r15,%rbx
mov    0x8(%rsp),%r15
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x30(%rsp),%rdi
call   10b0 <get_policy@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   10d0 <set_negative_policy@plt>
jmp    1340 <parse_config_file+0xc0>
cmp    $0x3,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xbd5(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    15a7 <parse_config_file+0x327>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
je     178e <parse_config_file+0x50e>
mov    %r15,%rbx
mov    0x20(%rsp),%r15
mov    %r15,%rdi
lea    0xbbe(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
je     1727 <parse_config_file+0x4a7>
mov    %r15,%rdi
lea    0xbc5(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    15eb <parse_config_file+0x36b>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
je     17d0 <parse_config_file+0x550>
mov    0x20(%rsp),%rdi
lea    0xbae(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
mov    %rbx,%r15
lea    0x20(%rsp),%rbx
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x30(%rsp),%rdi
call   10e0 <get_yesno@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1180 <set_perform_actual_lookups@plt>
jmp    1340 <parse_config_file+0xc0>
cmp    $0x3,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xbab(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
call   1060 <check_cachename@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x30(%rsp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1030 <set_suggested_size@plt>
jmp    1340 <parse_config_file+0xc0>
cmp    $0x2,%eax
jne    17ff <parse_config_file+0x57f>
lea    0xb5a(%rip),%rsi
call   1110 <strcmp@plt>
test   %eax,%eax
jne    17ff <parse_config_file+0x57f>
mov    0x28(%rsp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     17ff <parse_config_file+0x57f>
mov    %r13,%rdi
mov    %eax,%esi
call   1080 <set_threads_num@plt>
jmp    1340 <parse_config_file+0xc0>
mov    0x30(%rsp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     17bc <parse_config_file+0x53c>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1140 <set_negative_confidence_threshold@plt>
mov    %r15,%rbx
mov    0x8(%rsp),%r15
jmp    1340 <parse_config_file+0xc0>
mov    0x30(%rsp),%rdi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     17c6 <parse_config_file+0x546>
mov    %rbx,%r15
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1130 <set_positive_confidence_threshold@plt>
lea    0x20(%rsp),%rbx
jmp    1340 <parse_config_file+0xc0>
mov    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     1500 <parse_config_file+0x280>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1090 <set_negative_time_to_live@plt>
jmp    1340 <parse_config_file+0xc0>
mov    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
call   1100 <get_number@plt>
cmp    $0xffffffff,%eax
je     15a7 <parse_config_file+0x327>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   10a0 <set_positive_time_to_live@plt>
jmp    1340 <parse_config_file+0xc0>
mov    0x20(%rsp),%rbx
jmp    1524 <parse_config_file+0x2a4>
mov    0x20(%rsp),%r15
jmp    15c6 <parse_config_file+0x346>
mov    0x30(%rsp),%rdi
call   10b0 <get_policy@plt>
cmp    $0xffffffff,%eax
je     15eb <parse_config_file+0x36b>
mov    0x28(%rsp),%rsi
mov    %r13,%rdi
mov    %eax,%edx
call   1190 <set_positive_policy@plt>
mov    %rbx,%r15
lea    0x20(%rsp),%rbx
jmp    1340 <parse_config_file+0xc0>
lea    0xa2c(%rip),%rsi
lea    0xa38(%rip),%rdx
mov    $0x2,%edi
mov    0x18(%rsp),%rcx
mov    %ebp,%r8d
call   1150 <__log_err@plt>
lea    0xa3b(%rip),%rax
mov    0x10(%rsp),%rcx
mov    %rax,(%rcx)
mov    %ebp,(%r15)
mov    $0xffffffff,%ebp
jmp    183a <parse_config_file+0x5ba>
xor    %ebp,%ebp
mov    %r12,%rdi
call   1070 <fclose@plt>
mov    %ebp,%eax
add    $0x528,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.configuration = type { i32 }
@.str = [2 x i8] c"r\00"
@.str.1 = [13 x i8] c"enable-cache\00"
@.str.2 = [12 x i8] c"debug-level\00"
@.str.3 = [22 x i8] c"positive-time-to-live\00"
@.str.4 = [30 x i8] c"positive-confidence-threshold\00"
@.str.5 = [16 x i8] c"positive-policy\00"
@.str.6 = [23 x i8] c"perform-actual-lookups\00"
@.str.7 = [22 x i8] c"negative-time-to-live\00"
@.str.8 = [30 x i8] c"negative-confidence-threshold\00"
@.str.9 = [16 x i8] c"negative-policy\00"
@.str.10 = [15 x i8] c"suggested-size\00"
@.str.11 = [8 x i8] c"threads\00"
@.str.12 = [15 x i8] c"keep-hot-count\00"
@.str.13 = [12 x i8] c"check-files\00"
@.str.14 = [19 x i8] c"config file parser\00"
@.str.15 = [28 x i8] c"error in file %s on line %d\00"
@.str.16 = [13 x i8] c"syntax error\00"
define i32 @parse_config_file(%struct.configuration* %0, i8* %1, i8** %2, i32* %3) {
%5 = alloca i32
%6 = alloca %struct.configuration*
%7 = alloca i8*
%8 = alloca i8**
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca [255 x i8]
%12 = alloca [128 x i8*]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store %struct.configuration* %0, %struct.configuration** %6
store i8* %1, i8** %7
store i8** %2, i8*** %8
store i32* %3, i32** %9
%17 = load %struct.configuration*, %struct.configuration** %6
%18 = icmp ne %struct.configuration* %17, null
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = load i8*, i8** %7
%22 = icmp ne i8* %21, null
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = load i8*, i8** %7
%26 = call i32* @fopen(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %26, i32** %10
%27 = load i32*, i32** %10
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %30
29: ; preds = %4
store i32 -1, i32* %5
br label %369
30: ; preds = %4
store i32 0, i32* %16
store i32 0, i32* %14
%31 = getelementptr inbounds [255 x i8], [255 x i8]* %11, i64 0, i64 0
%32 = call i32 @memset(i8* %31, i32 0, i32 255)
br label %33
33: ; preds = %358, %350, %325, %302, %282, %255, %231, %212, %184, %160, %136, %117, %97, %77, %58, %51, %30
%34 = load i32, i32* %16
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = getelementptr inbounds [255 x i8], [255 x i8]* %11, i64 0, i64 0
%38 = load i32*, i32** %10
%39 = call i32* @fgets(i8* %37, i32 254, i32* %38)
%40 = icmp ne i32* %39, null
br label %41
41: ; preds = %36, %33
%42 = phi i1 [ false, %33 ], [ %40, %36 ]
br i1 %42, label %43, label %365
43: ; preds = %41
%44 = getelementptr inbounds [255 x i8], [255 x i8]* %11, i64 0, i64 0
%45 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%46 = call i32 @strbreak(i8* %44, i8** %45, i32 1024)
store i32 %46, i32* %13
%47 = load i32, i32* %14
%48 = add nsw i32 %47, 1
store i32 %48, i32* %14
%49 = load i32, i32* %13
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %43
br label %33
52: ; preds = %43
%53 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%54 = load i8*, i8** %53
%55 = getelementptr inbounds i8, i8* %54, i64 0
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
switch i32 %57, label %357 [
i32 35, label %58
i32 0, label %58
i32 101, label %59
i32 100, label %84
i32 112, label %99
i32 110, label %194
i32 115, label %264
i32 116, label %289
i32 107, label %307
i32 99, label %332
]
58: ; preds = %52, %52
br label %33
59: ; preds = %52
%60 = load i32, i32* %13
%61 = icmp eq i32 %60, 3
br i1 %61, label %62, label %83
62: ; preds = %59
%63 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%64 = load i8*, i8** %63
%65 = call i32 @strcmp(i8* %64, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %83
67: ; preds = %62
%68 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%69 = load i8*, i8** %68
%70 = call i32 @check_cachename(i8* %69)
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %83
72: ; preds = %67
%73 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%74 = load i8*, i8** %73
%75 = call i32 @get_yesno(i8* %74)
store i32 %75, i32* %15
%76 = icmp ne i32 %75, -1
br i1 %76, label %77, label %83
77: ; preds = %72
%78 = load %struct.configuration*, %struct.configuration** %6
%79 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%80 = load i8*, i8** %79
%81 = load i32, i32* %15
%82 = call i32 @enable_cache(%struct.configuration* %78, i8* %80, i32 %81)
br label %33
83: ; preds = %72, %67, %62, %59
br label %358
84: ; preds = %52
%85 = load i32, i32* %13
%86 = icmp eq i32 %85, 2
br i1 %86, label %87, label %98
87: ; preds = %84
%88 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%89 = load i8*, i8** %88
%90 = call i32 @strcmp(i8* %89, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %98
92: ; preds = %87
%93 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%94 = load i8*, i8** %93
%95 = call i32 @get_number(i8* %94, i32 0, i32 10)
store i32 %95, i32* %15
%96 = icmp ne i32 %95, -1
br i1 %96, label %97, label %98
97: ; preds = %92
br label %33
98: ; preds = %92, %87, %84
br label %358
99: ; preds = %52
%100 = load i32, i32* %13
%101 = icmp eq i32 %100, 3
br i1 %101, label %102, label %123
102: ; preds = %99
%103 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%104 = load i8*, i8** %103
%105 = call i32 @strcmp(i8* %104, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %123
107: ; preds = %102
%108 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%109 = load i8*, i8** %108
%110 = call i32 @check_cachename(i8* %109)
%111 = icmp eq i32 %110, 0
br i1 %111, label %112, label %123
112: ; preds = %107
%113 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%114 = load i8*, i8** %113
%115 = call i32 @get_number(i8* %114, i32 0, i32 -1)
store i32 %115, i32* %15
%116 = icmp ne i32 %115, -1
br i1 %116, label %117, label %123
117: ; preds = %112
%118 = load %struct.configuration*, %struct.configuration** %6
%119 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%120 = load i8*, i8** %119
%121 = load i32, i32* %15
%122 = call i32 @set_positive_time_to_live(%struct.configuration* %118, i8* %120, i32 %121)
br label %33
123: ; preds = %112, %107, %102, %99
%124 = load i32, i32* %13
%125 = icmp eq i32 %124, 3
br i1 %125, label %126, label %142
126: ; preds = %123
%127 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%128 = load i8*, i8** %127
%129 = call i32 @strcmp(i8* %128, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%130 = icmp eq i32 %129, 0
br i1 %130, label %131, label %142
131: ; preds = %126
%132 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%133 = load i8*, i8** %132
%134 = call i32 @get_number(i8* %133, i32 1, i32 -1)
store i32 %134, i32* %15
%135 = icmp ne i32 %134, -1
br i1 %135, label %136, label %142
136: ; preds = %131
%137 = load %struct.configuration*, %struct.configuration** %6
%138 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%139 = load i8*, i8** %138
%140 = load i32, i32* %15
%141 = call i32 @set_positive_confidence_threshold(%struct.configuration* %137, i8* %139, i32 %140)
br label %33
142: ; preds = %131, %126, %123
%143 = load i32, i32* %13
%144 = icmp eq i32 %143, 3
br i1 %144, label %145, label %166
145: ; preds = %142
%146 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%147 = load i8*, i8** %146
%148 = call i32 @strcmp(i8* %147, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%149 = icmp eq i32 %148, 0
br i1 %149, label %150, label %166
150: ; preds = %145
%151 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%152 = load i8*, i8** %151
%153 = call i32 @check_cachename(i8* %152)
%154 = icmp eq i32 %153, 0
br i1 %154, label %155, label %166
155: ; preds = %150
%156 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%157 = load i8*, i8** %156
%158 = call i32 @get_policy(i8* %157)
store i32 %158, i32* %15
%159 = icmp ne i32 %158, -1
br i1 %159, label %160, label %166
160: ; preds = %155
%161 = load %struct.configuration*, %struct.configuration** %6
%162 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%163 = load i8*, i8** %162
%164 = load i32, i32* %15
%165 = call i32 @set_positive_policy(%struct.configuration* %161, i8* %163, i32 %164)
br label %33
166: ; preds = %155, %150, %145, %142
%167 = load i32, i32* %13
%168 = icmp eq i32 %167, 3
br i1 %168, label %169, label %190
169: ; preds = %166
%170 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%171 = load i8*, i8** %170
%172 = call i32 @strcmp(i8* %171, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%173 = icmp eq i32 %172, 0
br i1 %173, label %174, label %190
174: ; preds = %169
%175 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%176 = load i8*, i8** %175
%177 = call i32 @check_cachename(i8* %176)
%178 = icmp eq i32 %177, 0
br i1 %178, label %179, label %190
179: ; preds = %174
%180 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%181 = load i8*, i8** %180
%182 = call i32 @get_yesno(i8* %181)
store i32 %182, i32* %15
%183 = icmp ne i32 %182, -1
br i1 %183, label %184, label %190
184: ; preds = %179
%185 = load %struct.configuration*, %struct.configuration** %6
%186 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%187 = load i8*, i8** %186
%188 = load i32, i32* %15
%189 = call i32 @set_perform_actual_lookups(%struct.configuration* %185, i8* %187, i32 %188)
br label %33
190: ; preds = %179, %174, %169, %166
br label %191
191: ; preds = %190
br label %192
192: ; preds = %191
br label %193
193: ; preds = %192
br label %358
194: ; preds = %52
%195 = load i32, i32* %13
%196 = icmp eq i32 %195, 3
br i1 %196, label %197, label %218
197: ; preds = %194
%198 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%199 = load i8*, i8** %198
%200 = call i32 @strcmp(i8* %199, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%201 = icmp eq i32 %200, 0
br i1 %201, label %202, label %218
202: ; preds = %197
%203 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%204 = load i8*, i8** %203
%205 = call i32 @check_cachename(i8* %204)
%206 = icmp eq i32 %205, 0
br i1 %206, label %207, label %218
207: ; preds = %202
%208 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%209 = load i8*, i8** %208
%210 = call i32 @get_number(i8* %209, i32 0, i32 -1)
store i32 %210, i32* %15
%211 = icmp ne i32 %210, -1
br i1 %211, label %212, label %218
212: ; preds = %207
%213 = load %struct.configuration*, %struct.configuration** %6
%214 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%215 = load i8*, i8** %214
%216 = load i32, i32* %15
%217 = call i32 @set_negative_time_to_live(%struct.configuration* %213, i8* %215, i32 %216)
br label %33
218: ; preds = %207, %202, %197, %194
%219 = load i32, i32* %13
%220 = icmp eq i32 %219, 3
br i1 %220, label %221, label %237
221: ; preds = %218
%222 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%223 = load i8*, i8** %222
%224 = call i32 @strcmp(i8* %223, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0))
%225 = icmp eq i32 %224, 0
br i1 %225, label %226, label %237
226: ; preds = %221
%227 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%228 = load i8*, i8** %227
%229 = call i32 @get_number(i8* %228, i32 1, i32 -1)
store i32 %229, i32* %15
%230 = icmp ne i32 %229, -1
br i1 %230, label %231, label %237
231: ; preds = %226
%232 = load %struct.configuration*, %struct.configuration** %6
%233 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%234 = load i8*, i8** %233
%235 = load i32, i32* %15
%236 = call i32 @set_negative_confidence_threshold(%struct.configuration* %232, i8* %234, i32 %235)
br label %33
237: ; preds = %226, %221, %218
%238 = load i32, i32* %13
%239 = icmp eq i32 %238, 3
br i1 %239, label %240, label %261
240: ; preds = %237
%241 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%242 = load i8*, i8** %241
%243 = call i32 @strcmp(i8* %242, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%244 = icmp eq i32 %243, 0
br i1 %244, label %245, label %261
245: ; preds = %240
%246 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%247 = load i8*, i8** %246
%248 = call i32 @check_cachename(i8* %247)
%249 = icmp eq i32 %248, 0
br i1 %249, label %250, label %261
250: ; preds = %245
%251 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%252 = load i8*, i8** %251
%253 = call i32 @get_policy(i8* %252)
store i32 %253, i32* %15
%254 = icmp ne i32 %253, -1
br i1 %254, label %255, label %261
255: ; preds = %250
%256 = load %struct.configuration*, %struct.configuration** %6
%257 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%258 = load i8*, i8** %257
%259 = load i32, i32* %15
%260 = call i32 @set_negative_policy(%struct.configuration* %256, i8* %258, i32 %259)
br label %33
261: ; preds = %250, %245, %240, %237
br label %262
262: ; preds = %261
br label %263
263: ; preds = %262
br label %358
264: ; preds = %52
%265 = load i32, i32* %13
%266 = icmp eq i32 %265, 3
br i1 %266, label %267, label %288
267: ; preds = %264
%268 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%269 = load i8*, i8** %268
%270 = call i32 @strcmp(i8* %269, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%271 = icmp eq i32 %270, 0
br i1 %271, label %272, label %288
272: ; preds = %267
%273 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%274 = load i8*, i8** %273
%275 = call i32 @check_cachename(i8* %274)
%276 = icmp eq i32 %275, 0
br i1 %276, label %277, label %288
277: ; preds = %272
%278 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%279 = load i8*, i8** %278
%280 = call i32 @get_number(i8* %279, i32 1, i32 -1)
store i32 %280, i32* %15
%281 = icmp ne i32 %280, -1
br i1 %281, label %282, label %288
282: ; preds = %277
%283 = load %struct.configuration*, %struct.configuration** %6
%284 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%285 = load i8*, i8** %284
%286 = load i32, i32* %15
%287 = call i32 @set_suggested_size(%struct.configuration* %283, i8* %285, i32 %286)
br label %33
288: ; preds = %277, %272, %267, %264
br label %358
289: ; preds = %52
%290 = load i32, i32* %13
%291 = icmp eq i32 %290, 2
br i1 %291, label %292, label %306
292: ; preds = %289
%293 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%294 = load i8*, i8** %293
%295 = call i32 @strcmp(i8* %294, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%296 = icmp eq i32 %295, 0
br i1 %296, label %297, label %306
297: ; preds = %292
%298 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%299 = load i8*, i8** %298
%300 = call i32 @get_number(i8* %299, i32 1, i32 -1)
store i32 %300, i32* %15
%301 = icmp ne i32 %300, -1
br i1 %301, label %302, label %306
302: ; preds = %297
%303 = load %struct.configuration*, %struct.configuration** %6
%304 = load i32, i32* %15
%305 = call i32 @set_threads_num(%struct.configuration* %303, i32 %304)
br label %33
306: ; preds = %297, %292, %289
br label %358
307: ; preds = %52
%308 = load i32, i32* %13
%309 = icmp eq i32 %308, 3
br i1 %309, label %310, label %331
310: ; preds = %307
%311 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%312 = load i8*, i8** %311
%313 = call i32 @strcmp(i8* %312, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%314 = icmp eq i32 %313, 0
br i1 %314, label %315, label %331
315: ; preds = %310
%316 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%317 = load i8*, i8** %316
%318 = call i32 @check_cachename(i8* %317)
%319 = icmp eq i32 %318, 0
br i1 %319, label %320, label %331
320: ; preds = %315
%321 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%322 = load i8*, i8** %321
%323 = call i32 @get_number(i8* %322, i32 0, i32 -1)
store i32 %323, i32* %15
%324 = icmp ne i32 %323, -1
br i1 %324, label %325, label %331
325: ; preds = %320
%326 = load %struct.configuration*, %struct.configuration** %6
%327 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%328 = load i8*, i8** %327
%329 = load i32, i32* %15
%330 = call i32 @set_keep_hot_count(%struct.configuration* %326, i8* %328, i32 %329)
br label %33
331: ; preds = %320, %315, %310, %307
br label %358
332: ; preds = %52
%333 = load i32, i32* %13
%334 = icmp eq i32 %333, 3
br i1 %334, label %335, label %356
335: ; preds = %332
%336 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 0
%337 = load i8*, i8** %336
%338 = call i32 @strcmp(i8* %337, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%339 = icmp eq i32 %338, 0
br i1 %339, label %340, label %356
340: ; preds = %335
%341 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%342 = load i8*, i8** %341
%343 = call i32 @check_cachename(i8* %342)
%344 = icmp eq i32 %343, 0
br i1 %344, label %345, label %356
345: ; preds = %340
%346 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 2
%347 = load i8*, i8** %346
%348 = call i32 @get_yesno(i8* %347)
store i32 %348, i32* %15
%349 = icmp ne i32 %348, -1
br i1 %349, label %350, label %356
350: ; preds = %345
%351 = load %struct.configuration*, %struct.configuration** %6
%352 = getelementptr inbounds [128 x i8*], [128 x i8*]* %12, i64 0, i64 1
%353 = load i8*, i8** %352
%354 = load i32, i32* %15
%355 = call i32 @check_files(%struct.configuration* %351, i8* %353, i32 %354)
br label %33
356: ; preds = %345, %340, %335, %332
br label %358
357: ; preds = %52
br label %358
358: ; preds = %357, %356, %331, %306, %288, %263, %193, %98, %83
%359 = load i8*, i8** %7
%360 = load i32, i32* %14
%361 = call i32 @__log_err(i32 2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i8* %359, i32 %360)
%362 = load i8**, i8*** %8
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8** %362
%363 = load i32, i32* %14
%364 = load i32*, i32** %9
store i32 %363, i32* %364
store i32 -1, i32* %16
br label %33
365: ; preds = %41
%366 = load i32*, i32** %10
%367 = call i32 @fclose(i32* %366)
%368 = load i32, i32* %16
store i32 %368, i32* %5
br label %369
369: ; preds = %365, %29
%370 = load i32, i32* %5
ret i32 %370
}

LLVM IR (-O2):
%struct.configuration = type { i32 }
@.str = [2 x i8] c"r\00"
@.str.1 = [13 x i8] c"enable-cache\00"
@.str.2 = [12 x i8] c"debug-level\00"
@.str.3 = [22 x i8] c"positive-time-to-live\00"
@.str.4 = [30 x i8] c"positive-confidence-threshold\00"
@.str.5 = [16 x i8] c"positive-policy\00"
@.str.6 = [23 x i8] c"perform-actual-lookups\00"
@.str.7 = [22 x i8] c"negative-time-to-live\00"
@.str.8 = [30 x i8] c"negative-confidence-threshold\00"
@.str.9 = [16 x i8] c"negative-policy\00"
@.str.10 = [15 x i8] c"suggested-size\00"
@.str.11 = [8 x i8] c"threads\00"
@.str.12 = [15 x i8] c"keep-hot-count\00"
@.str.13 = [12 x i8] c"check-files\00"
@.str.14 = [19 x i8] c"config file parser\00"
@.str.15 = [28 x i8] c"error in file %s on line %d\00"
@.str.16 = [13 x i8] c"syntax error\00"
define i32 @parse_config_file(%struct.configuration* %0, i8* %1, i8** nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = alloca [255 x i8]
%6 = alloca [128 x i8*]
%7 = getelementptr inbounds [255 x i8], [255 x i8]* %5, i64 0, i64 0
%8 = bitcast [128 x i8*]* %6 to i8*
%9 = icmp ne %struct.configuration* %0, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
%12 = icmp ne i8* %1, null
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %228, label %17
17: ; preds = %4
%18 = call i32 @memset(i8* %7, i32 0, i32 255)
%19 = getelementptr inbounds [128 x i8*], [128 x i8*]* %6, i64 0, i64 0
%20 = getelementptr inbounds [128 x i8*], [128 x i8*]* %6, i64 0, i64 1
%21 = getelementptr inbounds [128 x i8*], [128 x i8*]* %6, i64 0, i64 2
%22 = call i32* @fgets(i8* %7, i32 254, i32* %15)
%23 = icmp eq i32* %22, null
br i1 %23, label %225, label %24
24: ; preds = %17, %33
%25 = phi i32 [ %27, %33 ], [ 0, %17 ]
%26 = call i32 @strbreak(i8* %7, i8** %19, i32 1024)
%27 = add nuw nsw i32 %25, 1
%28 = icmp eq i32 %26, 0
br i1 %28, label %33, label %29
29: ; preds = %24
%30 = load i8*, i8** %19
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
switch i32 %32, label %223 [
i32 35, label %33
i32 0, label %33
i32 101, label %36
i32 100, label %52
i32 112, label %61
i32 110, label %120
i32 115, label %164
i32 116, label %180
i32 107, label %191
i32 99, label %207
]
33: ; preds = %29, %29, %49, %74, %87, %102, %117, %133, %146, %161, %177, %189, %204, %220, %24, %57
%34 = call i32* @fgets(i8* %7, i32 254, i32* %15)
%35 = icmp eq i32* %34, null
br i1 %35, label %225, label %24
36: ; preds = %29
%37 = icmp eq i32 %26, 3
br i1 %37, label %38, label %223
38: ; preds = %36
%39 = call i32 @strcmp(i8* %30, i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %223
41: ; preds = %38
%42 = load i8*, i8** %20
%43 = call i32 @check_cachename(i8* %42)
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %223
45: ; preds = %41
%46 = load i8*, i8** %21
%47 = call i32 @get_yesno(i8* %46)
%48 = icmp eq i32 %47, -1
br i1 %48, label %223, label %49
49: ; preds = %45
%50 = load i8*, i8** %20
%51 = call i32 @enable_cache(%struct.configuration* %0, i8* %50, i32 %47)
br label %33
52: ; preds = %29
%53 = icmp eq i32 %26, 2
br i1 %53, label %54, label %223
54: ; preds = %52
%55 = call i32 @strcmp(i8* %30, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %223
57: ; preds = %54
%58 = load i8*, i8** %20
%59 = call i32 @get_number(i8* %58, i32 0, i32 10)
%60 = icmp eq i32 %59, -1
br i1 %60, label %223, label %33
61: ; preds = %29
%62 = icmp eq i32 %26, 3
br i1 %62, label %63, label %223
63: ; preds = %61
%64 = call i32 @strcmp(i8* %30, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %77
66: ; preds = %63
%67 = load i8*, i8** %20
%68 = call i32 @check_cachename(i8* %67)
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %77
70: ; preds = %66
%71 = load i8*, i8** %21
%72 = call i32 @get_number(i8* %71, i32 0, i32 -1)
%73 = icmp eq i32 %72, -1
br i1 %73, label %77, label %74
74: ; preds = %70
%75 = load i8*, i8** %20
%76 = call i32 @set_positive_time_to_live(%struct.configuration* %0, i8* %75, i32 %72)
br label %33
77: ; preds = %63, %66, %70
%78 = load i8*, i8** %19
%79 = call i32 @strcmp(i8* dereferenceable(1) %78, i8* dereferenceable(30) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %90
81: ; preds = %77
%82 = load i8*, i8** %21
%83 = call i32 @get_number(i8* %82, i32 1, i32 -1)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %87
85: ; preds = %81
%86 = load i8*, i8** %19
br label %90
87: ; preds = %81
%88 = load i8*, i8** %20
%89 = call i32 @set_positive_confidence_threshold(%struct.configuration* %0, i8* %88, i32 %83)
br label %33
90: ; preds = %85, %77
%91 = phi i8* [ %86, %85 ], [ %78, %77 ]
%92 = call i32 @strcmp(i8* dereferenceable(1) %91, i8* dereferenceable(16) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%93 = icmp eq i32 %92, 0
br i1 %93, label %94, label %105
94: ; preds = %90
%95 = load i8*, i8** %20
%96 = call i32 @check_cachename(i8* %95)
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %105
98: ; preds = %94
%99 = load i8*, i8** %21
%100 = call i32 @get_policy(i8* %99)
%101 = icmp eq i32 %100, -1
br i1 %101, label %105, label %102
102: ; preds = %98
%103 = load i8*, i8** %20
%104 = call i32 @set_positive_policy(%struct.configuration* %0, i8* %103, i32 %100)
br label %33
105: ; preds = %90, %94, %98
%106 = load i8*, i8** %19
%107 = call i32 @strcmp(i8* dereferenceable(1) %106, i8* dereferenceable(23) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %223
109: ; preds = %105
%110 = load i8*, i8** %20
%111 = call i32 @check_cachename(i8* %110)
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %223
113: ; preds = %109
%114 = load i8*, i8** %21
%115 = call i32 @get_yesno(i8* %114)
%116 = icmp eq i32 %115, -1
br i1 %116, label %223, label %117
117: ; preds = %113
%118 = load i8*, i8** %20
%119 = call i32 @set_perform_actual_lookups(%struct.configuration* %0, i8* %118, i32 %115)
br label %33
120: ; preds = %29
%121 = icmp eq i32 %26, 3
br i1 %121, label %122, label %223
122: ; preds = %120
%123 = call i32 @strcmp(i8* %30, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %136
125: ; preds = %122
%126 = load i8*, i8** %20
%127 = call i32 @check_cachename(i8* %126)
%128 = icmp eq i32 %127, 0
br i1 %128, label %129, label %136
129: ; preds = %125
%130 = load i8*, i8** %21
%131 = call i32 @get_number(i8* %130, i32 0, i32 -1)
%132 = icmp eq i32 %131, -1
br i1 %132, label %136, label %133
133: ; preds = %129
%134 = load i8*, i8** %20
%135 = call i32 @set_negative_time_to_live(%struct.configuration* %0, i8* %134, i32 %131)
br label %33
136: ; preds = %122, %125, %129
%137 = load i8*, i8** %19
%138 = call i32 @strcmp(i8* dereferenceable(1) %137, i8* dereferenceable(30) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0))
%139 = icmp eq i32 %138, 0
br i1 %139, label %140, label %149
140: ; preds = %136
%141 = load i8*, i8** %21
%142 = call i32 @get_number(i8* %141, i32 1, i32 -1)
%143 = icmp eq i32 %142, -1
br i1 %143, label %144, label %146
144: ; preds = %140
%145 = load i8*, i8** %19
br label %149
146: ; preds = %140
%147 = load i8*, i8** %20
%148 = call i32 @set_negative_confidence_threshold(%struct.configuration* %0, i8* %147, i32 %142)
br label %33
149: ; preds = %144, %136
%150 = phi i8* [ %145, %144 ], [ %137, %136 ]
%151 = call i32 @strcmp(i8* dereferenceable(1) %150, i8* dereferenceable(16) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%152 = icmp eq i32 %151, 0
br i1 %152, label %153, label %223
153: ; preds = %149
%154 = load i8*, i8** %20
%155 = call i32 @check_cachename(i8* %154)
%156 = icmp eq i32 %155, 0
br i1 %156, label %157, label %223
157: ; preds = %153
%158 = load i8*, i8** %21
%159 = call i32 @get_policy(i8* %158)
%160 = icmp eq i32 %159, -1
br i1 %160, label %223, label %161
161: ; preds = %157
%162 = load i8*, i8** %20
%163 = call i32 @set_negative_policy(%struct.configuration* %0, i8* %162, i32 %159)
br label %33
164: ; preds = %29
%165 = icmp eq i32 %26, 3
br i1 %165, label %166, label %223
166: ; preds = %164
%167 = call i32 @strcmp(i8* %30, i8* dereferenceable(15) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%168 = icmp eq i32 %167, 0
br i1 %168, label %169, label %223
169: ; preds = %166
%170 = load i8*, i8** %20
%171 = call i32 @check_cachename(i8* %170)
%172 = icmp eq i32 %171, 0
br i1 %172, label %173, label %223
173: ; preds = %169
%174 = load i8*, i8** %21
%175 = call i32 @get_number(i8* %174, i32 1, i32 -1)
%176 = icmp eq i32 %175, -1
br i1 %176, label %223, label %177
177: ; preds = %173
%178 = load i8*, i8** %20
%179 = call i32 @set_suggested_size(%struct.configuration* %0, i8* %178, i32 %175)
br label %33
180: ; preds = %29
%181 = icmp eq i32 %26, 2
br i1 %181, label %182, label %223
182: ; preds = %180
%183 = call i32 @strcmp(i8* %30, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%184 = icmp eq i32 %183, 0
br i1 %184, label %185, label %223
185: ; preds = %182
%186 = load i8*, i8** %20
%187 = call i32 @get_number(i8* %186, i32 1, i32 -1)
%188 = icmp eq i32 %187, -1
br i1 %188, label %223, label %189
189: ; preds = %185
%190 = call i32 @set_threads_num(%struct.configuration* %0, i32 %187)
br label %33
191: ; preds = %29
%192 = icmp eq i32 %26, 3
br i1 %192, label %193, label %223
193: ; preds = %191
%194 = call i32 @strcmp(i8* %30, i8* dereferenceable(15) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%195 = icmp eq i32 %194, 0
br i1 %195, label %196, label %223
196: ; preds = %193
%197 = load i8*, i8** %20
%198 = call i32 @check_cachename(i8* %197)
%199 = icmp eq i32 %198, 0
br i1 %199, label %200, label %223
200: ; preds = %196
%201 = load i8*, i8** %21
%202 = call i32 @get_number(i8* %201, i32 0, i32 -1)
%203 = icmp eq i32 %202, -1
br i1 %203, label %223, label %204
204: ; preds = %200
%205 = load i8*, i8** %20
%206 = call i32 @set_keep_hot_count(%struct.configuration* %0, i8* %205, i32 %202)
br label %33
207: ; preds = %29
%208 = icmp eq i32 %26, 3
br i1 %208, label %209, label %223
209: ; preds = %207
%210 = call i32 @strcmp(i8* %30, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%211 = icmp eq i32 %210, 0
br i1 %211, label %212, label %223
212: ; preds = %209
%213 = load i8*, i8** %20
%214 = call i32 @check_cachename(i8* %213)
%215 = icmp eq i32 %214, 0
br i1 %215, label %216, label %223
216: ; preds = %212
%217 = load i8*, i8** %21
%218 = call i32 @get_yesno(i8* %217)
%219 = icmp eq i32 %218, -1
br i1 %219, label %223, label %220
220: ; preds = %216
%221 = load i8*, i8** %20
%222 = call i32 @check_files(%struct.configuration* %0, i8* %221, i32 %218)
br label %33
223: ; preds = %45, %41, %38, %36, %57, %54, %52, %105, %109, %113, %157, %153, %149, %173, %169, %166, %164, %185, %182, %180, %200, %196, %193, %191, %216, %212, %209, %207, %29, %61, %120
%224 = call i32 @__log_err(i32 2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i8* %1, i32 %27)
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8** %2
store i32 %27, i32* %3
br label %225
225: ; preds = %33, %17, %223
%226 = phi i32 [ -1, %223 ], [ 0, %17 ], [ 0, %33 ]
%227 = call i32 @fclose(i32* %15)
br label %228
228: ; preds = %4, %225
%229 = phi i32 [ %226, %225 ], [ -1, %4 ]
ret i32 %229
}