xunge/DecIR huggingface dataset:
void VecSelfNegate3iv(int v[3]) {
  v[0] = -v[0];
  v[1] = -v[1];
  v[2] = -v[2];
}


x86 assembly (clang, -O0):
<VecSelfNegate3iv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
xor    %ecx,%ecx
sub    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
xor    %ecx,%ecx
sub    0x4(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x8(%rbp),%rax
xor    %ecx,%ecx
sub    0x8(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<VecSelfNegate3iv>:
negl   (%rdi)
negl   0x4(%rdi)
negl   0x8(%rdi)
ret

LLVM IR (-O0):
define void @VecSelfNegate3iv(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = load i32, i32* %4
%6 = sub nsw i32 0, %5
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 0
store i32 %6, i32* %8
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 1
%11 = load i32, i32* %10
%12 = sub nsw i32 0, %11
%13 = load i32*, i32** %2
%14 = getelementptr inbounds i32, i32* %13, i64 1
store i32 %12, i32* %14
%15 = load i32*, i32** %2
%16 = getelementptr inbounds i32, i32* %15, i64 2
%17 = load i32, i32* %16
%18 = sub nsw i32 0, %17
%19 = load i32*, i32** %2
%20 = getelementptr inbounds i32, i32* %19, i64 2
store i32 %18, i32* %20
ret void
}

LLVM IR (-O2):
define void @VecSelfNegate3iv(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = sub nsw i32 0, %2
store i32 %3, i32* %0
%4 = getelementptr inbounds i32, i32* %0, i64 1
%5 = load i32, i32* %4
%6 = sub nsw i32 0, %5
store i32 %6, i32* %4
%7 = getelementptr inbounds i32, i32* %0, i64 2
%8 = load i32, i32* %7
%9 = sub nsw i32 0, %8
store i32 %9, i32* %7
ret void
}
int fc8151_bb_write(void *hDevice, unsigned short addr, unsigned char data) {
  return 0;
}


x86 assembly (clang, -O0):
<fc8151_bb_write>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %si,%cx
mov    %rdi,-0x8(%rbp)
mov    %cx,-0xa(%rbp)
mov    %al,-0xb(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @fc8151_bb_write(i8* %0, i16 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i16
%6 = alloca i8
store i8* %0, i8** %4
store i16 %1, i16* %5
store i8 %2, i8* %6
ret i32 0
}

LLVM IR (-O2):
define i32 @fc8151_bb_write(i8* nocapture readnone %0, i16 zeroext %1, i8 zeroext %2) {
ret i32 0
}
unsigned char uart0TxEmpty(void) {
  return (((*((volatile unsigned long *)0xE000C014)) & 0x60) == 0x60);
}


x86 assembly (clang, -O0):
<uart0TxEmpty>:
push   %rbp
mov    %rsp,%rbp
mov    $0xe000c014,%eax
mov    (%rax),%rax
and    $0x60,%rax
cmp    $0x60,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<uart0TxEmpty>:
mov    $0xe000c014,%eax
mov    (%rax),%rax
not    %eax
test   $0x60,%al
sete   %al
ret

LLVM IR (-O0):
define zeroext i8 @uart0TxEmpty() {
%1 = load volatile i64, i64* inttoptr (i64 3758145556 to i64*)
%2 = and i64 %1, 96
%3 = icmp eq i64 %2, 96
%4 = zext i1 %3 to i32
%5 = trunc i32 %4 to i8
ret i8 %5
}

LLVM IR (-O2):
define zeroext i8 @uart0TxEmpty() {
%1 = load volatile i64, i64* inttoptr (i64 3758145556 to i64*)
%2 = and i64 %1, 96
%3 = icmp eq i64 %2, 96
%4 = zext i1 %3 to i8
ret i8 %4
}
void timerCbDummy(void *ref) {}


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

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

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

LLVM IR (-O2):
define void @timerCbDummy(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ OS_LOCK();
void __SWI_5(void) { OS_LOCK(); }


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

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

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

LLVM IR (-O2):
define void @__SWI_5() {
%1 = tail call i32 (...) @OS_LOCK()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ FIONREAD;
int ioctl(int, int /*<<< orphan*/, int *);
int ytcpsocket_bytes_available(int socketfd) {
  int count;
  int callResult = ioctl(socketfd, FIONREAD, &count);
  if (callResult < 0) {
    return callResult;
  }
  return count;
}


x86 assembly (clang, -O0):
<ytcpsocket_bytes_available>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2ec3(%rip),%rax
mov    (%rax),%esi
lea    -0xc(%rbp),%rdx
call   1030 <ioctl@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    1148 <ytcpsocket_bytes_available+0x38>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    114e <ytcpsocket_bytes_available+0x3e>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ytcpsocket_bytes_available>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rdx
call   1030 <ioctl@plt>
test   %eax,%eax
js     112c <ytcpsocket_bytes_available+0x1c>
mov    0x4(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@FIONREAD = global i32 0
define i32 @ytcpsocket_bytes_available(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = load i32, i32* @FIONREAD
%5 = call i32 @ioctl(i32 %0, i32 %4, i32* %2)
%6 = icmp slt i32 %5, 0
%7 = load i32, i32* %2
%8 = select i1 %6, i32 %5, i32 %7
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int res_search(char *, int, int, unsigned char *, int);
void *fn(void *arg) {
  char *dn = (char *)arg;
  unsigned char buff[8000];
  if (-1 == res_search(dn, 1, 1, buff, 8000)) {
    printf("Error: res_search()\n");
  } else {
    printf("Success!\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<fn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f50,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x1f50(%rbp),%rcx
mov    $0x1,%edx
mov    $0x1f40,%r8d
mov    %edx,%esi
call   1030 <res_search@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
jne    1174 <fn+0x54>
lea    0xe96(%rip),%rdi
call   1040 <printf@plt>
jmp    1180 <fn+0x60>
lea    0xe9a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x1f50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn>:
sub    $0x1f48,%rsp
mov    %rsp,%rcx
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1f40,%r8d
call   1030 <res_search@plt>
cmp    $0xffffffff,%eax
lea    0xec0(%rip),%rax
lea    0xeb0(%rip),%rdi
cmove  %rax,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x1f48,%rsp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Error: res_search()\0A\00"
@.str.1 = [10 x i8] c"Success!\0A\00"
define i8* @fn(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca [8000 x i8]
store i8* %0, i8** %2
%5 = load i8*, i8** %2
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = getelementptr inbounds [8000 x i8], [8000 x i8]* %4, i64 0, i64 0
%8 = call i32 @res_search(i8* %6, i32 1, i32 1, i8* %7, i32 8000)
%9 = icmp eq i32 -1, %8
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %14
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %10
ret i8* null
}

LLVM IR (-O2):
@str = [9 x i8] c"Success!\00"
@str.2 = [20 x i8] c"Error: res_search()\00"
define noalias i8* @fn(i8* %0) {
%2 = alloca [8000 x i8]
%3 = getelementptr inbounds [8000 x i8], [8000 x i8]* %2, i64 0, i64 0
%4 = call i32 @res_search(i8* %0, i32 1, i32 1, i8* %3, i32 8000)
%5 = icmp eq i32 %4, -1
%6 = select i1 %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0)
%7 = call i32 @puts(i8* dereferenceable(1) %6)
ret i8* null
}
main(t) {
  for (t = 0;; t++)
    putchar((t * (42 & t >> 10)) & 64);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x8(%rbp),%eax
sar    $0xa,%eax
and    $0x2a,%eax
imul   %eax,%edi
and    $0x40,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1129 <main+0x19>

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
shr    $0xa,%edi
and    $0x2a,%edi
imul   %ebx,%edi
and    $0x40,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
add    $0x1,%ebx
jmp    1120 <main+0x10>

LLVM IR (-O0):
define i32 @main(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %2
store i32 %0, i32* %3
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %3
%7 = ashr i32 %6, 10
%8 = and i32 42, %7
%9 = mul nsw i32 %5, %8
%10 = and i32 %9, 64
%11 = call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %10)
br label %12
12: ; preds = %4
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
}

LLVM IR (-O2):
define i32 @main(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 0, %1 ], [ %9, %2 ]
%4 = lshr i32 %3, 10
%5 = and i32 %4, 42
%6 = mul nuw nsw i32 %5, %3
%7 = and i32 %6, 64
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %7)
%9 = add nuw nsw i32 %3, 1
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void usage() {
  fputs("Usage: tail [-f] [-c number | -n number] [file]\n", stderr);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"Usage: tail [-f] [-c number | -n number] [file]\0A\00"
@stderr = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [49 x i8] c"Usage: tail [-f] [-c number | -n number] [file]\0A\00"
@stderr = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @exit(i32 1)
unreachable
}
char *sstrncpy(char *dst, char const *src, unsigned long max) {
  char *orig_dst = dst;
  while ((max-- > 1) && (*src)) {
    *dst = *src;
    dst++;
    src++;
  }
  *dst = '\0';
  return (orig_dst);
}


x86 assembly (clang, -O0):
<sstrncpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rcx
mov    %rcx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
xor    %eax,%eax
cmp    $0x1,%rcx
mov    %al,-0x21(%rbp)
jbe    1146 <sstrncpy+0x46>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1156 <sstrncpy+0x56>
jmp    117f <sstrncpy+0x7f>
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1118 <sstrncpy+0x18>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sstrncpy>:
mov    %rdi,%rax
cmp    $0x2,%rdx
jb     112b <sstrncpy+0x2b>
mov    %rax,%rdi
nopl   0x0(%rax)
movzbl (%rsi),%ecx
test   %cl,%cl
je     112b <sstrncpy+0x2b>
add    $0xffffffffffffffff,%rdx
mov    %cl,(%rdi)
add    $0x1,%rdi
add    $0x1,%rsi
cmp    $0x1,%rdx
ja     1110 <sstrncpy+0x10>
movb   $0x0,(%rdi)
ret

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

LLVM IR (-O2):
define i8* @sstrncpy(i8* returned writeonly %0, i8* nocapture %1, i64 %2) {
%4 = icmp ugt i64 %2, 1
br i1 %4, label %5, label %16
5: ; preds = %3, %12
%6 = phi i64 [ %9, %12 ], [ %2, %3 ]
%7 = phi i8* [ %13, %12 ], [ %0, %3 ]
%8 = phi i8* [ %14, %12 ], [ %1, %3 ]
%9 = add i64 %6, -1
%10 = load i8, i8* %8
%11 = icmp eq i8 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %5
store i8 %10, i8* %7
%13 = getelementptr inbounds i8, i8* %7, i64 1
%14 = getelementptr inbounds i8, i8* %8, i64 1
%15 = icmp ugt i64 %9, 1
br i1 %15, label %5, label %16
16: ; preds = %5, %12, %3
%17 = phi i8* [ %0, %3 ], [ %13, %12 ], [ %7, %5 ]
store i8 0, i8* %17
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ PathStatusHandle();
int /*<<< orphan*/ UAVObjRequestUpdate(int /*<<< orphan*/);
void PathStatusRequestUpdate() { UAVObjRequestUpdate(PathStatusHandle()); }


x86 assembly (clang, -O0):
<PathStatusRequestUpdate>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <PathStatusHandle@plt>
mov    %eax,%edi
call   1040 <UAVObjRequestUpdate@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PathStatusRequestUpdate>:
push   %rax
xor    %eax,%eax
call   1030 <PathStatusHandle@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <UAVObjRequestUpdate@plt>

LLVM IR (-O0):
define void @PathStatusRequestUpdate() {
%1 = call i32 (...) @PathStatusHandle()
%2 = call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}

LLVM IR (-O2):
define void @PathStatusRequestUpdate() {
%1 = tail call i32 (...) @PathStatusHandle()
%2 = tail call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}
/* Variables and functions */
int chaz_CC_msvc_version_num();
int chaz_Probe_msvc_version_num(void) { return chaz_CC_msvc_version_num(); }


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

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

LLVM IR (-O0):
define i32 @chaz_Probe_msvc_version_num() {
%1 = call i32 (...) @chaz_CC_msvc_version_num()
ret i32 %1
}

LLVM IR (-O2):
define i32 @chaz_Probe_msvc_version_num() {
%1 = tail call i32 (...) @chaz_CC_msvc_version_num()
ret i32 %1
}
int main() {
  int arg1 = 0xAAAAAAAA;
  int arg2 = 0xDEADBEEF;
  char out = 0;
  __asm__("addl %1, %2; lahf; movb %%ah, %%al; xorb %%ah,%%ah;"
          : "=a"(out)
          : "r"(arg1), "r"(arg2));
  return (out & 1) && (out & (1 << 2)) && (out & (1 << 7)) ? 1 : 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0xaaaaaaaa,-0x8(%rbp)
movl   $0xdeadbeef,-0xc(%rbp)
movb   $0x0,-0xd(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    %eax,%ecx
lahf
mov    %ah,%al
xor    %ah,%ah
mov    %al,-0xd(%rbp)
movsbl -0xd(%rbp),%ecx
and    $0x1,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xe(%rbp)
je     1169 <main+0x69>
movsbl -0xd(%rbp),%ecx
and    $0x4,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xe(%rbp)
je     1169 <main+0x69>
movsbl -0xd(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0xe(%rbp)
mov    -0xe(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    $0xaaaaaaaa,%eax
mov    $0xdeadbeef,%ecx
add    %eax,%ecx
lahf
mov    %ah,%al
xor    %ah,%ah
movzbl %al,%ecx
mov    %ecx,%edx
not    %edx
shr    $0x7,%ecx
xor    %eax,%eax
test   $0x5,%dl
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8
store i32 0, i32* %1
store i32 -1431655766, i32* %2
store i32 -559038737, i32* %3
store i8 0, i8* %4
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = call i8 asm "addl $1, $2; lahf; movb %ah, %al; xorb %ah,%ah;", "={ax},r,r,~{dirflag},~{fpsr},~{flags}"(i32 %5, i32 %6)
store i8 %7, i8* %4
%8 = load i8, i8* %4
%9 = sext i8 %8 to i32
%10 = and i32 %9, 1
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %0
%13 = load i8, i8* %4
%14 = sext i8 %13 to i32
%15 = and i32 %14, 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i8, i8* %4
%19 = sext i8 %18 to i32
%20 = and i32 %19, 128
%21 = icmp ne i32 %20, 0
br label %22
22: ; preds = %17, %12, %0
%23 = phi i1 [ false, %12 ], [ false, %0 ], [ %21, %17 ]
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 1, i32 0
ret i32 %25
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i8 asm "addl $1, $2; lahf; movb %ah, %al; xorb %ah,%ah;", "={ax},r,r,~{dirflag},~{fpsr},~{flags}"(i32 -1431655766, i32 -559038737)
%2 = zext i8 %1 to i32
%3 = and i32 %2, 5
%4 = icmp eq i32 %3, 5
%5 = lshr i32 %2, 7
%6 = select i1 %4, i32 %5, i32 0
ret i32 %6
}
/* Variables and functions */
scalar_t__ strcmp(char const *const, char const *const);
bool is_address_equal(const char *const x, const char *const y) {
  return x != NULL && strcmp(x, y) == 0;
}


x86 assembly (clang, -O0):
<is_address_equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
je     1147 <is_address_equal+0x37>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_address_equal>:
test   %rdi,%rdi
je     112b <is_address_equal+0x1b>
push   %rax
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
add    $0x8,%rsp
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @is_address_equal(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = tail call i64 @strcmp(i8* %0, i8* %1)
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %2
%9 = phi i32 [ 0, %2 ], [ %7, %4 ]
ret i32 %9
}
int muspcm_getpos(int slot) { return (-1); }


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

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

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

LLVM IR (-O2):
define i32 @muspcm_getpos(i32 %0) {
ret i32 -1
}
void _M2_test_finish(__attribute__((unused)) int argc,
                     __attribute__((unused)) char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @_M2_test_finish(i32 %0, i8** nocapture %1) {
ret void
}
int foo(int a, int b) {
  if (a == b)
    if (a == b)
      return a + b;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1135 <foo+0x35>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1130 <foo+0x30>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1135 <foo+0x35>
jmp    1135 <foo+0x35>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @foo(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
%4 = add nsw i32 %1, %0
%5 = select i1 %3, i32 %4, i32 undef
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ test_create();
int /*<<< orphan*/ test_pop();
int /*<<< orphan*/ test_push();
main() {
  test_create();
  test_push();
  test_pop();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <test_create@plt>
mov    $0x0,%al
call   1040 <test_push@plt>
mov    $0x0,%al
call   1030 <test_pop@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @test_create()
%2 = call i32 (...) @test_push()
%3 = call i32 (...) @test_pop()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_create()
%2 = tail call i32 (...) @test_push()
%3 = tail call i32 (...) @test_pop()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ waiter1(int /*<<< orphan*/);
int /*<<< orphan*/ waiter2(int /*<<< orphan*/);
int /*<<< orphan*/ waker1(int /*<<< orphan*/);
int /*<<< orphan*/ waker2(int /*<<< orphan*/);
int /*<<< orphan*/ waker3(int /*<<< orphan*/);
int /*<<< orphan*/ waker4(int /*<<< orphan*/);
int /*<<< orphan*/ waker5(int /*<<< orphan*/);
int /*<<< orphan*/ waker6(int /*<<< orphan*/);
int main() {
__CPROVER_ASYNC_0:
  waiter1(0);
__CPROVER_ASYNC_1:
  waiter2(0);
__CPROVER_ASYNC_2:
  waker1(0);
__CPROVER_ASYNC_3:
  waker2(0);
__CPROVER_ASYNC_4:
  waker3(0);
__CPROVER_ASYNC_5:
  waker4(0);
__CPROVER_ASYNC_6:
  waker5(0);
__CPROVER_ASYNC_7:
  waker6(0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   10a0 <waiter1@plt>
xor    %edi,%edi
call   1060 <waiter2@plt>
xor    %edi,%edi
call   1080 <waker1@plt>
xor    %edi,%edi
call   1040 <waker2@plt>
xor    %edi,%edi
call   1090 <waker3@plt>
xor    %edi,%edi
call   1050 <waker4@plt>
xor    %edi,%edi
call   1070 <waker5@plt>
xor    %edi,%edi
call   1030 <waker6@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   10a0 <waiter1@plt>
xor    %edi,%edi
call   1060 <waiter2@plt>
xor    %edi,%edi
call   1080 <waker1@plt>
xor    %edi,%edi
call   1040 <waker2@plt>
xor    %edi,%edi
call   1090 <waker3@plt>
xor    %edi,%edi
call   1050 <waker4@plt>
xor    %edi,%edi
call   1070 <waker5@plt>
xor    %edi,%edi
call   1030 <waker6@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0
%3 = call i32 @waiter1(i32 0)
br label %4
4: ; preds = %2
%5 = call i32 @waiter2(i32 0)
br label %6
6: ; preds = %4
%7 = call i32 @waker1(i32 0)
br label %8
8: ; preds = %6
%9 = call i32 @waker2(i32 0)
br label %10
10: ; preds = %8
%11 = call i32 @waker3(i32 0)
br label %12
12: ; preds = %10
%13 = call i32 @waker4(i32 0)
br label %14
14: ; preds = %12
%15 = call i32 @waker5(i32 0)
br label %16
16: ; preds = %14
%17 = call i32 @waker6(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @waiter1(i32 0)
%2 = tail call i32 @waiter2(i32 0)
%3 = tail call i32 @waker1(i32 0)
%4 = tail call i32 @waker2(i32 0)
%5 = tail call i32 @waker3(i32 0)
%6 = tail call i32 @waker4(i32 0)
%7 = tail call i32 @waker5(i32 0)
%8 = tail call i32 @waker6(i32 0)
ret i32 0
}
double dbl_mul_add(double a, double c) { return (a * a) + c; }


x86 assembly (clang, -O0):
<dbl_mul_add>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dbl_mul_add>:
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @dbl_mul_add(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 double @llvm.fmuladd.f64(double %5, double %6, double %7)
ret double %8
}

LLVM IR (-O2):
define double @dbl_mul_add(double %0, double %1) {
%3 = tail call double @llvm.fmuladd.f64(double %0, double %0, double %1)
ret double %3
}
/* Variables and functions */
bool isnum(const char *str) {
  if (*str == 0)
    return false;
  while (*str != 0) {
    if (*str < '0' || *str++ > '9')
      return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<isnum>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1124 <isnum+0x24>
movl   $0x0,-0x4(%rbp)
jmp    117c <isnum+0x7c>
jmp    1129 <isnum+0x29>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1175 <isnum+0x75>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jl     1164 <isnum+0x64>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
cmp    $0x39,%eax
jle    1170 <isnum+0x70>
movl   $0x0,-0x4(%rbp)
jmp    117c <isnum+0x7c>
jmp    1129 <isnum+0x29>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnum>:
mov    (%rdi),%cl
xor    %eax,%eax
test   %cl,%cl
je     1128 <isnum+0x28>
add    $0x1,%rdi
nopl   0x0(%rax)
add    $0xc6,%cl
cmp    $0xf5,%cl
jbe    1128 <isnum+0x28>
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <isnum+0x10>
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @isnum(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %13, label %7
4: ; preds = %7
%5 = load i8, i8* %10
%6 = icmp eq i8 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %1, %4
%8 = phi i8* [ %10, %4 ], [ %0, %1 ]
%9 = phi i8 [ %5, %4 ], [ %2, %1 ]
%10 = getelementptr inbounds i8, i8* %8, i64 1
%11 = add i8 %9, -58
%12 = icmp ult i8 %11, -10
br i1 %12, label %13, label %4
13: ; preds = %7, %4, %1
%14 = phi i32 [ 0, %1 ], [ 0, %7 ], [ 1, %4 ]
ret i32 %14
}
void gtk_tearoff_menu_item_new() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char const *, char const *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
FILE *file_open(const char *filename, const char *mode) {
  FILE *file = fopen(filename, mode);
  if (file == NULL) {
    fprintf(stderr, "Could not open %s\n", filename);
    exit(1);
  }
  return file;
}


x86 assembly (clang, -O0):
<file_open>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    117f <file_open+0x4f>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe90(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_open>:
push   %rbx
mov    %rdi,%rbx
call   1040 <fopen@plt>
test   %rax,%rax
je     1140 <file_open+0x10>
pop    %rbx
ret
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
lea    0xeb0(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [19 x i8] c"Could not open %s\0A\00"
define i32* @file_open(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i32* @fopen(i8* %6, i8* %7)
store i32* %8, i32** %5
%9 = load i32*, i32** %5
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i8*, i8** %3
%14 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = call i32 @exit(i32 1)
unreachable
16: ; preds = %2
%17 = load i32*, i32** %5
ret i32* %17
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [19 x i8] c"Could not open %s\0A\00"
define noalias i32* @file_open(i8* %0, i8* nocapture %1) {
%3 = tail call i32* @fopen(i8* %0, i8* %1)
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %2
ret i32* %3
}
/* Type definitions */
typedef int /*<<< orphan*/ AUTHORITY_KEYID;
typedef int /*<<< orphan*/ ASN1_VALUE;

/* Variables and functions */
int ASN1_item_i2d(int /*<<< orphan*/ *, unsigned char **, int /*<<< orphan*/ *);
int /*<<< orphan*/ AUTHORITY_KEYID_it;
int i2d_AUTHORITY_KEYID(AUTHORITY_KEYID *a, unsigned char **out) {
  return ASN1_item_i2d((ASN1_VALUE *)a, out, &AUTHORITY_KEYID_it);
}


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

x86 assembly (clang, -O2):
<i2d_AUTHORITY_KEYID>:
mov    0x2ed1(%rip),%rdx
jmp    1030 <ASN1_item_i2d@plt>

LLVM IR (-O0):
@AUTHORITY_KEYID_it = global i32 0
define i32 @i2d_AUTHORITY_KEYID(i32* %0, i8** %1) {
%3 = alloca i32*
%4 = alloca i8**
store i32* %0, i32** %3
store i8** %1, i8*** %4
%5 = load i32*, i32** %3
%6 = load i8**, i8*** %4
%7 = call i32 @ASN1_item_i2d(i32* %5, i8** %6, i32* @AUTHORITY_KEYID_it)
ret i32 %7
}

LLVM IR (-O2):
@AUTHORITY_KEYID_it = global i32 0
define i32 @i2d_AUTHORITY_KEYID(i32* %0, i8** %1) {
%3 = tail call i32 @ASN1_item_i2d(i32* %0, i8** %1, i32* @AUTHORITY_KEYID_it)
ret i32 %3
}
__attribute__((always_)) void atomic_or_long(unsigned long *v1,
                                             unsigned long v2) {
  asm(".section .smp_locks,\"a\"\n"
      " "
      ".balign 8"
      " "
      "\n"
      " "
      ".quad"
      " "
      "661f\n"
      ".previous\n"
      "661:\n\tlock; "
      "orq %1, %0"
      : "+m"(*v1)
      : "r"(v2));
}


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

x86 assembly (clang, -O2):
<atomic_or_long>:
lock or %rsi,(%rdi)
ret

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

LLVM IR (-O2):
define void @atomic_or_long(i64* %0, i64 %1) {
tail call void asm ".section .smp_locks,\22a\22\0A .balign 8 \0A .quad 661f\0A.previous\0A661:\0A\09lock; orq $1, $0", "=*m,r,*m,~{dirflag},~{fpsr},~{flags}"(i64* elementtype(i64) %0, i64 %1, i64* elementtype(i64) %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint64_t;

/* Variables and functions */
scalar_t__ unaligned_read_be32(int /*<<< orphan*/ const *);
uint64_t unaligned_read_be64(const void *_u) {
  const uint8_t *u = _u;
  return (((uint64_t)unaligned_read_be32(u)) << 32) |
         ((uint64_t)unaligned_read_be32(u + 4));
}


x86 assembly (clang, -O0):
<unaligned_read_be64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <unaligned_read_be32@plt>
mov    $0x20,%ecx
shl    %cl,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x10,%rdi
call   1030 <unaligned_read_be32@plt>
mov    %rax,%rcx
mov    -0x14(%rbp),%eax
or     %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unaligned_read_be64>:
push   %rbx
mov    %rdi,%rbx
call   1030 <unaligned_read_be32@plt>
add    $0x10,%rbx
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <unaligned_read_be32@plt>

LLVM IR (-O0):
define i32 @unaligned_read_be64(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = call i64 @unaligned_read_be32(i32* %6)
%8 = trunc i64 %7 to i32
%9 = shl i32 %8, 32
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i64 4
%12 = call i64 @unaligned_read_be32(i32* %11)
%13 = trunc i64 %12 to i32
%14 = or i32 %9, %13
ret i32 %14
}

LLVM IR (-O2):
define i32 @unaligned_read_be64(i8* %0) {
%2 = bitcast i8* %0 to i32*
%3 = tail call i64 @unaligned_read_be32(i32* %2)
%4 = getelementptr inbounds i8, i8* %0, i64 16
%5 = bitcast i8* %4 to i32*
%6 = tail call i64 @unaligned_read_be32(i32* %5)
ret i32 poison
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
bool SysCtlPeripheralPresent(uint32_t ui32Peripheral) {
  ;
  return (
      (*((volatile uint32_t
              *)(((uint32_t)(0x400fe300 + ((ui32Peripheral & 0xff00) >> 8)) &
                  0xF0000000) |
                 0x02000000 |
                 (((uint32_t)(0x400fe300 + ((ui32Peripheral & 0xff00) >> 8)) &
                   0x000FFFFF)
                  << 5) |
                 ((ui32Peripheral & 0xff) << 2)))));
}


x86 assembly (clang, -O0):
<SysCtlPeripheralPresent>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff00,%eax
sar    $0x8,%eax
add    $0x400fe300,%eax
and    $0xf0000000,%eax
or     $0x2000000,%eax
mov    -0x4(%rbp),%ecx
and    $0xff00,%ecx
sar    $0x8,%ecx
add    $0x400fe300,%ecx
and    $0xfffff,%ecx
shl    $0x5,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
and    $0xff,%ecx
shl    $0x2,%ecx
or     %ecx,%eax
mov    %eax,%eax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SysCtlPeripheralPresent>:
movzbl %dil,%eax
shr    $0x3,%edi
and    $0x1fe0,%edi
shl    $0x2,%eax
or     %edi,%eax
mov    0x43fc6000(%rax),%eax
ret

LLVM IR (-O0):
define i32 @SysCtlPeripheralPresent(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 65280
%5 = ashr i32 %4, 8
%6 = add nsw i32 1074782976, %5
%7 = and i32 %6, -268435456
%8 = or i32 %7, 33554432
%9 = load i32, i32* %2
%10 = and i32 %9, 65280
%11 = ashr i32 %10, 8
%12 = add nsw i32 1074782976, %11
%13 = and i32 %12, 1048575
%14 = shl i32 %13, 5
%15 = or i32 %8, %14
%16 = load i32, i32* %2
%17 = and i32 %16, 255
%18 = shl i32 %17, 2
%19 = or i32 %15, %18
%20 = zext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load volatile i32, i32* %21
ret i32 %22
}

LLVM IR (-O2):
define i32 @SysCtlPeripheralPresent(i32 %0) {
%2 = lshr i32 %0, 3
%3 = and i32 %2, 8160
%4 = shl i32 %0, 2
%5 = and i32 %4, 1020
%6 = or i32 %5, %3
%7 = or i32 %6, 1140613120
%8 = zext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load volatile i32, i32* %9
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
void g() {
  unsigned int max = 0;
  unsigned int a[3];
  a[0] = 45;
  a[1] = 36;
  a[2] = 12;
  unsigned int i = 0;
  while (i < 3) {
    if (max < a[i]) {
      max = a[i];
    }
    i = i + 1;
  }
  printf("max=%u\n", max);
}


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2d,-0x10(%rbp)
movl   $0x24,-0xc(%rbp)
movl   $0xc,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jae    116d <g+0x5d>
mov    -0x4(%rbp),%eax
mov    -0x14(%rbp),%ecx
cmp    -0x10(%rbp,%rcx,4),%eax
jae    115f <g+0x4f>
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp,%rax,4),%eax
mov    %eax,-0x4(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113b <g+0x2b>
mov    -0x4(%rbp),%esi
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g>:
lea    0xee9(%rip),%rdi
mov    $0x2d,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"max=%u\0A\00"
define void @g() {
%1 = alloca i32
%2 = alloca [3 x i32]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
store i32 45, i32* %4
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
store i32 36, i32* %5
%6 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
store i32 12, i32* %6
store i32 0, i32* %3
br label %7
7: ; preds = %22, %0
%8 = load i32, i32* %3
%9 = icmp ult i32 %8, 3
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = load i32, i32* %1
%12 = load i32, i32* %3
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = icmp ult i32 %11, %15
br i1 %16, label %17, label %22
17: ; preds = %10
%18 = load i32, i32* %3
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 %19
%21 = load i32, i32* %20
store i32 %21, i32* %1
br label %22
22: ; preds = %17, %10
%23 = load i32, i32* %3
%24 = add i32 %23, 1
store i32 %24, i32* %3
br label %7
25: ; preds = %7
%26 = load i32, i32* %1
%27 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %26)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"max=%u\0A\00"
define void @g() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 45)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int error(char *, int /*<<< orphan*/);
int pthread_sigmask(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ slurm_strerror(int);
int _sigmask(int how, sigset_t *set, sigset_t *oset) {
  int err;
  if ((err = pthread_sigmask(how, set, oset)))
    return error("pthread_sigmask: %s", slurm_strerror(err));
  return 0;
}


x86 assembly (clang, -O0):
<_sigmask>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <pthread_sigmask@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
je     117d <_sigmask+0x4d>
mov    -0x1c(%rbp),%edi
call   1030 <slurm_strerror@plt>
mov    %eax,%esi
lea    0xe90(%rip),%rdi
call   1050 <error@plt>
mov    %eax,-0x4(%rbp)
jmp    1184 <_sigmask+0x54>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_sigmask>:
push   %rax
call   1040 <pthread_sigmask@plt>
test   %eax,%eax
je     1150 <_sigmask+0x20>
mov    %eax,%edi
call   1030 <slurm_strerror@plt>
lea    0xeb8(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1050 <error@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"pthread_sigmask: %s\00"
define i32 @_sigmask(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* %5
store i32* %1, i32** %6
store i32* %2, i32** %7
%9 = load i32, i32* %5
%10 = load i32*, i32** %6
%11 = load i32*, i32** %7
%12 = call i32 @pthread_sigmask(i32 %9, i32* %10, i32* %11)
store i32 %12, i32* %8
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load i32, i32* %8
%16 = call i32 @slurm_strerror(i32 %15)
%17 = call i32 @error(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %16)
store i32 %17, i32* %4
br label %19
18: ; preds = %3
store i32 0, i32* %4
br label %19
19: ; preds = %18, %14
%20 = load i32, i32* %4
ret i32 %20
}

LLVM IR (-O2):
@.str = [20 x i8] c"pthread_sigmask: %s\00"
define i32 @_sigmask(i32 %0, i32* %1, i32* %2) {
%4 = tail call i32 @pthread_sigmask(i32 %0, i32* %1, i32* %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = tail call i32 @slurm_strerror(i32 %4)
%8 = tail call i32 @error(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %9
9: ; preds = %3, %6
%10 = phi i32 [ %8, %6 ], [ 0, %3 ]
ret i32 %10
}
void nflog_final_check(const struct ebt_u_entry *entry,
                       const struct ebt_entry_watcher *watcher,
                       const char *name, unsigned int hookmask,
                       unsigned int time) {}


x86 assembly (clang, -O0):
<nflog_final_check>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.ebt_u_entry = type opaque
%struct.ebt_entry_watcher = type opaque
define void @nflog_final_check(%struct.ebt_u_entry* %0, %struct.ebt_entry_watcher* %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca %struct.ebt_u_entry*
%7 = alloca %struct.ebt_entry_watcher*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store %struct.ebt_u_entry* %0, %struct.ebt_u_entry** %6
store %struct.ebt_entry_watcher* %1, %struct.ebt_entry_watcher** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
ret void
}

LLVM IR (-O2):
%struct.ebt_u_entry = type opaque
%struct.ebt_entry_watcher = type opaque
define void @nflog_final_check(%struct.ebt_u_entry* nocapture %0, %struct.ebt_entry_watcher* nocapture %1, i8* nocapture %2, i32 %3, i32 %4) {
ret void
}
void genc_ule_s() {}


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

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

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

LLVM IR (-O2):
define void @genc_ule_s() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ notify_controller_initialized();
void init() { notify_controller_initialized(); }


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

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

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

LLVM IR (-O2):
define void @init() {
%1 = tail call i32 (...) @notify_controller_initialized()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
char *get_string(char *);
int /*<<< orphan*/ printf(char *);
int s_len(char *);
int /*<<< orphan*/ stdin;
char *macread(char *arg) {
  printf(get_string(arg));
  fgets(arg, 10240, stdin);
  arg[s_len(arg) - 1] = 0;
  return (arg);
}


x86 assembly (clang, -O0):
<macread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <get_string@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e80(%rip),%rax
mov    (%rax),%edx
mov    $0x2800,%esi
call   1060 <fgets@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <s_len@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<macread>:
push   %rbx
mov    %rdi,%rbx
call   1040 <get_string@plt>
mov    %rax,%rdi
call   1050 <printf@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x2800,%esi
call   1060 <fgets@plt>
mov    %rbx,%rdi
call   1030 <s_len@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@stdin = global i32 0
define i8* @macread(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @get_string(i8* %3)
%5 = call i32 @printf(i8* %4)
%6 = load i8*, i8** %2
%7 = load i32, i32* @stdin
%8 = call i32 @fgets(i8* %6, i32 10240, i32 %7)
%9 = load i8*, i8** %2
%10 = load i8*, i8** %2
%11 = call i32 @s_len(i8* %10)
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %9, i64 %13
store i8 0, i8* %14
%15 = load i8*, i8** %2
ret i8* %15
}

LLVM IR (-O2):
@stdin = global i32 0
define i8* @macread(i8* returned %0) {
%2 = tail call i8* @get_string(i8* %0)
%3 = tail call i32 @printf(i8* dereferenceable(1) %2)
%4 = load i32, i32* @stdin
%5 = tail call i32 @fgets(i8* %0, i32 10240, i32 %4)
%6 = tail call i32 @s_len(i8* %0)
%7 = add nsw i32 %6, -1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %0, i64 %8
store i8 0, i8* %9
ret i8* %0
}