#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*/ abms_system(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, ...);
void pass_init(void) {
  char lcmd[255];
  sprintf(lcmd, "%s%s", "/app/os/sys/bin/", "sngp.sh");
  abms_system(lcmd);
  sprintf(lcmd, "%s%s -rf %s%s", "/app/os/sys/bin/", "rm", "/app/os/sys/bin/",
          "sngp.sh");
  abms_system(lcmd);
  return;
}


x86 assembly (clang, -O0):
<pass_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
lea    -0x100(%rbp),%rdi
lea    0xee9(%rip),%rsi
lea    0xec0(%rip),%rdx
lea    0xeca(%rip),%rcx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
lea    -0x100(%rbp),%rdi
lea    0xeb1(%rip),%rsi
lea    0xe91(%rip),%r8
lea    0xeb1(%rip),%rcx
lea    0xe94(%rip),%r9
mov    %r8,%rdx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <abms_system@plt>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pass_init>:
push   %r15
push   %r14
push   %rbx
sub    $0x100,%rsp
lea    0xeef(%rip),%rsi
lea    0xec6(%rip),%r15
lea    0xed0(%rip),%r14
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
lea    0xeb6(%rip),%rsi
lea    0xebd(%rip),%rcx
mov    %rbx,%rdi
mov    %r15,%rdx
mov    %r15,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <abms_system@plt>
add    $0x100,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [17 x i8] c"/app/os/sys/bin/\00"
@.str.2 = [8 x i8] c"sngp.sh\00"
@.str.3 = [14 x i8] c"%s%s -rf %s%s\00"
@.str.4 = [3 x i8] c"rm\00"
define void @pass_init() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%3 = call i32 (i8*, i8*, i8*, i8*, ...) @sprintf(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%4 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%5 = call i32 @abms_system(i8* %4)
%6 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%7 = call i32 (i8*, i8*, i8*, i8*, ...) @sprintf(i8* %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%8 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%9 = call i32 @abms_system(i8* %8)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [17 x i8] c"/app/os/sys/bin/\00"
@.str.2 = [8 x i8] c"sngp.sh\00"
@.str.3 = [14 x i8] c"%s%s -rf %s%s\00"
@.str.4 = [3 x i8] c"rm\00"
define void @pass_init() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%3 = call i32 (i8*, i8*, i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @abms_system(i8* %2)
%5 = call i32 (i8*, i8*, i8*, i8*, ...) @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @abms_system(i8* %2)
ret void
}