#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 */
int /*<<< orphan*/ CONFIG_delete();
char *CONFIG_key_get(char *);
char *CONFIG_make_filename(char *, char *);
int /*<<< orphan*/ CONFIG_new();
int /*<<< orphan*/ CONFIG_read_file(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int strlen(char *);
scalar_t__ system(char *);
int main(int argc, char **argv) {
  char config_name[100];
  char buffer[4000];
  int i;
  if (argc < 2) {
    printf("Keystone Application Framework Library tool\n");
    printf("Copyright (C) Jacob Lister, Abbey Systems 2003.  All rights "
           "reserved.\n\n");
    printf("usage: keylib <library name> <options>\n");
    exit(1);
  }
  CONFIG_new();
  sprintf(config_name, CONFIG_make_filename(argv[0], "keytools.cfg"));
  if (!CONFIG_read_file(config_name)) {
    printf("cannot open config file '%s'\n", config_name);
    exit(1);
  };
  if (!CONFIG_key_get("KEYSTONE_DIR")) {
    printf("'%s' environment variable not set\n", "KEYSTONE_DIR");
    exit(1);
  }
  if (!CONFIG_key_get("KEYSTONE_TARGET")) {
    printf("'%s' environment variable not set\n", "KEYSTONE_TARGET");
    exit(1);
  }
  if (!CONFIG_key_get("LIB")) {
    printf("LIB (Library tool) not set in config");
    exit(1);
  }
  sprintf(buffer, "%s", CONFIG_key_get("LIB"));
  if (buffer[strlen(buffer) - 1] != ':') {
    sprintf(buffer + strlen(buffer), " ");
  }
  for (i = 1; i < argc; i++) {
    sprintf(buffer + strlen(buffer), "%s ", argv[i]);
  }
  if (system(buffer)) {
    printf("keylib: error running\n");
    exit(1);
  }
  CONFIG_delete();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1050,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11f7 <main+0x57>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    $0x0,%al
call   1030 <CONFIG_new@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0x1030(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe86(%rip),%rsi
call   10a0 <CONFIG_make_filename@plt>
mov    -0x1030(%rbp),%rdi
mov    %rax,%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x80(%rbp),%rdi
call   1070 <CONFIG_read_file@plt>
cmp    $0x0,%eax
jne    125b <main+0xbb>
lea    -0x80(%rbp),%rsi
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xe66(%rip),%rdi
call   1090 <CONFIG_key_get@plt>
cmp    $0x0,%rax
jne    1290 <main+0xf0>
lea    0xe5d(%rip),%rdi
lea    0xe49(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xe61(%rip),%rdi
call   1090 <CONFIG_key_get@plt>
cmp    $0x0,%rax
jne    12c5 <main+0x125>
lea    0xe28(%rip),%rdi
lea    0xe44(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xe3c(%rip),%rdi
call   1090 <CONFIG_key_get@plt>
cmp    $0x0,%rax
jne    12f3 <main+0x153>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1038(%rbp)
lea    0xe00(%rip),%rdi
call   1090 <CONFIG_key_get@plt>
mov    -0x1038(%rbp),%rdi
mov    %rax,%rdx
lea    0xe13(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x1020(%rbp),%rdi
call   1040 <strlen@plt>
sub    $0x1,%eax
cltq
movsbl -0x1020(%rbp,%rax,1),%eax
ff
cmp    $0x3a,%eax
je     137b <main+0x1db>
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1040(%rbp)
lea    -0x1020(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x1040(%rbp),%rdi
cltq
add    %rax,%rdi
lea    0xdc2(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
movl   $0x1,-0x1024(%rbp)
mov    -0x1024(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13eb <main+0x24b>
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1048(%rbp)
lea    -0x1020(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x1048(%rbp),%rdi
cltq
add    %rax,%rdi
mov    -0x10(%rbp),%rax
movslq -0x1024(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd64(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
mov    -0x1024(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1024(%rbp)
jmp    1385 <main+0x1e5>
lea    -0x1020(%rbp),%rdi
call   1050 <system@plt>
cmp    $0x0,%rax
je     1419 <main+0x279>
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    $0x0,%al
call   1080 <CONFIG_delete@plt>
xor    %eax,%eax
add    $0x1050,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1010,%rsp
cmp    $0x1,%edi
jle    1305 <main+0x145>
mov    %rsi,%r14
mov    %edi,%ebp
xor    %eax,%eax
call   1050 <CONFIG_new@plt>
mov    (%r14),%rdi
lea    0xe12(%rip),%rsi
call   10c0 <CONFIG_make_filename@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   10d0 <sprintf@plt>
mov    %rbx,%rdi
call   1090 <CONFIG_read_file@plt>
test   %eax,%eax
je     1326 <main+0x166>
lea    0xe11(%rip),%rdi
call   10b0 <CONFIG_key_get@plt>
test   %rax,%rax
je     1332 <main+0x172>
lea    0xe2c(%rip),%rdi
call   10b0 <CONFIG_key_get@plt>
test   %rax,%rax
je     1342 <main+0x182>
lea    0xe27(%rip),%rdi
call   10b0 <CONFIG_key_get@plt>
test   %rax,%rax
je     1361 <main+0x1a1>
lea    0xe12(%rip),%rdi
call   10b0 <CONFIG_key_get@plt>
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
cltq
cmpb   $0x3a,-0x1(%rax,%rbx,1)
je     1292 <main+0xd2>
lea    0x70(%rsp),%rdi
call   1060 <strlen@plt>
cltq
movw   $0x20,0x70(%rsp,%rax,1)
mov    %ebp,%ebp
mov    $0x1,%ebx
lea    0x70(%rsp),%r15
lea    0xdef(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
call   1060 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x70,%rdi
mov    (%r14,%rbx,8),%rdx
mov    %r12,%rsi
xor    %eax,%eax
call   10d0 <sprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    12b0 <main+0xf0>
lea    0x70(%rsp),%rdi
call   1070 <system@plt>
test   %rax,%rax
jne    1379 <main+0x1b9>
xor    %eax,%eax
call   10a0 <CONFIG_delete@plt>
xor    %eax,%eax
add    $0x1010,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xda2(%rip),%rdi
call   1040 <puts@plt>
lea    0xdc2(%rip),%rdi
call   1040 <puts@plt>
lea    0xdfd(%rip),%rdi
jmp    1380 <main+0x1c0>
lea    0xce0(%rip),%rdi
mov    %rsp,%rsi
jmp    1350 <main+0x190>
lea    0xcff(%rip),%rdi
lea    0xceb(%rip),%rsi
jmp    1350 <main+0x190>
lea    0xcef(%rip),%rdi
lea    0xd0b(%rip),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xd07(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xd18(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"Keystone Application Framework Library tool\0A\00"
@.str.1 = [72 x i8] c"Copyright (C) Jacob Lister, Abbey Systems 2003. All rights reserved.\0A\0A\00"
@.str.2 = [40 x i8] c"usage: keylib <library name> <options>\0A\00"
@.str.3 = [13 x i8] c"keytools.cfg\00"
@.str.4 = [30 x i8] c"cannot open config file '%s'\0A\00"
@.str.5 = [13 x i8] c"KEYSTONE_DIR\00"
@.str.6 = [35 x i8] c"'%s' environment variable not set\0A\00"
@.str.7 = [16 x i8] c"KEYSTONE_TARGET\00"
@.str.8 = [4 x i8] c"LIB\00"
@.str.9 = [37 x i8] c"LIB (Library tool) not set in config\00"
@.str.10 = [3 x i8] c"%s\00"
@.str.11 = [2 x i8] c" \00"
@.str.12 = [4 x i8] c"%s \00"
@.str.13 = [23 x i8] c"keylib: error running\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x i8]
%7 = alloca [4000 x i8]
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @exit(i32 1)
unreachable
16: ; preds = %2
%17 = call i32 (...) @CONFIG_new()
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i8* @CONFIG_make_filename(i8* %21, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* %22)
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%25 = call i32 @CONFIG_read_file(i8* %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %31, label %27
27: ; preds = %16
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* %28)
%30 = call i32 @exit(i32 1)
unreachable
31: ; preds = %16
%32 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp ne i8* %32, null
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%36 = call i32 @exit(i32 1)
unreachable
37: ; preds = %31
%38 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%39 = icmp ne i8* %38, null
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %37
%44 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp ne i8* %44, null
br i1 %45, label %49, label %46
46: ; preds = %43
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %43
%50 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%51 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%52 = call i32 (i8*, i8*, ...) @sprintf(i8* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* %51)
%53 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%54 = call i32 @strlen(i8* %53)
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 58
br i1 %60, label %61, label %68
61: ; preds = %49
%62 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%63 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%64 = call i32 @strlen(i8* %63)
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %62, i64 %65
%67 = call i32 (i8*, i8*, ...) @sprintf(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %68
68: ; preds = %61, %49
store i32 1, i32* %8
br label %69
69: ; preds = %85, %68
%70 = load i32, i32* %8
%71 = load i32, i32* %4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %88
73: ; preds = %69
%74 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%75 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%76 = call i32 @strlen(i8* %75)
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %74, i64 %77
%79 = load i8**, i8*** %5
%80 = load i32, i32* %8
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8*, i8** %79, i64 %81
%83 = load i8*, i8** %82
%84 = call i32 (i8*, i8*, ...) @sprintf(i8* %78, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %83)
br label %85
85: ; preds = %73
%86 = load i32, i32* %8
%87 = add nsw i32 %86, 1
store i32 %87, i32* %8
br label %69
88: ; preds = %69
%89 = getelementptr inbounds [4000 x i8], [4000 x i8]* %7, i64 0, i64 0
%90 = call i64 @system(i8* %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %88
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
%94 = call i32 @exit(i32 1)
unreachable
95: ; preds = %88
%96 = call i32 (...) @CONFIG_delete()
ret i32 0
}

LLVM IR (-O2):
@.str.3 = [13 x i8] c"keytools.cfg\00"
@.str.4 = [30 x i8] c"cannot open config file '%s'\0A\00"
@.str.5 = [13 x i8] c"KEYSTONE_DIR\00"
@.str.6 = [35 x i8] c"'%s' environment variable not set\0A\00"
@.str.7 = [16 x i8] c"KEYSTONE_TARGET\00"
@.str.8 = [4 x i8] c"LIB\00"
@.str.9 = [37 x i8] c"LIB (Library tool) not set in config\00"
@.str.12 = [4 x i8] c"%s \00"
@str = [22 x i8] c"keylib: error running\00"
@str.14 = [44 x i8] c"Keystone Application Framework Library tool\00"
@str.15 = [71 x i8] c"Copyright (C) Jacob Lister, Abbey Systems 2003. All rights reserved.\0A\00"
@str.16 = [39 x i8] c"usage: keylib <library name> <options>\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = alloca [4000 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [4000 x i8], [4000 x i8]* %4, i64 0, i64 0
%7 = icmp slt i32 %0, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.15, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.16, i64 0, i64 0))
%12 = tail call i32 @exit(i32 1)
unreachable
13: ; preds = %2
%14 = tail call i32 (...) @CONFIG_new()
%15 = load i8*, i8** %1
%16 = tail call i8* @CONFIG_make_filename(i8* %15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) %16)
%18 = call i32 @CONFIG_read_file(i8* %5)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%22 = call i32 @exit(i32 1)
unreachable
23: ; preds = %13
%24 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i8* %24, null
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%28 = call i32 @exit(i32 1)
unreachable
29: ; preds = %23
%30 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%31 = icmp eq i8* %30, null
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 @exit(i32 1)
unreachable
35: ; preds = %29
%36 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%40 = call i32 @exit(i32 1)
unreachable
41: ; preds = %35
%42 = call i8* @CONFIG_key_get(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%43 = call i8* @strcpy(i8* %6, i8* dereferenceable(1) %42)
%44 = call i32 @strlen(i8* %6)
%45 = add nsw i32 %44, -1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [4000 x i8], [4000 x i8]* %4, i64 0, i64 %46
%48 = load i8, i8* %47
%49 = icmp eq i8 %48, 58
br i1 %49, label %55, label %50
50: ; preds = %41
%51 = call i32 @strlen(i8* %6)
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [4000 x i8], [4000 x i8]* %4, i64 0, i64 %52
%54 = bitcast i8* %53 to i16*
store i16 32, i16* %54
br label %55
55: ; preds = %41, %50
%56 = zext i32 %0 to i64
br label %57
57: ; preds = %55, %57
%58 = phi i64 [ 1, %55 ], [ %65, %57 ]
%59 = call i32 @strlen(i8* %6)
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [4000 x i8], [4000 x i8]* %4, i64 0, i64 %60
%62 = getelementptr inbounds i8*, i8** %1, i64 %58
%63 = load i8*, i8** %62
%64 = call i32 (i8*, i8*, ...) @sprintf(i8* %61, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %63)
%65 = add nuw nsw i64 %58, 1
%66 = icmp eq i64 %65, %56
br i1 %66, label %67, label %57
67: ; preds = %57
%68 = call i64 @system(i8* %6)
%69 = icmp eq i64 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %67
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%72 = call i32 @exit(i32 1)
unreachable
73: ; preds = %67
%74 = call i32 (...) @CONFIG_delete()
ret i32 0
}