xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ die(int, char *);
int /*<<< orphan*/ snprintf(char *, int, char *);
void hsig(int sig) {
  char outstr[100];
  snprintf(outstr, 100, "awesomebanner: Terminating on signal.\n");
  die(15, outstr);
}


x86 assembly (clang, -O0):
<hsig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
mov    $0x64,%esi
lea    0xec5(%rip),%rdx
call   1030 <snprintf@plt>
lea    -0x70(%rbp),%rsi
mov    $0xf,%edi
call   1040 <die@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hsig>:
push   %rbx
sub    $0x70,%rsp
lea    0xed4(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
call   1030 <snprintf@plt>
mov    $0xf,%edi
mov    %rbx,%rsi
call   1040 <die@plt>
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [39 x i8] c"awesomebanner: Terminating on signal.\0A\00"
define void @hsig(i32 %0) {
%2 = alloca i32
%3 = alloca [100 x i8]
store i32 %0, i32* %2
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%5 = call i32 @snprintf(i8* %4, i32 100, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%7 = call i32 @die(i32 15, i8* %6)
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"awesomebanner: Terminating on signal.\0A\00"
define void @hsig(i32 %0) {
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = call i32 @snprintf(i8* %3, i32 100, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @die(i32 15, i8* %3)
ret void
}
/* Type definitions */
struct termios {
  int dummy;
};
typedef int /*<<< orphan*/ speed_t;

/* Variables and functions */
int /*<<< orphan*/ cfsetispeed(struct termios *, int /*<<< orphan*/);
int /*<<< orphan*/ cfsetospeed(struct termios *, int /*<<< orphan*/);
void oscam_ser_set_baud(struct termios *tio, speed_t baud) {
  cfsetospeed(tio, baud);
  cfsetispeed(tio, baud);
}


x86 assembly (clang, -O0):
<oscam_ser_set_baud>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <cfsetospeed@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <cfsetispeed@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<oscam_ser_set_baud>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
call   1030 <cfsetospeed@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <cfsetispeed@plt>

LLVM IR (-O0):
%struct.termios = type { i32 }
define void @oscam_ser_set_baud(%struct.termios* %0, i32 %1) {
%3 = alloca %struct.termios*
%4 = alloca i32
store %struct.termios* %0, %struct.termios** %3
store i32 %1, i32* %4
%5 = load %struct.termios*, %struct.termios** %3
%6 = load i32, i32* %4
%7 = call i32 @cfsetospeed(%struct.termios* %5, i32 %6)
%8 = load %struct.termios*, %struct.termios** %3
%9 = load i32, i32* %4
%10 = call i32 @cfsetispeed(%struct.termios* %8, i32 %9)
ret void
}

LLVM IR (-O2):
%struct.termios = type { i32 }
define void @oscam_ser_set_baud(%struct.termios* %0, i32 %1) {
%3 = tail call i32 @cfsetospeed(%struct.termios* %0, i32 %1)
%4 = tail call i32 @cfsetispeed(%struct.termios* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ initialise_monitor_handles();
int /*<<< orphan*/ main();
void _start(void) {
  initialise_monitor_handles();
  main();
  exit(0);
}


x86 assembly (clang, -O0):
<_start>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <initialise_monitor_handles@plt>
mov    $0x0,%al
call   1040 <main@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<_start>:
push   %rax
xor    %eax,%eax
call   1030 <initialise_monitor_handles@plt>
xor    %eax,%eax
call   1040 <main@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
define void @_start() {
%1 = call i32 (...) @initialise_monitor_handles()
%2 = call i32 (...) @main()
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @_start() {
%1 = tail call i32 (...) @initialise_monitor_handles()
%2 = tail call i32 (...) @main()
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ Debugger();
int /*<<< orphan*/ ShowErrorMessage(char *, char *);
int /*<<< orphan*/ error();
int /*<<< orphan*/ kWriteLog(char *);
void DivideByZeroFault() {
  Debugger();
  ShowErrorMessage("DIV 0 FAULT", "DIVIDE BY 0 FAULT");
  kWriteLog("DIVIDE BY 0 FAULT");
  error();
}


x86 assembly (clang, -O0):
<DivideByZeroFault>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <Debugger@plt>
lea    0xeae(%rip),%rdi
lea    0xeb3(%rip),%rsi
call   1060 <ShowErrorMessage@plt>
lea    0xea7(%rip),%rdi
call   1040 <kWriteLog@plt>
mov    $0x0,%al
call   1050 <error@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<DivideByZeroFault>:
push   %rbx
xor    %eax,%eax
call   1030 <Debugger@plt>
lea    0xeb1(%rip),%rdi
lea    0xeb6(%rip),%rbx
mov    %rbx,%rsi
call   1060 <ShowErrorMessage@plt>
mov    %rbx,%rdi
call   1040 <kWriteLog@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <error@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"DIV 0 FAULT\00"
@.str.1 = [18 x i8] c"DIVIDE BY 0 FAULT\00"
define void @DivideByZeroFault() {
%1 = call i32 (...) @Debugger()
%2 = call i32 @ShowErrorMessage(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @kWriteLog(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @error()
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"DIV 0 FAULT\00"
@.str.1 = [18 x i8] c"DIVIDE BY 0 FAULT\00"
define void @DivideByZeroFault() {
%1 = tail call i32 (...) @Debugger()
%2 = tail call i32 @ShowErrorMessage(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @kWriteLog(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @error()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sscanf(char *, char *, int *);
int GetPOS(char *sensekey) {
  int pos;
  while (*sensekey++ != '%')
    ;
  sscanf(sensekey, "%1d", &pos);
  return (pos == 5 ? 3 : pos);
}


x86 assembly (clang, -O0):
<GetPOS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
cmp    $0x25,%eax
je     113c <GetPOS+0x2c>
jmp    111c <GetPOS+0xc>
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
lea    -0xc(%rbp),%rdx
call   1030 <sscanf@plt>
cmpl   $0x5,-0xc(%rbp)
jne    1167 <GetPOS+0x57>
mov    $0x3,%eax
mov    %eax,-0x10(%rbp)
jmp    116d <GetPOS+0x5d>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetPOS>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmpb   $0x25,(%rdi)
lea    0x1(%rdi),%rdi
jne    1120 <GetPOS+0x10>
lea    0xed0(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1030 <sscanf@plt>
mov    0x4(%rsp),%ecx
cmp    $0x5,%ecx
mov    $0x3,%eax
cmovne %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%1d\00"
define i32 @GetPOS(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
br label %4
4: ; preds = %10, %1
%5 = load i8*, i8** %2
%6 = getelementptr inbounds i8, i8* %5, i32 1
store i8* %6, i8** %2
%7 = load i8, i8* %5
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 37
br i1 %9, label %10, label %11
10: ; preds = %4
br label %4
11: ; preds = %4
%12 = load i8*, i8** %2
%13 = call i32 @sscanf(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %3)
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 5
br i1 %15, label %16, label %17
16: ; preds = %11
br label %19
17: ; preds = %11
%18 = load i32, i32* %3
br label %19
19: ; preds = %17, %16
%20 = phi i32 [ 3, %16 ], [ %18, %17 ]
ret i32 %20
}

LLVM IR (-O2):
@.str = [4 x i8] c"%1d\00"
define i32 @GetPOS(i8* nocapture %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
br label %4
4: ; preds = %4, %1
%5 = phi i8* [ %0, %1 ], [ %6, %4 ]
%6 = getelementptr inbounds i8, i8* %5, i64 1
%7 = load i8, i8* %5
%8 = icmp eq i8 %7, 37
br i1 %8, label %9, label %4
9: ; preds = %4
%10 = call i32 @sscanf(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 5
%13 = select i1 %12, i32 3, i32 %11
ret i32 %13
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ from_configure;
};
typedef TYPE_1__ XUnmapEvent;

/* Variables and functions */
int get_XUnmapEvent_from_configure(void *_p) {
  return (int)((XUnmapEvent *)_p)->from_configure;
}


x86 assembly (clang, -O0):
<get_XUnmapEvent_from_configure>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_XUnmapEvent_from_configure>:
mov    (%rdi),%eax
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i32 @get_XUnmapEvent_from_configure(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @get_XUnmapEvent_from_configure(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ arr;

/* Variables and functions */
int findkmax(int *, int, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int arr[] = {10, 20, 30, 40, 50, 60, 70};
  int len = sizeof(arr) / sizeof(arr[0]);
  printf("\n <<<<>>>>>>Kth max is [%u]", findkmax(arr, len, 7));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xec2(%rip),%eax
mov    %eax,-0x8(%rbp)
movl   $0x7,-0x24(%rbp)
lea    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x7,%edx
call   1040 <findkmax@plt>
mov    %eax,%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movups 0xee1(%rip),%xmm0
movups %xmm0,0xc(%rsp)
movaps 0xec9(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x7,%esi
mov    $0x7,%edx
call   1040 <findkmax@plt>
lea    0xec8(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.arr = [7 x i32] [i32 10, i32 20, i32 30, i32 40, i32 50, i32 60, i32 70]
@.str = [28 x i8] c"\0A <<<<>>>>>>Kth max is [%u]\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i32]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [7 x i32]* %2 to i8*
store i32 7, i32* %3
%5 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%6 = load i32, i32* %3
%7 = call i32 @findkmax(i32* %5, i32 %6, i32 7)
%8 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %7)
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr = [7 x i32] [i32 10, i32 20, i32 30, i32 40, i32 50, i32 60, i32 70]
@.str = [28 x i8] c"\0A <<<<>>>>>>Kth max is [%u]\00"
define i32 @main() {
%1 = alloca [7 x i32]
%2 = bitcast [7 x i32]* %1 to i8*
%3 = getelementptr inbounds [7 x i32], [7 x i32]* %1, i64 0, i64 0
%4 = call i32 @findkmax(i32* %3, i32 7, i32 7)
%5 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}
void testUnknownFunction(void (*foo)(void)) { foo(); }


x86 assembly (clang, -O0):
<testUnknownFunction>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
call   *-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testUnknownFunction>:
jmp    *%rdi

LLVM IR (-O0):
define void @testUnknownFunction(void ()* %0) {
%2 = alloca void ()*
store void ()* %0, void ()** %2
%3 = load void ()*, void ()** %2
ret void
}

LLVM IR (-O2):
define void @testUnknownFunction(void ()* nocapture %0) {
tail call void %0()
ret void
}
void b_output_chars(const char *str, unsigned long nbr) {
  asm volatile("call *0x00100018" : : "S"(str), "c"(nbr));
}


x86 assembly (clang, -O0):
<b_output_chars>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rcx
call   *0x100018
pop    %rbp
ret

x86 assembly (clang, -O2):
<b_output_chars>:
mov    %rsi,%rcx
mov    %rdi,%rsi
call   *0x100018
ret

LLVM IR (-O0):
define void @b_output_chars(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
ret void
}

LLVM IR (-O2):
define void @b_output_chars(i8* %0, i64 %1) {
tail call void asm sideeffect "call *0x00100018", "{si},{cx},~{dirflag},~{fpsr},~{flags}"(i8* %0, i64 %1)
ret void
}
/* Variables and functions */
float expf(float);
float __ocl_native_exp_float(float src) { return expf(src); }


x86 assembly (clang, -O0):
<__ocl_native_exp_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <expf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ocl_native_exp_float>:
jmp    1030 <expf@plt>

LLVM IR (-O0):
define float @__ocl_native_exp_float(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @expf(float %3)
ret float %4
}

LLVM IR (-O2):
define float @__ocl_native_exp_float(float %0) {
%2 = tail call float @expf(float %0)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ DelayTime(int);
int /*<<< orphan*/ iRobot_DefaultClean();
int /*<<< orphan*/ iRobot_SafeMode();
int /*<<< orphan*/ iRobot_Start();
int /*<<< orphan*/ iRobot_Stop();
void IRobotStartCleaning() {
  iRobot_Start();
  DelayTime(1000);
  iRobot_SafeMode();
  DelayTime(1000);
  iRobot_DefaultClean();
  DelayTime(1000);
  iRobot_Stop();
}


x86 assembly (clang, -O0):
<IRobotStartCleaning>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <iRobot_Start@plt>
mov    $0x3e8,%edi
call   1050 <DelayTime@plt>
mov    $0x0,%al
call   1040 <iRobot_SafeMode@plt>
mov    $0x3e8,%edi
call   1050 <DelayTime@plt>
mov    $0x0,%al
call   1070 <iRobot_DefaultClean@plt>
mov    $0x3e8,%edi
call   1050 <DelayTime@plt>
mov    $0x0,%al
call   1060 <iRobot_Stop@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<IRobotStartCleaning>:
push   %rax
xor    %eax,%eax
call   1030 <iRobot_Start@plt>
mov    $0x3e8,%edi
call   1050 <DelayTime@plt>
xor    %eax,%eax
call   1040 <iRobot_SafeMode@plt>
mov    $0x3e8,%edi
call   1050 <DelayTime@plt>
xor    %eax,%eax
call   1070 <iRobot_DefaultClean@plt>
mov    $0x3e8,%edi
call   1050 <DelayTime@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <iRobot_Stop@plt>

LLVM IR (-O0):
define void @IRobotStartCleaning() {
%1 = call i32 (...) @iRobot_Start()
%2 = call i32 @DelayTime(i32 1000)
%3 = call i32 (...) @iRobot_SafeMode()
%4 = call i32 @DelayTime(i32 1000)
%5 = call i32 (...) @iRobot_DefaultClean()
%6 = call i32 @DelayTime(i32 1000)
%7 = call i32 (...) @iRobot_Stop()
ret void
}

LLVM IR (-O2):
define void @IRobotStartCleaning() {
%1 = tail call i32 (...) @iRobot_Start()
%2 = tail call i32 @DelayTime(i32 1000)
%3 = tail call i32 (...) @iRobot_SafeMode()
%4 = tail call i32 @DelayTime(i32 1000)
%5 = tail call i32 (...) @iRobot_DefaultClean()
%6 = tail call i32 @DelayTime(i32 1000)
%7 = tail call i32 (...) @iRobot_Stop()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void dep() { printf("hello world\n"); }


x86 assembly (clang, -O0):
<dep>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<dep>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"hello world\0A\00"
define void @dep() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [12 x i8] c"hello world\00"
define void @dep() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ deux();
int /*<<< orphan*/ trois();
int /*<<< orphan*/ un();
int main(int argc, char *argv[]) {
  un();
  deux();
  trois();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <un@plt>
mov    $0x0,%al
call   1040 <deux@plt>
mov    $0x0,%al
call   1050 <trois@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <un@plt>
xor    %eax,%eax
call   1040 <deux@plt>
xor    %eax,%eax
call   1050 <trois@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @un()
%7 = call i32 (...) @deux()
%8 = call i32 (...) @trois()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @un()
%4 = tail call i32 (...) @deux()
%5 = tail call i32 (...) @trois()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ irc_out(char *, char const *);
void irc_join_channel(const char *channel) {
  irc_out("JOIN %s", channel);
  return;
}


x86 assembly (clang, -O0):
<irc_join_channel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <irc_out@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irc_join_channel>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <irc_out@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"JOIN %s\00"
define void @irc_join_channel(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @irc_out(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"JOIN %s\00"
define void @irc_join_channel(i8* %0) {
%2 = tail call i32 @irc_out(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *);
int symlink(char *, char *);
int main(void) {
  if (symlink("test.txt", "symbol_link") == -1) {
    perror("fail to create symbol link");
    exit(1);
  }
  printf("create a new symbol-link\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    0xeac(%rip),%rsi
call   1040 <symlink@plt>
cmp    $0xffffffff,%eax
jne    1181 <main+0x41>
lea    0xea3(%rip),%rdi
call   1050 <perror@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeb8(%rip),%rdi
lea    0xeba(%rip),%rsi
call   1040 <symlink@plt>
cmp    $0xffffffff,%eax
je     1169 <main+0x29>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xea5(%rip),%rdi
call   1050 <perror@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"test.txt\00"
@.str.1 = [12 x i8] c"symbol_link\00"
@.str.2 = [27 x i8] c"fail to create symbol link\00"
@.str.3 = [26 x i8] c"create a new symbol-link\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @symlink(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @exit(i32 1)
unreachable
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"test.txt\00"
@.str.1 = [12 x i8] c"symbol_link\00"
@.str.2 = [27 x i8] c"fail to create symbol link\00"
@str = [25 x i8] c"create a new symbol-link\00"
define i32 @main() {
%1 = tail call i32 @symlink(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i32 %1, -1
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = tail call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
6: ; preds = %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
double log(int);
double atanh(double x) { return log((1 + x) / (1 - x)) / 2.0; }


x86 assembly (clang, -O0):
<atanh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xee3(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
subsd  -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <log@plt>
movsd  0xeb4(%rip),%xmm1
divsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<atanh>:
push   %rax
movsd  0xee7(%rip),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
subsd  %xmm0,%xmm1
divsd  %xmm1,%xmm2
cvttsd2si %xmm2,%edi
call   1030 <log@plt>
mulsd  0xece(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @atanh(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fadd double 1.000000e+00, %3
%5 = load double, double* %2
%6 = fsub double 1.000000e+00, %5
%7 = fdiv double %4, %6
%8 = fptosi double %7 to i32
%9 = call double @log(i32 %8)
%10 = fdiv double %9, 2.000000e+00
ret double %10
}

LLVM IR (-O2):
define double @atanh(double %0) {
%2 = fadd double %0, 1.000000e+00
%3 = fsub double 1.000000e+00, %0
%4 = fdiv double %2, %3
%5 = fptosi double %4 to i32
%6 = tail call double @log(i32 %5)
%7 = fmul double %6, 5.000000e-01
ret double %7
}
/* Type definitions */
typedef int pid_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
void iffound_default(pid_t pid) {
  fprintf(stderr, "\nFound running process (pid=%d), exit.\n", pid);
  exit(0);
}


x86 assembly (clang, -O0):
<iffound_default>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xec2(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<iffound_default>:
push   %rax
mov    %edi,%edx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [40 x i8] c"\0AFound running process (pid=%d), exit.\0A\00"
define void @iffound_default(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = load i32, i32* %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [40 x i8] c"\0AFound running process (pid=%d), exit.\0A\00"
define void @iffound_default(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = tail call i32 @exit(i32 0)
unreachable
}
int main() {
  int;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ amaret_local_Mcu_reset__E();
int /*<<< orphan*/ pollen_hardware_Led_off__E();
void test41_Blink2_pollen__reset__E() {
  amaret_local_Mcu_reset__E();
  pollen_hardware_Led_off__E();
}


x86 assembly (clang, -O0):
<test41_Blink2_pollen__reset__E>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <amaret_local_Mcu_reset__E@plt>
mov    $0x0,%al
call   1040 <pollen_hardware_Led_off__E@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test41_Blink2_pollen__reset__E>:
push   %rax
xor    %eax,%eax
call   1030 <amaret_local_Mcu_reset__E@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <pollen_hardware_Led_off__E@plt>

LLVM IR (-O0):
define void @test41_Blink2_pollen__reset__E() {
%1 = call i32 (...) @amaret_local_Mcu_reset__E()
%2 = call i32 (...) @pollen_hardware_Led_off__E()
ret void
}

LLVM IR (-O2):
define void @test41_Blink2_pollen__reset__E() {
%1 = tail call i32 (...) @amaret_local_Mcu_reset__E()
%2 = tail call i32 (...) @pollen_hardware_Led_off__E()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ putc(int, int /*<<< orphan*/ *);
void fsend(FILE *in, FILE *out) {
  int c;
  while ((c = getc(in)) != EOF)
    putc(c, out);
}


x86 assembly (clang, -O0):
<fsend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    %eax,-0x14(%rbp)
mov    0x2ea5(%rip),%rcx
cmp    (%rcx),%eax
je     115c <fsend+0x3c>
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <putc@plt>
jmp    1130 <fsend+0x10>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fsend>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <getc@plt>
mov    0x2eb1(%rip),%r15
cmp    (%r15),%eax
je     1157 <fsend+0x37>
nopl   0x0(%rax)
mov    %eax,%edi
mov    %r14,%rsi
call   1030 <putc@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
cmp    (%r15),%eax
jne    1140 <fsend+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@EOF = global i32 0
define void @fsend(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
br label %6
6: ; preds = %11, %2
%7 = load i32*, i32** %3
%8 = call i32 @getc(i32* %7)
store i32 %8, i32* %5
%9 = load i32, i32* @EOF
%10 = icmp ne i32 %8, %9
br i1 %10, label %11, label %15
11: ; preds = %6
%12 = load i32, i32* %5
%13 = load i32*, i32** %4
%14 = call i32 @putc(i32 %12, i32* %13)
br label %6
15: ; preds = %6
ret void
}

LLVM IR (-O2):
@EOF = global i32 0
define void @fsend(i32* nocapture %0, i32* nocapture %1) {
%3 = tail call i32 @getc(i32* %0)
%4 = load i32, i32* @EOF
%5 = icmp eq i32 %3, %4
br i1 %5, label %12, label %6
6: ; preds = %2, %6
%7 = phi i32 [ %9, %6 ], [ %3, %2 ]
%8 = tail call i32 @putc(i32 %7, i32* %1)
%9 = tail call i32 @getc(i32* %0)
%10 = load i32, i32* @EOF
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %6
12: ; preds = %6, %2
ret void
}
/* Type definitions */
struct xyarray {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct xyarray *);
void xyarray__delete(struct xyarray *xy) { free(xy); }


x86 assembly (clang, -O0):
<xyarray__delete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xyarray__delete>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.xyarray = type { i32 }
define void @xyarray__delete(%struct.xyarray* %0) {
%2 = alloca %struct.xyarray*
store %struct.xyarray* %0, %struct.xyarray** %2
%3 = load %struct.xyarray*, %struct.xyarray** %2
%4 = call i32 @free(%struct.xyarray* %3)
ret void
}

LLVM IR (-O2):
%struct.xyarray = type { i32 }
define void @xyarray__delete(%struct.xyarray* nocapture %0) {
%2 = tail call i32 @free(%struct.xyarray* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void saludar() {
  printf("Bienvenido al programa\n");
  printf(" de ejemplo\n");
  printf("Bienvenido al programa\n");
}


x86 assembly (clang, -O0):
<saludar>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<saludar>:
push   %rbx
lea    0xef4(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"Bienvenido al programa\0A\00"
@.str.1 = [13 x i8] c" de ejemplo\0A\00"
define void @saludar() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str.2 = [12 x i8] c" de ejemplo\00"
@str.3 = [23 x i8] c"Bienvenido al programa\00"
define void @saludar() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.3, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.3, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ReverseGPIOP__1__In__makeOutput();
void ReverseGPIOP__1__Out__makeOutput(void) {
  ReverseGPIOP__1__In__makeOutput();
}


x86 assembly (clang, -O0):
<ReverseGPIOP__1__Out__makeOutput>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <ReverseGPIOP__1__In__makeOutput@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ReverseGPIOP__1__Out__makeOutput>:
xor    %eax,%eax
jmp    1030 <ReverseGPIOP__1__In__makeOutput@plt>

LLVM IR (-O0):
define void @ReverseGPIOP__1__Out__makeOutput() {
%1 = call i32 (...) @ReverseGPIOP__1__In__makeOutput()
ret void
}

LLVM IR (-O2):
define void @ReverseGPIOP__1__Out__makeOutput() {
%1 = tail call i32 (...) @ReverseGPIOP__1__In__makeOutput()
ret void
}
/* Variables and functions */
int atoi(char *);
int FindTempIndex(char *name) {
  char *p = &name[1];
  return atoi(p);
}


x86 assembly (clang, -O0):
<FindTempIndex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <atoi@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FindTempIndex>:
add    $0x1,%rdi
jmp    1030 <atoi@plt>

LLVM IR (-O0):
define i32 @FindTempIndex(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 1
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @atoi(i8* %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @FindTempIndex(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = tail call i32 @atoi(i8* %2)
ret i32 %3
}
/* Variables and functions */
int shlib_function();
int main(void) {
  int ret = shlib_function();
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <shlib_function@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
jmp    1030 <shlib_function@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @shlib_function()
store i32 %3, i32* %2
%4 = load i32, i32* %2
ret i32 %4
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @shlib_function()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalnum(int);
void t_isalnum_0xb3() {
  Assert_real((isalnum(179) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isalnum.c",
              900, ("isalnum should be 0 for 0xb3"));
}


x86 assembly (clang, -O0):
<t_isalnum_0xb3>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb3,%edi
call   1030 <isalnum@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x384,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isalnum_0xb3>:
push   %rax
mov    $0xb3,%edi
call   1030 <isalnum@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x384,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0xb3\00"
define void @t_isalnum_0xb3() {
%1 = call i64 @isalnum(i32 179)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 900, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0xb3\00"
define void @t_isalnum_0xb3() {
%1 = tail call i64 @isalnum(i32 179)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 900, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void perf_measure_map(void) {}


x86 assembly (clang, -O0):
<perf_measure_map>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<perf_measure_map>:
ret

LLVM IR (-O0):
define void @perf_measure_map() {
ret void
}

LLVM IR (-O2):
define void @perf_measure_map() {
ret void
}
char *strspn(const char *s1, const char *s2) {
  const char *p = s1, *spanp;
  char c, sc;
cont:
  c = *p++;
  for (spanp = s2; (sc = *spanp++) != 0;)
    if (sc == c)
      goto cont;
  return (char *)(p - 1 - s1);
}


x86 assembly (clang, -O0):
<strspn>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%al
mov    %al,-0x21(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
mov    (%rax),%al
mov    %al,-0x22(%rbp)
movsbl %al,%eax
cmp    $0x0,%eax
je     116a <strspn+0x6a>
movsbl -0x22(%rbp),%eax
movsbl -0x21(%rbp),%ecx
cmp    %ecx,%eax
jne    1165 <strspn+0x65>
jmp    1114 <strspn+0x14>
jmp    1130 <strspn+0x30>
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strspn>:
mov    %rdi,%rax
lea    0x1(%rax),%r8
mov    (%rax),%r9b
mov    %rsi,%rcx
nopl   (%rax)
movzbl (%rcx),%edx
test   %dl,%dl
je     1125 <strspn+0x25>
add    $0x1,%rcx
cmp    %r9b,%dl
jne    1110 <strspn+0x10>
mov    %r8,%rax
jmp    1103 <strspn+0x3>
sub    %rdi,%rax
ret

LLVM IR (-O0):
define i8* @strspn(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8
%8 = alloca i8
store i8* %0, i8** %3
store i8* %1, i8** %4
%9 = load i8*, i8** %3
store i8* %9, i8** %5
br label %10
10: ; preds = %27, %2
%11 = load i8*, i8** %5
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %5
%13 = load i8, i8* %11
store i8 %13, i8* %7
%14 = load i8*, i8** %4
store i8* %14, i8** %6
br label %15
15: ; preds = %28, %10
%16 = load i8*, i8** %6
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %6
%18 = load i8, i8* %16
store i8 %18, i8* %8
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %15
%22 = load i8, i8* %8
%23 = sext i8 %22 to i32
%24 = load i8, i8* %7
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %23, %25
br i1 %26, label %27, label %28
27: ; preds = %21
br label %10
28: ; preds = %21
br label %15
29: ; preds = %15
%30 = load i8*, i8** %5
%31 = getelementptr inbounds i8, i8* %30, i64 -1
%32 = load i8*, i8** %3
%33 = ptrtoint i8* %31 to i64
%34 = ptrtoint i8* %32 to i64
%35 = sub i64 %33, %34
%36 = inttoptr i64 %35 to i8*
ret i8* %36
}

LLVM IR (-O2):
define i8* @strspn(i8* %0, i8* nocapture %1) {
br label %3
3: ; preds = %11, %2
%4 = phi i8* [ %0, %2 ], [ %5, %11 ]
%5 = getelementptr inbounds i8, i8* %4, i64 1
%6 = load i8, i8* %4
br label %7
7: ; preds = %11, %3
%8 = phi i8* [ %1, %3 ], [ %12, %11 ]
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %7
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = icmp eq i8 %9, %6
br i1 %13, label %3, label %7
14: ; preds = %7
%15 = ptrtoint i8* %4 to i64
%16 = ptrtoint i8* %0 to i64
%17 = sub i64 %15, %16
%18 = inttoptr i64 %17 to i8*
ret i8* %18
}
/* Type definitions */
typedef int /*<<< orphan*/ GLvoid;
typedef int GLsizei;

/* Variables and functions */
const GLvoid *bufferObjectPtr(GLsizei index) {
  return (const GLvoid *)(((char *)NULL) + index);
}


x86 assembly (clang, -O0):
<bufferObjectPtr>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bufferObjectPtr>:
mov    %edi,%eax
ret

LLVM IR (-O0):
define i32* @bufferObjectPtr(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = inttoptr i32 %3 to i8*
%5 = bitcast i8* %4 to i32*
ret i32* %5
}

LLVM IR (-O2):
define i32* @bufferObjectPtr(i32 %0) {
%2 = zext i32 %0 to i64
%3 = inttoptr i64 %2 to i32*
ret i32* %3
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t hash_djb_str(const void *key) {
  const char *str = key;
  uint32_t hash = 5381;
  while (*str++)
    hash = ((hash << 5) + hash) + *str;
  return hash;
}


x86 assembly (clang, -O0):
<hash_djb_str>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x1505,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
cmpb   $0x0,(%rax)
je     1149 <hash_djb_str+0x49>
mov    -0x14(%rbp),%eax
shl    $0x5,%eax
add    -0x14(%rbp),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
jmp    1117 <hash_djb_str+0x17>
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_djb_str>:
cmpb   $0x0,(%rdi)
je     1125 <hash_djb_str+0x25>
add    $0x1,%rdi
mov    $0x1505,%ecx
mov    %ecx,%eax
shl    $0x5,%eax
add    %ecx,%eax
movsbl (%rdi),%edx
add    %edx,%eax
add    $0x1,%rdi
mov    %eax,%ecx
test   %edx,%edx
jne    1110 <hash_djb_str+0x10>
ret
mov    $0x1505,%eax
ret

LLVM IR (-O0):
define i32 @hash_djb_str(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %2
%5 = load i8*, i8** %2
store i8* %5, i8** %3
store i32 5381, i32* %4
br label %6
6: ; preds = %11, %1
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i32 1
store i8* %8, i8** %3
%9 = load i8, i8* %7
%10 = icmp ne i8 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %6
%12 = load i32, i32* %4
%13 = shl i32 %12, 5
%14 = load i32, i32* %4
%15 = add nsw i32 %13, %14
%16 = load i8*, i8** %3
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = add nsw i32 %15, %18
store i32 %19, i32* %4
br label %6
20: ; preds = %6
%21 = load i32, i32* %4
ret i32 %21
}

LLVM IR (-O2):
define i32 @hash_djb_str(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1, %4
%5 = phi i8* [ %7, %4 ], [ %0, %1 ]
%6 = phi i32 [ %11, %4 ], [ 5381, %1 ]
%7 = getelementptr inbounds i8, i8* %5, i64 1
%8 = mul i32 %6, 33
%9 = load i8, i8* %7
%10 = sext i8 %9 to i32
%11 = add nsw i32 %8, %10
%12 = icmp eq i8 %9, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %1
%14 = phi i32 [ 5381, %1 ], [ %11, %4 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ COLS;
int /*<<< orphan*/ LINES;
int /*<<< orphan*/ SIGWINCH;
int /*<<< orphan*/ curscr;
int /*<<< orphan*/ resize_term(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ signal(int /*<<< orphan*/, void (*)(int));
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/);
void interface_sigwinch_adjust(int sig) {
  resize_term(LINES, COLS);
  wrefresh(curscr);
  signal(SIGWINCH, interface_sigwinch_adjust);
}


x86 assembly (clang, -O0):
<interface_sigwinch_adjust>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    0x2e8d(%rip),%rax
mov    (%rax),%esi
call   1050 <resize_term@plt>
mov    0x2e5f(%rip),%rax
mov    (%rax),%edi
call   1030 <wrefresh@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
mov    0x2e58(%rip),%rsi
call   1040 <signal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interface_sigwinch_adjust>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
mov    0x2e97(%rip),%rax
mov    (%rax),%esi
call   1050 <resize_term@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
call   1030 <wrefresh@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
mov    0x2e62(%rip),%rsi
pop    %rax
jmp    1040 <signal@plt>

LLVM IR (-O0):
@LINES = global i32 0
@COLS = global i32 0
@curscr = global i32 0
@SIGWINCH = global i32 0
define void @interface_sigwinch_adjust(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @LINES
%4 = load i32, i32* @COLS
%5 = call i32 @resize_term(i32 %3, i32 %4)
%6 = load i32, i32* @curscr
%7 = call i32 @wrefresh(i32 %6)
%8 = load i32, i32* @SIGWINCH
%9 = call i32 @signal(i32 %8, void (i32)* @interface_sigwinch_adjust)
ret void
}

LLVM IR (-O2):
@LINES = global i32 0
@COLS = global i32 0
@curscr = global i32 0
@SIGWINCH = global i32 0
define void @interface_sigwinch_adjust(i32 %0) {
%2 = load i32, i32* @LINES
%3 = load i32, i32* @COLS
%4 = tail call i32 @resize_term(i32 %2, i32 %3)
%5 = load i32, i32* @curscr
%6 = tail call i32 @wrefresh(i32 %5)
%7 = load i32, i32* @SIGWINCH
%8 = tail call i32 @signal(i32 %7, void (i32)* @interface_sigwinch_adjust)
ret void
}
int get_btrfs_subvol_size(struct mosaic *m, struct volume *t,
                          unsigned long *size_in_blocks) {
  return -1;
}


x86 assembly (clang, -O0):
<get_btrfs_subvol_size>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_btrfs_subvol_size>:
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
%struct.mosaic = type opaque
%struct.volume = type opaque
define i32 @get_btrfs_subvol_size(%struct.mosaic* %0, %struct.volume* %1, i64* %2) {
%4 = alloca %struct.mosaic*
%5 = alloca %struct.volume*
%6 = alloca i64*
store %struct.mosaic* %0, %struct.mosaic** %4
store %struct.volume* %1, %struct.volume** %5
store i64* %2, i64** %6
ret i32 -1
}

LLVM IR (-O2):
%struct.mosaic = type opaque
%struct.volume = type opaque
define i32 @get_btrfs_subvol_size(%struct.mosaic* nocapture readnone %0, %struct.volume* nocapture readnone %1, i64* nocapture readnone %2) {
ret i32 -1
}
/* Type definitions */
struct utimbuf {
  scalar_t__ modtime;
  scalar_t__ actime;
};

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ utime(char *, struct utimbuf *);
int main(void) {
  struct utimbuf times;
  times.actime = 0;
  times.modtime = 0;
  if (0 > utime("arnold.layne", &times))
    return EXIT_FAILURE;
  else
    return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <utime@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jle    115e <main+0x4e>
mov    0x2e8c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    116a <main+0x5a>
mov    0x2e73(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
lea    0xede(%rip),%rdi
mov    %rsp,%rsi
call   1030 <utime@plt>
test   %rax,%rax
jns    1138 <main+0x28>
mov    0x2eaa(%rip),%rax
jmp    113f <main+0x2f>
mov    0x2e99(%rip),%rax
mov    (%rax),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.utimbuf = type { i64, i64 }
@.str = [13 x i8] c"arnold.layne\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.utimbuf
store i32 0, i32* %1
%3 = getelementptr inbounds %struct.utimbuf, %struct.utimbuf* %2, i32 0, i32 1
store i64 0, i64* %3
%4 = getelementptr inbounds %struct.utimbuf, %struct.utimbuf* %2, i32 0, i32 0
store i64 0, i64* %4
%5 = call i64 @utime(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.utimbuf* %2)
%6 = icmp sgt i64 0, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = load i32, i32* @EXIT_FAILURE
store i32 %8, i32* %1
br label %11
9: ; preds = %0
%10 = load i32, i32* @EXIT_SUCCESS
store i32 %10, i32* %1
br label %11
11: ; preds = %9, %7
%12 = load i32, i32* %1
ret i32 %12
}

LLVM IR (-O2):
%struct.utimbuf = type { i64, i64 }
@.str = [13 x i8] c"arnold.layne\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca %struct.utimbuf
%2 = bitcast %struct.utimbuf* %1 to i8*
%3 = bitcast %struct.utimbuf* %1 to i8*
%4 = call i64 @utime(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.utimbuf* %1)
%5 = icmp slt i64 %4, 0
%6 = load i32, i32* @EXIT_FAILURE
%7 = load i32, i32* @EXIT_SUCCESS
%8 = select i1 %5, i32 %6, i32 %7
ret i32 %8
}