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

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ convert(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
int /*<<< orphan*/ help();
scalar_t__ posix_memalign(void *, int, int);
int /*<<< orphan*/ printf(char *, char *, int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sse2_convert(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                int);
int /*<<< orphan*/ sse4_convert(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                int);
scalar_t__ strcasecmp(char *, char *);
int /*<<< orphan*/ x86_convert(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
int main(int argc, char *argv[]) {
  int n;
  uint32_t *input;
  uint32_t *output;
  if (argc == 1) {
    help();
    return 1;
  }
  n = 1024 * 768;
  input = output = NULL;
  if (posix_memalign((void *)&input, 16, 4 * n)) {
    puts("can't allocate mem(1)");
    return 1;
  }
  if (posix_memalign((void *)&output, 16, 4 * n)) {
    puts("can't allocate mem(2)");
    return 1;
  }
  int i;
  int repeat_count = 0;
  if (argc > 2)
    repeat_count = atoi(argv[2]);
  if (repeat_count <= 0)
    repeat_count = 100;
  if (strcasecmp(argv[1], "naive") == 0) {
    printf("function %s, repeat count %d\n", argv[1], repeat_count);
    for (i = 0; i < repeat_count; i++)
      convert(input, output, n);
  } else if (strcasecmp(argv[1], "x86") == 0) {
    printf("function %s, repeat count %d\n", argv[1], repeat_count);
    for (i = 0; i < repeat_count; i++)
      x86_convert(input, output, n);
  } else if (strcasecmp(argv[1], "SSE2") == 0) {
    printf("function %s, repeat count %d\n", argv[1], repeat_count);
    for (i = 0; i < repeat_count; i++)
      sse2_convert(input, output, n);
  } else if (strcasecmp(argv[1], "SSE4") == 0) {
    printf("function %s, repeat count %d\n", argv[1], repeat_count);
    for (i = 0; i < repeat_count; i++)
      sse4_convert(input, output, n);
  } else
    help();
  free(input);
  free(output);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11e3 <main+0x33>
mov    $0x0,%al
call   10b0 <help@plt>
movl   $0x1,-0x4(%rbp)
jmp    1473 <main+0x2c3>
movl   $0xc0000,-0x14(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x20(%rbp)
lea    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%edx
shl    $0x2,%edx
mov    $0x10,%esi
call   10d0 <posix_memalign@plt>
cmp    $0x0,%rax
je     1230 <main+0x80>
lea    0xde1(%rip),%rdi
call   1060 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1473 <main+0x2c3>
lea    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%edx
shl    $0x2,%edx
mov    $0x10,%esi
call   10d0 <posix_memalign@plt>
cmp    $0x0,%rax
je     1266 <main+0xb6>
lea    0xdc1(%rip),%rdi
call   1060 <puts@plt>
movl   $0x1,-0x4(%rbp)
jmp    1473 <main+0x2c3>
movl   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    1287 <main+0xd7>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jg     1298 <main+0xe8>
movl   $0x64,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd85(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1303 <main+0x153>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x30(%rbp),%edx
lea    0xd6a(%rip),%rdi
call   1090 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    12fe <main+0x14e>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <convert@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12d4 <main+0x124>
jmp    145a <main+0x2aa>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd3e(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    136e <main+0x1be>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x30(%rbp),%edx
lea    0xcff(%rip),%rdi
call   1090 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1369 <main+0x1b9>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   10a0 <x86_convert@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    133f <main+0x18f>
jmp    1455 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcd7(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    13d9 <main+0x229>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x30(%rbp),%edx
lea    0xc94(%rip),%rdi
call   1090 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    13d4 <main+0x224>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1080 <sse2_convert@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13aa <main+0x1fa>
jmp    1450 <main+0x2a0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc71(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1444 <main+0x294>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x30(%rbp),%edx
lea    0xc29(%rip),%rdi
call   1090 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    143f <main+0x28f>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1070 <sse4_convert@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1415 <main+0x265>
jmp    144b <main+0x29b>
mov    $0x0,%al
call   10b0 <help@plt>
jmp    1450 <main+0x2a0>
jmp    1455 <main+0x2a5>
jmp    145a <main+0x2aa>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
cmp    $0x1,%edi
jne    11c5 <main+0x15>
xor    %eax,%eax
call   10b0 <help@plt>
jmp    1223 <main+0x73>
mov    %rsi,%r14
mov    %edi,%ebx
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
lea    0x10(%rsp),%rdi
mov    $0x10,%esi
mov    $0x300000,%edx
call   10d0 <posix_memalign@plt>
test   %rax,%rax
je     11fe <main+0x4e>
lea    0xe04(%rip),%rdi
jmp    121e <main+0x6e>
lea    0x8(%rsp),%rdi
mov    $0x10,%esi
mov    $0x300000,%edx
call   10d0 <posix_memalign@plt>
test   %rax,%rax
je     1230 <main+0x80>
lea    0xdf8(%rip),%rdi
call   1060 <puts@plt>
mov    $0x1,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret
cmp    $0x3,%ebx
jl     1244 <main+0x94>
mov    0x10(%r14),%rdi
call   10c0 <atoi@plt>
mov    %eax,%ebx
test   %eax,%eax
jg     1249 <main+0x99>
mov    $0x64,%ebx
mov    0x8(%r14),%r14
lea    0xdd8(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     12b1 <main+0x101>
lea    0xde8(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     12ee <main+0x13e>
lea    0xdd8(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     131b <main+0x16b>
lea    0xdc5(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     134b <main+0x19b>
xor    %eax,%eax
call   10b0 <help@plt>
jmp    1379 <main+0x1c9>
lea    0xd7a(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1090 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    $0xc0000,%edx
call   1050 <convert@plt>
add    $0xffffffff,%ebx
jne    12d0 <main+0x120>
jmp    1379 <main+0x1c9>
lea    0xd3d(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1090 <printf@plt>
nop
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    $0xc0000,%edx
call   10a0 <x86_convert@plt>
add    $0xffffffff,%ebx
jne    1300 <main+0x150>
jmp    1379 <main+0x1c9>
lea    0xd10(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1090 <printf@plt>
nopl   0x0(%rax)
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    $0xc0000,%edx
call   1080 <sse2_convert@plt>
add    $0xffffffff,%ebx
jne    1330 <main+0x180>
jmp    1379 <main+0x1c9>
lea    0xce0(%rip),%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1090 <printf@plt>
nopl   0x0(%rax)
mov    0x10(%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    $0xc0000,%edx
call   1070 <sse4_convert@plt>
add    $0xffffffff,%ebx
jne    1360 <main+0x1b0>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
jmp    1228 <main+0x78>

LLVM IR (-O0):
@.str = [22 x i8] c"can't allocate mem(1)\00"
@.str.1 = [22 x i8] c"can't allocate mem(2)\00"
@.str.2 = [6 x i8] c"naive\00"
@.str.3 = [30 x i8] c"function %s, repeat count %d\0A\00"
@.str.4 = [4 x i8] c"x86\00"
@.str.5 = [5 x i8] c"SSE2\00"
@.str.6 = [5 x i8] c"SSE4\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (...) @help()
store i32 1, i32* %3
br label %153
15: ; preds = %2
store i32 786432, i32* %6
store i32* null, i32** %8
store i32* null, i32** %7
%16 = bitcast i32** %7 to i8*
%17 = load i32, i32* %6
%18 = mul nsw i32 4, %17
%19 = call i64 @posix_memalign(i8* %16, i32 16, i32 %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %153
23: ; preds = %15
%24 = bitcast i32** %8 to i8*
%25 = load i32, i32* %6
%26 = mul nsw i32 4, %25
%27 = call i64 @posix_memalign(i8* %24, i32 16, i32 %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %153
31: ; preds = %23
store i32 0, i32* %10
%32 = load i32, i32* %4
%33 = icmp sgt i32 %32, 2
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 2
%37 = load i8*, i8** %36
%38 = call i32 @atoi(i8* %37)
store i32 %38, i32* %10
br label %39
39: ; preds = %34, %31
%40 = load i32, i32* %10
%41 = icmp sle i32 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %39
store i32 100, i32* %10
br label %43
43: ; preds = %42, %39
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 1
%46 = load i8*, i8** %45
%47 = call i64 @strcasecmp(i8* %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %68
49: ; preds = %43
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 1
%52 = load i8*, i8** %51
%53 = load i32, i32* %10
%54 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %52, i32 %53)
store i32 0, i32* %9
br label %55
55: ; preds = %64, %49
%56 = load i32, i32* %9
%57 = load i32, i32* %10
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %67
59: ; preds = %55
%60 = load i32*, i32** %7
%61 = load i32*, i32** %8
%62 = load i32, i32* %6
%63 = call i32 @convert(i32* %60, i32* %61, i32 %62)
br label %64
64: ; preds = %59
%65 = load i32, i32* %9
%66 = add nsw i32 %65, 1
store i32 %66, i32* %9
br label %55
67: ; preds = %55
br label %148
68: ; preds = %43
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 1
%71 = load i8*, i8** %70
%72 = call i64 @strcasecmp(i8* %71, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %93
74: ; preds = %68
%75 = load i8**, i8*** %5
%76 = getelementptr inbounds i8*, i8** %75, i64 1
%77 = load i8*, i8** %76
%78 = load i32, i32* %10
%79 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %77, i32 %78)
store i32 0, i32* %9
br label %80
80: ; preds = %89, %74
%81 = load i32, i32* %9
%82 = load i32, i32* %10
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %92
84: ; preds = %80
%85 = load i32*, i32** %7
%86 = load i32*, i32** %8
%87 = load i32, i32* %6
%88 = call i32 @x86_convert(i32* %85, i32* %86, i32 %87)
br label %89
89: ; preds = %84
%90 = load i32, i32* %9
%91 = add nsw i32 %90, 1
store i32 %91, i32* %9
br label %80
92: ; preds = %80
br label %147
93: ; preds = %68
%94 = load i8**, i8*** %5
%95 = getelementptr inbounds i8*, i8** %94, i64 1
%96 = load i8*, i8** %95
%97 = call i64 @strcasecmp(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %118
99: ; preds = %93
%100 = load i8**, i8*** %5
%101 = getelementptr inbounds i8*, i8** %100, i64 1
%102 = load i8*, i8** %101
%103 = load i32, i32* %10
%104 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %102, i32 %103)
store i32 0, i32* %9
br label %105
105: ; preds = %114, %99
%106 = load i32, i32* %9
%107 = load i32, i32* %10
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %117
109: ; preds = %105
%110 = load i32*, i32** %7
%111 = load i32*, i32** %8
%112 = load i32, i32* %6
%113 = call i32 @sse2_convert(i32* %110, i32* %111, i32 %112)
br label %114
114: ; preds = %109
%115 = load i32, i32* %9
%116 = add nsw i32 %115, 1
store i32 %116, i32* %9
br label %105
117: ; preds = %105
br label %146
118: ; preds = %93
%119 = load i8**, i8*** %5
%120 = getelementptr inbounds i8*, i8** %119, i64 1
%121 = load i8*, i8** %120
%122 = call i64 @strcasecmp(i8* %121, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %143
124: ; preds = %118
%125 = load i8**, i8*** %5
%126 = getelementptr inbounds i8*, i8** %125, i64 1
%127 = load i8*, i8** %126
%128 = load i32, i32* %10
%129 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %127, i32 %128)
store i32 0, i32* %9
br label %130
130: ; preds = %139, %124
%131 = load i32, i32* %9
%132 = load i32, i32* %10
%133 = icmp slt i32 %131, %132
br i1 %133, label %134, label %142
134: ; preds = %130
%135 = load i32*, i32** %7
%136 = load i32*, i32** %8
%137 = load i32, i32* %6
%138 = call i32 @sse4_convert(i32* %135, i32* %136, i32 %137)
br label %139
139: ; preds = %134
%140 = load i32, i32* %9
%141 = add nsw i32 %140, 1
store i32 %141, i32* %9
br label %130
142: ; preds = %130
br label %145
143: ; preds = %118
%144 = call i32 (...) @help()
br label %145
145: ; preds = %143, %142
br label %146
146: ; preds = %145, %117
br label %147
147: ; preds = %146, %92
br label %148
148: ; preds = %147, %67
%149 = load i32*, i32** %7
%150 = call i32 @free(i32* %149)
%151 = load i32*, i32** %8
%152 = call i32 @free(i32* %151)
store i32 0, i32* %3
br label %153
153: ; preds = %148, %29, %21, %13
%154 = load i32, i32* %3
ret i32 %154
}

LLVM IR (-O2):
@.str = [22 x i8] c"can't allocate mem(1)\00"
@.str.1 = [22 x i8] c"can't allocate mem(2)\00"
@.str.2 = [6 x i8] c"naive\00"
@.str.3 = [30 x i8] c"function %s, repeat count %d\0A\00"
@.str.4 = [4 x i8] c"x86\00"
@.str.5 = [5 x i8] c"SSE2\00"
@.str.6 = [5 x i8] c"SSE4\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = bitcast i32** %3 to i8*
%6 = bitcast i32** %4 to i8*
%7 = icmp eq i32 %0, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 (...) @help()
br label %86
10: ; preds = %2
store i32* null, i32** %4
store i32* null, i32** %3
%11 = call i64 @posix_memalign(i8* %5, i32 16, i32 3145728)
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
br label %86
15: ; preds = %10
%16 = call i64 @posix_memalign(i8* %6, i32 16, i32 3145728)
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %86
20: ; preds = %15
%21 = icmp sgt i32 %0, 2
br i1 %21, label %22, label %27
22: ; preds = %20
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = call i32 @atoi(i8* %24)
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %28
27: ; preds = %20, %22
br label %28
28: ; preds = %22, %27
%29 = phi i32 [ 100, %27 ], [ %25, %22 ]
%30 = getelementptr inbounds i8*, i8** %1, i64 1
%31 = load i8*, i8** %30
%32 = call i64 @strcasecmp(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %43
34: ; preds = %28
%35 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %31, i32 %29)
br label %36
36: ; preds = %34, %36
%37 = phi i32 [ %41, %36 ], [ 0, %34 ]
%38 = load i32*, i32** %3
%39 = load i32*, i32** %4
%40 = call i32 @convert(i32* %38, i32* %39, i32 786432)
%41 = add nuw nsw i32 %37, 1
%42 = icmp eq i32 %41, %29
br i1 %42, label %81, label %36
43: ; preds = %28
%44 = call i64 @strcasecmp(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %55
46: ; preds = %43
%47 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %31, i32 %29)
br label %48
48: ; preds = %46, %48
%49 = phi i32 [ %53, %48 ], [ 0, %46 ]
%50 = load i32*, i32** %3
%51 = load i32*, i32** %4
%52 = call i32 @x86_convert(i32* %50, i32* %51, i32 786432)
%53 = add nuw nsw i32 %49, 1
%54 = icmp eq i32 %53, %29
br i1 %54, label %81, label %48
55: ; preds = %43
%56 = call i64 @strcasecmp(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %67
58: ; preds = %55
%59 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %31, i32 %29)
br label %60
60: ; preds = %58, %60
%61 = phi i32 [ %65, %60 ], [ 0, %58 ]
%62 = load i32*, i32** %3
%63 = load i32*, i32** %4
%64 = call i32 @sse2_convert(i32* %62, i32* %63, i32 786432)
%65 = add nuw nsw i32 %61, 1
%66 = icmp eq i32 %65, %29
br i1 %66, label %81, label %60
67: ; preds = %55
%68 = call i64 @strcasecmp(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %79
70: ; preds = %67
%71 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %31, i32 %29)
br label %72
72: ; preds = %70, %72
%73 = phi i32 [ %77, %72 ], [ 0, %70 ]
%74 = load i32*, i32** %3
%75 = load i32*, i32** %4
%76 = call i32 @sse4_convert(i32* %74, i32* %75, i32 786432)
%77 = add nuw nsw i32 %73, 1
%78 = icmp eq i32 %77, %29
br i1 %78, label %81, label %72
79: ; preds = %67
%80 = call i32 (...) @help()
br label %81
81: ; preds = %72, %60, %48, %36, %79
%82 = load i32*, i32** %3
%83 = call i32 @free(i32* %82)
%84 = load i32*, i32** %4
%85 = call i32 @free(i32* %84)
br label %86
86: ; preds = %81, %18, %13, %8
%87 = phi i32 [ 1, %8 ], [ 1, %13 ], [ 1, %18 ], [ 0, %81 ]
ret i32 %87
}