#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*/ initdata_();
int /*<<< orphan*/ locbif_();
int /*<<< orphan*/ plintf(char *);
int /*<<< orphan*/ system(char *);
go_locbif() {
  plintf(" LOCBIF starts ... \n");
  initdata_();
  locbif_();
  plintf(" LOCBIF ends ... \n");
  system("rm storef.dat");
  system("rm init.dat");
  system("rm storef1.dat");
  system("rm ts.dat");
}


x86 assembly (clang, -O0):
<go_locbif>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1060 <plintf@plt>
mov    $0x0,%al
call   1050 <initdata_@plt>
mov    $0x0,%al
call   1040 <locbif_@plt>
lea    0xeac(%rip),%rdi
call   1060 <plintf@plt>
lea    0xeb3(%rip),%rdi
call   1030 <system@plt>
lea    0xeb5(%rip),%rdi
call   1030 <system@plt>
lea    0xeb5(%rip),%rdi
call   1030 <system@plt>
lea    0xeb8(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<go_locbif>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1060 <plintf@plt>
xor    %eax,%eax
call   1050 <initdata_@plt>
xor    %eax,%eax
call   1040 <locbif_@plt>
lea    0xeb3(%rip),%rdi
call   1060 <plintf@plt>
lea    0xeba(%rip),%rdi
call   1030 <system@plt>
lea    0xebc(%rip),%rdi
call   1030 <system@plt>
lea    0xebc(%rip),%rdi
call   1030 <system@plt>
lea    0xebf(%rip),%rdi
pop    %rax
jmp    1030 <system@plt>

LLVM IR (-O0):
@.str = [21 x i8] c" LOCBIF starts ... \0A\00"
@.str.1 = [19 x i8] c" LOCBIF ends ... \0A\00"
@.str.2 = [14 x i8] c"rm storef.dat\00"
@.str.3 = [12 x i8] c"rm init.dat\00"
@.str.4 = [15 x i8] c"rm storef1.dat\00"
@.str.5 = [10 x i8] c"rm ts.dat\00"
define i32 @go_locbif() {
%1 = alloca i32
%2 = call i32 @plintf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @initdata_()
%4 = call i32 (...) @locbif_()
%5 = call i32 @plintf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @system(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%10 = load i32, i32* %1
ret i32 %10
}

LLVM IR (-O2):
@.str = [21 x i8] c" LOCBIF starts ... \0A\00"
@.str.1 = [19 x i8] c" LOCBIF ends ... \0A\00"
@.str.2 = [14 x i8] c"rm storef.dat\00"
@.str.3 = [12 x i8] c"rm init.dat\00"
@.str.4 = [15 x i8] c"rm storef1.dat\00"
@.str.5 = [10 x i8] c"rm ts.dat\00"
define i32 @go_locbif() {
%1 = tail call i32 @plintf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @initdata_()
%3 = tail call i32 (...) @locbif_()
%4 = tail call i32 @plintf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @system(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @system(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @system(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @system(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
ret i32 undef
}