#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 mw_create(char *, char **, int);
int test_create() {
  char *fname = "/tmp/test.mw";
  char *args[14] = {"data/file1.bedgraph",
                    "data/file2.bedgraph",
                    "data/file3.bedgraph",
                    "data/file4.bedgraph",
                    "data/file5.bedgraph",
                    "data/file6.bedgraph",
                    "-t",
                    "7801",
                    "-a",
                    "AgamP3",
                    "-d",
                    "test",
                    "-v",
                    "5"};
  return mw_create(fname, args, 14);
}


x86 assembly (clang, -O0):
<test_create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
lea    0xece(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    -0x80(%rbp),%rdi
lea    0x2c6f(%rip),%rsi
mov    $0x70,%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    $0xe,%edx
call   1030 <mw_create@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_create>:
sub    $0x78,%rsp
movaps 0x2cf5(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0x2cd9(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0x2cbd(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0x2ca1(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2c85(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2c69(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c4d(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xe92(%rip),%rdi
mov    %rsp,%rsi
mov    $0xe,%edx
call   1030 <mw_create@plt>
add    $0x78,%rsp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"/tmp/test.mw\00"
@.str.1 = [20 x i8] c"data/file1.bedgraph\00"
@.str.2 = [20 x i8] c"data/file2.bedgraph\00"
@.str.3 = [20 x i8] c"data/file3.bedgraph\00"
@.str.4 = [20 x i8] c"data/file4.bedgraph\00"
@.str.5 = [20 x i8] c"data/file5.bedgraph\00"
@.str.6 = [20 x i8] c"data/file6.bedgraph\00"
@.str.7 = [3 x i8] c"-t\00"
@.str.8 = [5 x i8] c"7801\00"
@.str.9 = [3 x i8] c"-a\00"
@.str.10 = [7 x i8] c"AgamP3\00"
@.str.11 = [3 x i8] c"-d\00"
@.str.12 = [5 x i8] c"test\00"
@.str.13 = [3 x i8] c"-v\00"
@.str.14 = [2 x i8] c"5\00"
@__const.test_create.args = [14 x i8*] [i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0)]
define i32 @test_create() {
%1 = alloca i8*
%2 = alloca [14 x i8*]
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %1
%3 = bitcast [14 x i8*]* %2 to i8*
%4 = load i8*, i8** %1
%5 = getelementptr inbounds [14 x i8*], [14 x i8*]* %2, i64 0, i64 0
%6 = call i32 @mw_create(i8* %4, i8** %5, i32 14)
ret i32 %6
}

LLVM IR (-O2):
@.str = [13 x i8] c"/tmp/test.mw\00"
@.str.1 = [20 x i8] c"data/file1.bedgraph\00"
@.str.2 = [20 x i8] c"data/file2.bedgraph\00"
@.str.3 = [20 x i8] c"data/file3.bedgraph\00"
@.str.4 = [20 x i8] c"data/file4.bedgraph\00"
@.str.5 = [20 x i8] c"data/file5.bedgraph\00"
@.str.6 = [20 x i8] c"data/file6.bedgraph\00"
@.str.7 = [3 x i8] c"-t\00"
@.str.8 = [5 x i8] c"7801\00"
@.str.9 = [3 x i8] c"-a\00"
@.str.10 = [7 x i8] c"AgamP3\00"
@.str.11 = [3 x i8] c"-d\00"
@.str.12 = [5 x i8] c"test\00"
@.str.13 = [3 x i8] c"-v\00"
@.str.14 = [2 x i8] c"5\00"
@__const.test_create.args = [14 x i8*] [i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0)]
define i32 @test_create() {
%1 = alloca [14 x i8*]
%2 = bitcast [14 x i8*]* %1 to i8*
%3 = getelementptr inbounds [14 x i8*], [14 x i8*]* %1, i64 0, i64 0
%4 = call i32 @mw_create(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %3, i32 14)
ret i32 %4
}