xunge/DecIR huggingface dataset:
char isign(signed long num) {
  return ((((((num))) <= ((0))) ? (((((num))) < ((0))) ? (('-')) : ((' ')))
                                : (('+'))));
}


x86 assembly (clang, -O0):
<isign>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jg     1130 <isign+0x30>
mov    -0x8(%rbp),%rdx
mov    $0x20,%eax
mov    $0x2d,%ecx
cmp    $0x0,%rdx
cmovl  %ecx,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <isign+0x3d>
mov    $0x2b,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <isign+0x3d>
mov    -0xc(%rbp),%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isign>:
test   %rdi,%rdi
mov    $0x20,%eax
mov    $0x2d,%ecx
cmove  %eax,%ecx
mov    $0x2b,%eax
cmovle %ecx,%eax
ret

LLVM IR (-O0):
define signext i8 @isign(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp sle i64 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i64, i64* %2
%7 = icmp slt i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 45, i32 32
br label %11
10: ; preds = %1
br label %11
11: ; preds = %10, %5
%12 = phi i32 [ %9, %5 ], [ 43, %10 ]
%13 = trunc i32 %12 to i8
ret i8 %13
}

LLVM IR (-O2):
define signext i8 @isign(i64 %0) {
%2 = icmp slt i64 %0, 1
%3 = icmp eq i64 %0, 0
%4 = select i1 %3, i8 32, i8 45
%5 = select i1 %2, i8 %4, i8 43
ret i8 %5
}
int set_sta_encryp_type(int radio) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @set_sta_encryp_type(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void Tui_Textbackground(int color) { printf("\x1b[%dm", 40 + color); }


x86 assembly (clang, -O0):
<Tui_Textbackground>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
add    $0x28,%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tui_Textbackground>:
lea    0x28(%rdi),%esi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"\1B[%dm\00"
define void @Tui_Textbackground(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 40, %3
%5 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"\1B[%dm\00"
define void @Tui_Textbackground(i32 %0) {
%2 = add nsw i32 %0, 40
%3 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ i2c_shut();
void eeprom_shut(void) { i2c_shut(); }


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

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

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

LLVM IR (-O2):
define void @eeprom_shut() {
%1 = tail call i32 (...) @i2c_shut()
ret void
}
/* Variables and functions */
double exp(double);
double cosh(double x) { return .5 * (exp(x) + exp(-x)); }


x86 assembly (clang, -O0):
<cosh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <exp@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1030 <exp@plt>
movsd  -0x10(%rbp),%xmm1
addsd  %xmm0,%xmm1
movsd  0xea2(%rip),%xmm0
mulsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cosh>:
sub    $0x28,%rsp
movaps %xmm0,0x10(%rsp)
call   1030 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movapd 0x10(%rsp),%xmm0
xorpd  0xece(%rip),%xmm0
call   1030 <exp@plt>
addsd  0x8(%rsp),%xmm0
mulsd  0xecb(%rip),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @cosh(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @exp(double %3)
%5 = load double, double* %2
%6 = fneg double %5
%7 = call double @exp(double %6)
%8 = fadd double %4, %7
%9 = fmul double 5.000000e-01, %8
ret double %9
}

LLVM IR (-O2):
define double @cosh(double %0) {
%2 = tail call double @exp(double %0)
%3 = fneg double %0
%4 = tail call double @exp(double %3)
%5 = fadd double %2, %4
%6 = fmul double %5, 5.000000e-01
ret double %6
}
int xtensa_uimm6(v)
int v;
{ return v >= 0 && v <= 63; }


x86 assembly (clang, -O0):
<xtensa_uimm6>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <xtensa_uimm6+0x20>
cmpl   $0x3f,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xtensa_uimm6>:
xor    %eax,%eax
cmp    $0x40,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @xtensa_uimm6(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 63
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @xtensa_uimm6(i32 %0) {
%2 = icmp ult i32 %0, 64
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printids(char *);
void *thread(void *arg) {
  printids("new thread:");
  return ((void *)0);
}


x86 assembly (clang, -O0):
<thread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printids@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<thread>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printids@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"new thread:\00"
define i8* @thread(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printids(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i8* null
}

LLVM IR (-O2):
@.str = [12 x i8] c"new thread:\00"
define noalias i8* @thread(i8* nocapture readnone %0) {
%2 = tail call i32 @printids(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ printf(char *);
void main() {
  char str1[50];
  void longword(char str[]);
  printf("please enter a string:\n");
  gets(str1);
  longword(str1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1040 <gets@plt>
lea    -0x40(%rbp),%rdi
call   1050 <longword@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <gets@plt>
mov    %rbx,%rdi
call   1050 <longword@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"please enter a string:\0A\00"
define void @main() {
%1 = alloca [50 x i8]
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%4 = call i32 @gets(i8* %3)
%5 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"please enter a string:\00"
define void @main() {
%1 = alloca [50 x i8]
%2 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%4 = call i32 @gets(i8* %2)
ret void
}
void isr_svcall(void) {
  while (1)
    ;
}


x86 assembly (clang, -O0):
<isr_svcall>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <isr_svcall+0x9>
jmp    1109 <isr_svcall+0x9>

x86 assembly (clang, -O2):
<isr_svcall>:
jmp    1100 <isr_svcall>

LLVM IR (-O0):
define void @isr_svcall() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @isr_svcall() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Variables and functions */
int strlen(char *);
void quitarSaltoLinea(char *string) {
  if (string[strlen(string) - 1] == '\n')
    string[strlen(string) - 1] = '\0';
}


x86 assembly (clang, -O0):
<quitarSaltoLinea>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    1167 <quitarSaltoLinea+0x57>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quitarSaltoLinea>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
cltq
cmpb   $0xa,-0x1(%rax,%rbx,1)
jne    1131 <quitarSaltoLinea+0x21>
mov    %rbx,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
pop    %rbx
ret

LLVM IR (-O0):
define void @quitarSaltoLinea(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @strlen(i8* %4)
%6 = sub nsw i32 %5, 1
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %3, i64 %7
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 10
br i1 %11, label %12, label %19
12: ; preds = %1
%13 = load i8*, i8** %2
%14 = load i8*, i8** %2
%15 = call i32 @strlen(i8* %14)
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %13, i64 %17
store i8 0, i8* %18
br label %19
19: ; preds = %12, %1
ret void
}

LLVM IR (-O2):
define void @quitarSaltoLinea(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, -1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 10
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = tail call i32 @strlen(i8* %0)
%10 = add nsw i32 %9, -1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, i8* %0, i64 %11
store i8 0, i8* %12
br label %13
13: ; preds = %8, %1
ret void
}
/* Type definitions */
struct _stor_fopen_rsp {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ osapi_free(struct _stor_fopen_rsp *);
void stor_fopen_rsp_free(struct _stor_fopen_rsp *ptr) { osapi_free(ptr); }


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

x86 assembly (clang, -O2):
<stor_fopen_rsp_free>:
jmp    1030 <osapi_free@plt>

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

LLVM IR (-O2):
%struct._stor_fopen_rsp = type { i32 }
define void @stor_fopen_rsp_free(%struct._stor_fopen_rsp* %0) {
%2 = tail call i32 @osapi_free(%struct._stor_fopen_rsp* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ localtime_r(int /*<<< orphan*/ *, struct tm *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  char buf[64];
  time_t curr_time;
  struct tm curr_tm;
  time(&curr_time);
  localtime_r(&curr_time, &curr_tm);
  strftime(buf, sizeof(buf), "%F %T", &curr_tm);
  printf("%s\n", buf);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x54(%rbp),%rdi
call   1050 <time@plt>
lea    -0x54(%rbp),%rdi
lea    -0x58(%rbp),%rsi
call   1030 <localtime_r@plt>
lea    -0x50(%rbp),%rdi
mov    $0x40,%esi
lea    0xe8b(%rip),%rdx
lea    -0x58(%rbp),%rcx
call   1060 <strftime@plt>
lea    -0x50(%rbp),%rsi
lea    0xe7d(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x58,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <time@plt>
lea    0x8(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <localtime_r@plt>
lea    0xe95(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x40,%esi
mov    %r14,%rcx
call   1060 <strftime@plt>
lea    0xe7f(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [6 x i8] c"%F %T\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x i8]
%3 = alloca i32
%4 = alloca %struct.tm
store i32 0, i32* %1
%5 = call i32 @time(i32* %3)
%6 = call i32 @localtime_r(i32* %3, %struct.tm* %4)
%7 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%8 = call i32 @strftime(i8* %7, i32 64, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %struct.tm* %4)
%9 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %9)
ret i32 0
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [6 x i8] c"%F %T\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca [64 x i8]
%2 = alloca i32
%3 = alloca %struct.tm
%4 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%5 = bitcast i32* %2 to i8*
%6 = bitcast %struct.tm* %3 to i8*
%7 = call i32 @time(i32* %2)
%8 = call i32 @localtime_r(i32* %2, %struct.tm* %3)
%9 = call i32 @strftime(i8* %4, i32 64, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %struct.tm* %3)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 0
}
/* Type definitions */
struct cec_msg {
  int len;
  int *msg;
};
typedef int __u8;

/* Variables and functions */
void cec_ops_vendor_remote_button_down(const struct cec_msg *msg, __u8 *size,
                                       const __u8 **rc_code) {
  *size = msg->len - 2;
  if (*size > 14) {
    *size = 14;
  }
  *rc_code = msg->msg + 2;
}


x86 assembly (clang, -O0):
<cec_ops_vendor_remote_button_down>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sub    $0x2,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0xe,(%rax)
jle    1136 <cec_ops_vendor_remote_button_down+0x36>
mov    -0x10(%rbp),%rax
movl   $0xe,(%rax)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rcx
add    $0x8,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<cec_ops_vendor_remote_button_down>:
mov    (%rdi),%eax
lea    -0x2(%rax),%ecx
cmp    $0x11,%eax
mov    $0xe,%eax
cmovl  %ecx,%eax
mov    %eax,(%rsi)
mov    0x8(%rdi),%rax
add    $0x8,%rax
mov    %rax,(%rdx)
ret

LLVM IR (-O0):
%struct.cec_msg = type { i32, i32* }
define void @cec_ops_vendor_remote_button_down(%struct.cec_msg* %0, i32* %1, i32** %2) {
%4 = alloca %struct.cec_msg*
%5 = alloca i32*
%6 = alloca i32**
store %struct.cec_msg* %0, %struct.cec_msg** %4
store i32* %1, i32** %5
store i32** %2, i32*** %6
%7 = load %struct.cec_msg*, %struct.cec_msg** %4
%8 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %7, i32 0, i32 0
%9 = load i32, i32* %8
%10 = sub nsw i32 %9, 2
%11 = load i32*, i32** %5
store i32 %10, i32* %11
%12 = load i32*, i32** %5
%13 = load i32, i32* %12
%14 = icmp sgt i32 %13, 14
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32*, i32** %5
store i32 14, i32* %16
br label %17
17: ; preds = %15, %3
%18 = load %struct.cec_msg*, %struct.cec_msg** %4
%19 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %18, i32 0, i32 1
%20 = load i32*, i32** %19
%21 = getelementptr inbounds i32, i32* %20, i64 2
%22 = load i32**, i32*** %6
store i32* %21, i32** %22
ret void
}

LLVM IR (-O2):
%struct.cec_msg = type { i32, i32* }
define void @cec_ops_vendor_remote_button_down(%struct.cec_msg* nocapture %0, i32* nocapture writeonly %1, i32** nocapture writeonly %2) {
%4 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %0, i64 0, i32 0
%5 = load i32, i32* %4
%6 = add nsw i32 %5, -2
%7 = icmp sgt i32 %5, 16
%8 = select i1 %7, i32 14, i32 %6
store i32 %8, i32* %1
%9 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %0, i64 0, i32 1
%10 = load i32*, i32** %9
%11 = getelementptr inbounds i32, i32* %10, i64 2
store i32* %11, i32** %2
ret void
}
int diag_l2_proto_raw_stopcomms(struct diag_l2_conn *pX
                                __attribute__((unused))) {
  return (0);
}


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

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

LLVM IR (-O0):
%struct.diag_l2_conn = type opaque
define i32 @diag_l2_proto_raw_stopcomms(%struct.diag_l2_conn* %0) {
%2 = alloca %struct.diag_l2_conn*
store %struct.diag_l2_conn* %0, %struct.diag_l2_conn** %2
ret i32 0
}

LLVM IR (-O2):
%struct.diag_l2_conn = type opaque
define i32 @diag_l2_proto_raw_stopcomms(%struct.diag_l2_conn* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ StartAccessors();
void StartRuntime() { StartAccessors(); }


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

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

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

LLVM IR (-O2):
define void @StartRuntime() {
%1 = tail call i32 (...) @StartAccessors()
ret void
}
void bar() {
  __extension__ typedef signed long long int __int64_t;
  __extension__ typedef unsigned long long int __uint64_t;
}


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

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

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

LLVM IR (-O2):
define void @bar() {
ret void
}
OP(fd, fe) { op_fe(); }


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

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

LLVM IR (-O0):
define i32 @OP(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (...) @op_fe()
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
%3 = tail call i32 (...) @op_fe()
ret i32 undef
}
int roxml_is_separator(char sep) {
  int i = 0;
  char separators[32] = "\t\n ";
  while (separators[i] != 0) {
    if (sep == separators[i]) {
      return 1;
    }
    i++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<roxml_is_separator>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movl   $0x0,-0xc(%rbp)
mov    0xee8(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xee5(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xee2(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xedf(%rip),%rax
mov    %rax,-0x18(%rbp)
movslq -0xc(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     117e <roxml_is_separator+0x7e>
movsbl -0x5(%rbp),%eax
movslq -0xc(%rbp),%rcx
movsbl -0x30(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    1170 <roxml_is_separator+0x70>
movl   $0x1,-0x4(%rbp)
jmp    1185 <roxml_is_separator+0x85>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <roxml_is_separator+0x3d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<roxml_is_separator>:
cmp    $0x20,%dil
ja     1120 <roxml_is_separator+0x20>
mov    $0x1,%eax
movzbl %dil,%ecx
movabs $0x100000600,%rdx
bt     %rcx,%rdx
jae    1120 <roxml_is_separator+0x20>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@__const.roxml_is_separator.separators = [32 x i8] c"\09\0A \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
define i32 @roxml_is_separator(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i32
%5 = alloca [32 x i8]
store i8 %0, i8* %3
store i32 0, i32* %4
%6 = bitcast [32 x i8]* %5 to i8*
br label %7
7: ; preds = %24, %1
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 %9
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %7
%15 = load i8, i8* %3
%16 = sext i8 %15 to i32
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %16, %21
br i1 %22, label %23, label %24
23: ; preds = %14
store i32 1, i32* %2
br label %28
24: ; preds = %14
%25 = load i32, i32* %4
%26 = add nsw i32 %25, 1
store i32 %26, i32* %4
br label %7
27: ; preds = %7
store i32 0, i32* %2
br label %28
28: ; preds = %27, %23
%29 = load i32, i32* %2
ret i32 %29
}

LLVM IR (-O2):
define i32 @roxml_is_separator(i8 signext %0) {
switch i8 %0, label %2 [
i8 9, label %3
i8 10, label %3
i8 32, label %3
]
2: ; preds = %1
br label %3
3: ; preds = %1, %1, %1, %2
%4 = phi i32 [ 1, %1 ], [ 0, %2 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ __u8;

/* Variables and functions */
int write(int, int /*<<< orphan*/ *, int);
int writeData(int devfd, __u8 data[], int length) {
  int retValue = write(devfd, data, length);
  return retValue;
}


x86 assembly (clang, -O0):
<writeData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <write@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeData>:
jmp    1030 <write@plt>

LLVM IR (-O0):
define i32 @writeData(i32 %0, i32* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = load i32*, i32** %5
%10 = load i32, i32* %6
%11 = call i32 @write(i32 %8, i32* %9, i32 %10)
store i32 %11, i32* %7
%12 = load i32, i32* %7
ret i32 %12
}

LLVM IR (-O2):
define i32 @writeData(i32 %0, i32* nocapture %1, i32 %2) {
%4 = tail call i32 @write(i32 %0, i32* %1, i32 %2)
ret i32 %4
}
int test_imm_34uint8_reg(unsigned char val) {
  return ((val) & (-0x34 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_34uint8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edx
and    $0xffffffcc,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_34uint8_reg>:
test   $0xcc,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_34uint8_reg(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, -52
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_34uint8_reg(i8 zeroext %0) {
%2 = and i8 %0, -52
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
struct stat32 {
  int dummy;
};

/* Variables and functions */
int __lstat_time32(char const *, struct stat32 *);
int __lxstat64(int ver, const char *path, struct stat32 *buf) {
  return __lstat_time32(path, buf);
}


x86 assembly (clang, -O0):
<__lxstat64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <__lstat_time32@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__lxstat64>:
mov    %rsi,%rdi
mov    %rdx,%rsi
jmp    1030 <__lstat_time32@plt>

LLVM IR (-O0):
%struct.stat32 = type { i32 }
define i32 @__lxstat64(i32 %0, i8* %1, %struct.stat32* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca %struct.stat32*
store i32 %0, i32* %4
store i8* %1, i8** %5
store %struct.stat32* %2, %struct.stat32** %6
%7 = load i8*, i8** %5
%8 = load %struct.stat32*, %struct.stat32** %6
%9 = call i32 @__lstat_time32(i8* %7, %struct.stat32* %8)
ret i32 %9
}

LLVM IR (-O2):
%struct.stat32 = type { i32 }
define i32 @__lxstat64(i32 %0, i8* %1, %struct.stat32* %2) {
%4 = tail call i32 @__lstat_time32(i8* %1, %struct.stat32* %2)
ret i32 %4
}
int mydivision(unsigned char *a, int a_len, unsigned char *b, int b_len) {}


x86 assembly (clang, -O0):
<mydivision>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @mydivision(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%10 = load i32, i32* %5
ret i32 %10
}

LLVM IR (-O2):
define i32 @mydivision(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage(const char *argv0) {
  printf("  -h help.\n"
         "  -p <filename.pb> protobuf file\n"
         "  -m <messagename>\n"
         "  -d <datafile>\n"
         "  -D input from stdin (DEC number)\n");
}


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

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

LLVM IR (-O0):
@.str = [115 x i8] c" -h help.\0A -p <filename.pb> protobuf file\0A -m <messagename>\0A -d <datafile>\0A -D input from stdin (DEC number)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [114 x i8] c" -h help.\0A -p <filename.pb> protobuf file\0A -m <messagename>\0A -d <datafile>\0A -D input from stdin (DEC number)\00"
define void @usage(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([114 x i8], [114 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
testMinus() { printf("%d - %d = %d\n", 10, 4, 10 - 4); }


x86 assembly (clang, -O0):
<testMinus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
mov    $0xa,%esi
mov    $0x4,%edx
mov    $0x6,%ecx
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testMinus>:
lea    0xee9(%rip),%rdi
mov    $0xa,%esi
mov    $0x4,%edx
mov    $0x6,%ecx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"%d - %d = %d\0A\00"
define i32 @testMinus() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 10, i32 4, i32 6)
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [14 x i8] c"%d - %d = %d\0A\00"
define i32 @testMinus() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 10, i32 4, i32 6)
ret i32 undef
}
char *leafname(char *path) {
  int i = 0, j;
  for (j = 0; path[j]; j++)
    if (path[j] == '/')
      i = j + 1;
  return (path + i);
}


x86 assembly (clang, -O0):
<leafname>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1159 <leafname+0x59>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2f,%eax
jne    1146 <leafname+0x46>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114b <leafname+0x4b>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1116 <leafname+0x16>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<leafname>:
mov    %rdi,%rax
movabs $0x100000000,%rsi
xor    %edx,%edx
xor    %r8d,%r8d
mov    %rdx,%rdi
shl    $0x20,%rdi
nopl   0x0(%rax)
add    %rsi,%rdi
add    $0x1,%rdx
movzbl -0x1(%rax,%rdx,1),%ecx
test   %cl,%cl
je     113e <leafname+0x3e>
cmp    $0x2f,%cl
jne    1120 <leafname+0x20>
sar    $0x20,%rdi
mov    %rdi,%r8
jmp    1112 <leafname+0x12>
add    %r8,%rax
ret

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

LLVM IR (-O2):
define i8* @leafname(i8* %0) {
br label %2
2: ; preds = %11, %1
%3 = phi i64 [ %12, %11 ], [ 0, %1 ]
%4 = phi i64 [ %14, %11 ], [ 0, %1 ]
br label %5
5: ; preds = %2, %9
%6 = phi i64 [ %10, %9 ], [ %3, %2 ]
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
switch i8 %8, label %9 [
i8 0, label %15
i8 47, label %11
]
9: ; preds = %5
%10 = add nuw i64 %6, 1
br label %5
11: ; preds = %5
%12 = add nuw i64 %6, 1
%13 = shl i64 %12, 32
%14 = ashr exact i64 %13, 32
br label %2
15: ; preds = %5
%16 = getelementptr inbounds i8, i8* %0, i64 %4
ret i8* %16
}
void fx(double x, double y[]) {
  y[0] = (x - 1.0) * (2.0 * x + 1.3);
  y[1] = 4.0 * x - 0.7;
}


x86 assembly (clang, -O0):
<fx>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xefe(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
addsd  %xmm1,%xmm1
movsd  0xee1(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x8(%rbp),%xmm0
movsd  0xeb4(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeb0(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<fx>:
movsd  0xef8(%rip),%xmm1
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
addsd  0xef0(%rip),%xmm2
addsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm2
mulsd  0xee8(%rip),%xmm0
movsd  %xmm2,(%rdi)
addsd  0xee4(%rip),%xmm0
movsd  %xmm0,0x8(%rdi)
ret

LLVM IR (-O0):
define void @fx(double %0, double* %1) {
%3 = alloca double
%4 = alloca double*
store double %0, double* %3
store double* %1, double** %4
%5 = load double, double* %3
%6 = fsub double %5, 1.000000e+00
%7 = load double, double* %3
%8 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %7, double 1.300000e+00)
%9 = fmul double %6, %8
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 0
store double %9, double* %11
%12 = load double, double* %3
%13 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %12, double 0xBFE6666666666666)
%14 = load double*, double** %4
%15 = getelementptr inbounds double, double* %14, i64 1
store double %13, double* %15
ret void
}

LLVM IR (-O2):
define void @fx(double %0, double* nocapture writeonly %1) {
%3 = fadd double %0, -1.000000e+00
%4 = tail call double @llvm.fmuladd.f64(double %0, double 2.000000e+00, double 1.300000e+00)
%5 = fmul double %3, %4
store double %5, double* %1
%6 = tail call double @llvm.fmuladd.f64(double %0, double 4.000000e+00, double 0xBFE6666666666666)
%7 = getelementptr inbounds double, double* %1, i64 1
store double %6, double* %7
ret void
}
/* Variables and functions */
char tolower(char);
int e_samoglaska(char c) {
  c = tolower(c);
  switch (c) {
  case 'a':
  case 'e':
  case 'i':
  case 'o':
  case 'u':
    return 1;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<e_samoglaska>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <tolower@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x61,%eax
je     1183 <e_samoglaska+0x73>
jmp    113f <e_samoglaska+0x2f>
mov    -0xc(%rbp),%eax
sub    $0x65,%eax
je     1183 <e_samoglaska+0x73>
jmp    1150 <e_samoglaska+0x40>
mov    -0xc(%rbp),%eax
sub    $0x69,%eax
je     1183 <e_samoglaska+0x73>
jmp    1161 <e_samoglaska+0x51>
mov    -0xc(%rbp),%eax
sub    $0x6f,%eax
je     1183 <e_samoglaska+0x73>
jmp    1172 <e_samoglaska+0x62>
mov    -0xc(%rbp),%eax
sub    $0x75,%eax
jne    118f <e_samoglaska+0x7f>
jmp    1183 <e_samoglaska+0x73>
movl   $0x1,-0x4(%rbp)
jmp    1196 <e_samoglaska+0x86>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_samoglaska>:
push   %rax
call   1030 <tolower@plt>
movsbl %al,%ecx
add    $0xffffff9f,%ecx
ror    %ecx
xor    %eax,%eax
cmp    $0xa,%ecx
ja     1132 <e_samoglaska+0x22>
movslq %ecx,%rax
lea    0xed1(%rip),%rcx
mov    (%rcx,%rax,4),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @e_samoglaska(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call signext i8 @tolower(i8 signext %4)
store i8 %5, i8* %3
%6 = load i8, i8* %3
%7 = sext i8 %6 to i32
switch i32 %7, label %9 [
i32 97, label %8
i32 101, label %8
i32 105, label %8
i32 111, label %8
i32 117, label %8
]
8: ; preds = %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %10
9: ; preds = %1
store i32 0, i32* %2
br label %10
10: ; preds = %9, %8
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@switch.table.e_samoglaska = [11 x i32] [i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 0, i32 1, i32 0, i32 0, i32 1]
define i32 @e_samoglaska(i8 signext %0) {
%2 = tail call signext i8 @tolower(i8 signext %0)
%3 = sext i8 %2 to i32
%4 = add nsw i32 %3, -97
%5 = tail call i32 @llvm.fshl.i32(i32 %4, i32 %4, i32 31)
%6 = icmp ult i32 %5, 11
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = sext i32 %5 to i64
%9 = getelementptr inbounds [11 x i32], [11 x i32]* @switch.table.e_samoglaska, i64 0, i64 %8
%10 = load i32, i32* %9
br label %11
11: ; preds = %1, %7
%12 = phi i32 [ %10, %7 ], [ 0, %1 ]
ret i32 %12
}
/* Variables and functions */
int isdigit(int);
int isnumber(int c) { return isdigit(c); }


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

x86 assembly (clang, -O2):
<isnumber>:
add    $0xffffffd0,%edi
xor    %eax,%eax
cmp    $0xa,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @isnumber(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void bitvector_delete(void *vec) {
  if (vec)
    free(vec);
}


x86 assembly (clang, -O0):
<bitvector_delete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <bitvector_delete+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitvector_delete>:
test   %rdi,%rdi
je     111a <bitvector_delete+0xa>
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
define void @bitvector_delete(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 @free(i8* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @bitvector_delete(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(i8* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ WCPU_cpufpumesg();
void main(int argc, char **argv) { WCPU_cpufpumesg(); }


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

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

LLVM IR (-O0):
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (...) @WCPU_cpufpumesg()
ret void
}

LLVM IR (-O2):
define void @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @WCPU_cpufpumesg()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ islower(int);
void t_islower_0x6e() {
  Assert_real((islower(110)),
              "/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_islower.c",
              555, ("islower should be 1 for n"));
}


x86 assembly (clang, -O0):
<t_islower_0x6e>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6e,%edi
call   1030 <islower@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x22b,%edx
lea    0xf65(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_islower_0x6e>:
push   %rax
mov    $0x6e,%edi
call   1030 <islower@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x22b,%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_islower.c\00"
@.str.1 = [26 x i8] c"islower should be 1 for n\00"
define void @t_islower_0x6e() {
%1 = call i32 @islower(i32 110)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 555, i8* getelementptr inbounds ([26 x i8], [26 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_islower.c\00"
@.str.1 = [26 x i8] c"islower should be 1 for n\00"
define void @t_islower_0x6e() {
%1 = tail call i32 @islower(i32 110)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 555, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct lexer {
  int dummy;
};
struct codegen {
  int dummy;
};

/* Variables and functions */
scalar_t__ lexer_match(struct lexer *, char *);
int /*<<< orphan*/ lexer_next(struct lexer *);
void stmt1(struct lexer *lexer, struct codegen *codegen) {
  if (lexer_match(lexer, ";"))
    lexer_next(lexer);
}


x86 assembly (clang, -O0):
<stmt1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec5(%rip),%rsi
call   1030 <lexer_match@plt>
cmp    $0x0,%rax
je     1153 <stmt1+0x33>
mov    -0x8(%rbp),%rdi
call   1040 <lexer_next@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stmt1>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
call   1030 <lexer_match@plt>
test   %rax,%rax
je     113e <stmt1+0x1e>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <lexer_next@plt>
pop    %rbx
ret

LLVM IR (-O0):
%struct.lexer = type { i32 }
%struct.codegen = type { i32 }
@.str = [2 x i8] c";\00"
define void @stmt1(%struct.lexer* %0, %struct.codegen* %1) {
%3 = alloca %struct.lexer*
%4 = alloca %struct.codegen*
store %struct.lexer* %0, %struct.lexer** %3
store %struct.codegen* %1, %struct.codegen** %4
%5 = load %struct.lexer*, %struct.lexer** %3
%6 = call i64 @lexer_match(%struct.lexer* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load %struct.lexer*, %struct.lexer** %3
%10 = call i32 @lexer_next(%struct.lexer* %9)
br label %11
11: ; preds = %8, %2
ret void
}

LLVM IR (-O2):
%struct.lexer = type { i32 }
%struct.codegen = type { i32 }
@.str = [2 x i8] c";\00"
define void @stmt1(%struct.lexer* %0, %struct.codegen* nocapture readnone %1) {
%3 = tail call i64 @lexer_match(%struct.lexer* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @lexer_next(%struct.lexer* %0)
br label %7
7: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0xdc() {
  Assert_real((isodigit(220) == 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_isodigit.c",
              1105, ("isodigit should be 0 for 0xdc"));
}


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

x86 assembly (clang, -O2):
<t_isodigit_0xdc>:
push   %rax
mov    $0xdc,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x451,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0xdc\00"
define void @t_isodigit_0xdc() {
%1 = call i64 @isodigit(i32 220)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1105, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0xdc\00"
define void @t_isodigit_0xdc() {
%1 = tail call i64 @isodigit(i32 220)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1105, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glutWireCone(double, double, int, int);
void drawCone(void) {
  glColor3f(-0.5, 1.0, -0.5);
  glutWireCone(5.0, 6.0, 30, 30);
}


x86 assembly (clang, -O0):
<drawCone>:
push   %rbp
mov    %rsp,%rbp
movsd  0xee4(%rip),%xmm2
movsd  0xee4(%rip),%xmm1
movaps %xmm2,%xmm0
call   1030 <glColor3f@plt>
movsd  0xebc(%rip),%xmm0
movsd  0xebc(%rip),%xmm1
mov    $0x1e,%esi
mov    %esi,%edi
call   1040 <glutWireCone@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawCone>:
push   %rax
movsd  0xed7(%rip),%xmm1
movsd  0xed7(%rip),%xmm0
movaps %xmm0,%xmm2
call   1030 <glColor3f@plt>
movsd  0xecf(%rip),%xmm0
movsd  0xecf(%rip),%xmm1
mov    $0x1e,%edi
mov    $0x1e,%esi
pop    %rax
jmp    1040 <glutWireCone@plt>

LLVM IR (-O0):
define void @drawCone() {
%1 = call i32 @glColor3f(double -5.000000e-01, double 1.000000e+00, double -5.000000e-01)
%2 = call i32 @glutWireCone(double 5.000000e+00, double 6.000000e+00, i32 30, i32 30)
ret void
}

LLVM IR (-O2):
define void @drawCone() {
%1 = tail call i32 @glColor3f(double -5.000000e-01, double 1.000000e+00, double -5.000000e-01)
%2 = tail call i32 @glutWireCone(double 5.000000e+00, double 6.000000e+00, i32 30, i32 30)
ret void
}
float SteamAPI_ISteamMusic_GetVolume(void *self) {
  xlogf("%s(self = %p)", __func__, self);
  return 0;
}


x86 assembly (clang, -O0):
<SteamAPI_ISteamMusic_GetVolume>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
lea    0xed9(%rip),%rdi
lea    0xee0(%rip),%rsi
mov    $0x0,%al
call   1030 <xlogf@plt>
xorps  %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SteamAPI_ISteamMusic_GetVolume>:
push   %rax
mov    %rdi,%rdx
lea    0xee5(%rip),%rdi
lea    0xeec(%rip),%rsi
xor    %eax,%eax
call   1030 <xlogf@plt>
xorps  %xmm0,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@.str = [14 x i8] c"%s(self = %p)\00"
@__func__.SteamAPI_ISteamMusic_GetVolume = [31 x i8] c"SteamAPI_ISteamMusic_GetVolume\00"
define float @SteamAPI_ISteamMusic_GetVolume(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @__func__.SteamAPI_ISteamMusic_GetVolume, i64 0, i64 0), i8* %3)
ret float 0.000000e+00
}

LLVM IR (-O2):
@.str = [14 x i8] c"%s(self = %p)\00"
@__func__.SteamAPI_ISteamMusic_GetVolume = [31 x i8] c"SteamAPI_ISteamMusic_GetVolume\00"
define float @SteamAPI_ISteamMusic_GetVolume(i8* %0) {
%2 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @__func__.SteamAPI_ISteamMusic_GetVolume, i64 0, i64 0), i8* %0)
ret float 0.000000e+00
}
float kuklos(float aktina) { return (2 * 3.14159265 * aktina); }


x86 assembly (clang, -O0):
<kuklos>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xee6(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<kuklos>:
cvtss2sd %xmm0,%xmm0
mulsd  0xef4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @kuklos(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fmul double 0x401921FB53C8D4F1, %4
%6 = fptrunc double %5 to float
ret float %6
}

LLVM IR (-O2):
define float @kuklos(float %0) {
%2 = fpext float %0 to double
%3 = fmul double %2, 0x401921FB53C8D4F1
%4 = fptrunc double %3 to float
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void ALdedicatedState_Delete(void *ptr) { free(ptr); }


x86 assembly (clang, -O0):
<ALdedicatedState_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):
<ALdedicatedState_Delete>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @ALdedicatedState_Delete(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @free(i8* %3)
ret void
}

LLVM IR (-O2):
define void @ALdedicatedState_Delete(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}