xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ softirq_entry_process(char const *, int, double, int,
                                         void *);
void irq_softirq_entry_process(const char *modname, int pass, double clock,
                               int cpu, void *args) {
  softirq_entry_process(modname, pass, clock, cpu, args);
}


x86 assembly (clang, -O0):
<irq_softirq_entry_process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
movsd  -0x18(%rbp),%xmm0
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rcx
call   1030 <softirq_entry_process@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irq_softirq_entry_process>:
jmp    1030 <softirq_entry_process@plt>

LLVM IR (-O0):
define void @irq_softirq_entry_process(i8* %0, i32 %1, double %2, i32 %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca double
%9 = alloca i32
%10 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store double %2, double* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = load double, double* %8
%14 = load i32, i32* %9
%15 = load i8*, i8** %10
%16 = call i32 @softirq_entry_process(i8* %11, i32 %12, double %13, i32 %14, i8* %15)
ret void
}

LLVM IR (-O2):
define void @irq_softirq_entry_process(i8* %0, i32 %1, double %2, i32 %3, i8* %4) {
%6 = tail call i32 @softirq_entry_process(i8* %0, i32 %1, double %2, i32 %3, i8* %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ usleep(int);
int /*<<< orphan*/ write(int, char *, int);
void setExtendedMode(int fd) {
  write(fd, "K31;", 4);
  usleep(100e3);
}


x86 assembly (clang, -O0):
<setExtendedMode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    0xecb(%rip),%rsi
mov    $0x4,%edx
call   1030 <write@plt>
mov    $0x186a0,%edi
call   1040 <usleep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setExtendedMode>:
push   %rax
lea    0xed8(%rip),%rsi
mov    $0x4,%edx
call   1030 <write@plt>
mov    $0x186a0,%edi
pop    %rax
jmp    1040 <usleep@plt>

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

LLVM IR (-O2):
@.str = [5 x i8] c"K31;\00"
define void @setExtendedMode(i32 %0) {
%2 = tail call i32 @write(i32 %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%3 = tail call i32 @usleep(i32 100000)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *);
char *getenv(char *);
const char *get_snap_name(void) {
  const char *snapname = getenv("SNAP_INSTANCE_NAME");
  if (!snapname) {
    snapname = getenv("SNAP_NAME");
  }
  if (!snapname) {
    debug("SNAP_NAME and SNAP_INSTANCE_NAME not set");
  }
  return snapname;
}


x86 assembly (clang, -O0):
<get_snap_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1153 <get_snap_name+0x33>
lea    0xec9(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    116a <get_snap_name+0x4a>
lea    0xeb8(%rip),%rdi
call   1040 <debug@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_snap_name>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1134 <get_snap_name+0x14>
pop    %rcx
ret
lea    0xed8(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
jne    1132 <get_snap_name+0x12>
lea    0xed1(%rip),%rdi
call   1040 <debug@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [19 x i8] c"SNAP_INSTANCE_NAME\00"
@.str.1 = [10 x i8] c"SNAP_NAME\00"
@.str.2 = [41 x i8] c"SNAP_NAME and SNAP_INSTANCE_NAME not set\00"
define i8* @get_snap_name() {
%1 = alloca i8*
%2 = call i8* @getenv(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = icmp ne i8* %3, null
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i8* %6, i8** %1
br label %7
7: ; preds = %5, %0
%8 = load i8*, i8** %1
%9 = icmp ne i8* %8, null
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = call i32 @debug(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %10, %7
%13 = load i8*, i8** %1
ret i8* %13
}

LLVM IR (-O2):
@.str = [19 x i8] c"SNAP_INSTANCE_NAME\00"
@.str.1 = [10 x i8] c"SNAP_NAME\00"
@.str.2 = [41 x i8] c"SNAP_NAME and SNAP_INSTANCE_NAME not set\00"
define i8* @get_snap_name() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i8* %1, null
br i1 %2, label %3, label %8
3: ; preds = %0
%4 = tail call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @debug(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %8
8: ; preds = %0, %6, %3
%9 = phi i8* [ null, %6 ], [ %4, %3 ], [ %1, %0 ]
ret i8* %9
}
void ff_hevc_put_hevc_bi_epel_v16_10_avx2() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_epel_v16_10_avx2() {
ret void
}
void ECAPOneShotREARM(unsigned int baseAdd) {
  (*((volatile unsigned short *)(baseAdd + (0x2A)))) |= (0x0008u);
}


x86 assembly (clang, -O0):
<ECAPOneShotREARM>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2a,%eax
mov    %eax,%eax
mov    (%rax),%cx
movzwl %cx,%ecx
or     $0x8,%ecx
mov    %cx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ECAPOneShotREARM>:
add    $0x2a,%edi
orw    $0x8,(%rdi)
ret

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

LLVM IR (-O2):
define void @ECAPOneShotREARM(i32 %0) {
%2 = add i32 %0, 42
%3 = zext i32 %2 to i64
%4 = inttoptr i64 %3 to i16*
%5 = load volatile i16, i16* %4
%6 = or i16 %5, 8
store volatile i16 %6, i16* %4
ret void
}
int fun543() { return 543; }


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

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

LLVM IR (-O0):
define i32 @fun543() {
ret i32 543
}

LLVM IR (-O2):
define i32 @fun543() {
ret i32 543
}
/* Variables and functions */
int /*<<< orphan*/ errx(int, char *);
int /*<<< orphan*/ execv(char *, char **);
void binexec(char *diffprog, char *f1, char *f2) {
  char *args[] = {diffprog, f1, f2, (char *)0};
  execv(diffprog, args);
  errx(1, "Could not execute diff process.\n");
}


x86 assembly (clang, -O0):
<binexec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1040 <execv@plt>
mov    $0x1,%edi
lea    0xe93(%rip),%rsi
call   1030 <errx@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<binexec>:
sub    $0x28,%rsp
mov    %rdi,(%rsp)
mov    %rsi,0x8(%rsp)
mov    %rdx,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    %rsp,%rsi
call   1040 <execv@plt>
lea    0xeb6(%rip),%rsi
mov    $0x1,%edi
call   1030 <errx@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Could not execute diff process.\0A\00"
define void @binexec(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [4 x i8*]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%8 = getelementptr inbounds [4 x i8*], [4 x i8*]* %7, i64 0, i64 0
%9 = load i8*, i8** %4
store i8* %9, i8** %8
%10 = getelementptr inbounds i8*, i8** %8, i64 1
%11 = load i8*, i8** %5
store i8* %11, i8** %10
%12 = getelementptr inbounds i8*, i8** %10, i64 1
%13 = load i8*, i8** %6
store i8* %13, i8** %12
%14 = getelementptr inbounds i8*, i8** %12, i64 1
store i8* null, i8** %14
%15 = load i8*, i8** %4
%16 = getelementptr inbounds [4 x i8*], [4 x i8*]* %7, i64 0, i64 0
%17 = call i32 @execv(i8* %15, i8** %16)
%18 = call i32 @errx(i32 1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"Could not execute diff process.\0A\00"
define void @binexec(i8* %0, i8* %1, i8* %2) {
%4 = alloca [4 x i8*]
%5 = bitcast [4 x i8*]* %4 to i8*
%6 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 0
store i8* %0, i8** %6
%7 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 1
store i8* %1, i8** %7
%8 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 2
store i8* %2, i8** %8
%9 = getelementptr inbounds [4 x i8*], [4 x i8*]* %4, i64 0, i64 3
store i8* null, i8** %9
%10 = call i32 @execv(i8* %0, i8** %6)
%11 = call i32 @errx(i32 1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}
void RTStrToUInt64Ex(void) {}


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

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

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

LLVM IR (-O2):
define void @RTStrToUInt64Ex() {
ret void
}
/* Variables and functions */
float sqrt(float);
float SQRT(float x) { return sqrt(x); }


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

x86 assembly (clang, -O2):
<SQRT>:
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     111d <SQRT+0xd>
sqrtss %xmm0,%xmm0
ret
jmp    1030 <sqrt@plt>

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

LLVM IR (-O2):
define float @SQRT(float %0) {
%2 = tail call float @sqrt(float %0)
ret float %2
}
/* Variables and functions */
int hash_int(int);
int hash(int x, int y, int z) {
  x = hash_int(x);
  y = hash_int(y);
  z = hash_int(z);
  return x ^ y ^ z;
}


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

x86 assembly (clang, -O2):
<hash>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
call   1030 <hash_int@plt>
mov    %eax,%ebx
mov    %ebp,%edi
call   1030 <hash_int@plt>
mov    %eax,%ebp
mov    %r14d,%edi
call   1030 <hash_int@plt>
xor    %ebx,%ebp
xor    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @hash(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 = call i32 @hash_int(i32 %7)
store i32 %8, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @hash_int(i32 %9)
store i32 %10, i32* %5
%11 = load i32, i32* %6
%12 = call i32 @hash_int(i32 %11)
store i32 %12, i32* %6
%13 = load i32, i32* %4
%14 = load i32, i32* %5
%15 = xor i32 %13, %14
%16 = load i32, i32* %6
%17 = xor i32 %15, %16
ret i32 %17
}

LLVM IR (-O2):
define i32 @hash(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @hash_int(i32 %0)
%5 = tail call i32 @hash_int(i32 %1)
%6 = tail call i32 @hash_int(i32 %2)
%7 = xor i32 %5, %4
%8 = xor i32 %7, %6
ret i32 %8
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ inet_addr(char *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int main() {
  int server_sockfd, client_sockfd;
  struct sockaddr_in server_addr;
  struct sockaddr_in client_addr;
  server_sockfd = socket(AF_INET, SOCK_STREAM, 0);
  server_addr.sin_family = AF_INET;
  server_addr.sin_addr.s_addr = inet_addr("127.0.0.1");
  server_addr.sin_port = 9437;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1040 <socket@plt>
mov    %eax,-0x4(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
lea    0xea9(%rip),%rdi
call   1030 <inet_addr@plt>
mov    %eax,-0x14(%rbp)
movl   $0x24dd,-0x18(%rbp)
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%edi
mov    0x2ea7(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1040 <socket@plt>
lea    0xebf(%rip),%rdi
call   1030 <inet_addr@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [10 x i8] c"127.0.0.1\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = load i32, i32* @AF_INET
%6 = load i32, i32* @SOCK_STREAM
%7 = call i32 @socket(i32 %5, i32 %6, i32 0)
store i32 %7, i32* %1
%8 = load i32, i32* @AF_INET
%9 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 2
store i32 %8, i32* %9
%10 = call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 1
%12 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %11, i32 0, i32 0
store i32 %10, i32* %12
%13 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i32 0, i32 0
store i32 9437, i32* %13
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [10 x i8] c"127.0.0.1\00"
define i32 @main() {
%1 = load i32, i32* @AF_INET
%2 = load i32, i32* @SOCK_STREAM
%3 = tail call i32 @socket(i32 %1, i32 %2, i32 0)
%4 = tail call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ clrprompt();
int /*<<< orphan*/ error();
int /*<<< orphan*/ prints(char *);
prompt(int toot, char *s) {
  if (toot)
    error();
  clrprompt();
  prints(s);
}


x86 assembly (clang, -O0):
<prompt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1150 <prompt+0x20>
mov    $0x0,%al
call   1040 <error@plt>
mov    $0x0,%al
call   1050 <clrprompt@plt>
mov    -0x10(%rbp),%rdi
call   1030 <prints@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prompt>:
push   %rbx
mov    %rsi,%rbx
test   %edi,%edi
je     113f <prompt+0xf>
xor    %eax,%eax
call   1040 <error@plt>
xor    %eax,%eax
call   1050 <clrprompt@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <prints@plt>

LLVM IR (-O0):
define i32 @prompt(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @error()
br label %10
10: ; preds = %8, %2
%11 = call i32 (...) @clrprompt()
%12 = load i8*, i8** %5
%13 = call i32 @prints(i8* %12)
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
define i32 @prompt(i32 %0, i8* %1) {
%3 = icmp eq i32 %0, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (...) @error()
br label %6
6: ; preds = %4, %2
%7 = tail call i32 (...) @clrprompt()
%8 = tail call i32 @prints(i8* %1)
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ i2d_of_void;
typedef int /*<<< orphan*/ X509_REQ;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int PEM_ASN1_write(int /*<<< orphan*/ *, int /*<<< orphan*/,
                   int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                   int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                   int /*<<< orphan*/, int /*<<< orphan*/ *,
                   int /*<<< orphan*/ *);
int /*<<< orphan*/ PEM_STRING_X509_REQ_OLD;
scalar_t__ i2d_X509_REQ;
int PEM_write_X509_REQ_NEW(FILE *fp, X509_REQ *x) {
  return PEM_ASN1_write((i2d_of_void *)i2d_X509_REQ, PEM_STRING_X509_REQ_OLD,
                        fp, x, NULL, NULL, 0, NULL, NULL);
}


x86 assembly (clang, -O0):
<PEM_write_X509_REQ_NEW>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb1(%rip),%rax
mov    (%rax),%rdi
mov    0x2eb7(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r9d
xor    %eax,%eax
mov    %r9,%r8
movl   $0x0,(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
call   1030 <PEM_ASN1_write@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PEM_write_X509_REQ_NEW>:
sub    $0x18,%rsp
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2eb7(%rip),%rax
mov    (%rax),%rdi
mov    0x2ebd(%rip),%rax
mov    (%rax),%esi
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rsp)
movl   $0x0,(%rsp)
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1030 <PEM_ASN1_write@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@i2d_X509_REQ = global i64 0
@PEM_STRING_X509_REQ_OLD = global i32 0
define i32 @PEM_write_X509_REQ_NEW(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i64, i64* @i2d_X509_REQ
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* @PEM_STRING_X509_REQ_OLD
%8 = load i32*, i32** %3
%9 = load i32*, i32** %4
%10 = call i32 @PEM_ASN1_write(i32* %6, i32 %7, i32* %8, i32* %9, i32* null, i32* null, i32 0, i32* null, i32* null)
ret i32 %10
}

LLVM IR (-O2):
@i2d_X509_REQ = global i64 0
@PEM_STRING_X509_REQ_OLD = global i32 0
define i32 @PEM_write_X509_REQ_NEW(i32* %0, i32* %1) {
%3 = load i64, i64* @i2d_X509_REQ
%4 = inttoptr i64 %3 to i32*
%5 = load i32, i32* @PEM_STRING_X509_REQ_OLD
%6 = tail call i32 @PEM_ASN1_write(i32* %4, i32 %5, i32* %0, i32* %1, i32* null, i32* null, i32 0, i32* null, i32* null)
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int __pformat(int, int /*<<< orphan*/, int /*<<< orphan*/, char const *,
              int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int __attribute__((__cdecl__)) __vprintf(const char *fmt, va_list argv) {
  return __pformat(0x1000 | 0x2000, stdout, 0, fmt, argv);
}


x86 assembly (clang, -O0):
<__vprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%r8d
mov    $0x3000,%edi
xor    %edx,%edx
call   1030 <__pformat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__vprintf>:
mov    %esi,%r8d
mov    %rdi,%rcx
mov    0x2ec3(%rip),%rax
mov    (%rax),%esi
mov    $0x3000,%edi
xor    %edx,%edx
jmp    1030 <__pformat@plt>

LLVM IR (-O0):
@stdout = global i32 0
define i32 @__vprintf(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stdout
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = call i32 @__pformat(i32 12288, i32 %5, i32 0, i8* %6, i32 %7)
ret i32 %8
}

LLVM IR (-O2):
@stdout = global i32 0
define i32 @__vprintf(i8* %0, i32 %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @__pformat(i32 12288, i32 %3, i32 0, i8* %0, i32 %1)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ run();
__attribute__((noreturn)) void start(void) {
  printf("Welcome, extra\n");
  run();
}


x86 assembly (clang, -O0):
<start>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <run@plt>

x86 assembly (clang, -O2):
<start>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <run@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Welcome, extra\0A\00"
define void @start() {
%1 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @run()
unreachable
}

LLVM IR (-O2):
@str = [15 x i8] c"Welcome, extra\00"
define void @start() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @run()
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ CPDR(int, int, int);
void op_ED_0xb9(void) {
  CPDR(12, 17, 4);
  return;
}


x86 assembly (clang, -O0):
<op_ED_0xb9>:
push   %rbp
mov    %rsp,%rbp
mov    $0xc,%edi
mov    $0x11,%esi
mov    $0x4,%edx
call   1030 <CPDR@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_ED_0xb9>:
mov    $0xc,%edi
mov    $0x11,%esi
mov    $0x4,%edx
jmp    1030 <CPDR@plt>

LLVM IR (-O0):
define void @op_ED_0xb9() {
%1 = call i32 @CPDR(i32 12, i32 17, i32 4)
ret void
}

LLVM IR (-O2):
define void @op_ED_0xb9() {
%1 = tail call i32 @CPDR(i32 12, i32 17, i32 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void message_ok() {
  printf("HTTP/1.1 200 OK\r\n");
  printf("Connection: close\r\n");
  printf("Content-Length: 17\r\n");
}


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

x86 assembly (clang, -O2):
<message_ok>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"HTTP/1.1 200 OK\0D\0A\00"
@.str.1 = [20 x i8] c"Connection: close\0D\0A\00"
@.str.2 = [21 x i8] c"Content-Length: 17\0D\0A\00"
define void @message_ok() {
%1 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [17 x i8] c"HTTP/1.1 200 OK\0D\00"
@str.3 = [19 x i8] c"Connection: close\0D\00"
@str.4 = [20 x i8] c"Content-Length: 17\0D\00"
define void @message_ok() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.4, i64 0, i64 0))
ret void
}
/* Variables and functions */
int roadmap_tile_get_max_scale();
int roadmap_square_get_num_scales(void) {
  return roadmap_tile_get_max_scale() + 1;
}


x86 assembly (clang, -O0):
<roadmap_square_get_num_scales>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <roadmap_tile_get_max_scale@plt>
add    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<roadmap_square_get_num_scales>:
push   %rax
xor    %eax,%eax
call   1030 <roadmap_tile_get_max_scale@plt>
add    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @roadmap_square_get_num_scales() {
%1 = call i32 (...) @roadmap_tile_get_max_scale()
%2 = add nsw i32 %1, 1
ret i32 %2
}

LLVM IR (-O2):
define i32 @roadmap_square_get_num_scales() {
%1 = tail call i32 (...) @roadmap_tile_get_max_scale()
%2 = add nsw i32 %1, 1
ret i32 %2
}
void LockBrowse() {}


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

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

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

LLVM IR (-O2):
define void @LockBrowse() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ MAIN__();
int test5_() {
  MAIN__();
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @test5_() {
%1 = call i32 (...) @MAIN__()
ret i32 0
}

LLVM IR (-O2):
define i32 @test5_() {
%1 = tail call i32 (...) @MAIN__()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ txword(int);
void putchar(int byte) { txword(0x100 + byte); }


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

x86 assembly (clang, -O2):
<putchar>:
add    $0x100,%edi
jmp    1030 <txword@plt>

LLVM IR (-O0):
define void @putchar(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 256, %3
%5 = call i32 @txword(i32 %4)
ret void
}

LLVM IR (-O2):
define void @putchar(i32 %0) {
%2 = add nsw i32 %0, 256
%3 = tail call i32 @txword(i32 %2)
ret void
}
/* Variables and functions */
int floatToRawIntBits(float);
float const intBitsToFloat(int);
__attribute__((always_)) const float mulsignf(float x, float y) {
  return intBitsToFloat(floatToRawIntBits(x) ^
                        (floatToRawIntBits(y) & (1 << 31)));
}


x86 assembly (clang, -O0):
<mulsignf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <floatToRawIntBits@plt>
mov    %eax,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
call   1040 <floatToRawIntBits@plt>
mov    -0xc(%rbp),%edi
and    $0x80000000,%eax
xor    %eax,%edi
call   1030 <intBitsToFloat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mulsignf>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm1,0xc(%rsp)
call   1040 <floatToRawIntBits@plt>
mov    %eax,%ebx
movss  0xc(%rsp),%xmm0
call   1040 <floatToRawIntBits@plt>
and    $0x80000000,%eax
xor    %eax,%ebx
mov    %ebx,%edi
add    $0x10,%rsp
pop    %rbx
jmp    1030 <intBitsToFloat@plt>

LLVM IR (-O0):
define float @mulsignf(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = call i32 @floatToRawIntBits(float %5)
%7 = load float, float* %4
%8 = call i32 @floatToRawIntBits(float %7)
%9 = and i32 %8, -2147483648
%10 = xor i32 %6, %9
%11 = call float @intBitsToFloat(i32 %10)
ret float %11
}

LLVM IR (-O2):
define float @mulsignf(float %0, float %1) {
%3 = tail call i32 @floatToRawIntBits(float %0)
%4 = tail call i32 @floatToRawIntBits(float %1)
%5 = and i32 %4, -2147483648
%6 = xor i32 %5, %3
%7 = tail call float @intBitsToFloat(i32 %6)
ret float %7
}
void gtk_combo_box_new_with_model() {}


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

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

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

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

/* Variables and functions */
struct Wheel *create(char *);
int /*<<< orphan*/ exec(char, struct Map *);
struct Map *insert(char, struct Wheel *, int /*<<< orphan*/ *);
void group1() {
  struct Wheel *a = create("123");
  struct Map *m = insert('A', a, NULL);
  exec('A', m);
}


x86 assembly (clang, -O0):
<group1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
call   1030 <create@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x41,%edi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <insert@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x41,%edi
call   1050 <exec@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<group1>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <create@plt>
mov    $0x41,%edi
mov    %rax,%rsi
xor    %edx,%edx
call   1040 <insert@plt>
mov    $0x41,%edi
mov    %rax,%rsi
pop    %rax
jmp    1050 <exec@plt>

LLVM IR (-O0):
%struct.Wheel = type { i32 }
%struct.Map = type { i32 }
@.str = [4 x i8] c"123\00"
define void @group1() {
%1 = alloca %struct.Wheel*
%2 = alloca %struct.Map*
%3 = call %struct.Wheel* @create(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store %struct.Wheel* %3, %struct.Wheel** %1
%4 = load %struct.Wheel*, %struct.Wheel** %1
%5 = call %struct.Map* @insert(i8 signext 65, %struct.Wheel* %4, i32* null)
store %struct.Map* %5, %struct.Map** %2
%6 = load %struct.Map*, %struct.Map** %2
%7 = call i32 @exec(i8 signext 65, %struct.Map* %6)
ret void
}

LLVM IR (-O2):
%struct.Wheel = type { i32 }
%struct.Map = type { i32 }
@.str = [4 x i8] c"123\00"
define void @group1() {
%1 = tail call %struct.Wheel* @create(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = tail call %struct.Map* @insert(i8 signext 65, %struct.Wheel* %1, i32* null)
%3 = tail call i32 @exec(i8 signext 65, %struct.Map* %2)
ret void
}
unsigned xrop3_239_1_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = ~T;
  stk2 = D | stk3;
  stk1 = S | stk2;
  return (stk1 & (~S)) | (D & S);
}


x86 assembly (clang, -O0):
<xrop3_239_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
or     -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_239_1_0>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
shl    $0x8,%esi
or     %esi,%eax
not    %eax
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_239_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = load i8, i8* %3
%15 = zext i8 %14 to i32
%16 = or i32 %13, %15
store i32 %16, i32* %6
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = or i32 %19, %21
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = xor i32 %23, -1
store i32 %24, i32* %10
%25 = load i32, i32* %5
%26 = load i32, i32* %10
%27 = or i32 %25, %26
store i32 %27, i32* %9
%28 = load i32, i32* %6
%29 = load i32, i32* %9
%30 = or i32 %28, %29
store i32 %30, i32* %8
%31 = load i32, i32* %8
%32 = load i32, i32* %6
%33 = xor i32 %32, -1
%34 = and i32 %31, %33
%35 = load i32, i32* %5
%36 = load i32, i32* %6
%37 = and i32 %35, %36
%38 = or i32 %34, %37
ret i32 %38
}

LLVM IR (-O2):
define i32 @xrop3_239_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = shl nuw nsw i32 %5, 8
%7 = or i32 %6, %4
%8 = xor i32 %7, -1
%9 = or i32 %8, %3
ret i32 %9
}
/* Type definitions */
typedef int /*<<< orphan*/ fenv_t;

/* Variables and functions */
int /*<<< orphan*/ FE_ALL_EXCEPT;
int /*<<< orphan*/ feraiseexcept(unsigned int);
int /*<<< orphan*/ fesetenv(int /*<<< orphan*/ const *);
unsigned int fetestexcept(int /*<<< orphan*/);
int feupdateenv(const fenv_t *envp) {
  unsigned int _fexcept = fetestexcept(FE_ALL_EXCEPT);
  fesetenv(envp);
  feraiseexcept(_fexcept);
  return 0;
}


x86 assembly (clang, -O0):
<feupdateenv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
call   1030 <fetestexcept@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <fesetenv@plt>
mov    -0xc(%rbp),%edi
call   1040 <feraiseexcept@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<feupdateenv>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2ea3(%rip),%rax
mov    (%rax),%edi
call   1030 <fetestexcept@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1050 <fesetenv@plt>
mov    %ebp,%edi
call   1040 <feraiseexcept@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@FE_ALL_EXCEPT = global i32 0
define i32 @feupdateenv(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32, i32* @FE_ALL_EXCEPT
%5 = call i32 @fetestexcept(i32 %4)
store i32 %5, i32* %3
%6 = load i32*, i32** %2
%7 = call i32 @fesetenv(i32* %6)
%8 = load i32, i32* %3
%9 = call i32 @feraiseexcept(i32 %8)
ret i32 0
}

LLVM IR (-O2):
@FE_ALL_EXCEPT = global i32 0
define i32 @feupdateenv(i32* %0) {
%2 = load i32, i32* @FE_ALL_EXCEPT
%3 = tail call i32 @fetestexcept(i32 %2)
%4 = tail call i32 @fesetenv(i32* %0)
%5 = tail call i32 @feraiseexcept(i32 %3)
ret i32 0
}
float sqare(float a) { return a * a; }


x86 assembly (clang, -O0):
<sqare>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<sqare>:
mulss  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @sqare(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = load float, float* %2
%5 = fmul float %3, %4
ret float %5
}

LLVM IR (-O2):
define float @sqare(float %0) {
%2 = fmul float %0, %0
ret float %2
}
int PMII_singinit(void) { return 0; }


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

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

LLVM IR (-O0):
define i32 @PMII_singinit() {
ret i32 0
}

LLVM IR (-O2):
define i32 @PMII_singinit() {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ tmp;
struct SFMF_FileHash {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int sfmf_filehash_format(struct SFMF_FileHash *, char *, int);
char *strdup(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
char *make_pack_filename(struct SFMF_FileHash *hash) {
  char tmp[128];
  int res = sfmf_filehash_format(hash, tmp, sizeof(tmp));
  assert(res);
  strncat(tmp, ".pack", sizeof(tmp));
  return strdup(tmp);
}


x86 assembly (clang, -O0):
<make_pack_filename>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x90(%rbp),%rsi
mov    $0x80,%edx
call   1050 <sfmf_filehash_format@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%edi
call   1040 <assert@plt>
lea    -0x90(%rbp),%rdi
lea    0xe7d(%rip),%rsi
mov    $0x80,%edx
call   1030 <strncat@plt>
lea    -0x90(%rbp),%rdi
call   1060 <strdup@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_pack_filename>:
push   %rbx
sub    $0x80,%rsp
mov    %rsp,%rbx
mov    %rbx,%rsi
mov    $0x80,%edx
call   1050 <sfmf_filehash_format@plt>
mov    %eax,%edi
call   1040 <assert@plt>
lea    0xe9a(%rip),%rsi
mov    %rbx,%rdi
mov    $0x80,%edx
call   1030 <strncat@plt>
mov    %rbx,%rdi
call   1060 <strdup@plt>
add    $0x80,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.SFMF_FileHash = type { i32 }
@.str = [6 x i8] c".pack\00"
define i8* @make_pack_filename(%struct.SFMF_FileHash* %0) {
%2 = alloca %struct.SFMF_FileHash*
%3 = alloca [128 x i8]
%4 = alloca i32
store %struct.SFMF_FileHash* %0, %struct.SFMF_FileHash** %2
%5 = load %struct.SFMF_FileHash*, %struct.SFMF_FileHash** %2
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%7 = call i32 @sfmf_filehash_format(%struct.SFMF_FileHash* %5, i8* %6, i32 128)
store i32 %7, i32* %4
%8 = load i32, i32* %4
%9 = call i32 @assert(i32 %8)
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%11 = call i32 @strncat(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 128)
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%13 = call i8* @strdup(i8* %12)
ret i8* %13
}

LLVM IR (-O2):
%struct.SFMF_FileHash = type { i32 }
@.str = [6 x i8] c".pack\00"
define noalias i8* @make_pack_filename(%struct.SFMF_FileHash* %0) {
%2 = alloca [128 x i8]
%3 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%4 = call i32 @sfmf_filehash_format(%struct.SFMF_FileHash* %0, i8* %3, i32 128)
%5 = call i32 @assert(i32 %4)
%6 = call i32 @strncat(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 128)
%7 = call i8* @strdup(i8* %3)
ret i8* %7
}
void gtk_button_box_style_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_button_box_style_get_type() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assign(void *, void *, int);
void swap(void *p1, void *p2, void *tmp, int size) {
  assign(tmp, p1, size);
  assign(p1, p2, size);
  assign(p2, tmp, size);
}


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

x86 assembly (clang, -O2):
<swap>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %ecx,%ebx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r12
mov    %rdx,%rdi
mov    %r12,%rsi
mov    %ecx,%edx
call   1030 <assign@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1030 <assign@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <assign@plt>

LLVM IR (-O0):
define void @swap(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %7
%10 = load i8*, i8** %5
%11 = load i32, i32* %8
%12 = call i32 @assign(i8* %9, i8* %10, i32 %11)
%13 = load i8*, i8** %5
%14 = load i8*, i8** %6
%15 = load i32, i32* %8
%16 = call i32 @assign(i8* %13, i8* %14, i32 %15)
%17 = load i8*, i8** %6
%18 = load i8*, i8** %7
%19 = load i32, i32* %8
%20 = call i32 @assign(i8* %17, i8* %18, i32 %19)
ret void
}

LLVM IR (-O2):
define void @swap(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = tail call i32 @assign(i8* %2, i8* %0, i32 %3)
%6 = tail call i32 @assign(i8* %0, i8* %1, i32 %3)
%7 = tail call i32 @assign(i8* %1, i8* %2, i32 %3)
ret void
}
/* Variables and functions */
scalar_t__ toupper(char);
void cgm_strupper(char *s) {
  while (*s) {
    *s = (char)toupper(*s);
    s++;
  }
}


x86 assembly (clang, -O0):
<cgm_strupper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     114e <cgm_strupper+0x3e>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <toupper@plt>
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <cgm_strupper+0xc>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @cgm_strupper(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %10, %4 ], [ %2, %1 ]
%6 = phi i8* [ %9, %4 ], [ %0, %1 ]
%7 = tail call i64 @toupper(i8 signext %5)
%8 = trunc i64 %7 to i8
store i8 %8, i8* %6
%9 = getelementptr inbounds i8, i8* %6, i64 1
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
void openlog(const char *ident, int option, int facility) { assert(!"NYI"); }


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

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

LLVM IR (-O0):
@.str = [4 x i8] c"NYI\00"
define void @openlog(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = call i32 @assert(i32 0)
ret void
}

LLVM IR (-O2):
define void @openlog(i8* nocapture readnone %0, i32 %1, i32 %2) {
%4 = tail call i32 @assert(i32 0)
ret void
}
int f(int i, int j) {
  if (i == 1)
    return 1;
  if (j == 1)
    return 1;
  return f(i - 1, j) + f(i, j - 1);
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1134 <f+0x24>
movl   $0x1,-0x4(%rbp)
jmp    1173 <f+0x63>
cmpl   $0x1,-0xc(%rbp)
jne    114a <f+0x3a>
movl   $0x1,-0x4(%rbp)
jmp    1173 <f+0x63>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0xc(%rbp),%esi
call   1030 <f@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
call   1030 <f@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rbp
push   %r14
push   %rbx
mov    $0x1,%ebx
cmp    $0x1,%edi
je     1147 <f+0x37>
mov    %esi,%ebp
cmp    $0x1,%esi
je     1147 <f+0x37>
mov    %edi,%r14d
add    $0xffffffff,%r14d
xor    %ebx,%ebx
xchg   %ax,%ax
mov    %r14d,%edi
mov    %ebp,%esi
call   1030 <f@plt>
add    $0xffffffff,%ebp
add    %eax,%ebx
cmp    $0x1,%ebp
jne    1130 <f+0x20>
add    $0x1,%ebx
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @f(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 1
%4 = icmp eq i32 %1, 1
%5 = or i1 %3, %4
br i1 %5, label %17, label %6
6: ; preds = %2
%7 = add nsw i32 %0, -1
br label %8
8: ; preds = %6, %8
%9 = phi i32 [ %1, %6 ], [ %12, %8 ]
%10 = phi i32 [ 0, %6 ], [ %13, %8 ]
%11 = tail call i32 @f(i32 %7, i32 %9)
%12 = add nsw i32 %9, -1
%13 = add nsw i32 %11, %10
%14 = icmp eq i32 %12, 1
br i1 %14, label %15, label %8
15: ; preds = %8
%16 = add i32 %13, 1
br label %17
17: ; preds = %15, %2
%18 = phi i32 [ 1, %2 ], [ %16, %15 ]
ret i32 %18
}
/* Variables and functions */
int /*<<< orphan*/ menu();
int /*<<< orphan*/ puts(char *);
int do_child() {
  puts("Welcome to Guess the Number! \n");
  menu();
}


x86 assembly (clang, -O0):
<do_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1040 <menu@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_child>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <menu@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"Welcome to Guess the Number! \0A\00"
define i32 @do_child() {
%1 = alloca i32
%2 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @menu()
%4 = load i32, i32* %1
ret i32 %4
}

LLVM IR (-O2):
@.str = [31 x i8] c"Welcome to Guess the Number! \0A\00"
define i32 @do_child() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @menu()
ret i32 undef
}