int submitCdoCommand(const char *argument) {
  const char *cdoPath = getCdoPath();
  char *cdoCommand = (char *)Malloc(
      __func__,
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdotest.c",
      207, (strlen(cdoPath) + strlen(argument) + 8));
  int status;
  cdoCommand[0] = '\0';
  strcat(cdoCommand, cdoPath);
  strcat(cdoCommand, " -b 64 ");
  strcat(cdoCommand, argument);
  status = system(cdoCommand);
  Free(__func__,
       "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdotest.c",
       217, (cdoCommand));
  return status;
}


x86 assembly (clang, -O0):
<submitCdoCommand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getCdoPath@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x28(%rbp),%rcx
add    %rax,%rcx
add    $0x8,%rcx
lea    0xe5f(%rip),%rdi
lea    0xe69(%rip),%rsi
mov    $0xcf,%edx
mov    $0x0,%al
call   1030 <Malloc@plt>
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x18(%rbp),%rdi
lea    0xebb(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1060 <system@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rcx
lea    0xdfc(%rip),%rdi
lea    0xe06(%rip),%rsi
mov    $0xd9,%edx
mov    $0x0,%al
call   1070 <Free@plt>
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<submitCdoCommand>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
xor    %eax,%eax
call   1040 <getCdoPath@plt>
movslq %eax,%r13
mov    %r13,%rdi
call   1050 <strlen@plt>
mov    %rax,%rbx
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    (%rbx,%rax,1),%rcx
add    $0x8,%rcx
lea    0xe66(%rip),%r14
lea    0xe70(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0xcf,%edx
xor    %eax,%eax
call   1030 <Malloc@plt>
movslq %eax,%rbx
movb   $0x0,(%rbx)
mov    %rbx,%rdi
mov    %r13,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
movabs $0x20343620622d20,%rcx
mov    %rcx,(%rbx,%rax,1)
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <strcat@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <system@plt>
mov    %eax,%ebp
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0xd9,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1070 <Free@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__func__.submitCdoCommand = [17 x i8] c"submitCdoCommand\00"
@.str = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdotest.c\00"
@.str.1 = [8 x i8] c" -b 64 \00"
define i32 @submitCdoCommand(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %2
%6 = call i32 (...) @getCdoPath()
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %3
%9 = load i8*, i8** %3
%10 = call i64 @strlen(i8* %9)
%11 = load i8*, i8** %2
%12 = call i64 @strlen(i8* %11)
%13 = add i64 %10, %12
%14 = add i64 %13, 8
%15 = call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @__func__.submitCdoCommand, i64 0, i64 0), i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 207, i64 %14)
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i8*
store i8* %17, i8** %4
%18 = load i8*, i8** %4
%19 = getelementptr inbounds i8, i8* %18, i64 0
store i8 0, i8* %19
%20 = load i8*, i8** %4
%21 = load i8*, i8** %3
%22 = call i8* @strcat(i8* %20, i8* %21)
%23 = load i8*, i8** %4
%24 = call i8* @strcat(i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%25 = load i8*, i8** %4
%26 = load i8*, i8** %2
%27 = call i8* @strcat(i8* %25, i8* %26)
%28 = load i8*, i8** %4
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %28)
store i32 %29, i32* %5
%30 = load i8*, i8** %4
%31 = call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @__func__.submitCdoCommand, i64 0, i64 0), i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 217, i8* %30)
%32 = load i32, i32* %5
ret i32 %32
}

LLVM IR (-O2):
@__func__.submitCdoCommand = [17 x i8] c"submitCdoCommand\00"
@.str = [131 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/cdotest.c\00"
define i32 @submitCdoCommand(i8* nocapture %0) {
%2 = tail call i32 (...) @getCdoPath()
%3 = sext i32 %2 to i64
%4 = inttoptr i64 %3 to i8*
%5 = tail call i64 @strlen(i8* dereferenceable(1) %4)
%6 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%7 = add i64 %5, 8
%8 = add i64 %7, %6
%9 = tail call i32 (i8*, i8*, i32, i64, ...) bitcast (i32 (...)* @Malloc to i32 (i8*, i8*, i32, i64, ...)*)(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @__func__.submitCdoCommand, i64 0, i64 0), i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 207, i64 %8)
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8*
store i8 0, i8* %11
%12 = tail call i8* @strcat(i8* %11, i8* dereferenceable(1) %4)
%13 = tail call i64 @strlen(i8* %11)
%14 = getelementptr i8, i8* %11, i64 %13
%15 = bitcast i8* %14 to i64*
store i64 9064606330924320, i64* %15
%16 = tail call i8* @strcat(i8* %11, i8* dereferenceable(1) %0)
%17 = tail call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %11)
%18 = tail call i32 (i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @Free to i32 (i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @__func__.submitCdoCommand, i64 0, i64 0), i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str, i64 0, i64 0), i32 217, i8* %11)
ret i32 %17
}