#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 */

/* Variables and functions */
char *cfg_error_msg(int);
char *cfg_get_filename(int);
char **cfg_get_hash_keys(int, char *, char *);
char *cfg_get_hash_value(int, char *, char *, char *);
char **cfg_get_keywords(int, char *);
char **cfg_get_sections(int);
int cfg_get_type(int, char *, char *);
char *cfg_get_type_str(int, char *, char *);
char *cfg_get_value(int, char *, char *);
char **cfg_get_values(int, char *, char *);
int cfg_read_config_file(char *);
int /*<<< orphan*/ cfg_set_debug(int /*<<< orphan*/);
int /*<<< orphan*/ cfg_show_configs();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  char *config_file = "conf/config.conf";
  char *config_file2 = "conf/blat.conf";
  char *error;
  int cfg_index, cfg_index2;
  cfg_set_debug(0);
  cfg_index = cfg_read_config_file("foobar");
  if (cfg_error_msg(cfg_index)) {
    error = cfg_error_msg(cfg_index);
    fprintf(stderr, "Error: %s", error);
  }
  cfg_index = cfg_read_config_file(config_file);
  if (cfg_error_msg(cfg_index)) {
    error = cfg_error_msg(cfg_index);
    fprintf(stderr, "Error: %s", error);
  }
  cfg_index2 = cfg_read_config_file(config_file2);
  if (cfg_error_msg(cfg_index2)) {
    error = cfg_error_msg(cfg_index2);
    fprintf(stderr, "Error: %s", error);
  }
  printf("\n\n");
  printf("Showing configs:\n");
  printf("----------------------------------------------------------\n");
  cfg_show_configs();
  printf("----------------------------------------------------------\n");
  printf("\n\n");
  char **sp, **kp, **sections, **keywords, *value;
  char *fn = cfg_get_filename(cfg_index);
  printf("%s:\n", fn);
  sections = cfg_get_sections(cfg_index);
  for (sp = sections; *sp; sp++) {
    printf("\t%s\n", *sp);
    keywords = cfg_get_keywords(cfg_index, *sp);
    for (kp = keywords; *kp; kp++) {
      value = cfg_get_value(cfg_index, *sp, *kp);
      printf("\t\t\%s = \'%s\'\n", *kp, value);
    }
    printf("\n");
  }
  printf("\n\n");
  fn = cfg_get_filename(cfg_index2);
  printf("%s:\n", fn);
  sections = cfg_get_sections(cfg_index2);
  for (sp = sections; *sp; sp++) {
    printf("\t%s\n", *sp);
    keywords = cfg_get_keywords(cfg_index2, *sp);
    for (kp = keywords; *kp; kp++) {
      value = cfg_get_value(cfg_index2, *sp, *kp);
      printf("\t\t\%s = \'%s\'\n", *kp, value);
    }
    printf("\n");
  }
  value = cfg_get_value(-99, "poo", "bonk");
  printf("value for index %d, section poo, keyword bonk = %s\n", -99, value);
  char **values, **vp;
  values = cfg_get_values(2, "domains", "ok");
  printf("\n\nvalues for section domains and keyword ok = \n");
  if (values == (char **)NULL) {
    fprintf(stderr, "No values\n");
  } else {
    for (vp = values; *vp; vp++) {
      printf("\t\'%s\'\n ", *vp);
    }
  }
  int type;
  char *type_s;
  type = cfg_get_type(2, "domains", "ok");
  type_s = cfg_get_type_str(2, "domains", "ok");
  printf("Type = %s (%d) for ok\n", type_s, type);
  type = cfg_get_type(2, "domains", "worse");
  type_s = cfg_get_type_str(2, "domains", "worse");
  printf("Type = %s (%d) for worse\n", type_s, type);
  values = cfg_get_hash_keys(2, "hash-test", "something");
  if (values == (char **)NULL) {
    fprintf(stderr, "No values\n");
  } else {
    for (vp = values; *vp; vp++) {
      char *v;
      v = cfg_get_hash_value(2, "hash-test", "something", *vp);
      printf("\t%s = \'%s\'\n", *vp, v);
    }
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xdf0(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xdf6(%rip),%rax
mov    %rax,-0x20(%rbp)
xor    %edi,%edi
call   10d0 <cfg_set_debug@plt>
lea    0xdf3(%rip),%rdi
call   1100 <cfg_read_config_file@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
call   1040 <cfg_error_msg@plt>
cmp    $0x0,%rax
je     126e <main+0x7e>
mov    -0x2c(%rbp),%edi
call   1040 <cfg_error_msg@plt>
mov    %rax,-0x28(%rbp)
mov    0x2d86(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xdc0(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1100 <cfg_read_config_file@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
call   1040 <cfg_error_msg@plt>
cmp    $0x0,%rax
je     12b3 <main+0xc3>
mov    -0x2c(%rbp),%edi
call   1040 <cfg_error_msg@plt>
mov    %rax,-0x28(%rbp)
mov    0x2d41(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xd7b(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1100 <cfg_read_config_file@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edi
call   1040 <cfg_error_msg@plt>
cmp    $0x0,%rax
je     12f8 <main+0x108>
mov    -0x30(%rbp),%edi
call   1040 <cfg_error_msg@plt>
mov    %rax,-0x28(%rbp)
mov    0x2cfc(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xd36(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    $0x0,%al
call   1090 <cfg_show_configs@plt>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x2c(%rbp),%edi
call   1110 <cfg_get_filename@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x2c(%rbp),%edi
call   10a0 <cfg_get_sections@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmpq   $0x0,(%rax)
je     1426 <main+0x236>
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x2c(%rbp),%edi
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
call   1060 <cfg_get_keywords@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmpq   $0x0,(%rax)
je     1407 <main+0x217>
mov    -0x2c(%rbp),%edi
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
mov    -0x40(%rbp),%rax
mov    (%rax),%rdx
call   1070 <cfg_get_value@plt>
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%rsi
mov    -0x58(%rbp),%rdx
lea    0xc9d(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
jmp    13b5 <main+0x1c5>
lea    0xc24(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x38(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
jmp    1377 <main+0x187>
lea    0xc04(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x30(%rbp),%edi
call   1110 <cfg_get_filename@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rsi
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x30(%rbp),%edi
call   10a0 <cfg_get_sections@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmpq   $0x0,(%rax)
je     1515 <main+0x325>
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
lea    0xc05(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x30(%rbp),%edi
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
call   1060 <cfg_get_keywords@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmpq   $0x0,(%rax)
je     14f6 <main+0x306>
mov    -0x30(%rbp),%edi
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
mov    -0x40(%rbp),%rax
mov    (%rax),%rdx
call   1070 <cfg_get_value@plt>
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%rsi
mov    -0x58(%rbp),%rdx
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
jmp    14a4 <main+0x2b4>
lea    0xb35(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x38(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
jmp    1466 <main+0x276>
mov    $0xffffff9d,%edi
lea    0xb78(%rip),%rsi
lea    0xb75(%rip),%rdx
call   1070 <cfg_get_value@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdx
lea    0xb66(%rip),%rdi
mov    $0xffffff9d,%esi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    $0x2,%edi
lea    0xb82(%rip),%rsi
lea    0xb83(%rip),%rdx
call   1030 <cfg_get_values@plt>
mov    %rax,-0x68(%rbp)
lea    0xb76(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
cmpq   $0x0,-0x68(%rbp)
jne    1599 <main+0x3a9>
mov    0x2a5c(%rip),%rax
mov    (%rax),%edi
lea    0xb84(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    15da <main+0x3ea>
mov    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmpq   $0x0,(%rax)
je     15d5 <main+0x3e5>
mov    -0x70(%rbp),%rax
mov    (%rax),%rsi
lea    0xb5f(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x70(%rbp)
jmp    15a1 <main+0x3b1>
jmp    15da <main+0x3ea>
mov    $0x2,%edi
lea    0xaf0(%rip),%rsi
lea    0xaf1(%rip),%rdx
call   10e0 <cfg_get_type@plt>
mov    %eax,-0x74(%rbp)
mov    $0x2,%edi
lea    0xad5(%rip),%rsi
lea    0xad6(%rip),%rdx
call   1050 <cfg_get_type_str@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rsi
mov    -0x74(%rbp),%edx
lea    0xb05(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    $0x2,%edi
lea    0xaa4(%rip),%rsi
lea    0xb02(%rip),%rdx
call   10e0 <cfg_get_type@plt>
mov    %eax,-0x74(%rbp)
mov    $0x2,%edi
lea    0xa89(%rip),%rsi
lea    0xae7(%rip),%rdx
call   1050 <cfg_get_type_str@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rsi
mov    -0x74(%rbp),%edx
lea    0xad6(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    $0x2,%edi
lea    0xadd(%rip),%rsi
lea    0xae0(%rip),%rdx
call   10f0 <cfg_get_hash_keys@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jne    16b5 <main+0x4c5>
mov    0x2940(%rip),%rax
mov    (%rax),%edi
lea    0xa68(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    1723 <main+0x533>
mov    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmpq   $0x0,(%rax)
je     171e <main+0x52e>
mov    -0x70(%rbp),%rax
mov    (%rax),%rcx
mov    $0x2,%edi
lea    0xa7d(%rip),%rsi
lea    0xa80(%rip),%rdx
call   1080 <cfg_get_hash_value@plt>
mov    %rax,-0x88(%rbp)
mov    -0x70(%rbp),%rax
mov    (%rax),%rsi
mov    -0x88(%rbp),%rdx
lea    0x987(%rip),%rdi
mov    $0x0,%al
call   10b0 <printf@plt>
mov    -0x70(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x70(%rbp)
jmp    16bd <main+0x4cd>
jmp    1723 <main+0x533>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %edi,%edi
call   10f0 <cfg_set_debug@plt>
lea    0xdf7(%rip),%rdi
call   1120 <cfg_read_config_file@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1040 <cfg_error_msg@plt>
test   %rax,%rax
je     125d <main+0x4d>
mov    %ebx,%edi
call   1040 <cfg_error_msg@plt>
mov    0x2d96(%rip),%rcx
mov    (%rcx),%edi
lea    0xdd4(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   10e0 <fprintf@plt>
lea    0xd9c(%rip),%rdi
call   1120 <cfg_read_config_file@plt>
mov    %eax,%r12d
mov    %eax,%edi
call   1040 <cfg_error_msg@plt>
test   %rax,%rax
je     129a <main+0x8a>
mov    %r12d,%edi
call   1040 <cfg_error_msg@plt>
mov    0x2d59(%rip),%rcx
mov    (%rcx),%edi
lea    0xd97(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   10e0 <fprintf@plt>
lea    0xd70(%rip),%rdi
call   1120 <cfg_read_config_file@plt>
mov    %eax,%r14d
mov    %eax,%edi
call   1040 <cfg_error_msg@plt>
test   %rax,%rax
je     12d7 <main+0xc7>
mov    %r14d,%edi
call   1040 <cfg_error_msg@plt>
mov    0x2d1c(%rip),%rcx
mov    (%rcx),%edi
lea    0xd5a(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   10e0 <fprintf@plt>
lea    0xd68(%rip),%rbx
mov    %rbx,%rdi
call   10a0 <puts@plt>
lea    0xe01(%rip),%rdi
call   10a0 <puts@plt>
lea    0xe06(%rip),%rbp
mov    %rbp,%rdi
call   10a0 <puts@plt>
xor    %eax,%eax
call   10b0 <cfg_show_configs@plt>
mov    %rbp,%rdi
call   10a0 <puts@plt>
mov    %rbx,%rdi
call   10a0 <puts@plt>
mov    %r12d,%edi
call   1130 <cfg_get_filename@plt>
lea    0xd0a(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   10d0 <printf@plt>
mov    %r12d,%edi
call   10c0 <cfg_get_sections@plt>
mov    (%rax),%rsi
test   %rsi,%rsi
je     13cb <main+0x1bb>
mov    %rax,%rbx
lea    0xce7(%rip),%r15
lea    0xce5(%rip),%r13
jmp    1377 <main+0x167>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1060 <putchar@plt>
mov    0x8(%rbx),%rsi
add    $0x8,%rbx
test   %rsi,%rsi
je     13cb <main+0x1bb>
mov    %r15,%rdi
xor    %eax,%eax
call   10d0 <printf@plt>
mov    (%rbx),%rsi
mov    %r12d,%edi
call   1070 <cfg_get_keywords@plt>
mov    (%rax),%rdx
test   %rdx,%rdx
je     1360 <main+0x150>
mov    %rax,%rbp
add    $0x8,%rbp
nopl   0x0(%rax,%rax,1)
mov    (%rbx),%rsi
mov    %r12d,%edi
call   1080 <cfg_get_value@plt>
mov    -0x8(%rbp),%rsi
mov    %r13,%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   10d0 <printf@plt>
mov    0x0(%rbp),%rdx
add    $0x8,%rbp
test   %rdx,%rdx
jne    13a0 <main+0x190>
jmp    1360 <main+0x150>
lea    0xc74(%rip),%rdi
call   10a0 <puts@plt>
mov    %r14d,%edi
call   1130 <cfg_get_filename@plt>
lea    0xc4b(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   10d0 <printf@plt>
mov    %r14d,%edi
call   10c0 <cfg_get_sections@plt>
mov    (%rax),%rsi
test   %rsi,%rsi
je     148b <main+0x27b>
mov    %rax,%rbx
lea    0xc28(%rip),%r15
lea    0xc26(%rip),%r12
jmp    1437 <main+0x227>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1060 <putchar@plt>
mov    0x8(%rbx),%rsi
add    $0x8,%rbx
test   %rsi,%rsi
je     148b <main+0x27b>
mov    %r15,%rdi
xor    %eax,%eax
call   10d0 <printf@plt>
mov    (%rbx),%rsi
mov    %r14d,%edi
call   1070 <cfg_get_keywords@plt>
mov    (%rax),%rdx
test   %rdx,%rdx
je     1420 <main+0x210>
mov    %rax,%rbp
add    $0x8,%rbp
nopl   0x0(%rax,%rax,1)
mov    (%rbx),%rsi
mov    %r14d,%edi
call   1080 <cfg_get_value@plt>
mov    -0x8(%rbp),%rsi
mov    %r12,%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   10d0 <printf@plt>
mov    0x0(%rbp),%rdx
add    $0x8,%rbp
test   %rdx,%rdx
jne    1460 <main+0x250>
jmp    1420 <main+0x210>
lea    0xbb6(%rip),%rsi
lea    0xbb3(%rip),%rdx
mov    $0xffffff9d,%edi
call   1080 <cfg_get_value@plt>
lea    0xba7(%rip),%rdi
mov    $0xffffff9d,%esi
mov    %rax,%rdx
xor    %eax,%eax
call   10d0 <printf@plt>
lea    0xbc5(%rip),%rsi
lea    0xbc6(%rip),%rdx
mov    $0x2,%edi
call   1030 <cfg_get_values@plt>
mov    %rax,%rbx
lea    0xc5f(%rip),%rdi
call   10a0 <puts@plt>
test   %rbx,%rbx
je     1518 <main+0x308>
mov    (%rbx),%rsi
test   %rsi,%rsi
je     152f <main+0x31f>
add    $0x8,%rbx
lea    0xba3(%rip),%rbp
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
xor    %eax,%eax
call   10d0 <printf@plt>
mov    (%rbx),%rsi
add    $0x8,%rbx
test   %rsi,%rsi
jne    1500 <main+0x2f0>
jmp    152f <main+0x31f>
mov    0x2ac1(%rip),%rax
mov    (%rax),%edi
lea    0xb68(%rip),%rsi
xor    %eax,%eax
call   10e0 <fprintf@plt>
lea    0xb4f(%rip),%r14
lea    0xb50(%rip),%rbp
mov    $0x2,%edi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1100 <cfg_get_type@plt>
mov    %eax,%ebx
mov    $0x2,%edi
mov    %r14,%rsi
mov    %rbp,%rdx
call   1050 <cfg_get_type_str@plt>
lea    0xb3d(%rip),%rdi
mov    %rax,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   10d0 <printf@plt>
lea    0xb41(%rip),%rbx
mov    $0x2,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1100 <cfg_get_type@plt>
mov    %eax,%ebp
mov    $0x2,%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1050 <cfg_get_type_str@plt>
lea    0xb1e(%rip),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   10d0 <printf@plt>
lea    0xb25(%rip),%rsi
lea    0xb28(%rip),%rdx
mov    $0x2,%edi
call   1110 <cfg_get_hash_keys@plt>
test   %rax,%rax
je     161f <main+0x40f>
mov    %rax,%rbx
mov    (%rax),%rcx
test   %rcx,%rcx
je     1636 <main+0x426>
add    $0x8,%rbx
lea    0xaf9(%rip),%r14
lea    0xafc(%rip),%r15
lea    0xa4d(%rip),%rbp
nop
mov    $0x2,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   1090 <cfg_get_hash_value@plt>
mov    -0x8(%rbx),%rsi
mov    %rbp,%rdi
mov    %rax,%rdx
xor    %eax,%eax
call   10d0 <printf@plt>
mov    (%rbx),%rcx
add    $0x8,%rbx
test   %rcx,%rcx
jne    15f0 <main+0x3e0>
jmp    1636 <main+0x426>
mov    0x29ba(%rip),%rax
mov    (%rax),%edi
lea    0xa61(%rip),%rsi
xor    %eax,%eax
call   10e0 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"conf/config.conf\00"
@.str.1 = [15 x i8] c"conf/blat.conf\00"
@.str.2 = [7 x i8] c"foobar\00"
@stderr = global i32 0
@.str.3 = [10 x i8] c"Error: %s\00"
@.str.4 = [3 x i8] c"\0A\0A\00"
@.str.5 = [18 x i8] c"Showing configs:\0A\00"
@.str.6 = [60 x i8] c"----------------------------------------------------------\0A\00"
@.str.7 = [5 x i8] c"%s:\0A\00"
@.str.8 = [5 x i8] c"\09%s\0A\00"
@.str.9 = [13 x i8] c"\09\09%s = '%s'\0A\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [4 x i8] c"poo\00"
@.str.12 = [5 x i8] c"bonk\00"
@.str.13 = [52 x i8] c"value for index %d, section poo, keyword bonk = %s\0A\00"
@.str.14 = [8 x i8] c"domains\00"
@.str.15 = [3 x i8] c"ok\00"
@.str.16 = [48 x i8] c"\0A\0Avalues for section domains and keyword ok = \0A\00"
@.str.17 = [11 x i8] c"No values\0A\00"
@.str.18 = [8 x i8] c"\09'%s'\0A \00"
@.str.19 = [23 x i8] c"Type = %s (%d) for ok\0A\00"
@.str.20 = [6 x i8] c"worse\00"
@.str.21 = [26 x i8] c"Type = %s (%d) for worse\0A\00"
@.str.22 = [10 x i8] c"hash-test\00"
@.str.23 = [10 x i8] c"something\00"
@.str.24 = [12 x i8] c"\09%s = '%s'\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8**
%12 = alloca i8**
%13 = alloca i8**
%14 = alloca i8**
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8**
%18 = alloca i8**
%19 = alloca i32
%20 = alloca i8*
%21 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8** %7
%22 = call i32 @cfg_set_debug(i32 0)
%23 = call i32 @cfg_read_config_file(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 %23, i32* %9
%24 = load i32, i32* %9
%25 = call i8* @cfg_error_msg(i32 %24)
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %33
27: ; preds = %2
%28 = load i32, i32* %9
%29 = call i8* @cfg_error_msg(i32 %28)
store i8* %29, i8** %8
%30 = load i32, i32* @stderr
%31 = load i8*, i8** %8
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %31)
br label %33
33: ; preds = %27, %2
%34 = load i8*, i8** %6
%35 = call i32 @cfg_read_config_file(i8* %34)
store i32 %35, i32* %9
%36 = load i32, i32* %9
%37 = call i8* @cfg_error_msg(i32 %36)
%38 = icmp ne i8* %37, null
br i1 %38, label %39, label %45
39: ; preds = %33
%40 = load i32, i32* %9
%41 = call i8* @cfg_error_msg(i32 %40)
store i8* %41, i8** %8
%42 = load i32, i32* @stderr
%43 = load i8*, i8** %8
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %43)
br label %45
45: ; preds = %39, %33
%46 = load i8*, i8** %7
%47 = call i32 @cfg_read_config_file(i8* %46)
store i32 %47, i32* %10
%48 = load i32, i32* %10
%49 = call i8* @cfg_error_msg(i32 %48)
%50 = icmp ne i8* %49, null
br i1 %50, label %51, label %57
51: ; preds = %45
%52 = load i32, i32* %10
%53 = call i8* @cfg_error_msg(i32 %52)
store i8* %53, i8** %8
%54 = load i32, i32* @stderr
%55 = load i8*, i8** %8
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %55)
br label %57
57: ; preds = %51, %45
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%61 = call i32 (...) @cfg_show_configs()
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%64 = load i32, i32* %9
%65 = call i8* @cfg_get_filename(i32 %64)
store i8* %65, i8** %16
%66 = load i8*, i8** %16
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %66)
%68 = load i32, i32* %9
%69 = call i8** @cfg_get_sections(i32 %68)
store i8** %69, i8*** %13
%70 = load i8**, i8*** %13
store i8** %70, i8*** %11
br label %71
71: ; preds = %104, %57
%72 = load i8**, i8*** %11
%73 = load i8*, i8** %72
%74 = icmp ne i8* %73, null
br i1 %74, label %75, label %107
75: ; preds = %71
%76 = load i8**, i8*** %11
%77 = load i8*, i8** %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %77)
%79 = load i32, i32* %9
%80 = load i8**, i8*** %11
%81 = load i8*, i8** %80
%82 = call i8** @cfg_get_keywords(i32 %79, i8* %81)
store i8** %82, i8*** %14
%83 = load i8**, i8*** %14
store i8** %83, i8*** %12
br label %84
84: ; preds = %99, %75
%85 = load i8**, i8*** %12
%86 = load i8*, i8** %85
%87 = icmp ne i8* %86, null
br i1 %87, label %88, label %102
88: ; preds = %84
%89 = load i32, i32* %9
%90 = load i8**, i8*** %11
%91 = load i8*, i8** %90
%92 = load i8**, i8*** %12
%93 = load i8*, i8** %92
%94 = call i8* @cfg_get_value(i32 %89, i8* %91, i8* %93)
store i8* %94, i8** %15
%95 = load i8**, i8*** %12
%96 = load i8*, i8** %95
%97 = load i8*, i8** %15
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %96, i8* %97)
br label %99
99: ; preds = %88
%100 = load i8**, i8*** %12
%101 = getelementptr inbounds i8*, i8** %100, i32 1
store i8** %101, i8*** %12
br label %84
102: ; preds = %84
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %104
104: ; preds = %102
%105 = load i8**, i8*** %11
%106 = getelementptr inbounds i8*, i8** %105, i32 1
store i8** %106, i8*** %11
br label %71
107: ; preds = %71
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%109 = load i32, i32* %10
%110 = call i8* @cfg_get_filename(i32 %109)
store i8* %110, i8** %16
%111 = load i8*, i8** %16
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %111)
%113 = load i32, i32* %10
%114 = call i8** @cfg_get_sections(i32 %113)
store i8** %114, i8*** %13
%115 = load i8**, i8*** %13
store i8** %115, i8*** %11
br label %116
116: ; preds = %149, %107
%117 = load i8**, i8*** %11
%118 = load i8*, i8** %117
%119 = icmp ne i8* %118, null
br i1 %119, label %120, label %152
120: ; preds = %116
%121 = load i8**, i8*** %11
%122 = load i8*, i8** %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %122)
%124 = load i32, i32* %10
%125 = load i8**, i8*** %11
%126 = load i8*, i8** %125
%127 = call i8** @cfg_get_keywords(i32 %124, i8* %126)
store i8** %127, i8*** %14
%128 = load i8**, i8*** %14
store i8** %128, i8*** %12
br label %129
129: ; preds = %144, %120
%130 = load i8**, i8*** %12
%131 = load i8*, i8** %130
%132 = icmp ne i8* %131, null
br i1 %132, label %133, label %147
133: ; preds = %129
%134 = load i32, i32* %10
%135 = load i8**, i8*** %11
%136 = load i8*, i8** %135
%137 = load i8**, i8*** %12
%138 = load i8*, i8** %137
%139 = call i8* @cfg_get_value(i32 %134, i8* %136, i8* %138)
store i8* %139, i8** %15
%140 = load i8**, i8*** %12
%141 = load i8*, i8** %140
%142 = load i8*, i8** %15
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %141, i8* %142)
br label %144
144: ; preds = %133
%145 = load i8**, i8*** %12
%146 = getelementptr inbounds i8*, i8** %145, i32 1
store i8** %146, i8*** %12
br label %129
147: ; preds = %129
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %149
149: ; preds = %147
%150 = load i8**, i8*** %11
%151 = getelementptr inbounds i8*, i8** %150, i32 1
store i8** %151, i8*** %11
br label %116
152: ; preds = %116
%153 = call i8* @cfg_get_value(i32 -99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
store i8* %153, i8** %15
%154 = load i8*, i8** %15
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0), i32 -99, i8* %154)
%156 = call i8** @cfg_get_values(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
store i8** %156, i8*** %17
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0))
%158 = load i8**, i8*** %17
%159 = icmp eq i8** %158, null
br i1 %159, label %160, label %163
160: ; preds = %152
%161 = load i32, i32* @stderr
%162 = call i32 (i32, i8*, ...) @fprintf(i32 %161, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
br label %177
163: ; preds = %152
%164 = load i8**, i8*** %17
store i8** %164, i8*** %18
br label %165
165: ; preds = %173, %163
%166 = load i8**, i8*** %18
%167 = load i8*, i8** %166
%168 = icmp ne i8* %167, null
br i1 %168, label %169, label %176
169: ; preds = %165
%170 = load i8**, i8*** %18
%171 = load i8*, i8** %170
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* %171)
br label %173
173: ; preds = %169
%174 = load i8**, i8*** %18
%175 = getelementptr inbounds i8*, i8** %174, i32 1
store i8** %175, i8*** %18
br label %165
176: ; preds = %165
br label %177
177: ; preds = %176, %160
%178 = call i32 @cfg_get_type(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
store i32 %178, i32* %19
%179 = call i8* @cfg_get_type_str(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
store i8* %179, i8** %20
%180 = load i8*, i8** %20
%181 = load i32, i32* %19
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i8* %180, i32 %181)
%183 = call i32 @cfg_get_type(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
store i32 %183, i32* %19
%184 = call i8* @cfg_get_type_str(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
store i8* %184, i8** %20
%185 = load i8*, i8** %20
%186 = load i32, i32* %19
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8* %185, i32 %186)
%188 = call i8** @cfg_get_hash_keys(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
store i8** %188, i8*** %17
%189 = load i8**, i8*** %17
%190 = icmp eq i8** %189, null
br i1 %190, label %191, label %194
191: ; preds = %177
%192 = load i32, i32* @stderr
%193 = call i32 (i32, i8*, ...) @fprintf(i32 %192, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
br label %212
194: ; preds = %177
%195 = load i8**, i8*** %17
store i8** %195, i8*** %18
br label %196
196: ; preds = %208, %194
%197 = load i8**, i8*** %18
%198 = load i8*, i8** %197
%199 = icmp ne i8* %198, null
br i1 %199, label %200, label %211
200: ; preds = %196
%201 = load i8**, i8*** %18
%202 = load i8*, i8** %201
%203 = call i8* @cfg_get_hash_value(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8* %202)
store i8* %203, i8** %21
%204 = load i8**, i8*** %18
%205 = load i8*, i8** %204
%206 = load i8*, i8** %21
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0), i8* %205, i8* %206)
br label %208
208: ; preds = %200
%209 = load i8**, i8*** %18
%210 = getelementptr inbounds i8*, i8** %209, i32 1
store i8** %210, i8*** %18
br label %196
211: ; preds = %196
br label %212
212: ; preds = %211, %191
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"conf/config.conf\00"
@.str.1 = [15 x i8] c"conf/blat.conf\00"
@.str.2 = [7 x i8] c"foobar\00"
@stderr = global i32 0
@.str.3 = [10 x i8] c"Error: %s\00"
@.str.7 = [5 x i8] c"%s:\0A\00"
@.str.8 = [5 x i8] c"\09%s\0A\00"
@.str.9 = [13 x i8] c"\09\09%s = '%s'\0A\00"
@.str.11 = [4 x i8] c"poo\00"
@.str.12 = [5 x i8] c"bonk\00"
@.str.13 = [52 x i8] c"value for index %d, section poo, keyword bonk = %s\0A\00"
@.str.14 = [8 x i8] c"domains\00"
@.str.15 = [3 x i8] c"ok\00"
@.str.17 = [11 x i8] c"No values\0A\00"
@.str.18 = [8 x i8] c"\09'%s'\0A \00"
@.str.19 = [23 x i8] c"Type = %s (%d) for ok\0A\00"
@.str.20 = [6 x i8] c"worse\00"
@.str.21 = [26 x i8] c"Type = %s (%d) for worse\0A\00"
@.str.22 = [10 x i8] c"hash-test\00"
@.str.23 = [10 x i8] c"something\00"
@.str.24 = [12 x i8] c"\09%s = '%s'\0A\00"
@str.25 = [17 x i8] c"Showing configs:\00"
@str.27 = [59 x i8] c"----------------------------------------------------------\00"
@str.29 = [2 x i8] c"\0A\00"
@str.30 = [47 x i8] c"\0A\0Avalues for section domains and keyword ok = \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @cfg_set_debug(i32 0)
%4 = tail call i32 @cfg_read_config_file(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i8* @cfg_error_msg(i32 %4)
%6 = icmp eq i8* %5, null
br i1 %6, label %11, label %7
7: ; preds = %2
%8 = tail call i8* @cfg_error_msg(i32 %4)
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %8)
br label %11
11: ; preds = %7, %2
%12 = tail call i32 @cfg_read_config_file(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%13 = tail call i8* @cfg_error_msg(i32 %12)
%14 = icmp eq i8* %13, null
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = tail call i8* @cfg_error_msg(i32 %12)
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %16)
br label %19
19: ; preds = %15, %11
%20 = tail call i32 @cfg_read_config_file(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%21 = tail call i8* @cfg_error_msg(i32 %20)
%22 = icmp eq i8* %21, null
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = tail call i8* @cfg_error_msg(i32 %20)
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %24)
br label %27
27: ; preds = %23, %19
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.29, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.25, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.27, i64 0, i64 0))
%31 = tail call i32 (...) @cfg_show_configs()
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.27, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.29, i64 0, i64 0))
%34 = tail call i8* @cfg_get_filename(i32 %12)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %34)
%36 = tail call i8** @cfg_get_sections(i32 %12)
%37 = load i8*, i8** %36
%38 = icmp eq i8* %37, null
br i1 %38, label %62, label %39
39: ; preds = %27, %57
%40 = phi i8* [ %60, %57 ], [ %37, %27 ]
%41 = phi i8** [ %59, %57 ], [ %36, %27 ]
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %40)
%43 = load i8*, i8** %41
%44 = tail call i8** @cfg_get_keywords(i32 %12, i8* %43)
%45 = load i8*, i8** %44
%46 = icmp eq i8* %45, null
br i1 %46, label %57, label %47
47: ; preds = %39, %47
%48 = phi i8* [ %55, %47 ], [ %45, %39 ]
%49 = phi i8** [ %54, %47 ], [ %44, %39 ]
%50 = load i8*, i8** %41
%51 = tail call i8* @cfg_get_value(i32 %12, i8* %50, i8* %48)
%52 = load i8*, i8** %49
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %52, i8* %51)
%54 = getelementptr inbounds i8*, i8** %49, i64 1
%55 = load i8*, i8** %54
%56 = icmp eq i8* %55, null
br i1 %56, label %57, label %47
57: ; preds = %47, %39
%58 = tail call i32 @putchar(i32 10)
%59 = getelementptr inbounds i8*, i8** %41, i64 1
%60 = load i8*, i8** %59
%61 = icmp eq i8* %60, null
br i1 %61, label %62, label %39
62: ; preds = %57, %27
%63 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.29, i64 0, i64 0))
%64 = tail call i8* @cfg_get_filename(i32 %20)
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %64)
%66 = tail call i8** @cfg_get_sections(i32 %20)
%67 = load i8*, i8** %66
%68 = icmp eq i8* %67, null
br i1 %68, label %92, label %69
69: ; preds = %62, %87
%70 = phi i8* [ %90, %87 ], [ %67, %62 ]
%71 = phi i8** [ %89, %87 ], [ %66, %62 ]
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %70)
%73 = load i8*, i8** %71
%74 = tail call i8** @cfg_get_keywords(i32 %20, i8* %73)
%75 = load i8*, i8** %74
%76 = icmp eq i8* %75, null
br i1 %76, label %87, label %77
77: ; preds = %69, %77
%78 = phi i8* [ %85, %77 ], [ %75, %69 ]
%79 = phi i8** [ %84, %77 ], [ %74, %69 ]
%80 = load i8*, i8** %71
%81 = tail call i8* @cfg_get_value(i32 %20, i8* %80, i8* %78)
%82 = load i8*, i8** %79
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %82, i8* %81)
%84 = getelementptr inbounds i8*, i8** %79, i64 1
%85 = load i8*, i8** %84
%86 = icmp eq i8* %85, null
br i1 %86, label %87, label %77
87: ; preds = %77, %69
%88 = tail call i32 @putchar(i32 10)
%89 = getelementptr inbounds i8*, i8** %71, i64 1
%90 = load i8*, i8** %89
%91 = icmp eq i8* %90, null
br i1 %91, label %92, label %69
92: ; preds = %87, %62
%93 = tail call i8* @cfg_get_value(i32 -99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0), i32 -99, i8* %93)
%95 = tail call i8** @cfg_get_values(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%96 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.30, i64 0, i64 0))
%97 = icmp eq i8** %95, null
br i1 %97, label %101, label %98
98: ; preds = %92
%99 = load i8*, i8** %95
%100 = icmp eq i8* %99, null
br i1 %100, label %111, label %104
101: ; preds = %92
%102 = load i32, i32* @stderr
%103 = tail call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
br label %111
104: ; preds = %98, %104
%105 = phi i8* [ %109, %104 ], [ %99, %98 ]
%106 = phi i8** [ %108, %104 ], [ %95, %98 ]
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* %105)
%108 = getelementptr inbounds i8*, i8** %106, i64 1
%109 = load i8*, i8** %108
%110 = icmp eq i8* %109, null
br i1 %110, label %111, label %104
111: ; preds = %104, %98, %101
%112 = tail call i32 @cfg_get_type(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%113 = tail call i8* @cfg_get_type_str(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i8* %113, i32 %112)
%115 = tail call i32 @cfg_get_type(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%116 = tail call i8* @cfg_get_type_str(i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8* %116, i32 %115)
%118 = tail call i8** @cfg_get_hash_keys(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
%119 = icmp eq i8** %118, null
br i1 %119, label %123, label %120
120: ; preds = %111
%121 = load i8*, i8** %118
%122 = icmp eq i8* %121, null
br i1 %122, label %135, label %126
123: ; preds = %111
%124 = load i32, i32* @stderr
%125 = tail call i32 (i32, i8*, ...) @fprintf(i32 %124, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
br label %135
126: ; preds = %120, %126
%127 = phi i8* [ %133, %126 ], [ %121, %120 ]
%128 = phi i8** [ %132, %126 ], [ %118, %120 ]
%129 = tail call i8* @cfg_get_hash_value(i32 2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0), i8* %127)
%130 = load i8*, i8** %128
%131 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0), i8* %130, i8* %129)
%132 = getelementptr inbounds i8*, i8** %128, i64 1
%133 = load i8*, i8** %132
%134 = icmp eq i8* %133, null
br i1 %134, label %135, label %126
135: ; preds = %126, %120, %123
ret i32 0
}