#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*/ do_what_you_want();
int /*<<< orphan*/ load_snapshot(char *, int);
int /*<<< orphan*/ reordering();
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ unit_conversion();
int main(int argc, char **argv) {
  char path[200], input_fname[200], basename[200];
  int type, snapshot_number, files;
  sprintf(path, "/home/vspringe/LCDM");
  sprintf(basename, "snapshot");
  snapshot_number = 6;
  files = 1;
  sprintf(input_fname, "%s/%s_%03d", path, basename, snapshot_number);
  load_snapshot(input_fname, files);
  reordering();
  unit_conversion();
  do_what_you_want();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x290,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xe0(%rbp),%rdi
lea    0xe90(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
lea    -0x280(%rbp),%rdi
lea    0xe8f(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
movl   $0x6,-0x288(%rbp)
movl   $0x1,-0x28c(%rbp)
lea    -0x1b0(%rbp),%rdi
lea    -0xe0(%rbp),%rdx
lea    -0x280(%rbp),%rcx
mov    -0x288(%rbp),%r8d
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
lea    -0x1b0(%rbp),%rdi
mov    -0x28c(%rbp),%esi
call   1070 <load_snapshot@plt>
mov    $0x0,%al
call   1040 <reordering@plt>
mov    $0x0,%al
call   1030 <unit_conversion@plt>
mov    $0x0,%al
call   1050 <do_what_you_want@plt>
xor    %eax,%eax
add    $0x290,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x270,%rsp
movups 0xea1(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movl   $0x4d4443,0xe0(%rsp)
movabs $0x746f687370616e73,%rax
68 6f 74
mov    %rax,(%rsp)
movb   $0x0,0x8(%rsp)
lea    0xe91(%rip),%rsi
lea    0x1a0(%rsp),%rbx
lea    0xd0(%rsp),%rdx
mov    %rsp,%rcx
mov    %rbx,%rdi
mov    $0x6,%r8d
xor    %eax,%eax
call   1060 <sprintf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1070 <load_snapshot@plt>
xor    %eax,%eax
call   1040 <reordering@plt>
xor    %eax,%eax
call   1030 <unit_conversion@plt>
xor    %eax,%eax
call   1050 <do_what_you_want@plt>
xor    %eax,%eax
add    $0x270,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"/home/vspringe/LCDM\00"
@.str.1 = [9 x i8] c"snapshot\00"
@.str.2 = [11 x i8] c"%s/%s_%03d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [200 x i8]
%6 = alloca [200 x i8]
%7 = alloca [200 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%11 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%14 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 6, i32* %9
store i32 1, i32* %10
%15 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%18 = load i32, i32* %9
%19 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %16, i8* %17, i32 %18)
%20 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%21 = load i32, i32* %10
%22 = call i32 @load_snapshot(i8* %20, i32 %21)
%23 = call i32 (...) @reordering()
%24 = call i32 (...) @unit_conversion()
%25 = call i32 (...) @do_what_you_want()
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"/home/vspringe/LCDM\00"
@.str.1 = [9 x i8] c"snapshot\00"
@.str.2 = [11 x i8] c"%s/%s_%03d\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [200 x i8]
%4 = alloca [200 x i8]
%5 = alloca [200 x i8]
%6 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%9 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %6, i8* %8, i32 6)
%10 = call i32 @load_snapshot(i8* %7, i32 1)
%11 = call i32 (...) @reordering()
%12 = call i32 (...) @unit_conversion()
%13 = call i32 (...) @do_what_you_want()
ret i32 0
}