#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*/ q_internal(char *, char *, int);
char *s_cat2(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ s_internal(char *, char *, char *, int);
int system(char *);
void touch(char *path) {
  int ret;
  char *cmd =
      s_cat2((q_internal("touch ",
                         "/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                         "fukamachi/roswell/refs/heads/master/src/util.c",
                         70)),
             (q_internal(path,
                         "/scratch/repos/new/home/jordi_armengol_estape/"
                         "c-scraper/outputs/2022-01-22/02-19-57/repos/"
                         "fukamachi/roswell/refs/heads/master/src/util.c",
                         70)));
  ret = system(cmd);
  (s_internal(cmd, "cmd",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/fukamachi/roswell/refs/heads/master/"
              "src/util.c",
              75));
}


x86 assembly (clang, -O0):
<touch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xead(%rip),%rdi
lea    0xead(%rip),%rsi
mov    $0x46,%edx
call   1060 <q_internal@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe95(%rip),%rsi
mov    $0x46,%edx
call   1060 <q_internal@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1050 <s_cat2@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <system@plt>
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xeef(%rip),%rsi
lea    0xe5f(%rip),%rdx
mov    $0x4b,%ecx
call   1030 <s_internal@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<touch>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xeb2(%rip),%rdi
lea    0xeb2(%rip),%r14
mov    %r14,%rsi
mov    $0x46,%edx
call   1060 <q_internal@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x46,%edx
call   1060 <q_internal@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1050 <s_cat2@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <system@plt>
lea    0xf01(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    $0x4b,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <s_internal@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"touch \00"
@.str.1 = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fukamachi/roswell/refs/heads/master/src/util.c\00"
@.str.2 = [4 x i8] c"cmd\00"
define void @touch(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
%5 = call i32 @q_internal(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 70)
%6 = load i8*, i8** %2
%7 = call i32 @q_internal(i8* %6, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 70)
%8 = call i8* @s_cat2(i32 %5, i32 %7)
store i8* %8, i8** %4
%9 = load i8*, i8** %4
%10 = call i32 @system(i8* %9)
store i32 %10, i32* %3
%11 = load i8*, i8** %4
%12 = call i32 @s_internal(i8* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 75)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"touch \00"
@.str.1 = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fukamachi/roswell/refs/heads/master/src/util.c\00"
@.str.2 = [4 x i8] c"cmd\00"
define void @touch(i8* %0) {
%2 = tail call i32 @q_internal(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 70)
%3 = tail call i32 @q_internal(i8* %0, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 70)
%4 = tail call i8* @s_cat2(i32 %2, i32 %3)
%5 = tail call i32 @system(i8* %4)
%6 = tail call i32 @s_internal(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 75)
ret void
}