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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
void Galaxy(float psi0, float sig0, float q, float rcrk2, float ra, float mdisk,
            float rhob, float psicut, float sigb, float sfrac) {
  FILE *infile;
  system("make clean");
  infile = fopen("in.dbh", "w");
  fprintf(infile, "y\n %f %f %f %f %f\n", psi0, sig0, q, rcrk2, ra);
  fprintf(infile, "y\n %f 5.4 40 0.3 1\n", mdisk);
  fprintf(infile, "y\n %f %f %f\n", rhob, psicut, sigb);
  fprintf(infile, ".5 2000\n");
  fprintf(infile, "%d\n", 2);
  fclose(infile);
  infile = fopen("in.bulge", "w");
  fprintf(infile, "%f\t#streaming fraction\n", sfrac);
  fprintf(infile, "%d\t#number of particles\n", 80000);
  fprintf(infile, "-1\t#negative integer seed\n");
  fprintf(infile, "1\t#center the data 1=yes\n");
  fprintf(infile, "dbh.dat\t#harmonics file\n");
  fclose(infile);
  infile = fopen("in.disk", "w");
  fprintf(infile, "%d\t#number of particles\n", 10000);
  fprintf(infile, "-1\t#random integer seed\n");
  fprintf(infile, "1\t#1=yes we want to center 0=no we don't\n");
  fprintf(infile, "dbh.dat\t#multipole expansion data file\n");
  fclose(infile);
  infile = fopen("in.halo", "w");
  fprintf(infile, "0.5\t#streaming fraction\n");
  fprintf(infile, "%d\t#number of particles\n", 50000);
  fprintf(infile, "-1\t#negative integer seed for random number generator\n");
  fprintf(infile, "1\t#1=yes we want to center\n");
  fprintf(infile, "dbh.dat\t#multipole expansion data file\n");
  fclose(infile);
  system("rm -f fitvc.out fitsbp.out fitdisp.out");
  system("make galaxy");
  system("bin/fitvc | tail -1 > fitvc.out");
  system("bin/vcirc > vr.out");
  system("bin/fitsbp > fitsbp.out");
  system("bin/fitdisp > fitdisp.out");
  system("bin/nfw > nfw.out");
  if (!1) {
    printf("Calculating axis ratios...\n");
    system("bin/axes > axes.out");
    printf("...writing to axes.out.\nDone!\n");
  }
  return;
}


x86 assembly (clang, -O0):
<Galaxy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  0x18(%rbp),%xmm8
movss  0x10(%rbp),%xmm8
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  %xmm6,-0x1c(%rbp)
movss  %xmm7,-0x20(%rbp)
lea    0xe7d(%rip),%rdi
call   1040 <system@plt>
lea    0xe7c(%rip),%rdi
lea    0xe7c(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x10(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x14(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
lea    0xe3d(%rip),%rsi
mov    $0x5,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe35(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe1c(%rip),%rsi
mov    $0x3,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xe17(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xe0e(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdf6(%rip),%rdi
lea    0xdac(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
movss  0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddb(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xde1(%rip),%rsi
mov    $0x13880,%edx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xde3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdec(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdf4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdf6(%rip),%rdi
lea    0xd24(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xd74(%rip),%rsi
mov    $0x2710,%edx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdcc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdd3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdfc(%rip),%rdi
lea    0xcb7(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xde9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xcf5(%rip),%rsi
mov    $0xc350,%edx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdd9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdfe(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xd6c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdf1(%rip),%rdi
call   1040 <system@plt>
lea    0xe0c(%rip),%rdi
call   1040 <system@plt>
lea    0xe0c(%rip),%rdi
call   1040 <system@plt>
lea    0xe20(%rip),%rdi
call   1040 <system@plt>
lea    0xe27(%rip),%rdi
call   1040 <system@plt>
lea    0xe33(%rip),%rdi
call   1040 <system@plt>
lea    0xe41(%rip),%rdi
call   1040 <system@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Galaxy>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
movss  %xmm7,0x20(%rsp)
movss  %xmm6,0x1c(%rsp)
movss  %xmm5,0x14(%rsp)
movss  %xmm4,0x10(%rsp)
movss  %xmm3,0xc(%rsp)
movss  %xmm2,0x8(%rsp)
movss  %xmm1,0x4(%rsp)
movss  %xmm0,(%rsp)
movss  0x58(%rsp),%xmm0
movss  %xmm0,0x24(%rsp)
movss  0x50(%rsp),%xmm0
movss  %xmm0,0x18(%rsp)
lea    0xe57(%rip),%rdi
call   1040 <system@plt>
lea    0xe56(%rip),%rdi
lea    0xe56(%rip),%r14
mov    %r14,%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x4(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0x8(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0xc(%rsp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  0x10(%rsp),%xmm4
cvtss2sd %xmm4,%xmm4
lea    0xe15(%rip),%rsi
mov    %rax,%rdi
mov    $0x5,%al
call   1050 <fprintf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0d(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <fprintf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x20(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0x18(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xdf2(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%al
call   1050 <fprintf@plt>
lea    0xdee(%rip),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdde(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0xdc4(%rip),%rdi
mov    %r14,%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
movss  0x24(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb1(%rip),%rsi
mov    %rax,%rdi
mov    $0x1,%al
call   1050 <fprintf@plt>
lea    0xdb8(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x13880,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xdb8(%rip),%rdi
mov    $0x1a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdba(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdbb(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0xdb3(%rip),%rdi
mov    %r14,%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
mov    $0x2710,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd97(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xd97(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xda8(%rip),%r12
mov    $0x27,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0xdac(%rip),%rdi
mov    %r14,%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
lea    0xda2(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1070 <fwrite@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xc350,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd90(%rip),%rdi
mov    $0x36,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xdae(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    $0x27,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0xd94(%rip),%rdi
call   1040 <system@plt>
lea    0xdaf(%rip),%rdi
call   1040 <system@plt>
lea    0xdaf(%rip),%rdi
call   1040 <system@plt>
lea    0xdc3(%rip),%rdi
call   1040 <system@plt>
lea    0xdca(%rip),%rdi
call   1040 <system@plt>
lea    0xdd6(%rip),%rdi
call   1040 <system@plt>
lea    0xde4(%rip),%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <system@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"make clean\00"
@.str.1 = [7 x i8] c"in.dbh\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [19 x i8] c"y\0A %f %f %f %f %f\0A\00"
@.str.4 = [20 x i8] c"y\0A %f 5.4 40 0.3 1\0A\00"
@.str.5 = [13 x i8] c"y\0A %f %f %f\0A\00"
@.str.6 = [9 x i8] c".5 2000\0A\00"
@.str.7 = [4 x i8] c"%d\0A\00"
@.str.8 = [9 x i8] c"in.bulge\00"
@.str.9 = [24 x i8] c"%f\09#streaming fraction\0A\00"
@.str.10 = [25 x i8] c"%d\09#number of particles\0A\00"
@.str.11 = [27 x i8] c"-1\09#negative integer seed\0A\00"
@.str.12 = [26 x i8] c"1\09#center the data 1=yes\0A\00"
@.str.13 = [25 x i8] c"dbh.dat\09#harmonics file\0A\00"
@.str.14 = [8 x i8] c"in.disk\00"
@.str.15 = [25 x i8] c"-1\09#random integer seed\0A\00"
@.str.16 = [42 x i8] c"1\09=yes we want to center 0=no we don't\0A\00"
@.str.17 = [40 x i8] c"dbh.dat\09#multipole expansion data file\0A\00"
@.str.18 = [8 x i8] c"in.halo\00"
@.str.19 = [25 x i8] c"0.5\09#streaming fraction\0A\00"
@.str.20 = [55 x i8] c"-1\09#negative integer seed for random number generator\0A\00"
@.str.21 = [28 x i8] c"1\09=yes we want to center\0A\00"
@.str.22 = [39 x i8] c"rm -f fitvc.out fitsbp.out fitdisp.out\00"
@.str.23 = [12 x i8] c"make galaxy\00"
@.str.24 = [32 x i8] c"bin/fitvc | tail -1 > fitvc.out\00"
@.str.25 = [19 x i8] c"bin/vcirc > vr.out\00"
@.str.26 = [24 x i8] c"bin/fitsbp > fitsbp.out\00"
@.str.27 = [26 x i8] c"bin/fitdisp > fitdisp.out\00"
@.str.28 = [18 x i8] c"bin/nfw > nfw.out\00"
define void @Galaxy(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9) {
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca i32*
store float %0, float* %11
store float %1, float* %12
store float %2, float* %13
store float %3, float* %14
store float %4, float* %15
store float %5, float* %16
store float %6, float* %17
store float %7, float* %18
store float %8, float* %19
store float %9, float* %20
%22 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%23 = call i32* @fopen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %23, i32** %21
%24 = load i32*, i32** %21
%25 = load float, float* %11
%26 = fpext float %25 to double
%27 = load float, float* %12
%28 = fpext float %27 to double
%29 = load float, float* %13
%30 = fpext float %29 to double
%31 = load float, float* %14
%32 = fpext float %31 to double
%33 = load float, float* %15
%34 = fpext float %33 to double
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), double %26, double %28, double %30, double %32, double %34)
%36 = load i32*, i32** %21
%37 = load float, float* %16
%38 = fpext float %37 to double
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double %38)
%40 = load i32*, i32** %21
%41 = load float, float* %17
%42 = fpext float %41 to double
%43 = load float, float* %18
%44 = fpext float %43 to double
%45 = load float, float* %19
%46 = fpext float %45 to double
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), double %42, double %44, double %46)
%48 = load i32*, i32** %21
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%50 = load i32*, i32** %21
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 2)
%52 = load i32*, i32** %21
%53 = call i32 @fclose(i32* %52)
%54 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %54, i32** %21
%55 = load i32*, i32** %21
%56 = load float, float* %20
%57 = fpext float %56 to double
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), double %57)
%59 = load i32*, i32** %21
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 80000)
%61 = load i32*, i32** %21
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
%63 = load i32*, i32** %21
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%65 = load i32*, i32** %21
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %65, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%67 = load i32*, i32** %21
%68 = call i32 @fclose(i32* %67)
%69 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %69, i32** %21
%70 = load i32*, i32** %21
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 10000)
%72 = load i32*, i32** %21
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0))
%74 = load i32*, i32** %21
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
%76 = load i32*, i32** %21
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0))
%78 = load i32*, i32** %21
%79 = call i32 @fclose(i32* %78)
%80 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %80, i32** %21
%81 = load i32*, i32** %21
%82 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
%83 = load i32*, i32** %21
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 50000)
%85 = load i32*, i32** %21
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.20, i64 0, i64 0))
%87 = load i32*, i32** %21
%88 = call i32 (i32*, i8*, ...) @fprintf(i32* %87, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.21, i64 0, i64 0))
%89 = load i32*, i32** %21
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %89, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0))
%91 = load i32*, i32** %21
%92 = call i32 @fclose(i32* %91)
%93 = call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.22, i64 0, i64 0))
%94 = call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0))
%95 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.24, i64 0, i64 0))
%96 = call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0))
%97 = call i32 @system(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.26, i64 0, i64 0))
%98 = call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0))
%99 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"make clean\00"
@.str.1 = [7 x i8] c"in.dbh\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [19 x i8] c"y\0A %f %f %f %f %f\0A\00"
@.str.4 = [20 x i8] c"y\0A %f 5.4 40 0.3 1\0A\00"
@.str.5 = [13 x i8] c"y\0A %f %f %f\0A\00"
@.str.6 = [9 x i8] c".5 2000\0A\00"
@.str.7 = [4 x i8] c"%d\0A\00"
@.str.8 = [9 x i8] c"in.bulge\00"
@.str.9 = [24 x i8] c"%f\09#streaming fraction\0A\00"
@.str.10 = [25 x i8] c"%d\09#number of particles\0A\00"
@.str.11 = [27 x i8] c"-1\09#negative integer seed\0A\00"
@.str.12 = [26 x i8] c"1\09#center the data 1=yes\0A\00"
@.str.13 = [25 x i8] c"dbh.dat\09#harmonics file\0A\00"
@.str.14 = [8 x i8] c"in.disk\00"
@.str.15 = [25 x i8] c"-1\09#random integer seed\0A\00"
@.str.16 = [42 x i8] c"1\09=yes we want to center 0=no we don't\0A\00"
@.str.17 = [40 x i8] c"dbh.dat\09#multipole expansion data file\0A\00"
@.str.18 = [8 x i8] c"in.halo\00"
@.str.19 = [25 x i8] c"0.5\09#streaming fraction\0A\00"
@.str.20 = [55 x i8] c"-1\09#negative integer seed for random number generator\0A\00"
@.str.21 = [28 x i8] c"1\09=yes we want to center\0A\00"
@.str.22 = [39 x i8] c"rm -f fitvc.out fitsbp.out fitdisp.out\00"
@.str.23 = [12 x i8] c"make galaxy\00"
@.str.24 = [32 x i8] c"bin/fitvc | tail -1 > fitvc.out\00"
@.str.25 = [19 x i8] c"bin/vcirc > vr.out\00"
@.str.26 = [24 x i8] c"bin/fitsbp > fitsbp.out\00"
@.str.27 = [26 x i8] c"bin/fitdisp > fitdisp.out\00"
@.str.28 = [18 x i8] c"bin/nfw > nfw.out\00"
define void @Galaxy(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9) {
%11 = tail call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%13 = fpext float %0 to double
%14 = fpext float %1 to double
%15 = fpext float %2 to double
%16 = fpext float %3 to double
%17 = fpext float %4 to double
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), double %13, double %14, double %15, double %16, double %17)
%19 = fpext float %5 to double
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double %19)
%21 = fpext float %6 to double
%22 = fpext float %7 to double
%23 = fpext float %8 to double
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), double %21, double %22, double %23)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i64 8, i64 1, i32* %12)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 2)
%27 = tail call i32 @fclose(i32* %12)
%28 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%29 = fpext float %9 to double
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), double %29)
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 80000)
%32 = tail call i64 @fwrite(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i64 26, i64 1, i32* %28)
%33 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i64 25, i64 1, i32* %28)
%34 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i64 24, i64 1, i32* %28)
%35 = tail call i32 @fclose(i32* %28)
%36 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 10000)
%38 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i64 24, i64 1, i32* %36)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0), i64 41, i64 1, i32* %36)
%40 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0), i64 39, i64 1, i32* %36)
%41 = tail call i32 @fclose(i32* %36)
%42 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%43 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0), i64 24, i64 1, i32* %42)
%44 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 50000)
%45 = tail call i64 @fwrite(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.20, i64 0, i64 0), i64 54, i64 1, i32* %42)
%46 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.21, i64 0, i64 0), i64 27, i64 1, i32* %42)
%47 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0), i64 39, i64 1, i32* %42)
%48 = tail call i32 @fclose(i32* %42)
%49 = tail call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.22, i64 0, i64 0))
%50 = tail call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0))
%51 = tail call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.24, i64 0, i64 0))
%52 = tail call i32 @system(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.25, i64 0, i64 0))
%53 = tail call i32 @system(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.26, i64 0, i64 0))
%54 = tail call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.27, i64 0, i64 0))
%55 = tail call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.28, i64 0, i64 0))
ret void
}