xunge/DecIR huggingface dataset:
int bitset_isset(const unsigned char *bitset, unsigned long bit) {
  return !!(bitset[bit >> 3] & (1 << (bit & 0x07)));
}


x86 assembly (clang, -O0):
<bitset_isset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
shr    $0x3,%rcx
movzbl (%rax,%rcx,1),%eax
mov    -0x10(%rbp),%rcx
and    $0x7,%rcx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitset_isset>:
mov    %rsi,%rcx
mov    %rsi,%rax
shr    $0x3,%rax
movzbl (%rdi,%rax,1),%eax
and    $0x7,%cl
shr    %cl,%eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @bitset_isset(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = lshr i64 %6, 3
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = load i64, i64* %4
%12 = and i64 %11, 7
%13 = trunc i64 %12 to i32
%14 = shl i32 1, %13
%15 = and i32 %10, %14
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
%18 = xor i1 %17, true
%19 = zext i1 %18 to i32
ret i32 %19
}

LLVM IR (-O2):
define i32 @bitset_isset(i8* nocapture %0, i64 %1) {
%3 = lshr i64 %1, 3
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = trunc i64 %1 to i32
%8 = and i32 %7, 7
%9 = lshr i32 %6, %8
%10 = and i32 %9, 1
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ strncmp(char *, char *, int);
int isfilename(char *string) {
  if (!strncmp(string, "====>", 5))
    return 1;
  if (!strncmp(string, "SIMPLE  =", 9))
    return 2;
  return 0;
}


x86 assembly (clang, -O0):
<isfilename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1146 <isfilename+0x36>
movl   $0x1,-0x4(%rbp)
jmp    1177 <isfilename+0x67>
mov    -0x10(%rbp),%rdi
lea    0xeb5(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1170 <isfilename+0x60>
movl   $0x2,-0x4(%rbp)
jmp    1177 <isfilename+0x67>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isfilename>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     114a <isfilename+0x3a>
lea    0xed6(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
sete   %al
add    %eax,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"====>\00"
@.str.1 = [10 x i8] c"SIMPLE =\00"
define i32 @isfilename(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @strncmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 1, i32* %2
br label %14
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i32 @strncmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i32 2, i32* %2
br label %14
13: ; preds = %8
store i32 0, i32* %2
br label %14
14: ; preds = %13, %12, %7
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@.str = [6 x i8] c"====>\00"
@.str.1 = [10 x i8] c"SIMPLE =\00"
define i32 @isfilename(i8* %0) {
%2 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%3 = icmp eq i32 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%6 = icmp eq i32 %5, 0
%7 = select i1 %6, i32 2, i32 0
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
void zero_memory(void *ptr, size_t size) { memset(ptr, 0, size); }


x86 assembly (clang, -O0):
<zero_memory>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zero_memory>:
mov    %rsi,%rdx
xor    %esi,%esi
jmp    1030 <memset@plt>

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

LLVM IR (-O2):
define void @zero_memory(i8* %0, i64 %1) {
%3 = tail call i32 @memset(i8* %0, i32 0, i64 %1)
ret void
}
/* Variables and functions */
scalar_t__ malloc(scalar_t__);
int /*<<< orphan*/ strcpy(char *, char const *);
scalar_t__ strlen(char const *);
char *NewString(const char *s) {
  char *returnValue = (char *)malloc(strlen(s) + 1);
  strcpy(returnValue, s);
  return returnValue;
}


x86 assembly (clang, -O0):
<NewString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NewString>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @NewString(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strlen(i8* %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 %6)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %3
%9 = load i8*, i8** %3
%10 = load i8*, i8** %2
%11 = call i32 @strcpy(i8* %9, i8* %10)
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
define i8* @NewString(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i64 @malloc(i64 %3)
%5 = inttoptr i64 %4 to i8*
%6 = tail call i32 @strcpy(i8* %5, i8* %0)
ret i8* %5
}
void RC_wait(int wait) {
  asm volatile("movl %%eax,%%ecx\n\t"
               "L1: nop\n\t"
               "loop L1"
               :
               : "a"(wait)
               : "%ecx");
  return;
}


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

x86 assembly (clang, -O2):
<RC_wait>:
mov    %edi,%eax
mov    %eax,%ecx

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

LLVM IR (-O2):
define void @RC_wait(i32 %0) {
tail call void asm sideeffect "movl %eax,%ecx\0A\09L1: nop\0A\09loop L1", "{ax},~{ecx},~{dirflag},~{fpsr},~{flags}"(i32 %0)
ret void
}
unsigned long long int __attribute__((no, noclone))
foo(unsigned long long int i, unsigned long long int j) {
  asm("");
  return i >> j;
}


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

x86 assembly (clang, -O2):
<foo>:
mov    %rsi,%rcx
mov    %rdi,%rax
shr    %cl,%rax
ret

LLVM IR (-O0):
define i64 @foo(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
%7 = lshr i64 %5, %6
ret i64 %7
}

LLVM IR (-O2):
define i64 @foo(i64 %0, i64 %1) {
tail call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"()
%3 = lshr i64 %0, %1
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stdout;
void dumpInt(int n) {
  int i;
  for (i = 0; i < 4; i++) {
    fprintf(stdout, "%02X ", (n >> (i * 8)) & 0xff);
  }
}


x86 assembly (clang, -O0):
<dumpInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    1160 <dumpInt+0x50>
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
shl    $0x3,%ecx
sar    %cl,%edx
and    $0xff,%edx
lea    0xeb3(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <dumpInt+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dumpInt>:
push   %r15
push   %r14
push   %rbx
mov    %edi,%ebx
mov    0x2ec2(%rip),%r15
mov    (%r15),%edi
movzbl %bl,%edx
lea    0xed5(%rip),%r14
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
movzbl %bh,%edx
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %ebx,%eax
shr    $0x10,%eax
movzbl %al,%edx
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%r15),%edi
shr    $0x18,%ebx
mov    %r14,%rsi
mov    %ebx,%edx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [6 x i8] c"%02X \00"
define void @dumpInt(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %15, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 4
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = load i32, i32* @stdout
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = mul nsw i32 %10, 8
%12 = ashr i32 %9, %11
%13 = and i32 %12, 255
%14 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %7
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
br label %4
18: ; preds = %4
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [6 x i8] c"%02X \00"
define void @dumpInt(i32 %0) {
%2 = load i32, i32* @stdout
%3 = and i32 %0, 255
%4 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = lshr i32 %0, 8
%7 = and i32 %6, 255
%8 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stdout
%10 = lshr i32 %0, 16
%11 = and i32 %10, 255
%12 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stdout
%14 = lshr i32 %0, 24
%15 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %14)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo(void *);
short ishortplus(short x, short y) {
  x += 24;
  if (!x)
    foo((void *)0);
  return x;
}


x86 assembly (clang, -O0):
<ishortplus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %ax,-0x4(%rbp)
movswl -0x2(%rbp),%eax
add    $0x18,%eax
mov    %ax,-0x2(%rbp)
cmpw   $0x0,-0x2(%rbp)
jne    1145 <ishortplus+0x35>
xor    %eax,%eax
mov    %eax,%edi
call   1030 <foo@plt>
movswl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ishortplus>:
push   %rbx
mov    %edi,%ebx
add    $0x18,%bx
jne    1120 <ishortplus+0x10>
xor    %edi,%edi
call   1030 <foo@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define signext i16 @ishortplus(i16 signext %0, i16 signext %1) {
%3 = alloca i16
%4 = alloca i16
store i16 %0, i16* %3
store i16 %1, i16* %4
%5 = load i16, i16* %3
%6 = sext i16 %5 to i32
%7 = add nsw i32 %6, 24
%8 = trunc i32 %7 to i16
store i16 %8, i16* %3
%9 = load i16, i16* %3
%10 = icmp ne i16 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = call i32 @foo(i8* null)
br label %13
13: ; preds = %11, %2
%14 = load i16, i16* %3
ret i16 %14
}

LLVM IR (-O2):
define signext i16 @ishortplus(i16 signext %0, i16 signext %1) {
%3 = add i16 %0, 24
%4 = icmp eq i16 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @foo(i8* null)
br label %7
7: ; preds = %5, %2
ret i16 %3
}
int is_base64url_pad(int c) { return c == '='; }


x86 assembly (clang, -O0):
<is_base64url_pad>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x3d,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_base64url_pad>:
xor    %eax,%eax
cmp    $0x3d,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @is_base64url_pad(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 61
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @is_base64url_pad(i32 %0) {
%2 = icmp eq i32 %0, 61
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) { printf(""); }


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

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
void TraceLine(void) { int i; }


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

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

LLVM IR (-O0):
define void @TraceLine() {
%1 = alloca i32
ret void
}

LLVM IR (-O2):
define void @TraceLine() {
ret void
}
unsigned char reverse_bits(unsigned char octet) {
  return ((octet & 0x0F) << 4) | ((octet & 0xF0) >> 4);
}


x86 assembly (clang, -O0):
<reverse_bits>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
and    $0xf,%eax
shl    $0x4,%eax
movzbl -0x1(%rbp),%ecx
and    $0xf0,%ecx
sar    $0x4,%ecx
or     %ecx,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<reverse_bits>:
mov    %edi,%eax
rol    $0x4,%al
ret

LLVM IR (-O0):
define zeroext i8 @reverse_bits(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, 15
%6 = shl i32 %5, 4
%7 = load i8, i8* %2
%8 = zext i8 %7 to i32
%9 = and i32 %8, 240
%10 = ashr i32 %9, 4
%11 = or i32 %6, %10
%12 = trunc i32 %11 to i8
ret i8 %12
}

LLVM IR (-O2):
define zeroext i8 @reverse_bits(i8 zeroext %0) {
%2 = tail call i8 @llvm.fshl.i8(i8 %0, i8 %0, i8 4)
ret i8 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int foo() {
  printf("Found my inner self!\n");
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"Found my inner self!\0A\00"
define i32 @foo() {
%1 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [21 x i8] c"Found my inner self!\00"
define i32 @foo() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ print_min(int, int);
int main() {
  print_min(12, 13);
  print_min(13, 12);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0xc,%edi
mov    $0xd,%esi
call   1030 <print_min@plt>
mov    $0xd,%edi
mov    $0xc,%esi
call   1030 <print_min@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xc,%edi
mov    $0xd,%esi
call   1030 <print_min@plt>
mov    $0xd,%edi
mov    $0xc,%esi
call   1030 <print_min@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @print_min(i32 12, i32 13)
%2 = call i32 @print_min(i32 13, i32 12)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @print_min(i32 12, i32 13)
%2 = tail call i32 @print_min(i32 13, i32 12)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, void *);
int /*<<< orphan*/ stderr;
void rtpp_timed_schedule_rc_fin(void *pub) {
  fprintf(stderr,
          "Method rtpp_timed@%p::schedule_rc (rtpp_timed_schedule_rc) is "
          "invoked after destruction\x0a",
          pub);
  abort();
}


x86 assembly (clang, -O0):
<rtpp_timed_schedule_rc_fin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<rtpp_timed_schedule_rc_fin>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [89 x i8] c"Method rtpp_timed@%p::schedule_rc (rtpp_timed_schedule_rc) is invoked after destruction\0A\00"
define void @rtpp_timed_schedule_rc_fin(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [89 x i8] c"Method rtpp_timed@%p::schedule_rc (rtpp_timed_schedule_rc) is invoked after destruction\0A\00"
define void @rtpp_timed_schedule_rc_fin(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 (...) @abort()
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ mandel();
int main(int argc, char *argv[]) { mandel(); }


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

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @mandel()
ret i32 0
}
void PaUtil_InitializeClock(void) {}


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

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

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

LLVM IR (-O2):
define void @PaUtil_InitializeClock() {
ret void
}
void INI_Rename_str_ctx() { ; }


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

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

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

LLVM IR (-O2):
define void @INI_Rename_str_ctx() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ am_randomize();
void andrews_randomize(void) { am_randomize(); }


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

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

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

LLVM IR (-O2):
define void @andrews_randomize() {
%1 = tail call i32 (...) @am_randomize()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ genExtra3(char *);
void FOO_FOO__() { genExtra3("#define FSUB1(name) SUFFIX2(UPCASE(name))"); }


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

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

LLVM IR (-O0):
@.str = [42 x i8] c"#define FSUB1(name) SUFFIX2(UPCASE(name))\00"
define void @FOO_FOO__() {
%1 = call i32 @genExtra3(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"#define FSUB1(name) SUFFIX2(UPCASE(name))\00"
define void @FOO_FOO__() {
%1 = tail call i32 @genExtra3(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ execl(char *, char *, int /*<<< orphan*/,
                         int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ getenv(char *);
int main() {
  execl("/usr/bin/python", "python", getenv("SCRIPT_FILENAME"), NULL);
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <getenv@plt>
mov    %eax,%edx
lea    0xeac(%rip),%rdi
lea    0xeae(%rip),%rsi
xor    %eax,%eax
mov    %eax,%ecx
call   1050 <execl@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <getenv@plt>
lea    0xebc(%rip),%rdi
lea    0xebe(%rip),%rsi
mov    %eax,%edx
xor    %ecx,%ecx
call   1050 <execl@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"/usr/bin/python\00"
@.str.1 = [7 x i8] c"python\00"
@.str.2 = [16 x i8] c"SCRIPT_FILENAME\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @getenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @execl(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32* null)
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [16 x i8] c"/usr/bin/python\00"
@.str.1 = [7 x i8] c"python\00"
@.str.2 = [16 x i8] c"SCRIPT_FILENAME\00"
define i32 @main() {
%1 = tail call i32 @getenv(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @execl(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %1, i32* null)
%3 = tail call i32 @exit(i32 1)
unreachable
}
signed long long int
signedlonglongint_ignoring_signedint(signed long long int x, signed int y) {
  return x;
}


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

x86 assembly (clang, -O2):
<signedlonglongint_ignoring_signedint>:
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @signedlonglongint_ignoring_signedint(i64 returned %0, i32 %1) {
ret i64 %0
}
int test_imm_24int16_mem(short *val) {
  return ((*val) & (0x24 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_24int16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movswl (%rax),%edx
and    $0x24,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_24int16_mem>:
testb  $0x24,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_24int16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 36
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
typedef scalar_t__ time_t;

/* Variables and functions */
int /*<<< orphan*/ srandom(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
void generateRandomSeed(void) {
  static bool inited = false;
  if (!inited) {
    time_t now = time(NULL);
    srandom((unsigned int)now);
    inited = true;
  }
}


x86 assembly (clang, -O0):
<generateRandomSeed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
cmpl   $0x0,0x2f05(%rip)
jne    1157 <generateRandomSeed+0x37>
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%edi
call   1030 <srandom@plt>
movl   $0x1,0x2edd(%rip)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generateRandomSeed>:
push   %rax
cmpb   $0x0,0x2f0c(%rip)
jne    113f <generateRandomSeed+0x1f>
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srandom@plt>
movb   $0x1,0x2ef5(%rip)
pop    %rax
ret

LLVM IR (-O0):
@generateRandomSeed.inited = internal global i32 0
define void @generateRandomSeed() {
%1 = alloca i64
%2 = load i32, i32* @generateRandomSeed.inited
%3 = icmp ne i32 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %0
%5 = call i64 @time(i32* null)
store i64 %5, i64* %1
%6 = load i64, i64* %1
%7 = trunc i64 %6 to i32
%8 = call i32 @srandom(i32 %7)
store i32 1, i32* @generateRandomSeed.inited
br label %9
9: ; preds = %4, %0
ret void
}

LLVM IR (-O2):
@generateRandomSeed.inited = internal unnamed_addr global i1 false
define void @generateRandomSeed() {
%1 = load i1, i1* @generateRandomSeed.inited
br i1 %1, label %6, label %2
2: ; preds = %0
%3 = tail call i64 @time(i32* null)
%4 = trunc i64 %3 to i32
%5 = tail call i32 @srandom(i32 %4)
store i1 true, i1* @generateRandomSeed.inited
br label %6
6: ; preds = %2, %0
ret void
}
unsigned ZSTD_versionNumber(void) { return (1 * 100 * 100 + 4 * 100 + 5); }


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

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

LLVM IR (-O0):
define i32 @ZSTD_versionNumber() {
ret i32 10405
}

LLVM IR (-O2):
define i32 @ZSTD_versionNumber() {
ret i32 10405
}
/* Variables and functions */
char *strrchr(const char *s, char c) {
  const char *p = 0;
  while (*s != '\0') {
    if (*s == c) {
      p = s;
    }
    s++;
  }
  return (char *)p;
}


x86 assembly (clang, -O0):
<strrchr>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1152 <strrchr+0x52>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
movsbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
jne    1141 <strrchr+0x41>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1116 <strrchr+0x16>
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strrchr>:
mov    (%rdi),%cl
xor    %eax,%eax
test   %cl,%cl
je     1123 <strrchr+0x23>
nopl   0x0(%rax,%rax,1)
cmp    %sil,%cl
cmove  %rdi,%rax
movzbl 0x1(%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <strrchr+0x10>
ret

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

LLVM IR (-O2):
define i8* @strrchr(i8* %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %12, %5 ], [ %3, %2 ]
%7 = phi i8* [ %10, %5 ], [ null, %2 ]
%8 = phi i8* [ %11, %5 ], [ %0, %2 ]
%9 = icmp eq i8 %6, %1
%10 = select i1 %9, i8* %8, i8* %7
%11 = getelementptr inbounds i8, i8* %8, i64 1
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5
14: ; preds = %5, %2
%15 = phi i8* [ null, %2 ], [ %10, %5 ]
ret i8* %15
}
int f(const int *p) { return *p != 5; }


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x5,(%rax)
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
xor    %eax,%eax
cmpl   $0x5,(%rdi)
setne  %al
ret

LLVM IR (-O0):
define i32 @f(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* %3
%5 = icmp ne i32 %4, 5
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @f(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp ne i32 %2, 5
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
size_t str_hash(void *p) {
  size_t hash = 0;
  char *str = p;
  char c;
  while ((c = *str++) != '\0') {
    hash += c * 0xbabe;
  }
  return hash;
}


x86 assembly (clang, -O0):
<str_hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
movsbl %al,%eax
cmp    $0x0,%eax
je     1151 <str_hash+0x51>
movsbl -0x19(%rbp),%eax
imul   $0xbabe,%eax,%eax
cltq
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1118 <str_hash+0x18>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_hash>:
mov    (%rdi),%cl
test   %cl,%cl
je     112a <str_hash+0x2a>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
movsbq %cl,%rcx
imul   $0xbabe,%rcx,%rcx
add    %rcx,%rax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <str_hash+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i64 @str_hash(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %12, %4 ], [ %2, %1 ]
%6 = phi i64 [ %11, %4 ], [ 0, %1 ]
%7 = phi i8* [ %9, %4 ], [ %0, %1 ]
%8 = sext i8 %5 to i64
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = mul nsw i64 %8, 47806
%11 = add i64 %10, %6
%12 = load i8, i8* %9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %4, %1
%15 = phi i64 [ 0, %1 ], [ %11, %4 ]
ret i64 %15
}
int f2(int a, int b) {
  return ((((a) < (b) ? (a) : (b))) > (b) ? (((a) < (b) ? (a) : (b))) : (b));
}


x86 assembly (clang, -O0):
<f2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1121 <f2+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <f2+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    115b <f2+0x5b>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    114a <f2+0x4a>
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1150 <f2+0x50>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1161 <f2+0x61>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f2>:
mov    %esi,%eax
ret

LLVM IR (-O0):
define i32 @f2(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 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
%14 = load i32, i32* %4
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %26
16: ; preds = %12
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = load i32, i32* %3
br label %24
22: ; preds = %16
%23 = load i32, i32* %4
br label %24
24: ; preds = %22, %20
%25 = phi i32 [ %21, %20 ], [ %23, %22 ]
br label %28
26: ; preds = %12
%27 = load i32, i32* %4
br label %28
28: ; preds = %26, %24
%29 = phi i32 [ %25, %24 ], [ %27, %26 ]
ret i32 %29
}

LLVM IR (-O2):
define i32 @f2(i32 %0, i32 returned %1) {
ret i32 %1
}
/* Variables and functions */
int sg_ll_test_unit_ready_progress(int, int, int /*<<< orphan*/ *, int, int);
int sg_ll_test_unit_ready(int sg_fd, int pack_id, int noisy, int verbose) {
  return sg_ll_test_unit_ready_progress(sg_fd, pack_id, NULL, noisy, verbose);
}


x86 assembly (clang, -O0):
<sg_ll_test_unit_ready>:
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),%ecx
mov    -0x10(%rbp),%r8d
xor    %eax,%eax
mov    %eax,%edx
call   1030 <sg_ll_test_unit_ready_progress@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sg_ll_test_unit_ready>:
mov    %ecx,%r8d
mov    %edx,%ecx
xor    %edx,%edx
jmp    1030 <sg_ll_test_unit_ready_progress@plt>

LLVM IR (-O0):
define i32 @sg_ll_test_unit_ready(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 @sg_ll_test_unit_ready_progress(i32 %9, i32 %10, i32* null, i32 %11, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @sg_ll_test_unit_ready(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @sg_ll_test_unit_ready_progress(i32 %0, i32 %1, i32* null, i32 %2, i32 %3)
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ MYSQL;

/* Variables and functions */
int /*<<< orphan*/ mysql_close(int /*<<< orphan*/ *);
void db_mysql_disconnect(void *dbh) {
  if (dbh)
    mysql_close((MYSQL *)dbh);
}


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

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

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

LLVM IR (-O2):
define void @db_mysql_disconnect(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = bitcast i8* %0 to i32*
%5 = tail call i32 @mysql_close(i32* %4)
br label %6
6: ; preds = %3, %1
ret void
}
/* Variables and functions */
void Default_UARTE1_SPIM1_SPIS1_TWIM1_TWIS1_IRQHandler(void) {
  while (1)
    ;
}


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

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

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

LLVM IR (-O2):
define void @Default_UARTE1_SPIM1_SPIS1_TWIM1_TWIS1_IRQHandler() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_help() {
  printf("  --sse3                     test sse3 instruction.\n"
         "  --ssse3                    test ssse3 instruction.\n"
         "  --sse4                     test sse4 instruction.\n"
         "  --sse4a                    test sse4a instruction.\n"
         "  --avx                      test avx instruction.\n"
         "  --aes                      test aes instruction.\n"
         "  --pclmul                   test carry less multiplication.\n"
         "  --rdrand                   test rdrand instruction.\n"
         "  --fma4                     test fma4 instruction.\n"
         "  --xop                      test fma4 instruction.\n"
         "  --stress n_cpus,avx,aes    start stress on n_cpus.and cpuflags.\n"
         "  --stressmem mem_size       start stressmem with mem_size.\n");
}


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

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

LLVM IR (-O0):
@.str = [658 x i8] c" --sse3 test sse3 instruction.\0A --ssse3 test ssse3 instruction.\0A --sse4 test sse4 instruction.\0A --sse4a test sse4a instruction.\0A --avx test avx instruction.\0A --aes test aes instruction.\0A --pclmul test carry less multiplication.\0A --rdrand test rdrand instruction.\0A --fma4 test fma4 instruction.\0A --xop test fma4 instruction.\0A --stress n_cpus,avx,aes start stress on n_cpus.and cpuflags.\0A --stressmem mem_size start stressmem with mem_size.\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([658 x i8], [658 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [657 x i8] c" --sse3 test sse3 instruction.\0A --ssse3 test ssse3 instruction.\0A --sse4 test sse4 instruction.\0A --sse4a test sse4a instruction.\0A --avx test avx instruction.\0A --aes test aes instruction.\0A --pclmul test carry less multiplication.\0A --rdrand test rdrand instruction.\0A --fma4 test fma4 instruction.\0A --xop test fma4 instruction.\0A --stress n_cpus,avx,aes start stress on n_cpus.and cpuflags.\0A --stressmem mem_size start stressmem with mem_size.\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([657 x i8], [657 x i8]* @str, i64 0, i64 0))
ret void
}
void glBindFramebuffer(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glBindFramebuffer() {
ret void
}
void VecCopy3fv(float v[3], const float a[3]) {
  v[0] = a[0];
  v[1] = a[1];
  v[2] = a[2];
}


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

x86 assembly (clang, -O2):
<VecCopy3fv>:
movss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rsi),%xmm0
movss  %xmm0,0x4(%rdi)
movss  0x8(%rsi),%xmm0
movss  %xmm0,0x8(%rdi)
ret

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

LLVM IR (-O2):
define void @VecCopy3fv(float* nocapture writeonly %0, float* nocapture %1) {
%3 = load float, float* %1
store float %3, float* %0
%4 = getelementptr inbounds float, float* %1, i64 1
%5 = load float, float* %4
%6 = getelementptr inbounds float, float* %0, i64 1
store float %5, float* %6
%7 = getelementptr inbounds float, float* %1, i64 2
%8 = load float, float* %7
%9 = getelementptr inbounds float, float* %0, i64 2
store float %8, float* %9
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
void SysCtlAltClkConfig(uint32_t ui32Config) {
  (*((volatile uint32_t *)(0x400FE138))) = ui32Config;
}


x86 assembly (clang, -O0):
<SysCtlAltClkConfig>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x400fe138,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<SysCtlAltClkConfig>:
mov    %edi,0x400fe138
ret

LLVM IR (-O0):
define void @SysCtlAltClkConfig(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
store volatile i32 %3, i32* inttoptr (i64 1074782520 to i32*)
ret void
}

LLVM IR (-O2):
define void @SysCtlAltClkConfig(i32 %0) {
store volatile i32 %0, i32* inttoptr (i64 1074782520 to i32*)
ret void
}
void i2d_X509_CRL_INFO(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ fsfr_fetch_uid(char *);
gid_t getegid(void) { return (gid_t)fsfr_fetch_uid("FSFR_EGID"); }


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

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

LLVM IR (-O0):
@.str = [10 x i8] c"FSFR_EGID\00"
define i32 @getegid() {
%1 = call i32 @fsfr_fetch_uid(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [10 x i8] c"FSFR_EGID\00"
define i32 @getegid() {
%1 = tail call i32 @fsfr_fetch_uid(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ fabs(double);
double minimus(int /*<<< orphan*/, int /*<<< orphan*/);
double sign(int, double);
double MM(double a, double b) {
  return 0.5 * (sign(1., a) + sign(1., b)) * minimus(fabs(a), fabs(b));
}


x86 assembly (clang, -O0):
<MM>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x1,%edi
call   1050 <sign@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x1,%edi
call   1050 <sign@plt>
movsd  -0x28(%rbp),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe8a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <fabs@plt>
mov    %eax,-0x1c(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <fabs@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1030 <minimus@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MM>:
push   %rbx
sub    $0x20,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    $0x1,%edi
call   1050 <sign@plt>
movsd  %xmm0,0x8(%rsp)
mov    $0x1,%edi
movsd  0x10(%rsp),%xmm0
call   1050 <sign@plt>
addsd  0x8(%rsp),%xmm0
mulsd  0xe91(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <fabs@plt>
mov    %eax,%ebx
movsd  0x10(%rsp),%xmm0
call   1040 <fabs@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <minimus@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @MM(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 = call double @sign(i32 1, double %5)
%7 = load double, double* %4
%8 = call double @sign(i32 1, double %7)
%9 = fadd double %6, %8
%10 = fmul double 5.000000e-01, %9
%11 = load double, double* %3
%12 = call i32 @fabs(double %11)
%13 = load double, double* %4
%14 = call i32 @fabs(double %13)
%15 = call double @minimus(i32 %12, i32 %14)
%16 = fmul double %10, %15
ret double %16
}

LLVM IR (-O2):
define double @MM(double %0, double %1) {
%3 = tail call double @sign(i32 1, double %0)
%4 = tail call double @sign(i32 1, double %1)
%5 = fadd double %3, %4
%6 = fmul double %5, 5.000000e-01
%7 = tail call i32 @fabs(double %0)
%8 = tail call i32 @fabs(double %1)
%9 = tail call double @minimus(i32 %7, i32 %8)
%10 = fmul double %6, %9
ret double %10
}
/* Variables and functions */
int /*<<< orphan*/ snprintf(char *, int, char *, unsigned int);
void sprint_byte_with_x(char *s, unsigned int v) {
  snprintf(s, 5, "\\x%02x", (v & 0377));
}


x86 assembly (clang, -O0):
<sprint_byte_with_x>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%ecx
and    $0xff,%ecx
mov    $0x5,%esi
lea    0xec8(%rip),%rdx
call   1030 <snprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sprint_byte_with_x>:
movzbl %sil,%ecx
lea    0xee5(%rip),%rdx
mov    $0x5,%esi
jmp    1030 <snprintf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"\\x%02x\00"
define void @sprint_byte_with_x(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = and i32 %6, 255
%8 = call i32 @snprintf(i8* %5, i32 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"\\x%02x\00"
define void @sprint_byte_with_x(i8* %0, i32 %1) {
%3 = and i32 %1, 255
%4 = tail call i32 @snprintf(i8* %0, i32 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i = 1;
  int result = 0;
  for (; i <= 100; i++) {
    result += i * i;
  }
  printf("Sum of 1^2 ~ 100^2 = %d\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     1152 <main+0x42>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
mov    -0xc(%rbp),%esi
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x529ae,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Sum of 1^2 ~ 100^2 = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %13, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 100
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = mul nsw i32 %8, %9
%11 = load i32, i32* %3
%12 = add nsw i32 %11, %10
store i32 %12, i32* %3
br label %13
13: ; preds = %7
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
br label %4
16: ; preds = %4
%17 = load i32, i32* %3
%18 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"Sum of 1^2 ~ 100^2 = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 338350)
ret i32 0
}