#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 System(char *);
int /*<<< orphan*/ cond_printf(int, char *, char *);
int /*<<< orphan*/ q_internal(char *, char *, int);
char *s_cat2(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ s_internal(char *, char *, char *, int);
void touch(char *path) {
  int ret;
  cond_printf(1, "%s\n", path);
  char *cmd = s_cat2(
      (q_internal("touch ",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/guicho271828/roswell/refs/"
                  "heads/master/src/util_file.c",
                  34)),
      (q_internal(path,
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/guicho271828/roswell/refs/"
                  "heads/master/src/util_file.c",
                  34)));
  ret = System(cmd);
  (s_internal(cmd, "cmd",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/guicho271828/roswell/refs/heads/"
              "master/src/util_file.c",
              36));
}


x86 assembly (clang, -O0):
<touch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
mov    $0x1,%edi
lea    0xe94(%rip),%rsi
call   1070 <cond_printf@plt>
lea    0xe8c(%rip),%rdi
lea    0xe8c(%rip),%rsi
mov    $0x22,%edx
call   1060 <q_internal@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe74(%rip),%rsi
mov    $0x22,%edx
call   1060 <q_internal@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1040 <s_cat2@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <System@plt>
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xed6(%rip),%rsi
lea    0xe3e(%rip),%rdx
mov    $0x24,%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    0xea2(%rip),%rsi
mov    $0x1,%edi
mov    %rbx,%rdx
call   1070 <cond_printf@plt>
lea    0xe92(%rip),%rdi
lea    0xe92(%rip),%r14
mov    %r14,%rsi
mov    $0x22,%edx
call   1060 <q_internal@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x22,%edx
call   1060 <q_internal@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1040 <s_cat2@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <System@plt>
lea    0xee9(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    $0x24,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <s_internal@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [7 x i8] c"touch \00"
@.str.2 = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/guicho271828/roswell/refs/heads/master/src/util_file.c\00"
@.str.3 = [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 = load i8*, i8** %2
%6 = call i32 @cond_printf(i32 1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 @q_internal(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0), i32 34)
%8 = load i8*, i8** %2
%9 = call i32 @q_internal(i8* %8, i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0), i32 34)
%10 = call i8* @s_cat2(i32 %7, i32 %9)
store i8* %10, i8** %4
%11 = load i8*, i8** %4
%12 = call i32 @System(i8* %11)
store i32 %12, i32* %3
%13 = load i8*, i8** %4
%14 = call i32 @s_internal(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str.2, i64 0, i64 0), i32 36)
ret void
}

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