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

/* Variables and functions */
double __XALT_epoch_xalt_1_5();
int /*<<< orphan*/
__XALT_run_submission_xalt_1_5(double, int /*<<< orphan*/, int /*<<< orphan*/,
                               double, double, double, char *, int, int,
                               char const *, char const *, char const *,
                               char const *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ getppid();
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  double t0 = __XALT_epoch_xalt_1_5();
  double start_time = t0 - 1234.567;
  double end_time = t0;
  pid_t pid = getpid();
  pid_t ppid = getppid();
  double prob = 1.0;
  const char *uuid = "b3c94e35-d779-438d-98a5-d19b39131ae8";
  const char *xalt_kind = "PKGS";
  const char *usr_cmdline = "[\"hello.mpi\", \"--seq\", \"03\"]";
  char *exec_name = argv[0];
  int num_tasks = 1;
  int xalt_tracing = 0;
  int num_gpus = 0;
  const char *watermark =
      "XALT_Link_Info........<XALT_Version>%%2.8.8%%.<Build_host>%%jedrik"
      "%%.<Build_Syshost>%%jedrik%%.<Build_compiler>%%gcc%%.<Build_"
      "compilerPath>%%/usr/bin/x86_64-linux-gnu-gcc-9%%."
      "<Build_OS>%%Linux_%_%_5.4.0-40-generic%%.<Build_User>%%mclay%%.<Build_"
      "UUID>%%c4c04f8a-bd7f-4bee-be65-1b42ba6b25b9%%."
      "<Build_Year>%%2020%%.<Build_date>%%Wed_%_%_Jul_%_%_15_%_%_22:24:08_%_%_"
      "2020%%.<Build_LOADEDMODULES>"
      "%%unix/unix:local/local:mkl/mkl:noweb/2.11b:StdEnv:ddt/ddt:fdepend/"
      "fdepend:settarg:gcc/9.3.0:mpich/3.3.2%%."
      "<Build_LMFILES>%%/opt/apps/modulefiles/Core/unix/unix.lua:/opt/apps/"
      "modulefiles/Core/local/local.lua:/opt/apps/modulefiles/Core/mkl/"
      "mkl.lua:/opt/apps/modulefiles/Core/noweb/2.11b.lua:/opt/apps/"
      "modulefiles/Core/StdEnv.lua:/opt/apps/modulefiles/Core/ddt/ddt.lua:/opt/"
      "apps/modulefiles/Core/fdepend/fdepend.lua:/opt/apps/lmod/lmod/"
      "modulefiles/Core/settarg.lua:/opt/apps/modulefiles/Core/gcc/9.3.0.lua:/"
      "opt/apps/modulefiles/Compiler/gcc/9/mpich/3.3.2.lua%%."
      "<Build_CWD>%%/home/mclay/w/xalt/rt/end2end/t1/"
      "x86_64_06_avx2_dbg_gcc-9.3.0_mpich-3.3.2-2020_07_14_15_51_54-Linux-x86_"
      "64-end2end%%.<Build_Epoch>%%1594869848.4215%%........XALT_Link_Info_"
      "End.";
  __XALT_run_submission_xalt_1_5(
      t0, pid, ppid, start_time, 0.0, prob, exec_name, num_tasks, num_gpus,
      xalt_kind, uuid, watermark, usr_cmdline, xalt_tracing, stderr);
  fprintf(stderr, "round two!\n");
  __XALT_run_submission_xalt_1_5(
      t0, pid, ppid, start_time, end_time, prob, exec_name, num_tasks, num_gpus,
      xalt_kind, uuid, watermark, usr_cmdline, xalt_tracing, stderr);
  fprintf(stderr, "done!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
movl   $0x0,-0x14(%rbp)
mov    %edi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    $0x0,%al
call   1030 <__XALT_epoch_xalt_1_5@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe83(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    %eax,-0x3c(%rbp)
mov    $0x0,%al
call   1070 <getppid@plt>
mov    %eax,-0x40(%rbp)
movsd  0xe4c(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    0xe50(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xe6a(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xe64(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x68(%rbp)
movl   $0x1,-0x6c(%rbp)
movl   $0x0,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
lea    0xe56(%rip),%rax
mov    %rax,-0x80(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
movsd  -0x30(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm3
mov    -0x68(%rbp),%rdx
mov    -0x6c(%rbp),%ecx
mov    -0x74(%rbp),%r8d
mov    -0x58(%rbp),%r9
mov    -0x50(%rbp),%r14
mov    -0x80(%rbp),%rbx
mov    -0x60(%rbp),%r11
mov    -0x70(%rbp),%r10d
mov    0x2da0(%rip),%rax
mov    (%rax),%eax
xorps  %xmm2,%xmm2
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1060 <__XALT_run_submission_xalt_1_5@plt>
mov    0x2d78(%rip),%rax
mov    (%rax),%edi
lea    0x1259(%rip),%rsi
call   1050 <fprintf@plt>
movsd  -0x28(%rbp),%xmm0
mov    -0x3c(%rbp),%edi
mov    -0x40(%rbp),%esi
movsd  -0x30(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
mov    -0x68(%rbp),%rdx
mov    -0x6c(%rbp),%ecx
mov    -0x74(%rbp),%r8d
mov    -0x58(%rbp),%r9
mov    -0x50(%rbp),%r14
mov    -0x80(%rbp),%rbx
mov    -0x60(%rbp),%r11
mov    -0x70(%rbp),%r10d
mov    0x2d2a(%rip),%rax
mov    (%rax),%eax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1060 <__XALT_run_submission_xalt_1_5@plt>
mov    0x2d05(%rip),%rax
mov    (%rax),%edi
lea    0x11f2(%rip),%rsi
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
xor    %eax,%eax
call   1030 <__XALT_epoch_xalt_1_5@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xe8a(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
xor    %eax,%eax
call   1040 <getpid@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1070 <getppid@plt>
mov    %eax,%ebp
mov    (%rbx),%rbx
mov    0x2e43(%rip),%r12
mov    (%r12),%eax
sub    $0x8,%rsp
lea    0xe8e(%rip),%r13
lea    0xea4(%rip),%r11
lea    0xe56(%rip),%r10
lea    0xe74(%rip),%r15
movsd  0xe3f(%rip),%xmm3
xorps  %xmm2,%xmm2
movsd  0x10(%rsp),%xmm0
mov    %r14d,%edi
mov    %ebp,%esi
movsd  0x18(%rsp),%xmm1
mov    %rbx,%rdx
mov    $0x1,%ecx
mov    $0x0,%r8d
mov    %r15,%r9
push   %rax
push   $0x0
push   %r13
push   %r11
push   %r10
call   1060 <__XALT_run_submission_xalt_1_5@plt>
add    $0x30,%rsp
mov    (%r12),%edi
lea    0x12bf(%rip),%rsi
call   1050 <fprintf@plt>
mov    (%r12),%eax
sub    $0x8,%rsp
movsd  0x10(%rsp),%xmm0
mov    %r14d,%edi
mov    %ebp,%esi
movsd  0x18(%rsp),%xmm1
movaps %xmm0,%xmm2
movsd  0xdd4(%rip),%xmm3
mov    %rbx,%rdx
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    %r15,%r9
push   %rax
push   $0x0
push   %r13
lea    0xe09(%rip),%rax
push   %rax
lea    0xdba(%rip),%rax
push   %rax
call   1060 <__XALT_run_submission_xalt_1_5@plt>
add    $0x30,%rsp
mov    (%r12),%edi
lea    0x126b(%rip),%rsi
call   1050 <fprintf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [37 x i8] c"b3c94e35-d779-438d-98a5-d19b39131ae8\00"
@.str.1 = [5 x i8] c"PKGS\00"
@.str.2 = [29 x i8] c"[\22hello.mpi\22, \22--seq\22, \2203\22]\00"
@.str.3 = [1139 x i8] c"XALT_Link_Info........<XALT_Version>%%2.8.8%%.<Build_host>%%jedrik%%.<Build_Syshost>%%jedrik%%.<Build_compiler>%%gcc%%.<Build_compilerPath>%%/usr/bin/x86_64-linux-gnu-gcc-9%%.<Build_OS>%%Linux_%_%_5.4.0-40-generic%%.<Build_User>%%mclay%%.<Build_UUID>%%c4c04f8a-bd7f-4bee-be65-1b42ba6b25b9%%.<Build_Year>%%2020%%.<Build_date>%%Wed_%_%_Jul_%_%_15_%_%_22:24:08_%_%_2020%%.<Build_LOADEDMODULES>%%unix/unix:local/local:mkl/mkl:noweb/2.11b:StdEnv:ddt/ddt:fdepend/fdepend:settarg:gcc/9.3.0:mpich/3.3.2%%.<Build_LMFILES>%%/opt/apps/modulefiles/Core/unix/unix.lua:/opt/apps/modulefiles/Core/local/local.lua:/opt/apps/modulefiles/Core/mkl/mkl.lua:/opt/apps/modulefiles/Core/noweb/2.11b.lua:/opt/apps/modulefiles/Core/StdEnv.lua:/opt/apps/modulefiles/Core/ddt/ddt.lua:/opt/apps/modulefiles/Core/fdepend/fdepend.lua:/opt/apps/lmod/lmod/modulefiles/Core/settarg.lua:/opt/apps/modulefiles/Core/gcc/9.3.0.lua:/opt/apps/modulefiles/Compiler/gcc/9/mpich/3.3.2.lua%%.<Build_CWD>%%/home/mclay/w/xalt/rt/end2end/t1/x86_64_06_avx2_dbg_gcc-9.3.0_mpich-3.3.2-2020_07_14_15_51_54-Linux-x86_64-end2end%%.<Build_Epoch>%%1594869848.4215%%........XALT_Link_Info_End.\00"
@stderr = global i32 0
@.str.4 = [12 x i8] c"round two!\0A\00"
@.str.5 = [7 x i8] c"done!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%20 = call double (...) @__XALT_epoch_xalt_1_5()
store double %20, double* %6
%21 = load double, double* %6
%22 = fsub double %21, 0x40934A449BA5E354
store double %22, double* %7
%23 = load double, double* %6
store double %23, double* %8
%24 = call i32 (...) @getpid()
store i32 %24, i32* %9
%25 = call i32 (...) @getppid()
store i32 %25, i32* %10
store double 1.000000e+00, double* %11
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8** %12
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8** %14
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 0
%28 = load i8*, i8** %27
store i8* %28, i8** %15
store i32 1, i32* %16
store i32 0, i32* %17
store i32 0, i32* %18
store i8* getelementptr inbounds ([1139 x i8], [1139 x i8]* @.str.3, i64 0, i64 0), i8** %19
%29 = load double, double* %6
%30 = load i32, i32* %9
%31 = load i32, i32* %10
%32 = load double, double* %7
%33 = load double, double* %11
%34 = load i8*, i8** %15
%35 = load i32, i32* %16
%36 = load i32, i32* %18
%37 = load i8*, i8** %13
%38 = load i8*, i8** %12
%39 = load i8*, i8** %19
%40 = load i8*, i8** %14
%41 = load i32, i32* %17
%42 = load i32, i32* @stderr
%43 = call i32 @__XALT_run_submission_xalt_1_5(double %29, i32 %30, i32 %31, double %32, double 0.000000e+00, double %33, i8* %34, i32 %35, i32 %36, i8* %37, i8* %38, i8* %39, i8* %40, i32 %41, i32 %42)
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%46 = load double, double* %6
%47 = load i32, i32* %9
%48 = load i32, i32* %10
%49 = load double, double* %7
%50 = load double, double* %8
%51 = load double, double* %11
%52 = load i8*, i8** %15
%53 = load i32, i32* %16
%54 = load i32, i32* %18
%55 = load i8*, i8** %13
%56 = load i8*, i8** %12
%57 = load i8*, i8** %19
%58 = load i8*, i8** %14
%59 = load i32, i32* %17
%60 = load i32, i32* @stderr
%61 = call i32 @__XALT_run_submission_xalt_1_5(double %46, i32 %47, i32 %48, double %49, double %50, double %51, i8* %52, i32 %53, i32 %54, i8* %55, i8* %56, i8* %57, i8* %58, i32 %59, i32 %60)
%62 = load i32, i32* @stderr
%63 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"b3c94e35-d779-438d-98a5-d19b39131ae8\00"
@.str.1 = [5 x i8] c"PKGS\00"
@.str.2 = [29 x i8] c"[\22hello.mpi\22, \22--seq\22, \2203\22]\00"
@.str.3 = [1139 x i8] c"XALT_Link_Info........<XALT_Version>%%2.8.8%%.<Build_host>%%jedrik%%.<Build_Syshost>%%jedrik%%.<Build_compiler>%%gcc%%.<Build_compilerPath>%%/usr/bin/x86_64-linux-gnu-gcc-9%%.<Build_OS>%%Linux_%_%_5.4.0-40-generic%%.<Build_User>%%mclay%%.<Build_UUID>%%c4c04f8a-bd7f-4bee-be65-1b42ba6b25b9%%.<Build_Year>%%2020%%.<Build_date>%%Wed_%_%_Jul_%_%_15_%_%_22:24:08_%_%_2020%%.<Build_LOADEDMODULES>%%unix/unix:local/local:mkl/mkl:noweb/2.11b:StdEnv:ddt/ddt:fdepend/fdepend:settarg:gcc/9.3.0:mpich/3.3.2%%.<Build_LMFILES>%%/opt/apps/modulefiles/Core/unix/unix.lua:/opt/apps/modulefiles/Core/local/local.lua:/opt/apps/modulefiles/Core/mkl/mkl.lua:/opt/apps/modulefiles/Core/noweb/2.11b.lua:/opt/apps/modulefiles/Core/StdEnv.lua:/opt/apps/modulefiles/Core/ddt/ddt.lua:/opt/apps/modulefiles/Core/fdepend/fdepend.lua:/opt/apps/lmod/lmod/modulefiles/Core/settarg.lua:/opt/apps/modulefiles/Core/gcc/9.3.0.lua:/opt/apps/modulefiles/Compiler/gcc/9/mpich/3.3.2.lua%%.<Build_CWD>%%/home/mclay/w/xalt/rt/end2end/t1/x86_64_06_avx2_dbg_gcc-9.3.0_mpich-3.3.2-2020_07_14_15_51_54-Linux-x86_64-end2end%%.<Build_Epoch>%%1594869848.4215%%........XALT_Link_Info_End.\00"
@stderr = global i32 0
@.str.4 = [12 x i8] c"round two!\0A\00"
@.str.5 = [7 x i8] c"done!\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call double (...) @__XALT_epoch_xalt_1_5()
%4 = fadd double %3, 0xC0934A449BA5E354
%5 = tail call i32 (...) @getpid()
%6 = tail call i32 (...) @getppid()
%7 = load i8*, i8** %1
%8 = load i32, i32* @stderr
%9 = tail call i32 @__XALT_run_submission_xalt_1_5(double %3, i32 %5, i32 %6, double %4, double 0.000000e+00, double 1.000000e+00, i8* %7, i32 1, i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1139 x i8], [1139 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 %8)
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 @__XALT_run_submission_xalt_1_5(double %3, i32 %5, i32 %6, double %4, double %3, double 1.000000e+00, i8* %7, i32 1, i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1139 x i8], [1139 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 %12)
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}