#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*/ RTLD_LAZY;
int /*<<< orphan*/ RTLD_NOW;
char *dlerror();
void *dlopen(char *, int /*<<< orphan*/);
void *dlsym(void *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ print_usage(char **);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  int result = 1;
  char **argv_iter = argv + 1;
  char **argv_end = argv + argc;
  int flag_now = 0;
  while (argv_iter < argv_end) {
    if (strcmp(*argv_iter, "-now") == 0 || strcmp(*argv_iter, "--now") == 0) {
      flag_now = 1;
    } else if (strcmp(*argv_iter, "-lazy") == 0 ||
               strcmp(*argv_iter, "--lazy") == 0) {
      flag_now = 0;
    } else if (strcmp(*argv_iter, "-") == 0 || strcmp(*argv_iter, "--") == 0) {
      argv_iter += 1;
      break;
    } else {
      break;
    }
    argv_iter += 1;
  }
  if (argv_iter >= argv_end) {
    fprintf(stderr, "Error: No shared object file provided\n");
    print_usage(argv);
    result = 1;
  } else {
    char *sharedObjectName = *argv_iter;
    argv_iter += 1;
    void *handle = dlopen(sharedObjectName, flag_now ? RTLD_NOW : RTLD_LAZY);
    if (handle) {
      fprintf(stderr, "Could open %s\n", sharedObjectName);
      result = 0;
      for (; argv_iter < argv_end; ++argv_iter) {
        void *sym = dlsym(handle, *argv_iter);
        fprintf(stdout, "%-16s %p\n", *argv_iter, sym);
      }
    } else {
      fprintf(stderr, "Could not open \"%s\". dlerror() -> \"%s\"\n",
              sharedObjectName, dlerror());
    }
  }
  return (result);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    12a3 <main+0x143>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xe42(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11eb <main+0x8b>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xe24(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11f7 <main+0x97>
movl   $0x1,-0x2c(%rbp)
jmp    1292 <main+0x132>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xe02(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1231 <main+0xd1>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xde4(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    123d <main+0xdd>
movl   $0x0,-0x2c(%rbp)
jmp    128d <main+0x12d>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xdc3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1277 <main+0x117>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
lea    0xda5(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1288 <main+0x128>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    12a3 <main+0x143>
jmp    12a3 <main+0x143>
jmp    1292 <main+0x132>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    11a3 <main+0x43>
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jb     12dd <main+0x17d>
mov    0x2d20(%rip),%rax
mov    (%rax),%edi
lea    0xd4f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1080 <print_usage@plt>
movl   $0x1,-0x14(%rbp)
jmp    13f2 <main+0x292>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x50(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1317 <main+0x1b7>
mov    0x2cdb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
jmp    1323 <main+0x1c3>
mov    0x2caa(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x54(%rbp),%esi
call   1050 <dlopen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     13ba <main+0x25a>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%rdx
lea    0xce5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    13b5 <main+0x255>
mov    -0x40(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   1070 <dlsym@plt>
mov    %rax,-0x48(%rbp)
mov    0x2c47(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
mov    -0x48(%rbp),%rcx
lea    0xca9(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    1360 <main+0x200>
jmp    13ed <main+0x28d>
mov    0x2c17(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    $0x0,%al
call   1030 <dlerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xc6a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    13f2 <main+0x292>
mov    -0x14(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movslq %edi,%rax
lea    (%rsi,%rax,8),%r13
lea    0x8(%rsi),%r12
xor    %ebp,%ebp
cmp    $0x2,%eax
mov    %rsi,(%rsp)
jl     1238 <main+0xd8>
xor    %r14d,%r14d
lea    0xe72(%rip),%rbx
lea    0xe6a(%rip),%r15
jmp    11b0 <main+0x50>
nopl   0x0(%rax,%rax,1)
add    $0x8,%r12
mov    %ebp,%r14d
cmp    %r13,%r12
jae    1238 <main+0xd8>
mov    (%r12),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     11a0 <main+0x40>
mov    (%r12),%rdi
mov    %r15,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11a0 <main+0x40>
mov    (%r12),%rdi
lea    0xe25(%rip),%rsi
call   1040 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     11a0 <main+0x40>
mov    (%r12),%rdi
lea    0xe0d(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     11a0 <main+0x40>
mov    (%r12),%rdi
lea    0xe00(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12fb <main+0x19b>
mov    (%r12),%rdi
lea    0xde6(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     12fb <main+0x19b>
mov    %r14d,%ebp
cmp    %r13,%r12
jae    130b <main+0x1ab>
mov    (%r12),%r14
test   %ebp,%ebp
jne    1252 <main+0xf2>
mov    0x2d78(%rip),%rax
jmp    1259 <main+0xf9>
mov    0x2d8f(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1050 <dlopen@plt>
mov    %rax,%rbx
mov    0x2d6b(%rip),%rax
mov    (%rax),%r15d
test   %rbx,%rbx
je     12db <main+0x17b>
lea    0xdbb(%rip),%rsi
xor    %ebp,%ebp
mov    %r15d,%edi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x8,%r12
cmp    %r13,%r12
jae    1330 <main+0x1d0>
mov    0x2d31(%rip),%r15
lea    0xda0(%rip),%r14
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    (%r12),%rsi
mov    %rbx,%rdi
call   1070 <dlsym@plt>
mov    (%r15),%edi
mov    (%r12),%rdx
mov    %r14,%rsi
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x8,%r12
cmp    %r13,%r12
jb     12b0 <main+0x150>
jmp    1330 <main+0x1d0>
xor    %eax,%eax
call   1030 <dlerror@plt>
lea    0xd67(%rip),%rsi
mov    %r15d,%edi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    132b <main+0x1cb>
add    $0x8,%r12
mov    %r14d,%ebp
cmp    %r13,%r12
jb     1241 <main+0xe1>
mov    0x2cc6(%rip),%rax
mov    (%rax),%edi
lea    0xcf5(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rsp),%rdi
call   1080 <print_usage@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"-now\00"
@.str.1 = [6 x i8] c"--now\00"
@.str.2 = [6 x i8] c"-lazy\00"
@.str.3 = [7 x i8] c"--lazy\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [3 x i8] c"--\00"
@stderr = global i32 0
@.str.6 = [39 x i8] c"Error: No shared object file provided\0A\00"
@RTLD_NOW = global i32 0
@RTLD_LAZY = global i32 0
@.str.7 = [15 x i8] c"Could open %s\0A\00"
@stdout = global i32 0
@.str.8 = [10 x i8] c"%-16s %p\0A\00"
@.str.9 = [40 x i8] c"Could not open \22%s\22. dlerror() -> \22%s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
store i8** %14, i8*** %7
%15 = load i8**, i8*** %5
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %15, i64 %17
store i8** %18, i8*** %8
store i32 0, i32* %9
br label %19
19: ; preds = %60, %2
%20 = load i8**, i8*** %7
%21 = load i8**, i8*** %8
%22 = icmp ult i8** %20, %21
br i1 %22, label %23, label %63
23: ; preds = %19
%24 = load i8**, i8*** %7
%25 = load i8*, i8** %24
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %23
%29 = load i8**, i8*** %7
%30 = load i8*, i8** %29
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28, %23
store i32 1, i32* %9
br label %60
34: ; preds = %28
%35 = load i8**, i8*** %7
%36 = load i8*, i8** %35
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %44, label %39
39: ; preds = %34
%40 = load i8**, i8*** %7
%41 = load i8*, i8** %40
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %39, %34
store i32 0, i32* %9
br label %59
45: ; preds = %39
%46 = load i8**, i8*** %7
%47 = load i8*, i8** %46
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %55, label %50
50: ; preds = %45
%51 = load i8**, i8*** %7
%52 = load i8*, i8** %51
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %50, %45
%56 = load i8**, i8*** %7
%57 = getelementptr inbounds i8*, i8** %56, i64 1
store i8** %57, i8*** %7
br label %63
58: ; preds = %50
br label %63
59: ; preds = %44
br label %60
60: ; preds = %59, %33
%61 = load i8**, i8*** %7
%62 = getelementptr inbounds i8*, i8** %61, i64 1
store i8** %62, i8*** %7
br label %19
63: ; preds = %58, %55, %19
%64 = load i8**, i8*** %7
%65 = load i8**, i8*** %8
%66 = icmp uge i8** %64, %65
br i1 %66, label %67, label %72
67: ; preds = %63
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%70 = load i8**, i8*** %5
%71 = call i32 @print_usage(i8** %70)
store i32 1, i32* %6
br label %117
72: ; preds = %63
%73 = load i8**, i8*** %7
%74 = load i8*, i8** %73
store i8* %74, i8** %10
%75 = load i8**, i8*** %7
%76 = getelementptr inbounds i8*, i8** %75, i64 1
store i8** %76, i8*** %7
%77 = load i8*, i8** %10
%78 = load i32, i32* %9
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %72
%81 = load i32, i32* @RTLD_NOW
br label %84
82: ; preds = %72
%83 = load i32, i32* @RTLD_LAZY
br label %84
84: ; preds = %82, %80
%85 = phi i32 [ %81, %80 ], [ %83, %82 ]
%86 = call i8* @dlopen(i8* %77, i32 %85)
store i8* %86, i8** %11
%87 = load i8*, i8** %11
%88 = icmp ne i8* %87, null
br i1 %88, label %89, label %111
89: ; preds = %84
%90 = load i32, i32* @stderr
%91 = load i8*, i8** %10
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %91)
store i32 0, i32* %6
br label %93
93: ; preds = %107, %89
%94 = load i8**, i8*** %7
%95 = load i8**, i8*** %8
%96 = icmp ult i8** %94, %95
br i1 %96, label %97, label %110
97: ; preds = %93
%98 = load i8*, i8** %11
%99 = load i8**, i8*** %7
%100 = load i8*, i8** %99
%101 = call i8* @dlsym(i8* %98, i8* %100)
store i8* %101, i8** %12
%102 = load i32, i32* @stdout
%103 = load i8**, i8*** %7
%104 = load i8*, i8** %103
%105 = load i8*, i8** %12
%106 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %104, i8* %105)
br label %107
107: ; preds = %97
%108 = load i8**, i8*** %7
%109 = getelementptr inbounds i8*, i8** %108, i32 1
store i8** %109, i8*** %7
br label %93
110: ; preds = %93
br label %116
111: ; preds = %84
%112 = load i32, i32* @stderr
%113 = load i8*, i8** %10
%114 = call i8* (...) @dlerror()
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* %113, i8* %114)
br label %116
116: ; preds = %111, %110
br label %117
117: ; preds = %116, %67
%118 = load i32, i32* %6
ret i32 %118
}

LLVM IR (-O2):
@.str = [5 x i8] c"-now\00"
@.str.1 = [6 x i8] c"--now\00"
@.str.2 = [6 x i8] c"-lazy\00"
@.str.3 = [7 x i8] c"--lazy\00"
@.str.4 = [2 x i8] c"-\00"
@.str.5 = [3 x i8] c"--\00"
@stderr = global i32 0
@.str.6 = [39 x i8] c"Error: No shared object file provided\0A\00"
@RTLD_NOW = global i32 0
@RTLD_LAZY = global i32 0
@.str.7 = [15 x i8] c"Could open %s\0A\00"
@stdout = global i32 0
@.str.8 = [10 x i8] c"%-16s %p\0A\00"
@.str.9 = [40 x i8] c"Could not open \22%s\22. dlerror() -> \22%s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = sext i32 %0 to i64
%4 = getelementptr inbounds i8*, i8** %1, i64 %3
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = icmp sgt i32 %0, 1
br i1 %6, label %7, label %40
7: ; preds = %2, %36
%8 = phi i8** [ %38, %36 ], [ %5, %2 ]
%9 = phi i8** [ %8, %36 ], [ %1, %2 ]
%10 = phi i32 [ %37, %36 ], [ 0, %2 ]
%11 = load i8*, i8** %8
%12 = tail call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %36, label %14
14: ; preds = %7
%15 = load i8*, i8** %8
%16 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %36, label %18
18: ; preds = %14
%19 = load i8*, i8** %8
%20 = tail call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %36, label %22
22: ; preds = %18
%23 = load i8*, i8** %8
%24 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %36, label %26
26: ; preds = %22
%27 = load i8*, i8** %8
%28 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = load i8*, i8** %8
%32 = tail call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %40
34: ; preds = %30, %26
%35 = getelementptr inbounds i8*, i8** %9, i64 2
br label %40
36: ; preds = %18, %22, %7, %14
%37 = phi i32 [ 1, %14 ], [ 1, %7 ], [ 0, %22 ], [ 0, %18 ]
%38 = getelementptr inbounds i8*, i8** %8, i64 1
%39 = icmp ult i8** %38, %4
br i1 %39, label %7, label %40
40: ; preds = %36, %2, %30, %34
%41 = phi i32 [ %10, %34 ], [ %10, %30 ], [ 0, %2 ], [ %37, %36 ]
%42 = phi i8** [ %35, %34 ], [ %8, %30 ], [ %5, %2 ], [ %38, %36 ]
%43 = icmp ult i8** %42, %4
br i1 %43, label %48, label %44
44: ; preds = %40
%45 = load i32, i32* @stderr
%46 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%47 = tail call i32 @print_usage(i8** %1)
br label %73
48: ; preds = %40
%49 = load i8*, i8** %42
%50 = icmp eq i32 %41, 0
%51 = load i32, i32* @RTLD_NOW
%52 = load i32, i32* @RTLD_LAZY
%53 = select i1 %50, i32 %52, i32 %51
%54 = tail call i8* @dlopen(i8* %49, i32 %53)
%55 = icmp eq i8* %54, null
%56 = load i32, i32* @stderr
br i1 %55, label %70, label %57
57: ; preds = %48
%58 = tail call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %49)
%59 = getelementptr inbounds i8*, i8** %42, i64 1
%60 = icmp ult i8** %59, %4
br i1 %60, label %61, label %73
61: ; preds = %57, %61
%62 = phi i8** [ %68, %61 ], [ %59, %57 ]
%63 = load i8*, i8** %62
%64 = tail call i8* @dlsym(i8* %54, i8* %63)
%65 = load i32, i32* @stdout
%66 = load i8*, i8** %62
%67 = tail call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %66, i8* %64)
%68 = getelementptr inbounds i8*, i8** %62, i64 1
%69 = icmp ult i8** %68, %4
br i1 %69, label %61, label %73
70: ; preds = %48
%71 = tail call i8* (...) @dlerror()
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* %49, i8* %71)
br label %73
73: ; preds = %61, %57, %70, %44
%74 = phi i32 [ 1, %44 ], [ 1, %70 ], [ 0, %57 ], [ 0, %61 ]
ret i32 %74
}