xunge/DecIR huggingface dataset:
/* Variables and functions */
int getchar_unlocked();
int __CYCLONE_GETCHAR_UNLOCKED(void) { return getchar_unlocked(); }


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

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

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

LLVM IR (-O2):
define i32 @__CYCLONE_GETCHAR_UNLOCKED() {
%1 = tail call i32 (...) @getchar_unlocked()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ ASIC_ClearDMAInterruptsAutomatic();
int /*<<< orphan*/ ASIC_UpdateRAMWithInternalDCSR();
void ASIC_ClearDMAInterrupts() {
  ASIC_ClearDMAInterruptsAutomatic();
  ASIC_UpdateRAMWithInternalDCSR();
}


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

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

LLVM IR (-O0):
define void @ASIC_ClearDMAInterrupts() {
%1 = call i32 (...) @ASIC_ClearDMAInterruptsAutomatic()
%2 = call i32 (...) @ASIC_UpdateRAMWithInternalDCSR()
ret void
}

LLVM IR (-O2):
define void @ASIC_ClearDMAInterrupts() {
%1 = tail call i32 (...) @ASIC_ClearDMAInterruptsAutomatic()
%2 = tail call i32 (...) @ASIC_UpdateRAMWithInternalDCSR()
ret void
}
unsigned int extcode(c)
unsigned int c;
{ return (c); }


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

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

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

LLVM IR (-O2):
define i32 @extcode(i32 returned %0) {
ret i32 %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char, char);
int main() {
  int i;
  char c = 'A';
  for (i = 1; i <= 26; i++) {
    printf("\n%c character\n asci value%d", c, c);
    c = 65 + i;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x9(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x1a,-0x8(%rbp)
jg     1161 <main+0x51>
mov    -0x9(%rbp),%al
lea    0xec2(%rip),%rdi
movsbl %al,%esi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x41,%eax
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112a <main+0x1a>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0xffffffe6,%ebx
lea    0xee0(%rip),%r14
lea    0x5b(%rbx),%eax
movsbl %al,%edx
mov    %r14,%rdi
mov    %edx,%esi
call   1030 <printf@plt>
inc    %ebx
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [28 x i8] c"\0A%c character\0A asci value%d\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i8 [ 65, %0 ], [ %6, %1 ]
%3 = phi i32 [ 1, %0 ], [ %7, %1 ]
%4 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8 signext %2, i8 signext %2)
%5 = trunc i32 %3 to i8
%6 = add nuw nsw i8 %5, 65
%7 = add nuw nsw i32 %3, 1
%8 = icmp eq i32 %7, 27
br i1 %8, label %9, label %1
9: ; preds = %1
ret i32 0
}
void x6(void) {}


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

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

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

LLVM IR (-O2):
define void @x6() {
ret void
}
void STAMR3Reset(void) {}


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

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

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

LLVM IR (-O2):
define void @STAMR3Reset() {
ret void
}
int base4() { return 6; }


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

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

LLVM IR (-O0):
define i32 @base4() {
ret i32 6
}

LLVM IR (-O2):
define i32 @base4() {
ret i32 6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, char const *);
int iterator(const void *key, const void *datum) {
  printf("%s: %s\n", (const char *)key, (const char *)datum);
  return 0;
}


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

x86 assembly (clang, -O2):
<iterator>:
push   %rax
mov    %rsi,%rdx
mov    %rdi,%rsi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%s: %s\0A\00"
define i32 @iterator(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 = load i8*, i8** %4
%7 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%s: %s\0A\00"
define i32 @iterator(i8* %0, i8* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
ret i32 0
}
void ff_h264_pred_init_aarch64() {}


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

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

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

LLVM IR (-O2):
define void @ff_h264_pred_init_aarch64() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ pr_info(char *);
int /*<<< orphan*/ spd_clear_db();
int spd_cleanup(void) {
  int error = 0;
  spd_clear_db();
  pr_info("spd_cleanup: SPD cleaned up\n");
  return error;
}


x86 assembly (clang, -O0):
<spd_cleanup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <spd_clear_db@plt>
lea    0xec3(%rip),%rdi
call   1030 <pr_info@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spd_cleanup>:
push   %rax
xor    %eax,%eax
call   1040 <spd_clear_db@plt>
lea    0xed1(%rip),%rdi
call   1030 <pr_info@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"spd_cleanup: SPD cleaned up\0A\00"
define i32 @spd_cleanup() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @spd_clear_db()
%3 = call i32 @pr_info(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %1
ret i32 %4
}

LLVM IR (-O2):
@.str = [29 x i8] c"spd_cleanup: SPD cleaned up\0A\00"
define i32 @spd_cleanup() {
%1 = tail call i32 (...) @spd_clear_db()
%2 = tail call i32 @pr_info(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void HSMMCSDIntrStatusEnable(unsigned int baseAddr, unsigned int flag) {
  (*((volatile unsigned int *)(baseAddr + (0x234)))) |= flag;
}


x86 assembly (clang, -O0):
<HSMMCSDIntrStatusEnable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edx
mov    -0x4(%rbp),%eax
add    $0x234,%eax
mov    %eax,%eax
mov    (%rax),%ecx
or     %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<HSMMCSDIntrStatusEnable>:
add    $0x234,%edi
or     %esi,(%rdi)
ret

LLVM IR (-O0):
define void @HSMMCSDIntrStatusEnable(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i32, i32* %3
%7 = add i32 %6, 564
%8 = zext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load volatile i32, i32* %9
%11 = or i32 %10, %5
store volatile i32 %11, i32* %9
ret void
}

LLVM IR (-O2):
define void @HSMMCSDIntrStatusEnable(i32 %0, i32 %1) {
%3 = add i32 %0, 564
%4 = zext i32 %3 to i64
%5 = inttoptr i64 %4 to i32*
%6 = load volatile i32, i32* %5
%7 = or i32 %6, %1
store volatile i32 %7, i32* %5
ret void
}
unsigned long mapkit_hash(unsigned long key) {
  key += ~(key << 15);
  key ^= (key >> 10);
  key += (key << 3);
  key ^= (key >> 6);
  key += ~(key << 11);
  key ^= (key >> 16);
  return key;
}


x86 assembly (clang, -O0):
<mapkit_hash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shl    $0xf,%rax
xor    $0xffffffffffffffff,%rax
add    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0xa,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shl    $0x3,%rax
add    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x6,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shl    $0xb,%rax
xor    $0xffffffffffffffff,%rax
add    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x10,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mapkit_hash>:
mov    %rdi,%rax
shl    $0xf,%rax
not    %rax
add    %rdi,%rax
mov    %rax,%rcx
shr    $0xa,%rcx
xor    %rax,%rcx
lea    (%rcx,%rcx,8),%rax
mov    %rax,%rcx
shr    $0x6,%rcx
xor    %rax,%rcx
mov    %rcx,%rdx
shl    $0xb,%rdx
not    %rdx
add    %rcx,%rdx
mov    %rdx,%rax
shr    $0x10,%rax
xor    %rdx,%rax
ret

LLVM IR (-O0):
define i64 @mapkit_hash(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = shl i64 %3, 15
%5 = xor i64 %4, -1
%6 = load i64, i64* %2
%7 = add i64 %6, %5
store i64 %7, i64* %2
%8 = load i64, i64* %2
%9 = lshr i64 %8, 10
%10 = load i64, i64* %2
%11 = xor i64 %10, %9
store i64 %11, i64* %2
%12 = load i64, i64* %2
%13 = shl i64 %12, 3
%14 = load i64, i64* %2
%15 = add i64 %14, %13
store i64 %15, i64* %2
%16 = load i64, i64* %2
%17 = lshr i64 %16, 6
%18 = load i64, i64* %2
%19 = xor i64 %18, %17
store i64 %19, i64* %2
%20 = load i64, i64* %2
%21 = shl i64 %20, 11
%22 = xor i64 %21, -1
%23 = load i64, i64* %2
%24 = add i64 %23, %22
store i64 %24, i64* %2
%25 = load i64, i64* %2
%26 = lshr i64 %25, 16
%27 = load i64, i64* %2
%28 = xor i64 %27, %26
store i64 %28, i64* %2
%29 = load i64, i64* %2
ret i64 %29
}

LLVM IR (-O2):
define i64 @mapkit_hash(i64 %0) {
%2 = shl i64 %0, 15
%3 = xor i64 %2, -1
%4 = add i64 %3, %0
%5 = lshr i64 %4, 10
%6 = xor i64 %5, %4
%7 = mul i64 %6, 9
%8 = lshr i64 %7, 6
%9 = xor i64 %8, %7
%10 = shl i64 %9, 11
%11 = xor i64 %10, -1
%12 = add i64 %9, %11
%13 = lshr i64 %12, 16
%14 = xor i64 %13, %12
ret i64 %14
}
void ff_hevc_put_hevc_uni_w_epel_hv4_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_w_epel_hv4_10_sse4() {
ret void
}
/* Variables and functions */
unsigned char *MQRspec_createFrame(int);
unsigned char *MQRspec_newFrame(int version) {
  if (version < 1 || version > 4)
    return NULL;
  return MQRspec_createFrame(version);
}


x86 assembly (clang, -O0):
<MQRspec_newFrame>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jl     112f <MQRspec_newFrame+0x1f>
cmpl   $0x4,-0xc(%rbp)
jle    113c <MQRspec_newFrame+0x2c>
movq   $0x0,-0x8(%rbp)
jmp    1148 <MQRspec_newFrame+0x38>
mov    -0xc(%rbp),%edi
call   1030 <MQRspec_createFrame@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MQRspec_newFrame>:
lea    -0x5(%rdi),%eax
cmp    $0xfffffffc,%eax
jae    111b <MQRspec_newFrame+0xb>
xor    %eax,%eax
ret
jmp    1030 <MQRspec_createFrame@plt>

LLVM IR (-O0):
define i8* @MQRspec_newFrame(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 1
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sgt i32 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %6, %1
store i8* null, i8** %2
br label %13
10: ; preds = %6
%11 = load i32, i32* %3
%12 = call i8* @MQRspec_createFrame(i32 %11)
store i8* %12, i8** %2
br label %13
13: ; preds = %10, %9
%14 = load i8*, i8** %2
ret i8* %14
}

LLVM IR (-O2):
define i8* @MQRspec_newFrame(i32 %0) {
%2 = add i32 %0, -5
%3 = icmp ult i32 %2, -4
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i8* @MQRspec_createFrame(i32 %0)
br label %6
6: ; preds = %1, %4
%7 = phi i8* [ %5, %4 ], [ null, %1 ]
ret i8* %7
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *);
int property(char *key, char *value, void *data) {
  fprintf((FILE *)data, "%s=%s\n", key, value);
  return 0;
}


x86 assembly (clang, -O0):
<property>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xec9(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<property>:
push   %rax
mov    %rsi,%rcx
mov    %rdi,%rax
lea    0xee2(%rip),%rsi
mov    %rdx,%rdi
mov    %rax,%rdx
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%s=%s\0A\00"
define i32 @property(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = bitcast i8* %7 to i32*
%9 = load i8*, i8** %4
%10 = load i8*, i8** %5
%11 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s=%s\0A\00"
define i32 @property(i8* %0, i8* %1, i8* nocapture %2) {
%4 = bitcast i8* %2 to i32*
%5 = tail call i32 @fprintf(i32* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
ret i32 0
}
/* Variables and functions */
int fsr_fs(unsigned int);
int is_domain_fault(unsigned int fsr) { return ((fsr_fs(fsr) & 0xD) == 0x9); }


x86 assembly (clang, -O0):
<is_domain_fault>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <fsr_fs@plt>
and    $0xd,%eax
cmp    $0x9,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_domain_fault>:
push   %rax
call   1030 <fsr_fs@plt>
and    $0xd,%eax
xor    %ecx,%ecx
cmp    $0x9,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @is_domain_fault(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @fsr_fs(i32 %3)
%5 = and i32 %4, 13
%6 = icmp eq i32 %5, 9
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @is_domain_fault(i32 %0) {
%2 = tail call i32 @fsr_fs(i32 %0)
%3 = and i32 %2, 13
%4 = icmp eq i32 %3, 9
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
struct StringTable {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(void *);
void freeValues(struct StringTable *st, const char *key, void *val,
                void *udata) {
  free(val);
}


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

x86 assembly (clang, -O2):
<freeValues>:
mov    %rdx,%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.StringTable = type { i32 }
define void @freeValues(%struct.StringTable* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca %struct.StringTable*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store %struct.StringTable* %0, %struct.StringTable** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %7
%10 = call i32 @free(i8* %9)
ret void
}

LLVM IR (-O2):
%struct.StringTable = type { i32 }
define void @freeValues(%struct.StringTable* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture %2, i8* nocapture readnone %3) {
%5 = tail call i32 @free(i8* %2)
ret void
}
/* Variables and functions */
char getchar();
int mytoupper(char);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  char c;
  printf("Input a string\n");
  while ((c = getchar()) != '\n')
    printf("%c", mytoupper(c));
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl %al,%eax
cmp    $0xa,%eax
je     1181 <main+0x51>
movsbl -0x5(%rbp),%edi
call   1050 <mytoupper@plt>
mov    %eax,%esi
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    114d <main+0x1d>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1040 <puts@plt>
nopl   (%rax)
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    $0xa,%al
je     116c <main+0x2c>
movsbl %al,%edi
call   1060 <mytoupper@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
jmp    1150 <main+0x10>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"Input a string\0A\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %8, %0
%5 = call signext i8 (...) @getchar()
store i8 %5, i8* %2
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = load i8, i8* %2
%10 = call i32 @mytoupper(i8 signext %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %10)
br label %4
12: ; preds = %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [15 x i8] c"Input a string\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%2 = tail call signext i8 (...) @getchar()
%3 = icmp eq i8 %2, 10
br i1 %3, label %10, label %4
4: ; preds = %0, %4
%5 = phi i8 [ %8, %4 ], [ %2, %0 ]
%6 = tail call i32 @mytoupper(i8 signext %5)
%7 = tail call i32 @putchar(i32 %6)
%8 = tail call signext i8 (...) @getchar()
%9 = icmp eq i8 %8, 10
br i1 %9, label %10, label %4
10: ; preds = %4, %0
%11 = tail call i32 @putchar(i32 10)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Init_AnsPush_extension();
void Init_Extensions(void) { Init_AnsPush_extension(); }


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

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

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

LLVM IR (-O2):
define void @Init_Extensions() {
%1 = tail call i32 (...) @Init_AnsPush_extension()
ret void
}
/* Type definitions */
struct ofpbuf {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
size_t ofpbuf_headroom(struct ofpbuf *);
void ofpbuf_prealloc_headroom(struct ofpbuf *b, size_t size) {
  assert(size <= ofpbuf_headroom(b));
}


x86 assembly (clang, -O0):
<ofpbuf_prealloc_headroom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <ofpbuf_headroom@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
setbe  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ofpbuf_prealloc_headroom>:
push   %rbx
mov    %rsi,%rbx
call   1030 <ofpbuf_headroom@plt>
xor    %edi,%edi
cmp    %rbx,%rax
setae  %dil
pop    %rbx
jmp    1040 <assert@plt>

LLVM IR (-O0):
%struct.ofpbuf = type { i32 }
define void @ofpbuf_prealloc_headroom(%struct.ofpbuf* %0, i64 %1) {
%3 = alloca %struct.ofpbuf*
%4 = alloca i64
store %struct.ofpbuf* %0, %struct.ofpbuf** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load %struct.ofpbuf*, %struct.ofpbuf** %3
%7 = call i64 @ofpbuf_headroom(%struct.ofpbuf* %6)
%8 = icmp ule i64 %5, %7
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
ret void
}

LLVM IR (-O2):
%struct.ofpbuf = type { i32 }
define void @ofpbuf_prealloc_headroom(%struct.ofpbuf* %0, i64 %1) {
%3 = tail call i64 @ofpbuf_headroom(%struct.ofpbuf* %0)
%4 = icmp uge i64 %3, %1
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 %5)
ret void
}
int lockd_rename_vg_before(struct cmd_context *cmd, struct volume_group *vg) {
  return 1;
}


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

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

LLVM IR (-O0):
%struct.cmd_context = type opaque
%struct.volume_group = type opaque
define i32 @lockd_rename_vg_before(%struct.cmd_context* %0, %struct.volume_group* %1) {
%3 = alloca %struct.cmd_context*
%4 = alloca %struct.volume_group*
store %struct.cmd_context* %0, %struct.cmd_context** %3
store %struct.volume_group* %1, %struct.volume_group** %4
ret i32 1
}

LLVM IR (-O2):
%struct.cmd_context = type opaque
%struct.volume_group = type opaque
define i32 @lockd_rename_vg_before(%struct.cmd_context* nocapture readnone %0, %struct.volume_group* nocapture readnone %1) {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int x;
  int y;
  if (!(x == 1 && y == 1))
    return 0;
  while (1) {
    x = x + y;
    y = x;
    assert(y >= 1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1133 <main+0x23>
cmpl   $0x1,-0xc(%rbp)
je     113b <main+0x2b>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret
jmp    1140 <main+0x30>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
setge  %al
and    $0x1,%al
mov    %al,-0xd(%rbp)
movzbl %al,%edi
call   1030 <assert@plt>
jmp    1140 <main+0x30>

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int remover_token(struct lista_de_tokens *p_lista, struct token *p_token) {
  return -1;
}


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

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

LLVM IR (-O0):
%struct.lista_de_tokens = type opaque
%struct.token = type opaque
define i32 @remover_token(%struct.lista_de_tokens* %0, %struct.token* %1) {
%3 = alloca %struct.lista_de_tokens*
%4 = alloca %struct.token*
store %struct.lista_de_tokens* %0, %struct.lista_de_tokens** %3
store %struct.token* %1, %struct.token** %4
ret i32 -1
}

LLVM IR (-O2):
%struct.lista_de_tokens = type opaque
%struct.token = type opaque
define i32 @remover_token(%struct.lista_de_tokens* nocapture readnone %0, %struct.token* nocapture readnone %1) {
ret i32 -1
}
int s_lenc(char *pattern, char term) {
  register char *p = (char *)pattern;
  while ((*p) && (*p != term))
    p++;
  return ((int)((p - (char *)pattern)));
}


x86 assembly (clang, -O0):
<s_lenc>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x19(%rbp)
je     113e <s_lenc+0x3e>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
movsbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    114e <s_lenc+0x4e>
jmp    115f <s_lenc+0x5f>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1116 <s_lenc+0x16>
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @s_lenc(i8* %0, i8 signext %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %9, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = icmp eq i8 %5, %1
%8 = or i1 %6, %7
%9 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %8, label %10, label %3
10: ; preds = %3
%11 = ptrtoint i8* %4 to i64
%12 = ptrtoint i8* %0 to i64
%13 = sub i64 %11, %12
%14 = trunc i64 %13 to i32
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void dq_print_element(int *x) { printf("%d\n", *x); }


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

x86 assembly (clang, -O2):
<dq_print_element>:
mov    (%rdi),%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define void @dq_print_element(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
ret void
}
void RTVfsIoStreamToPrivate(void) {}


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

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

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

LLVM IR (-O2):
define void @RTVfsIoStreamToPrivate() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
unsigned int print(unsigned int item, void *data) {
  printf("\t %d\n", item);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [6 x i8] c"\09 %d\0A\00"
define i32 @print(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 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"\09 %d\0A\00"
define i32 @print(i32 %0, i8* nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %0)
ret i32 0
}
void test_jintervalgmp_setup() {}


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

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

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

LLVM IR (-O2):
define void @test_jintervalgmp_setup() {
ret void
}
void freeMat(int rows, double ***matPtr) {
  for (int k = 0; k < rows; k++) {
    free((*matPtr)[k]);
  }
  free(*(matPtr));
}


x86 assembly (clang, -O0):
<freeMat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1154 <freeMat+0x44>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1126 <freeMat+0x16>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<freeMat>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
test   %edi,%edi
jle    1145 <freeMat+0x35>
mov    %edi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14),%rax
mov    (%rax,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <freeMat+0x20>
mov    (%r14),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @freeMat(i32 %0, double*** nocapture %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %9
6: ; preds = %9, %2
%7 = bitcast double*** %1 to i8**
%8 = load i8*, i8** %7
tail call void @free(i8* %8)
ret void
9: ; preds = %4, %9
%10 = phi i64 [ 0, %4 ], [ %15, %9 ]
%11 = load double**, double*** %1
%12 = getelementptr inbounds double*, double** %11, i64 %10
%13 = bitcast double** %12 to i8**
%14 = load i8*, i8** %13
tail call void @free(i8* %14)
%15 = add nuw nsw i64 %10, 1
%16 = icmp eq i64 %15, %5
br i1 %16, label %6, label %9
}
/* Variables and functions */
int /*<<< orphan*/ fmod(double, double);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  printf("%lf\n", fmod(0.0, 4.0));
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  0xebf(%rip),%xmm1
call   1040 <fmod@plt>
mov    %eax,%esi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xed7(%rip),%xmm1
xorps  %xmm0,%xmm0
call   1040 <fmod@plt>
lea    0xed0(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%lf\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @fmod(double 0.000000e+00, double 4.000000e+00)
%7 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 1
}

LLVM IR (-O2):
@.str = [5 x i8] c"%lf\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @fmod(double 0.000000e+00, double 4.000000e+00)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 1
}
void GenerateUsers() {}


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

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

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

LLVM IR (-O2):
define void @GenerateUsers() {
ret void
}
fprintf(dev, fmt, args) int dev;
char *fmt;
{
  int putc();
  _doprnt(fmt, &args, putc, dev);
  return (1);
}


x86 assembly (clang, -O0):
<fprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%ecx
lea    -0x14(%rbp),%rsi
mov    0x2eac(%rip),%rdx
mov    $0x0,%al
call   1030 <_doprnt@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fprintf>:
push   %rax
mov    %rsi,%rax
mov    %edi,%ecx
mov    %edx,0x4(%rsp)
mov    0x2ebf(%rip),%rdx
lea    0x4(%rsp),%rsi
mov    %rax,%rdi
xor    %eax,%eax
call   1030 <_doprnt@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @fprintf(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %5
%8 = load i32, i32* %4
%9 = call i32 (i8*, i32*, i32 (...)*, i32, ...) bitcast (i32 (...)* @_doprnt to i32 (i8*, i32*, i32 (...)*, i32, ...)*)(i8* %7, i32* %6, i32 (...)* @putc, i32 %8)
ret i32 1
}

LLVM IR (-O2):
define i32 @fprintf(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
store i32 %2, i32* %4
%5 = call i32 (i8*, i32*, i32 (...)*, i32, ...) bitcast (i32 (...)* @_doprnt to i32 (i8*, i32*, i32 (...)*, i32, ...)*)(i8* %1, i32* %4, i32 (...)* @putc, i32 %0)
ret i32 1
}
/* Type definitions */
typedef enum board { ____Placeholder_board } board;

/* Variables and functions */
int /*<<< orphan*/ occupied(int *, size_t);
bool board_full(enum board *b, size_t board_size) {
  size_t i;
  for (i = 0; i < board_size; ++i)
    if (!occupied(b, i))
      return false;
  return true;
}


x86 assembly (clang, -O0):
<board_full>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    116e <board_full+0x5e>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <occupied@plt>
cmp    $0x0,%eax
jne    1158 <board_full+0x48>
movl   $0x0,-0x4(%rbp)
jmp    1175 <board_full+0x65>
jmp    115d <board_full+0x4d>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1128 <board_full+0x18>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<board_full>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x1,%r14d
test   %rsi,%rsi
je     114d <board_full+0x3d>
mov    %rsi,%rbx
mov    %rdi,%r15
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %rbp,%rsi
call   1030 <occupied@plt>
test   %eax,%eax
je     114a <board_full+0x3a>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1130 <board_full+0x20>
jmp    114d <board_full+0x3d>
xor    %r14d,%r14d
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @board_full(i32* %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %11, label %6
4: ; preds = %6
%5 = icmp eq i64 %10, %1
br i1 %5, label %11, label %6
6: ; preds = %2, %4
%7 = phi i64 [ %10, %4 ], [ 0, %2 ]
%8 = tail call i32 @occupied(i32* %0, i64 %7)
%9 = icmp eq i32 %8, 0
%10 = add nuw i64 %7, 1
br i1 %9, label %11, label %4
11: ; preds = %6, %4, %2
%12 = phi i32 [ 1, %2 ], [ 1, %4 ], [ 0, %6 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int f, num;
  f = 1;
  for (num = 1; num <= 10; num += 1) {
    f = num * f;
  }
  printf("%d\n", f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jg     114f <main+0x3f>
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112d <main+0x1d>
mov    -0x8(%rbp),%esi
lea    0xea7(%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    $0x375f00,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%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 1, i32* %3
br label %4
4: ; preds = %11, %0
%5 = load i32, i32* %3
%6 = icmp sle i32 %5, 10
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, i32* %3
%9 = load i32, i32* %2
%10 = mul nsw i32 %8, %9
store i32 %10, i32* %2
br label %11
11: ; preds = %7
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
br label %4
14: ; preds = %4
%15 = load i32, i32* %2
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %15)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3628800)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_mul(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void gmpint_mulz(mpz_t *rop, mpz_t *op, mpz_t *op2) {
  mpz_mul(*rop, *op, *op2);
}


x86 assembly (clang, -O0):
<gmpint_mulz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
call   1030 <mpz_mul@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gmpint_mulz>:
mov    (%rdi),%edi
mov    (%rsi),%esi
mov    (%rdx),%edx
jmp    1030 <mpz_mul@plt>

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

LLVM IR (-O2):
define void @gmpint_mulz(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2) {
%4 = load i32, i32* %0
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = tail call i32 @mpz_mul(i32 %4, i32 %5, i32 %6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void reportNil() {
  printf("Runtime error: attempted to access fields of NIL pointer.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<reportNil>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<reportNil>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"Runtime error: attempted to access fields of NIL pointer.\0A\00"
define void @reportNil() {
%1 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [58 x i8] c"Runtime error: attempted to access fields of NIL pointer.\00"
define void @reportNil() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
double radius_from_min_dimension(double radius_minor, double r_ratio,
                                 double hlength) {
  const double rad_min =
      (r_ratio > 1.0 ? radius_minor : r_ratio * radius_minor);
  return (rad_min < hlength ? rad_min : hlength);
}


x86 assembly (clang, -O0):
<radius_from_min_dimension>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xee0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1139 <radius_from_min_dimension+0x39>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1148 <radius_from_min_dimension+0x48>
movsd  -0x10(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1175 <radius_from_min_dimension+0x75>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    117f <radius_from_min_dimension+0x7f>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<radius_from_min_dimension>:
movsd  0xef8(%rip),%xmm3
minsd  %xmm1,%xmm3
mulsd  %xmm3,%xmm0
minsd  %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @radius_from_min_dimension(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %5
%9 = fcmp ogt double %8, 1.000000e+00
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = load double, double* %4
br label %16
12: ; preds = %3
%13 = load double, double* %5
%14 = load double, double* %4
%15 = fmul double %13, %14
br label %16
16: ; preds = %12, %10
%17 = phi double [ %11, %10 ], [ %15, %12 ]
store double %17, double* %7
%18 = load double, double* %7
%19 = load double, double* %6
%20 = fcmp olt double %18, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load double, double* %7
br label %25
23: ; preds = %16
%24 = load double, double* %6
br label %25
25: ; preds = %23, %21
%26 = phi double [ %22, %21 ], [ %24, %23 ]
ret double %26
}

LLVM IR (-O2):
define double @radius_from_min_dimension(double %0, double %1, double %2) {
%4 = fcmp ogt double %1, 1.000000e+00
%5 = select i1 %4, double 1.000000e+00, double %1
%6 = fmul double %5, %0
%7 = fcmp olt double %6, %2
%8 = select i1 %7, double %6, double %2
ret double %8
}
void ems1Fthreaddata(void) {}


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

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

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

LLVM IR (-O2):
define void @ems1Fthreaddata() {
ret void
}
void sig_dispatch_signal() {}


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

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

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

LLVM IR (-O2):
define void @sig_dispatch_signal() {
ret void
}
void opcode_e4() {}


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

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

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

LLVM IR (-O2):
define void @opcode_e4() {
ret void
}