xunge/DecIR huggingface dataset:
/* Variables and functions */
size_t strlen(char *);
int /*<<< orphan*/ ungetch(char);
extern void ungets(char s[]) {
  size_t slen = strlen(s);
  while (slen > 0)
    ungetch(s[--slen]);
}


x86 assembly (clang, -O0):
<ungets>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jbe    1166 <ungets+0x46>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    %rcx,%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,-0x10(%rbp)
movsbl -0x1(%rax,%rcx,1),%edi
call   1040 <ungetch@plt>
jmp    1139 <ungets+0x19>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ungets>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1030 <strlen@plt>
test   %rax,%rax
je     1151 <ungets+0x31>
mov    %rax,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl -0x1(%r14,%rbx,1),%edi
call   1040 <ungetch@plt>
add    $0xffffffffffffffff,%rbx
jne    1140 <ungets+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @ungets(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strlen(i8* %4)
store i64 %5, i64* %3
br label %6
6: ; preds = %9, %1
%7 = load i64, i64* %3
%8 = icmp ugt i64 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i8*, i8** %2
%11 = load i64, i64* %3
%12 = add i64 %11, -1
store i64 %12, i64* %3
%13 = getelementptr inbounds i8, i8* %10, i64 %12
%14 = load i8, i8* %13
%15 = call i32 @ungetch(i8 signext %14)
br label %6
16: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @ungets(i8* nocapture %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %6, %4 ], [ %2, %1 ]
%6 = add i64 %5, -1
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = tail call i32 @ungetch(i8 signext %8)
%10 = icmp eq i64 %6, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret void
}
/* Variables and functions */
double fabs(int /*<<< orphan*/);
int /*<<< orphan*/ fmod(double, double);
double approximate_2_multiple(double number, double div) {
  return number - fabs(fmod(number, div));
}


x86 assembly (clang, -O0):
<approximate_2_multiple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <fmod@plt>
mov    %eax,%edi
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
subsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<approximate_2_multiple>:
push   %rax
movsd  %xmm0,(%rsp)
call   1030 <fmod@plt>
mov    %eax,%edi
call   1040 <fabs@plt>
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @approximate_2_multiple(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 = load double, double* %3
%7 = load double, double* %4
%8 = call i32 @fmod(double %6, double %7)
%9 = call double @fabs(i32 %8)
%10 = fsub double %5, %9
ret double %10
}

LLVM IR (-O2):
define double @approximate_2_multiple(double %0, double %1) {
%3 = tail call i32 @fmod(double %0, double %1)
%4 = tail call double @fabs(i32 %3)
%5 = fsub double %0, %4
ret double %5
}
int codifica(int x, int y) { return (x * 100) + y; }


x86 assembly (clang, -O0):
<codifica>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
imul   $0x64,-0x4(%rbp),%eax
add    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<codifica>:
imul   $0x64,%edi,%eax
add    %esi,%eax
ret

LLVM IR (-O0):
define i32 @codifica(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = mul nsw i32 %5, 100
%7 = load i32, i32* %4
%8 = add nsw i32 %6, %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @codifica(i32 %0, i32 %1) {
%3 = mul nsw i32 %0, 100
%4 = add nsw i32 %3, %1
ret i32 %4
}
/* Variables and functions */
void retro_unload_game(void) {}


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

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

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

LLVM IR (-O2):
define void @retro_unload_game() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m256i;
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm256_castsi128_si256(int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_insertf128_si256(int /*<<< orphan*/,
                                           int /*<<< orphan*/, int);
__m256i yy_set_m128i(__m128i hi, __m128i lo) {
  return _mm256_insertf128_si256(_mm256_castsi128_si256(lo), hi, 1);
}


x86 assembly (clang, -O0):
<yy_set_m128i>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <_mm256_castsi128_si256@plt>
mov    %eax,%edi
mov    -0x4(%rbp),%esi
mov    $0x1,%edx
call   1040 <_mm256_insertf128_si256@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yy_set_m128i>:
push   %rbx
mov    %edi,%ebx
mov    %esi,%edi
call   1030 <_mm256_castsi128_si256@plt>
mov    %eax,%edi
mov    %ebx,%esi
mov    $0x1,%edx
pop    %rbx
jmp    1040 <_mm256_insertf128_si256@plt>

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

LLVM IR (-O2):
define i32 @yy_set_m128i(i32 %0, i32 %1) {
%3 = tail call i32 @_mm256_castsi128_si256(i32 %1)
%4 = tail call i32 @_mm256_insertf128_si256(i32 %3, i32 %0, i32 1)
ret i32 %4
}
void yy_1_TagBody(char *yytext, int yyleng) {
  ;
  ;
}


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

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

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

LLVM IR (-O2):
define void @yy_1_TagBody(i8* nocapture %0, i32 %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ XEvent;
typedef int /*<<< orphan*/ Widget;
typedef int /*<<< orphan*/ String;
typedef int /*<<< orphan*/ Cardinal;

/* Variables and functions */
int /*<<< orphan*/ ringbell();
void nop(Widget w, XEvent *ev, String *vector, Cardinal *count) { ringbell(); }


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

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

LLVM IR (-O0):
define void @nop(i32 %0, i32* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = call i32 (...) @ringbell()
ret void
}

LLVM IR (-O2):
define void @nop(i32 %0, i32* nocapture readnone %1, i32* nocapture readnone %2, i32* nocapture readnone %3) {
%5 = tail call i32 (...) @ringbell()
ret void
}
unsigned long long power(int x, int y) {
  return (y <= 0) ? 1 : (x * power(x, --y)) % 10000000000;
}


x86 assembly (clang, -O0):
<power>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     1136 <power+0x26>
mov    $0x1,%edx
mov    %rdx,-0x10(%rbp)
jmp    116d <power+0x5d>
movslq -0x4(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
add    $0xffffffff,%esi
mov    %esi,-0x8(%rbp)
call   1030 <power@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
imul   %rcx,%rax
movabs $0x2540be400,%rcx
xor    %edx,%edx
div    %rcx
mov    %rdx,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<power>:
test   %esi,%esi
jle    1153 <power+0x43>
push   %rbx
movslq %edi,%rbx
add    $0xffffffff,%esi
mov    %ebx,%edi
call   1030 <power@plt>
mov    %rax,%rcx
imul   %rbx,%rcx
movabs $0xdbe6fecebdedd5bf,%rdx
fe e6 db
mov    %rcx,%rax
mul    %rdx
shr    $0x21,%rdx
movabs $0x2540be400,%rax
imul   %rdx,%rax
sub    %rax,%rcx
pop    %rbx
mov    %rcx,%rax
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i64 @power(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp sle i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %2
br label %17
8: ; preds = %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = add nsw i32 %12, -1
store i32 %13, i32* %4
%14 = call i64 @power(i32 %11, i32 %13)
%15 = mul i64 %10, %14
%16 = urem i64 %15, 10000000000
br label %17
17: ; preds = %8, %7
%18 = phi i64 [ 1, %7 ], [ %16, %8 ]
ret i64 %18
}

LLVM IR (-O2):
define i64 @power(i32 %0, i32 %1) {
%3 = icmp slt i32 %1, 1
br i1 %3, label %4, label %6
4: ; preds = %2, %6
%5 = phi i64 [ %11, %6 ], [ 1, %2 ]
ret i64 %5
6: ; preds = %2
%7 = sext i32 %0 to i64
%8 = add nsw i32 %1, -1
%9 = tail call i64 @power(i32 %0, i32 %8)
%10 = mul i64 %9, %7
%11 = urem i64 %10, 10000000000
br label %4
}
void _EEPROMWaitForDone(void) {
  while ((*((volatile unsigned long *)(0x400AF018))) & 0x00000001) {
  }
}


x86 assembly (clang, -O0):
<_EEPROMWaitForDone>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <_EEPROMWaitForDone+0x9>
mov    $0x400af018,%eax
mov    (%rax),%rax
and    $0x1,%rax
cmp    $0x0,%rax
je     1124 <_EEPROMWaitForDone+0x24>
jmp    1109 <_EEPROMWaitForDone+0x9>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_EEPROMWaitForDone>:
mov    0x400af018,%rax
40
test   $0x1,%al
jne    1100 <_EEPROMWaitForDone>
ret

LLVM IR (-O0):
define void @_EEPROMWaitForDone() {
br label %1
1: ; preds = %5, %0
%2 = load volatile i64, i64* inttoptr (i64 1074458648 to i64*)
%3 = and i64 %2, 1
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %1
6: ; preds = %1
ret void
}

LLVM IR (-O2):
define void @_EEPROMWaitForDone() {
br label %1
1: ; preds = %1, %0
%2 = load volatile i64, i64* inttoptr (i64 1074458648 to i64*)
%3 = and i64 %2, 1
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %1
5: ; preds = %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ u_int16_t;
typedef int /*<<< orphan*/ u_int;
typedef int /*<<< orphan*/ u_char;

/* Variables and functions */
int /*<<< orphan*/ bswap_16(int /*<<< orphan*/);
u_int get2bytes(u_char *buf) { return bswap_16(*((u_int16_t *)buf)); }


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

x86 assembly (clang, -O2):
<get2bytes>:
mov    (%rdi),%edi
jmp    1030 <bswap_16@plt>

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

LLVM IR (-O2):
define i32 @get2bytes(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @bswap_16(i32 %2)
ret i32 %3
}
void main() {
  int a = 3;
  int b = ({
    int b = a;
    b++;
    b;
  });
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x3,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 3, i32* %1
%5 = load i32, i32* %1
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = add nsw i32 %6, 1
store i32 %7, i32* %3
%8 = load i32, i32* %3
store i32 %8, i32* %4
%9 = load i32, i32* %4
store i32 %9, i32* %2
ret void
}

LLVM IR (-O2):
define void @main() {
ret void
}
/* Variables and functions */
int sock_enable_blocking(int, int);
int sock_make_socket_blocking(int sfd) { return sock_enable_blocking(sfd, 1); }


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

x86 assembly (clang, -O2):
<sock_make_socket_blocking>:
mov    $0x1,%esi
jmp    1030 <sock_enable_blocking@plt>

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

LLVM IR (-O2):
define i32 @sock_make_socket_blocking(i32 %0) {
%2 = tail call i32 @sock_enable_blocking(i32 %0, i32 1)
ret i32 %2
}
/* Variables and functions */
int pyi_main(int, char **);
int main(int argc, char **argv) {
  int res;
  res = pyi_main(argc, argv);
  return res;
}


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

x86 assembly (clang, -O2):
<main>:
jmp    1030 <pyi_main@plt>

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @pyi_main(i32 %0, i8** %1)
ret i32 %3
}
signed short int signedshortint_ignoring_unsignedchar(signed short int x,
                                                      unsigned char y) {
  return x;
}


x86 assembly (clang, -O0):
<signedshortint_ignoring_unsignedchar>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %al,-0x3(%rbp)
movswl -0x2(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i16 @signedshortint_ignoring_unsignedchar(i16 signext %0, i8 zeroext %1) {
%3 = alloca i16
%4 = alloca i8
store i16 %0, i16* %3
store i8 %1, i8* %4
%5 = load i16, i16* %3
ret i16 %5
}

LLVM IR (-O2):
define signext i16 @signedshortint_ignoring_unsignedchar(i16 returned signext %0, i8 zeroext %1) {
ret i16 %0
}
/* Variables and functions */
int sum(int, int, int, int);
int g(int i, int j, int k, int y) { return sum(i, j, k, y); }


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1030 <sum@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g>:
jmp    1030 <sum@plt>

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

LLVM IR (-O2):
define i32 @g(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @sum(i32 %0, i32 %1, i32 %2, i32 %3)
ret i32 %5
}
int loadPhysicalMemory(int *paddr) { return *paddr; }


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

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

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

LLVM IR (-O2):
define i32 @loadPhysicalMemory(i32* nocapture %0) {
%2 = load i32, i32* %0
ret i32 %2
}
/* Variables and functions */
int write_block(int, int, int, int /*<<< orphan*/);
int digitalWrite(int pin, int value) { return write_block(2, pin, value, 0); }


x86 assembly (clang, -O0):
<digitalWrite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    $0x2,%edi
xor    %ecx,%ecx
call   1030 <write_block@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<digitalWrite>:
mov    %esi,%edx
mov    %edi,%esi
mov    $0x2,%edi
xor    %ecx,%ecx
jmp    1030 <write_block@plt>

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

LLVM IR (-O2):
define i32 @digitalWrite(i32 %0, i32 %1) {
%3 = tail call i32 @write_block(i32 2, i32 %0, i32 %1, i32 0)
ret i32 %3
}
int f(int c, int b, int d) {
  int r, e;
  if (c)
    r = b + d;
  else {
    e = d + b;
    r = e;
  }
  return r;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1125 <f+0x25>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1134 <f+0x34>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
lea    (%rsi,%rdx,1),%eax
ret

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

LLVM IR (-O2):
define i32 @f(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %2, %1
ret i32 %4
}
void X509V3_EXT_print(void) {}


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

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

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

LLVM IR (-O2):
define void @X509V3_EXT_print() {
ret void
}
/* Type definitions */
struct dev_list {
  int dummy;
};

/* Variables and functions */
struct dev_list *find_device_deep_all(int /*<<< orphan*/, int, unsigned int);
struct dev_list *find_device_all(unsigned int devid) {
  return find_device_deep_all(0, 0x30000000, devid);
}


x86 assembly (clang, -O0):
<find_device_all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
xor    %edi,%edi
mov    $0x30000000,%esi
call   1030 <find_device_deep_all@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_device_all>:
mov    %edi,%edx
xor    %edi,%edi
mov    $0x30000000,%esi
jmp    1030 <find_device_deep_all@plt>

LLVM IR (-O0):
%struct.dev_list = type { i32 }
define %struct.dev_list* @find_device_all(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call %struct.dev_list* @find_device_deep_all(i32 0, i32 805306368, i32 %3)
ret %struct.dev_list* %4
}

LLVM IR (-O2):
%struct.dev_list = type { i32 }
define %struct.dev_list* @find_device_all(i32 %0) {
%2 = tail call %struct.dev_list* @find_device_deep_all(i32 0, i32 805306368, i32 %0)
ret %struct.dev_list* %2
}
void brcm_pm_sata_remove(void) {}


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

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

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

LLVM IR (-O2):
define void @brcm_pm_sata_remove() {
ret void
}
char *aeApiName(void) { return "epoll"; }


x86 assembly (clang, -O0):
<aeApiName>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<aeApiName>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"epoll\00"
define i8* @aeApiName() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [6 x i8] c"epoll\00"
define i8* @aeApiName() {
ret i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
}
void copy_key(double *dst, double *src) {
  dst[0] = src[0];
  dst[1] = src[1];
}


x86 assembly (clang, -O0):
<copy_key>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_key>:
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rdi)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x8(%rdi)
ret

LLVM IR (-O0):
define void @copy_key(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %4
%6 = getelementptr inbounds double, double* %5, i64 0
%7 = load double, double* %6
%8 = load double*, double** %3
%9 = getelementptr inbounds double, double* %8, i64 0
store double %7, double* %9
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %3
%14 = getelementptr inbounds double, double* %13, i64 1
store double %12, double* %14
ret void
}

LLVM IR (-O2):
define void @copy_key(double* nocapture writeonly %0, double* nocapture %1) {
%3 = load double, double* %1
store double %3, double* %0
%4 = getelementptr inbounds double, double* %1, i64 1
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %0, i64 1
store double %5, double* %6
ret void
}
int do_979() { return 979; }


x86 assembly (clang, -O0):
<do_979>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3d3,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @do_979() {
ret i32 979
}

LLVM IR (-O2):
define i32 @do_979() {
ret i32 979
}
/* Type definitions */
typedef union bpf_attr {
  int dummy;
} bpf_attr;

/* Variables and functions */
union bpf_attr *malloc(int);
int /*<<< orphan*/ memset(union bpf_attr *, int /*<<< orphan*/, int);
union bpf_attr *bpf_attr_alloc() {
  union bpf_attr *attr = malloc(sizeof(union bpf_attr));
  memset(attr, 0, sizeof(union bpf_attr));
  return attr;
}


x86 assembly (clang, -O0):
<bpf_attr_alloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1030 <memset@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bpf_attr_alloc>:
push   %rbx
mov    $0x4,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1030 <memset@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%union.bpf_attr = type { i32 }
define %union.bpf_attr* @bpf_attr_alloc() {
%1 = alloca %union.bpf_attr*
%2 = call %union.bpf_attr* @malloc(i32 4)
store %union.bpf_attr* %2, %union.bpf_attr** %1
%3 = load %union.bpf_attr*, %union.bpf_attr** %1
%4 = call i32 @memset(%union.bpf_attr* %3, i32 0, i32 4)
%5 = load %union.bpf_attr*, %union.bpf_attr** %1
ret %union.bpf_attr* %5
}

LLVM IR (-O2):
%union.bpf_attr = type { i32 }
define %union.bpf_attr* @bpf_attr_alloc() {
%1 = tail call %union.bpf_attr* @malloc(i32 4)
%2 = tail call i32 @memset(%union.bpf_attr* %1, i32 0, i32 4)
ret %union.bpf_attr* %1
}
void main() {
  char *a;
  char b;
  a = 4;
  b = *a;
  print("b ");
  printid(b);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x4,%eax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x9(%rbp)
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
movsbl -0x9(%rbp),%edi
mov    $0x0,%al
call   1040 <printid@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
movsbl 0x4,%ebx
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
mov    %ebx,%edi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printid@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"b \04\00"
define void @main() {
%1 = alloca i8*
%2 = alloca i8
store i8* inttoptr (i64 4 to i8*), i8** %1
%3 = load i8*, i8** %1
%4 = load i8, i8* %3
store i8 %4, i8* %2
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = load i8, i8* %2
%7 = sext i8 %6 to i32
%8 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"b \04\00"
define void @main() {
%1 = load i8, i8* inttoptr (i64 4 to i8*)
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @print to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = sext i8 %1 to i32
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %3)
ret void
}
/* Variables and functions */
short read_ZIGBEE_short(int);
int /*<<< orphan*/ write_ZIGBEE_short(int, int);
void nonbeacon_coordinator_device() {
  short int temp = 0;
  temp = read_ZIGBEE_short(0x00);
  temp = temp | 0x04;
  write_ZIGBEE_short(0x00, temp);
  temp = read_ZIGBEE_short(0x11);
  temp = temp & 0xDF;
  write_ZIGBEE_short(0x11, temp);
  write_ZIGBEE_short(0x10, 0xFF);
}


x86 assembly (clang, -O0):
<nonbeacon_coordinator_device>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movw   $0x0,-0x2(%rbp)
xor    %edi,%edi
call   1030 <read_ZIGBEE_short@plt>
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%eax
or     $0x4,%eax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%esi
xor    %edi,%edi
call   1040 <write_ZIGBEE_short@plt>
mov    $0x11,%edi
call   1030 <read_ZIGBEE_short@plt>
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%eax
and    $0xdf,%eax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%esi
mov    $0x11,%edi
call   1040 <write_ZIGBEE_short@plt>
mov    $0x10,%edi
mov    $0xff,%esi
call   1040 <write_ZIGBEE_short@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nonbeacon_coordinator_device>:
push   %rax
xor    %edi,%edi
call   1030 <read_ZIGBEE_short@plt>
or     $0x4,%eax
movswl %ax,%esi
xor    %edi,%edi
call   1040 <write_ZIGBEE_short@plt>
mov    $0x11,%edi
call   1030 <read_ZIGBEE_short@plt>
and    $0xdf,%eax
mov    $0x11,%edi
mov    %eax,%esi
call   1040 <write_ZIGBEE_short@plt>
mov    $0x10,%edi
mov    $0xff,%esi
pop    %rax
jmp    1040 <write_ZIGBEE_short@plt>

LLVM IR (-O0):
define void @nonbeacon_coordinator_device() {
%1 = alloca i16
store i16 0, i16* %1
%2 = call signext i16 @read_ZIGBEE_short(i32 0)
store i16 %2, i16* %1
%3 = load i16, i16* %1
%4 = sext i16 %3 to i32
%5 = or i32 %4, 4
%6 = trunc i32 %5 to i16
store i16 %6, i16* %1
%7 = load i16, i16* %1
%8 = sext i16 %7 to i32
%9 = call i32 @write_ZIGBEE_short(i32 0, i32 %8)
%10 = call signext i16 @read_ZIGBEE_short(i32 17)
store i16 %10, i16* %1
%11 = load i16, i16* %1
%12 = sext i16 %11 to i32
%13 = and i32 %12, 223
%14 = trunc i32 %13 to i16
store i16 %14, i16* %1
%15 = load i16, i16* %1
%16 = sext i16 %15 to i32
%17 = call i32 @write_ZIGBEE_short(i32 17, i32 %16)
%18 = call i32 @write_ZIGBEE_short(i32 16, i32 255)
ret void
}

LLVM IR (-O2):
define void @nonbeacon_coordinator_device() {
%1 = tail call signext i16 @read_ZIGBEE_short(i32 0)
%2 = or i16 %1, 4
%3 = sext i16 %2 to i32
%4 = tail call i32 @write_ZIGBEE_short(i32 0, i32 %3)
%5 = tail call signext i16 @read_ZIGBEE_short(i32 17)
%6 = and i16 %5, 223
%7 = zext i16 %6 to i32
%8 = tail call i32 @write_ZIGBEE_short(i32 17, i32 %7)
%9 = tail call i32 @write_ZIGBEE_short(i32 16, i32 255)
ret void
}
/* Variables and functions */
size_t SIZE_MAX;
int /*<<< orphan*/ abort();
int main() {
  size_t s;
  s = SIZE_MAX;
  if (s != SIZE_MAX)
    abort();
  if (++s != 0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2ea0(%rip),%rcx
cmp    (%rcx),%rax
je     1148 <main+0x38>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1165 <main+0x55>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec0(%rip),%rax
cmpq   $0xffffffffffffffff,(%rax)
jne    1122 <main+0x12>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@SIZE_MAX = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
store i32 0, i32* %1
%3 = load i64, i64* @SIZE_MAX
store i64 %3, i64* %2
%4 = load i64, i64* %2
%5 = load i64, i64* @SIZE_MAX
%6 = icmp ne i64 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %0
%10 = load i64, i64* %2
%11 = add i64 %10, 1
store i64 %11, i64* %2
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 (...) @abort()
unreachable
15: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@SIZE_MAX = global i64 0
define i32 @main() {
%1 = load i64, i64* @SIZE_MAX
%2 = icmp eq i64 %1, -1
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ lt_fatal(char *, int, char *);
scalar_t__ malloc(size_t);
void *xmalloc(size_t num) {
  void *p = (void *)malloc(num);
  if (!p)
    lt_fatal("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/repstd/modified_vlc/refs/heads/master/"
             "bin/.libs/lt-vlc-cache-gen.c",
             332, "memory exhausted");
  return p;
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115c <xmalloc+0x3c>
lea    0xeb5(%rip),%rdi
mov    $0x14c,%esi
lea    0xf46(%rip),%rdx
call   1030 <lt_fatal@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1146 <xmalloc+0x26>
lea    0xecb(%rip),%rdi
lea    0xf61(%rip),%rdx
mov    $0x14c,%esi
call   1030 <lt_fatal@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/repstd/modified_vlc/refs/heads/master/bin/.libs/lt-vlc-cache-gen.c\00"
@.str.1 = [17 x i8] c"memory exhausted\00"
define i8* @xmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i64 @malloc(i64 %4)
%6 = inttoptr i64 %5 to i8*
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = icmp ne i8* %7, null
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = call i32 @lt_fatal(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i32 332, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %1
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
@.str = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/repstd/modified_vlc/refs/heads/master/bin/.libs/lt-vlc-cache-gen.c\00"
@.str.1 = [17 x i8] c"memory exhausted\00"
define i8* @xmalloc(i64 %0) {
%2 = tail call i64 @malloc(i64 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @lt_fatal(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i32 332, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
%7 = inttoptr i64 %2 to i8*
ret i8* %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, char const *);
void usage(const char *name) {
  printf("Usage:\n\t%s <dev|file>\n\t%s --help\n", name, name);
}


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

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

LLVM IR (-O0):
@.str = [34 x i8] c"Usage:\0A\09%s <dev|file>\0A\09%s --help\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"Usage:\0A\09%s <dev|file>\0A\09%s --help\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0)
ret void
}
void gtk_combo_box_get_active_text() {}


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

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

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

LLVM IR (-O2):
define void @gtk_combo_box_get_active_text() {
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  unsigned long time;
};
typedef TYPE_1__ XSelectionRequestEvent;

/* Variables and functions */
void set_XSelectionRequestEvent_time(void *_p, unsigned long _v) {
  ((XSelectionRequestEvent *)_p)->time = (unsigned long)_v;
}


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

x86 assembly (clang, -O2):
<set_XSelectionRequestEvent_time>:
mov    %rsi,(%rdi)
ret

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

LLVM IR (-O2):
define void @set_XSelectionRequestEvent_time(i8* nocapture writeonly %0, i64 %1) {
%3 = bitcast i8* %0 to i64*
store i64 %1, i64* %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ expr_parse_numeric_element(int /*<<< orphan*/);
void expr_parse_numeric_expr(void) { expr_parse_numeric_element(0); }


x86 assembly (clang, -O0):
<expr_parse_numeric_expr>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <expr_parse_numeric_element@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<expr_parse_numeric_expr>:
xor    %edi,%edi
jmp    1030 <expr_parse_numeric_element@plt>

LLVM IR (-O0):
define void @expr_parse_numeric_expr() {
%1 = call i32 @expr_parse_numeric_element(i32 0)
ret void
}

LLVM IR (-O2):
define void @expr_parse_numeric_expr() {
%1 = tail call i32 @expr_parse_numeric_element(i32 0)
ret void
}
/* Variables and functions */
scalar_t__ trio_isinf(double);
scalar_t__ trio_isnan(double);
int trio_isfinite(double number) {
  return ((trio_isinf(number) == 0) && (trio_isnan(number) == 0));
}


x86 assembly (clang, -O0):
<trio_isfinite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <trio_isinf@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    115d <trio_isfinite+0x3d>
movsd  -0x8(%rbp),%xmm0
call   1030 <trio_isnan@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trio_isfinite>:
push   %rax
movsd  %xmm0,(%rsp)
call   1040 <trio_isinf@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
je     1137 <trio_isfinite+0x17>
pop    %rcx
ret
movsd  (%rsp),%xmm0
call   1030 <trio_isnan@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rcx
ret

LLVM IR (-O0):
define i32 @trio_isfinite(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call i64 @trio_isinf(double %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load double, double* %2
%8 = call i64 @trio_isnan(double %7)
%9 = icmp eq i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @trio_isfinite(double %0) {
%2 = tail call i64 @trio_isinf(double %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i64 @trio_isnan(double %0)
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 0, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ test30_AvrPin_clear__E();
void test30_Led_off__E() { test30_AvrPin_clear__E(); }


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

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

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

LLVM IR (-O2):
define void @test30_Led_off__E() {
%1 = tail call i32 (...) @test30_AvrPin_clear__E()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ LCD_WriteChar(char);
void LCD_WriteString(char *str) {
  while (*str != '\0')
    LCD_WriteChar((char)*str++);
}


x86 assembly (clang, -O0):
<LCD_WriteString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1148 <LCD_WriteString+0x38>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
call   1030 <LCD_WriteChar@plt>
jmp    111c <LCD_WriteString+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_WriteString>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <LCD_WriteString+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <LCD_WriteChar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <LCD_WriteString+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define void @LCD_WriteString(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %2
%11 = load i8, i8* %9
%12 = call i32 @LCD_WriteChar(i8 signext %11)
br label %3
13: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @LCD_WriteString(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = tail call i32 @LCD_WriteChar(i8 signext %5)
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret void
}
/* Variables and functions */
float add2(float, float);
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float n, m;
  float result;
  scanf("%d", &n);
  result = add2(n, m);
  printf("Sum = %ld\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
call   1050 <add2@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
call   1050 <add2@plt>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"Sum = %ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%6 = load float, float* %2
%7 = load float, float* %3
%8 = call float @add2(float %6, float %7)
store float %8, float* %4
%9 = load float, float* %4
%10 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), float %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"Sum = %ld\0A\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%4 = load float, float* %1
%5 = call float @add2(float %4, float undef)
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), float %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i;
  for (i = 0; i <= 5000; i++) {
    printf(" %d", i);
  }
  printf("\nApos sair do laco o i = %d", i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1388,-0x8(%rbp)
jg     1150 <main+0x40>
mov    -0x8(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x8(%rbp),%esi
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xefb(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x1389,%ebx
jne    1120 <main+0x10>
lea    0xec4(%rip),%rdi
mov    $0x1389,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c" %d\00"
@.str.1 = [28 x i8] c"\0AApos sair do laco o i = %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %9, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 5000
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %9
9: ; preds = %6
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
store i32 %11, i32* %2
br label %3
12: ; preds = %3
%13 = load i32, i32* %2
%14 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c" %d\00"
@.str.1 = [28 x i8] c"\0AApos sair do laco o i = %d\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 5001
br i1 %5, label %6, label %1
6: ; preds = %1
%7 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 5001)
ret i32 0
}
int abs(int n) { return n < 0 ? -n : n; }


x86 assembly (clang, -O0):
<abs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    111e <abs+0x1e>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1124 <abs+0x24>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @abs(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = sub nsw i32 0, %6
br label %10
8: ; preds = %1
%9 = load i32, i32* %2
br label %10
10: ; preds = %8, %5
%11 = phi i32 [ %7, %5 ], [ %9, %8 ]
ret i32 %11
}

LLVM IR (-O2):
define i32 @abs(i32 %0) {
%2 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
ret i32 %2
}
void zero_string(char *X, const int nX) {
  for (int i = 0; i < nX; i++) {
    X[i] = '\0';
  }
}


x86 assembly (clang, -O0):
<zero_string>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1138 <zero_string+0x38>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <zero_string+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<zero_string>:
test   %esi,%esi
jle    1122 <zero_string+0x12>
push   %rax
mov    %esi,%edx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

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

LLVM IR (-O2):
define void @zero_string(i8* nocapture writeonly %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %2
ret void
}
void g_param_spec_get_redirect_target() {}


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

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

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

LLVM IR (-O2):
define void @g_param_spec_get_redirect_target() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
void cookiethumper() {
  system("/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome "
         "--app https://www.youtube.com/watch?v=K8nrF5aXPlQ");
}


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

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

LLVM IR (-O0):
@.str = [113 x i8] c"/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --app https://www.youtube.com/watch?v=K8nrF5aXPlQ\00"
define void @cookiethumper() {
%1 = call i32 @system(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [113 x i8] c"/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --app https://www.youtube.com/watch?v=K8nrF5aXPlQ\00"
define void @cookiethumper() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str, i64 0, i64 0))
ret void
}