#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*/ gpm_report(int, char *, int, char *, char *, char *);
int /*<<< orphan*/ unlink(char *);
void gpm_exited(void) {
  gpm_report(41,
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/ipwndev/DSLinux-Mirror/refs/heads/"
             "master/lib/gpm/src/startup.c",
             2, "Removing files %s and %s",
             "/var/run/"
             "gpm.pid",
             "/var/run/"
             "gpmctl");
  unlink("/var/run/"
         "gpm.pid");
  unlink("/var/run/"
         "gpmctl");
}


x86 assembly (clang, -O0):
<gpm_exited>:
push   %rbp
mov    %rsp,%rbp
mov    $0x29,%edi
lea    0xed0(%rip),%rsi
mov    $0x2,%edx
lea    0xf5d(%rip),%rcx
lea    0xf6f(%rip),%r8
lea    0xf79(%rip),%r9
call   1040 <gpm_report@plt>
lea    0xf5c(%rip),%rdi
call   1030 <unlink@plt>
lea    0xf61(%rip),%rdi
call   1030 <unlink@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gpm_exited>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rsi
lea    0xf67(%rip),%rcx
lea    0xf79(%rip),%rbx
lea    0xf83(%rip),%r14
mov    $0x29,%edi
mov    $0x2,%edx
mov    %rbx,%r8
mov    %r14,%r9
call   1040 <gpm_report@plt>
mov    %rbx,%rdi
call   1030 <unlink@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <unlink@plt>

LLVM IR (-O0):
@.str = [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ipwndev/DSLinux-Mirror/refs/heads/master/lib/gpm/src/startup.c\00"
@.str.1 = [25 x i8] c"Removing files %s and %s\00"
@.str.2 = [17 x i8] c"/var/run/gpm.pid\00"
@.str.3 = [16 x i8] c"/var/run/gpmctl\00"
define void @gpm_exited() {
%1 = call i32 @gpm_report(i32 41, i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%2 = call i32 @unlink(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ipwndev/DSLinux-Mirror/refs/heads/master/lib/gpm/src/startup.c\00"
@.str.1 = [25 x i8] c"Removing files %s and %s\00"
@.str.2 = [17 x i8] c"/var/run/gpm.pid\00"
@.str.3 = [16 x i8] c"/var/run/gpmctl\00"
define void @gpm_exited() {
%1 = tail call i32 @gpm_report(i32 41, i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%2 = tail call i32 @unlink(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @unlink(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
ret void
}