#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ out;

/* Variables and functions */
int /*<<< orphan*/ cfgFree();
int /*<<< orphan*/ cfgGet(char *, char *, char *);
int cfgParse(char *);
int /*<<< orphan*/ memset(char *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  int result = 0;
  char out[1024];
  result = cfgParse("test.ini");
  if (result != 0)
    return 1;
  printf("\n==================GET RESULT:GLOBAL======================\n");
  memset(out, 0x00, sizeof(out));
  cfgGet(NULL, "aa", out);
  printf("Global section, aa=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet(NULL, "a", out);
  printf("Global section, a=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet(NULL, "b", out);
  printf("Global section, b=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet(NULL, "c", out);
  printf("Global section, c=[%s]\n", out);
  printf("\n==================GET RESULT:[ab;cdefg]======================\n");
  memset(out, 0x00, sizeof(out));
  cfgGet("ab;cdefg", "c", out);
  printf("Named section [ab;cdefg], c=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet("ab;cdefg", "d", out);
  printf("Named section [ab;cdefg], d=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet("ab;cdefg", "e", out);
  printf("Named section [ab;cdefg], e=[%s]\n", out);
  printf("\n==================GET RESULT:[xxxx]======================\n");
  memset(out, 0x00, sizeof(out));
  cfgGet("xxxxa", "e", out);
  printf("Named section [xxxx], e=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet("xxxx", "m", out);
  printf("Named section [xxxx], m=[%s]\n", out);
  memset(out, 0x00, sizeof(out));
  cfgGet("xxxx", "n", out);
  printf("Named section [xxxx], n=[%s]\n", out);
  cfgFree();
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xe89(%rip),%rdi
call   1040 <cfgParse@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1195 <main+0x45>
movl   $0x1,-0x4(%rbp)
jmp    1454 <main+0x304>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    0xe7d(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    0xe3f(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    0xe33(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%edi
lea    0xe0e(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
lea    0xe1f(%rip),%rdi
lea    0xdbe(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
lea    0xddd(%rip),%rdi
lea    0xe01(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
lea    0xd9b(%rip),%rdi
lea    0xde3(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
lea    0xdfa(%rip),%rdi
lea    0xd93(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
lea    0xddc(%rip),%rdi
lea    0xdda(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
lea    -0x420(%rbp),%rdx
lea    0xd9a(%rip),%rdi
lea    0xdb8(%rip),%rsi
call   1030 <cfgGet@plt>
lea    -0x420(%rbp),%rsi
lea    0xda7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <cfgFree@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x408,%rsp
lea    0xe8b(%rip),%rdi
call   1050 <cfgParse@plt>
mov    $0x1,%r14d
test   %eax,%eax
jne    13b9 <main+0x259>
lea    0xfbe(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rbx
xor    %r14d,%r14d
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xe59(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xe4b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xe29(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xe33(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xe2b(%rip),%rsi
xor    %edi,%edi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xe1c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xe14(%rip),%r12
xor    %edi,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xe02(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xdee(%rip),%r15
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xde2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xde4(%rip),%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xdd4(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xdd6(%rip),%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xdc3(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xeb7(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xdb9(%rip),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xdad(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xdab(%rip),%r15
lea    0xda9(%rip),%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xd99(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
lea    0xd97(%rip),%rsi
mov    %r15,%rdi
mov    %rbx,%rdx
call   1030 <cfgGet@plt>
lea    0xd87(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1080 <cfgFree@plt>
mov    %r14d,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"test.ini\00"
@.str.1 = [60 x i8] c"\0A==================GET RESULT:GLOBAL======================\0A\00"
@.str.2 = [3 x i8] c"aa\00"
@.str.3 = [25 x i8] c"Global section, aa=[%s]\0A\00"
@.str.4 = [2 x i8] c"a\00"
@.str.5 = [24 x i8] c"Global section, a=[%s]\0A\00"
@.str.6 = [2 x i8] c"b\00"
@.str.7 = [24 x i8] c"Global section, b=[%s]\0A\00"
@.str.8 = [2 x i8] c"c\00"
@.str.9 = [24 x i8] c"Global section, c=[%s]\0A\00"
@.str.10 = [64 x i8] c"\0A==================GET RESULT:[ab;cdefg]======================\0A\00"
@.str.11 = [9 x i8] c"ab;cdefg\00"
@.str.12 = [34 x i8] c"Named section [ab;cdefg], c=[%s]\0A\00"
@.str.13 = [2 x i8] c"d\00"
@.str.14 = [34 x i8] c"Named section [ab;cdefg], d=[%s]\0A\00"
@.str.15 = [2 x i8] c"e\00"
@.str.16 = [34 x i8] c"Named section [ab;cdefg], e=[%s]\0A\00"
@.str.17 = [60 x i8] c"\0A==================GET RESULT:[xxxx]======================\0A\00"
@.str.18 = [6 x i8] c"xxxxa\00"
@.str.19 = [30 x i8] c"Named section [xxxx], e=[%s]\0A\00"
@.str.20 = [5 x i8] c"xxxx\00"
@.str.21 = [2 x i8] c"m\00"
@.str.22 = [30 x i8] c"Named section [xxxx], m=[%s]\0A\00"
@.str.23 = [2 x i8] c"n\00"
@.str.24 = [30 x i8] c"Named section [xxxx], n=[%s]\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [1024 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%8 = call i32 @cfgParse(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i32 %8, i32* %6
%9 = load i32, i32* %6
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 1, i32* %3
br label %78
12: ; preds = %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%15 = call i32 @memset(i8* %14, i32 0, i32 1024)
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%17 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%21 = call i32 @memset(i8* %20, i32 0, i32 1024)
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%23 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%27 = call i32 @memset(i8* %26, i32 0, i32 1024)
%28 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%29 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* %28)
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8* %30)
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%33 = call i32 @memset(i8* %32, i32 0, i32 1024)
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%35 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8* %34)
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%40 = call i32 @memset(i8* %39, i32 0, i32 1024)
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%42 = call i32 @cfgGet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8* %41)
%43 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%46 = call i32 @memset(i8* %45, i32 0, i32 1024)
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%48 = call i32 @cfgGet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* %47)
%49 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i8* %49)
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%52 = call i32 @memset(i8* %51, i32 0, i32 1024)
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%54 = call i32 @cfgGet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %53)
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i8* %55)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.17, i64 0, i64 0))
%58 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%59 = call i32 @memset(i8* %58, i32 0, i32 1024)
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%61 = call i32 @cfgGet(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %60)
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.19, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%65 = call i32 @memset(i8* %64, i32 0, i32 1024)
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%67 = call i32 @cfgGet(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* %66)
%68 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%71 = call i32 @memset(i8* %70, i32 0, i32 1024)
%72 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%73 = call i32 @cfgGet(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8* %72)
%74 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.24, i64 0, i64 0), i8* %74)
%76 = call i32 (...) @cfgFree()
%77 = load i32, i32* %6
store i32 %77, i32* %3
br label %78
78: ; preds = %12, %11
%79 = load i32, i32* %3
ret i32 %79
}

LLVM IR (-O2):
@.str = [9 x i8] c"test.ini\00"
@.str.2 = [3 x i8] c"aa\00"
@.str.3 = [25 x i8] c"Global section, aa=[%s]\0A\00"
@.str.4 = [2 x i8] c"a\00"
@.str.5 = [24 x i8] c"Global section, a=[%s]\0A\00"
@.str.6 = [2 x i8] c"b\00"
@.str.7 = [24 x i8] c"Global section, b=[%s]\0A\00"
@.str.8 = [2 x i8] c"c\00"
@.str.9 = [24 x i8] c"Global section, c=[%s]\0A\00"
@.str.11 = [9 x i8] c"ab;cdefg\00"
@.str.12 = [34 x i8] c"Named section [ab;cdefg], c=[%s]\0A\00"
@.str.13 = [2 x i8] c"d\00"
@.str.14 = [34 x i8] c"Named section [ab;cdefg], d=[%s]\0A\00"
@.str.15 = [2 x i8] c"e\00"
@.str.16 = [34 x i8] c"Named section [ab;cdefg], e=[%s]\0A\00"
@.str.18 = [6 x i8] c"xxxxa\00"
@.str.19 = [30 x i8] c"Named section [xxxx], e=[%s]\0A\00"
@.str.20 = [5 x i8] c"xxxx\00"
@.str.21 = [2 x i8] c"m\00"
@.str.22 = [30 x i8] c"Named section [xxxx], m=[%s]\0A\00"
@.str.23 = [2 x i8] c"n\00"
@.str.24 = [30 x i8] c"Named section [xxxx], n=[%s]\0A\00"
@str = [59 x i8] c"\0A==================GET RESULT:GLOBAL======================\00"
@str.25 = [63 x i8] c"\0A==================GET RESULT:[ab;cdefg]======================\00"
@str.26 = [59 x i8] c"\0A==================GET RESULT:[xxxx]======================\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @cfgParse(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %42
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str, i64 0, i64 0))
%9 = call i32 @memset(i8* %4, i32 0, i32 1024)
%10 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%12 = call i32 @memset(i8* %4, i32 0, i32 1024)
%13 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8* %4)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* %4)
%15 = call i32 @memset(i8* %4, i32 0, i32 1024)
%16 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* %4)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i8* %4)
%18 = call i32 @memset(i8* %4, i32 0, i32 1024)
%19 = call i32 @cfgGet(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8* %4)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %4)
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.25, i64 0, i64 0))
%22 = call i32 @memset(i8* %4, i32 0, i32 1024)
%23 = call i32 @cfgGet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i8* %4)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), i8* %4)
%25 = call i32 @memset(i8* %4, i32 0, i32 1024)
%26 = call i32 @cfgGet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* %4)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i8* %4)
%28 = call i32 @memset(i8* %4, i32 0, i32 1024)
%29 = call i32 @cfgGet(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %4)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.16, i64 0, i64 0), i8* %4)
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.26, i64 0, i64 0))
%32 = call i32 @memset(i8* %4, i32 0, i32 1024)
%33 = call i32 @cfgGet(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %4)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.19, i64 0, i64 0), i8* %4)
%35 = call i32 @memset(i8* %4, i32 0, i32 1024)
%36 = call i32 @cfgGet(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* %4)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0), i8* %4)
%38 = call i32 @memset(i8* %4, i32 0, i32 1024)
%39 = call i32 @cfgGet(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0), i8* %4)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.24, i64 0, i64 0), i8* %4)
%41 = call i32 (...) @cfgFree()
br label %42
42: ; preds = %2, %7
%43 = phi i32 [ 0, %7 ], [ 1, %2 ]
ret i32 %43
}