xunge/DecIR huggingface dataset:
/* Variables and functions */
size_t strlcpy(void *, void const *, size_t);
int copystr(const void *kfaddr, void *kdaddr, size_t len, size_t *done) {
  size_t bytes;
  bytes = strlcpy(kdaddr, kfaddr, len);
  if (done != NULL)
    *done = bytes;
  return (0);
}


x86 assembly (clang, -O0):
<copystr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <strlcpy@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1153 <copystr+0x43>
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copystr>:
push   %rbx
mov    %rcx,%rbx
mov    %rdi,%rax
mov    %rsi,%rdi
mov    %rax,%rsi
call   1030 <strlcpy@plt>
test   %rbx,%rbx
je     112a <copystr+0x1a>
mov    %rax,(%rbx)
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @copystr(i8* %0, i8* %1, i64 %2, i64* writeonly %3) {
%5 = tail call i64 @strlcpy(i8* %1, i8* %0, i64 %2)
%6 = icmp eq i64* %3, null
br i1 %6, label %8, label %7
7: ; preds = %4
store i64 %5, i64* %3
br label %8
8: ; preds = %7, %4
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_init_set_str(int /*<<< orphan*/, char const *, int);
void gmpint_sets(mpz_t *op, const char *str, int base) {
  mpz_init_set_str(*op, str, base);
}


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

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

LLVM IR (-O0):
define void @gmpint_sets(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 i32*, i32** %4
%8 = load i32, i32* %7
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = call i32 @mpz_init_set_str(i32 %8, i8* %9, i32 %10)
ret void
}

LLVM IR (-O2):
define void @gmpint_sets(i32* nocapture %0, i8* %1, i32 %2) {
%4 = load i32, i32* %0
%5 = tail call i32 @mpz_init_set_str(i32 %4, i8* %1, i32 %2)
ret void
}
/* Variables and functions */
bool is_space(int c) {
  if (c == ' ') {
    return true;
  }
  return false;
}


x86 assembly (clang, -O0):
<is_space>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
jne    111d <is_space+0x1d>
movl   $0x1,-0x4(%rbp)
jmp    1124 <is_space+0x24>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @is_space(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 32
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, i32* %2
br label %8
7: ; preds = %1
store i32 0, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @is_space(i32 %0) {
%2 = icmp eq i32 %0, 32
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int FOO();
int main(int argc, char *argv[]) { return FOO(); }


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)
mov    $0x0,%al
call   1030 <FOO@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
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 (...) @FOO()
ret i32 %6
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @FOO()
ret i32 %3
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int64_t gte_int64_t(int64_t a, int64_t b) { return a >= b; }


x86 assembly (clang, -O0):
<gte_int64_t>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gte_int64_t>:
xor    %eax,%eax
cmp    %esi,%edi
setge  %al
ret

LLVM IR (-O0):
define i32 @gte_int64_t(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp sge i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @gte_int64_t(i32 %0, i32 %1) {
%3 = icmp sge i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int InputPpt();
char JTAG_GET_TDO() { return (InputPpt() & (1 << 7)) ? '0' : '1'; }


x86 assembly (clang, -O0):
<JTAG_GET_TDO>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <InputPpt@plt>
mov    %eax,%edx
and    $0x80,%edx
mov    $0x31,%eax
mov    $0x30,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<JTAG_GET_TDO>:
push   %rax
xor    %eax,%eax
call   1030 <InputPpt@plt>
test   $0x80,%al
sete   %al
or     $0x30,%al
pop    %rcx
ret

LLVM IR (-O0):
define signext i8 @JTAG_GET_TDO() {
%1 = call i32 (...) @InputPpt()
%2 = and i32 %1, 128
%3 = icmp ne i32 %2, 0
%4 = zext i1 %3 to i64
%5 = select i1 %3, i32 48, i32 49
%6 = trunc i32 %5 to i8
ret i8 %6
}

LLVM IR (-O2):
define signext i8 @JTAG_GET_TDO() {
%1 = tail call i32 (...) @InputPpt()
%2 = and i32 %1, 128
%3 = icmp eq i32 %2, 0
%4 = select i1 %3, i8 49, i8 48
ret i8 %4
}
void init_timer(struct dummy_timer_list *dummy) { return; }


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

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

LLVM IR (-O0):
%struct.dummy_timer_list = type opaque
define void @init_timer(%struct.dummy_timer_list* %0) {
%2 = alloca %struct.dummy_timer_list*
store %struct.dummy_timer_list* %0, %struct.dummy_timer_list** %2
ret void
}

LLVM IR (-O2):
%struct.dummy_timer_list = type opaque
define void @init_timer(%struct.dummy_timer_list* nocapture %0) {
ret void
}
/* Type definitions */
struct forth_instance {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ create_header(struct forth_instance *, intptr_t, char *);
intptr_t st_pop(struct forth_instance *);
void create_addr(struct forth_instance *fi) {
  intptr_t len;
  len = st_pop(fi);
  create_header(fi, len, (char *)st_pop(fi));
}


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

x86 assembly (clang, -O2):
<create_addr>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <st_pop@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1030 <st_pop@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <create_header@plt>

LLVM IR (-O0):
%struct.forth_instance = type { i32 }
define void @create_addr(%struct.forth_instance* %0) {
%2 = alloca %struct.forth_instance*
%3 = alloca i64
store %struct.forth_instance* %0, %struct.forth_instance** %2
%4 = load %struct.forth_instance*, %struct.forth_instance** %2
%5 = call i64 @st_pop(%struct.forth_instance* %4)
store i64 %5, i64* %3
%6 = load %struct.forth_instance*, %struct.forth_instance** %2
%7 = load i64, i64* %3
%8 = load %struct.forth_instance*, %struct.forth_instance** %2
%9 = call i64 @st_pop(%struct.forth_instance* %8)
%10 = inttoptr i64 %9 to i8*
%11 = call i32 @create_header(%struct.forth_instance* %6, i64 %7, i8* %10)
ret void
}

LLVM IR (-O2):
%struct.forth_instance = type { i32 }
define void @create_addr(%struct.forth_instance* %0) {
%2 = tail call i64 @st_pop(%struct.forth_instance* %0)
%3 = tail call i64 @st_pop(%struct.forth_instance* %0)
%4 = inttoptr i64 %3 to i8*
%5 = tail call i32 @create_header(%struct.forth_instance* %0, i64 %2, i8* %4)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void plot_contour(FILE *f, const char **opts, int xsz, int ysz, double d[]) {}


x86 assembly (clang, -O0):
<plot_contour>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @plot_contour(i32* %0, i8** %1, i32 %2, i32 %3, double* %4) {
%6 = alloca i32*
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i32
%10 = alloca double*
store i32* %0, i32** %6
store i8** %1, i8*** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store double* %4, double** %10
ret void
}

LLVM IR (-O2):
define void @plot_contour(i32* nocapture %0, i8** nocapture %1, i32 %2, i32 %3, double* nocapture %4) {
ret void
}
int debuggingnamelen_(int const len) {
  static int length = 15;
  if (len < 0)
    return length;
  else
    return (length = len);
}


x86 assembly (clang, -O0):
<debuggingnamelen_>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    111f <debuggingnamelen_+0x1f>
mov    0x2f09(%rip),%eax
mov    %eax,-0x4(%rbp)
jmp    112b <debuggingnamelen_+0x2b>
mov    -0x8(%rbp),%eax
mov    %eax,0x2ef8(%rip)
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<debuggingnamelen_>:
test   %edi,%edi
js     110d <debuggingnamelen_+0xd>
mov    %edi,%eax
mov    %edi,0x2f14(%rip)
ret
mov    0x2f0d(%rip),%eax
ret

LLVM IR (-O0):
@debuggingnamelen_.length = internal global i32 15
define i32 @debuggingnamelen_(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load i32, i32* @debuggingnamelen_.length
store i32 %7, i32* %2
br label %10
8: ; preds = %1
%9 = load i32, i32* %3
store i32 %9, i32* @debuggingnamelen_.length
store i32 %9, i32* %2
br label %10
10: ; preds = %8, %6
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@debuggingnamelen_.length = internal unnamed_addr global i32 15
define i32 @debuggingnamelen_(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = load i32, i32* @debuggingnamelen_.length
br label %6
5: ; preds = %1
store i32 %0, i32* @debuggingnamelen_.length
br label %6
6: ; preds = %5, %3
%7 = phi i32 [ %4, %3 ], [ %0, %5 ]
ret i32 %7
}
int Add(int x, int y) { return x + y; }


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

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

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

LLVM IR (-O2):
define i32 @Add(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
char ws_lorC(char c, char d) { return c | d; }


x86 assembly (clang, -O0):
<ws_lorC>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsbl -0x1(%rbp),%eax
movsbl -0x2(%rbp),%ecx
or     %ecx,%eax
movsbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i8 @ws_lorC(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = load i8, i8* %4
%8 = sext i8 %7 to i32
%9 = or i32 %6, %8
%10 = trunc i32 %9 to i8
ret i8 %10
}

LLVM IR (-O2):
define signext i8 @ws_lorC(i8 signext %0, i8 signext %1) {
%3 = or i8 %1, %0
ret i8 %3
}
/* Variables and functions */
int /*<<< orphan*/ pdie(char *);
char *strdup(char const *);
char *stralloc(const char *str) {
  char *this;
  if ((this = strdup(str)) == NULL)
    pdie("Out of memory");
  return this;
}


x86 assembly (clang, -O0):
<stralloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strdup@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    114f <stralloc+0x2f>
lea    0xeb6(%rip),%rdi
call   1030 <pdie@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stralloc>:
push   %rbx
call   1040 <strdup@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113a <stralloc+0x1a>
lea    0xecb(%rip),%rdi
call   1030 <pdie@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Out of memory\00"
define i8* @stralloc(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i8* @strdup(i8* %4)
store i8* %5, i8** %3
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @pdie(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %1
%10 = load i8*, i8** %3
ret i8* %10
}

LLVM IR (-O2):
@.str = [14 x i8] c"Out of memory\00"
define noalias i8* @stralloc(i8* nocapture %0) {
%2 = tail call i8* @strdup(i8* %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @pdie(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void ft_memdel(void **ap) {
  if (!ap)
    return;
  free(*ap);
  *ap = NULL;
  return;
}


x86 assembly (clang, -O0):
<ft_memdel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112c <ft_memdel+0x1c>
jmp    1143 <ft_memdel+0x33>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_memdel>:
test   %rdi,%rdi
je     1129 <ft_memdel+0x19>
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
movq   $0x0,(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
define void @ft_memdel(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i8*, i8** %0
%5 = tail call i32 @free(i8* %4)
store i8* null, i8** %0
br label %6
6: ; preds = %1, %3
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
size_t list_meter_int64_t(const void *el) { return sizeof(int64_t); }


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

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

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

LLVM IR (-O2):
define i64 @list_meter_int64_t(i8* nocapture readnone %0) {
ret i64 4
}
/* Variables and functions */
scalar_t__ strstr(char *, char *);
bool is_nested(char *value) {
  return strstr(value, "${") && strstr(value, "}");
}


x86 assembly (clang, -O0):
<is_nested>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strstr@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
je     1158 <is_nested+0x48>
mov    -0x8(%rbp),%rdi
lea    0xeba(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_nested>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strstr@plt>
test   %rax,%rax
je     1141 <is_nested+0x31>
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"${\00"
@.str.1 = [2 x i8] c"}\00"
define i32 @is_nested(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strstr(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i64 @strstr(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
@.str = [3 x i8] c"${\00"
@.str.1 = [2 x i8] c"}\00"
define i32 @is_nested(i8* %0) {
%2 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 0, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ sleep(unsigned int);
void crSleep(unsigned int seconds) { sleep(seconds); }


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

x86 assembly (clang, -O2):
<crSleep>:
jmp    1030 <sleep@plt>

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

LLVM IR (-O2):
define void @crSleep(i32 %0) {
%2 = tail call i32 @sleep(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ showbits_ui(unsigned int);
void printMP3Header(unsigned int *mp3header) {
  printf("MP3 Header 0-31 (32 total): ");
  showbits_ui(*mp3header);
}


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

x86 assembly (clang, -O2):
<printMP3Header>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%edi
pop    %rbx
jmp    1040 <showbits_ui@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"MP3 Header 0-31 (32 total): \00"
define void @printMP3Header(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%4 = load i32*, i32** %2
%5 = load i32, i32* %4
%6 = call i32 @showbits_ui(i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"MP3 Header 0-31 (32 total): \00"
define void @printMP3Header(i32* nocapture %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %0
%4 = tail call i32 @showbits_ui(i32 %3)
ret void
}
float confohmslaw(float i, float v, float r) {
  float retval;
  float temp;
  temp = v / r;
  if (i == temp) {
    retval = 0;
  } else {
    retval = -1;
  }
  return (retval);
}


x86 assembly (clang, -O0):
<confohmslaw>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
divss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
ucomiss -0x14(%rbp),%xmm0
jne    1144 <confohmslaw+0x44>
jp     1144 <confohmslaw+0x44>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    1151 <confohmslaw+0x51>
movss  0xeb4(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<confohmslaw>:
divss  %xmm2,%xmm1
cmpeqss %xmm1,%xmm0
movss  0xeef(%rip),%xmm1
andnps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @confohmslaw(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%9 = load float, float* %5
%10 = load float, float* %6
%11 = fdiv float %9, %10
store float %11, float* %8
%12 = load float, float* %4
%13 = load float, float* %8
%14 = fcmp oeq float %12, %13
br i1 %14, label %15, label %16
15: ; preds = %3
store float 0.000000e+00, float* %7
br label %17
16: ; preds = %3
store float -1.000000e+00, float* %7
br label %17
17: ; preds = %16, %15
%18 = load float, float* %7
ret float %18
}

LLVM IR (-O2):
define float @confohmslaw(float %0, float %1, float %2) {
%4 = fdiv float %1, %2
%5 = fcmp oeq float %4, %0
%6 = select i1 %5, float 0.000000e+00, float -1.000000e+00
ret float %6
}
/* Variables and functions */
scalar_t__ malloc(size_t);
int /*<<< orphan*/ nrerror(char *);
double *nr_dvector(long nl, long nh) {
  double *v;
  v = (double *)malloc((size_t)((nh - nl + 1 + 1) * sizeof(double)));
  if (!v)
    nrerror("allocation failure in dvector()");
  return v - nl + 1;
}


x86 assembly (clang, -O0):
<nr_dvector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
sub    -0x8(%rbp),%rdi
add    $0x1,%rdi
add    $0x1,%rdi
shl    $0x3,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1164 <nr_dvector+0x44>
lea    0xea1(%rip),%rdi
call   1030 <nrerror@plt>
mov    -0x18(%rbp),%rax
xor    %ecx,%ecx
sub    -0x8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
add    $0x8,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nr_dvector>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
sub    %rdi,%rsi
lea    0x10(,%rsi,8),%rdi
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    114b <nr_dvector+0x2b>
lea    0xeba(%rip),%rdi
call   1030 <nrerror@plt>
shl    $0x3,%r14
sub    %r14,%rbx
add    $0x8,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [32 x i8] c"allocation failure in dvector()\00"
define double* @nr_dvector(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca double*
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = load i64, i64* %3
%8 = sub nsw i64 %6, %7
%9 = add nsw i64 %8, 1
%10 = add nsw i64 %9, 1
%11 = mul i64 %10, 8
%12 = call i64 @malloc(i64 %11)
%13 = inttoptr i64 %12 to double*
store double* %13, double** %5
%14 = load double*, double** %5
%15 = icmp ne double* %14, null
br i1 %15, label %18, label %16
16: ; preds = %2
%17 = call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %18
18: ; preds = %16, %2
%19 = load double*, double** %5
%20 = load i64, i64* %3
%21 = sub i64 0, %20
%22 = getelementptr inbounds double, double* %19, i64 %21
%23 = getelementptr inbounds double, double* %22, i64 1
ret double* %23
}

LLVM IR (-O2):
@.str = [32 x i8] c"allocation failure in dvector()\00"
define double* @nr_dvector(i64 %0, i64 %1) {
%3 = sub nsw i64 %1, %0
%4 = shl i64 %3, 3
%5 = add i64 %4, 16
%6 = tail call i64 @malloc(i64 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %2
%11 = inttoptr i64 %6 to double*
%12 = sub i64 0, %0
%13 = getelementptr inbounds double, double* %11, i64 %12
%14 = getelementptr inbounds double, double* %13, i64 1
ret double* %14
}
double dne(double x, double y) { return ((double)(x != y)); }


x86 assembly (clang, -O0):
<dne>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
setne  %al
setp   %cl
or     %cl,%al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dne>:
cmpneqsd %xmm1,%xmm0
movsd  0xef3(%rip),%xmm1
andpd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @dne(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = fcmp une double %5, %6
%8 = zext i1 %7 to i32
%9 = sitofp i32 %8 to double
ret double %9
}

LLVM IR (-O2):
define double @dne(double %0, double %1) {
%3 = fcmp une double %0, %1
%4 = uitofp i1 %3 to double
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ MIPS_SET_BIT(int, int);
void xburst_cgm_gate_smb4() { MIPS_SET_BIT((0xB0000000 + 0x28), 12); }


x86 assembly (clang, -O0):
<xburst_cgm_gate_smb4>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb0000028,%edi
mov    $0xc,%esi
call   1030 <MIPS_SET_BIT@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<xburst_cgm_gate_smb4>:
mov    $0xb0000028,%edi
mov    $0xc,%esi
jmp    1030 <MIPS_SET_BIT@plt>

LLVM IR (-O0):
define void @xburst_cgm_gate_smb4() {
%1 = call i32 @MIPS_SET_BIT(i32 -1342177240, i32 12)
ret void
}

LLVM IR (-O2):
define void @xburst_cgm_gate_smb4() {
%1 = tail call i32 @MIPS_SET_BIT(i32 -1342177240, i32 12)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char);
int /*<<< orphan*/ stdout;
int main() {
  fprintf(stdout, "dos numeritos %d %d\n", 5, '5');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
lea    0xed1(%rip),%rsi
mov    $0x5,%edx
mov    $0x35,%ecx
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
mov    $0x5,%edx
mov    $0x35,%ecx
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [21 x i8] c"dos numeritos %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @stdout
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 5, i8 signext 53)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [21 x i8] c"dos numeritos %d %d\0A\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 5, i8 signext 53)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fflush(FILE *file) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @fflush(i32* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
scalar_t__ realloc_array(void **, int, int, int, int, int);
short **realloc_short(short **array, int first, int second, int ext1,
                      int ext2) {
  return (short **)realloc_array((void **)array, sizeof(short), first, second,
                                 ext1, ext2);
}


x86 assembly (clang, -O0):
<realloc_short>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
mov    $0x2,%esi
call   1030 <realloc_array@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<realloc_short>:
mov    %r8d,%r9d
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %esi,%edx
mov    $0x2,%esi
jmp    1030 <realloc_array@plt>

LLVM IR (-O0):
define i16** @realloc_short(i16** %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i16**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i16** %0, i16*** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i16**, i16*** %6
%12 = bitcast i16** %11 to i8**
%13 = load i32, i32* %7
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = call i64 @realloc_array(i8** %12, i32 2, i32 %13, i32 %14, i32 %15, i32 %16)
%18 = inttoptr i64 %17 to i16**
ret i16** %18
}

LLVM IR (-O2):
define i16** @realloc_short(i16** %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = bitcast i16** %0 to i8**
%7 = tail call i64 @realloc_array(i8** %6, i32 2, i32 %1, i32 %2, i32 %3, i32 %4)
%8 = inttoptr i64 %7 to i16**
ret i16** %8
}
/* Variables and functions */
int strlen(char const *);
int phone_utils_gsm_number_is_ussd(const char *number) {
  int len = strlen(number);
  if (len == 0)
    return 0;
  if (number[len - 1] == '#' || len <= 2) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<phone_utils_gsm_number_is_ussd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    113e <phone_utils_gsm_number_is_ussd+0x2e>
movl   $0x0,-0x4(%rbp)
jmp    1175 <phone_utils_gsm_number_is_ussd+0x65>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x23,%eax
je     1162 <phone_utils_gsm_number_is_ussd+0x52>
cmpl   $0x2,-0x14(%rbp)
jg     116e <phone_utils_gsm_number_is_ussd+0x5e>
movl   $0x1,-0x4(%rbp)
jmp    1175 <phone_utils_gsm_number_is_ussd+0x65>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phone_utils_gsm_number_is_ussd>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
test   %eax,%eax
je     1135 <phone_utils_gsm_number_is_ussd+0x25>
movslq %eax,%rcx
cmpb   $0x23,-0x1(%rcx,%rbx,1)
sete   %cl
cmp    $0x3,%eax
setl   %al
or     %cl,%al
movzbl %al,%eax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @phone_utils_gsm_number_is_ussd(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1
%5 = add nsw i32 %2, -1
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 35
%10 = icmp slt i32 %2, 3
%11 = select i1 %9, i1 true, i1 %10
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %4, %1
%14 = phi i32 [ 0, %1 ], [ %12, %4 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void main() {

#pragma message("Test pragma message text")

#pragma message("_X86 macro activated!")
#pragma code_seg("section-name", "section-class")
#pragma warning(disable : 4507 34; once : 4385; error : 164)
#pragma comment(lib, "user32.lib")
  int m = 32;
  printf("%d", m);
}


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 32)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ rfftf1(int, float *, float *, float *, int *);
void rfftf(int n, float r[], float wsave[]) {
  if (n == 1)
    return;
  rfftf1(n, r, wsave, wsave + n, (int *)(wsave + 2 * n));
}


x86 assembly (clang, -O0):
<rfftf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    1132 <rfftf+0x22>
jmp    1164 <rfftf+0x54>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x18(%rbp),%rcx
movslq -0x4(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x18(%rbp),%r8
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%r8
call   1030 <rfftf1@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rfftf>:
cmp    $0x1,%edi
jne    1116 <rfftf+0x6>
ret
movslq %edi,%rax
lea    (%rdx,%rax,4),%rcx
lea    (%rdi,%rdi,1),%eax
cltq
lea    (%rdx,%rax,4),%r8
jmp    1030 <rfftf1@plt>

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

LLVM IR (-O2):
define void @rfftf(i32 %0, float* %1, float* %2) {
%4 = icmp eq i32 %0, 1
br i1 %4, label %13, label %5
5: ; preds = %3
%6 = sext i32 %0 to i64
%7 = getelementptr inbounds float, float* %2, i64 %6
%8 = shl nsw i32 %0, 1
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds float, float* %2, i64 %9
%11 = bitcast float* %10 to i32*
%12 = tail call i32 @rfftf1(i32 %0, float* %1, float* %2, float* %7, i32* %11)
br label %13
13: ; preds = %3, %5
ret void
}
/* Type definitions */
struct i8x_object {
  int dummy;
};
struct i8x_func {
  int dummy;
};
struct i8x_ctx {
  int dummy;
};

/* Variables and functions */
struct i8x_ctx *i8x_ob_get_ctx(struct i8x_object *);
struct i8x_ctx *__attribute__((always_)) i8x_func_get_ctx(struct i8x_func *x) {
  return i8x_ob_get_ctx((struct i8x_object *)x);
}


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

x86 assembly (clang, -O2):
<i8x_func_get_ctx>:
jmp    1030 <i8x_ob_get_ctx@plt>

LLVM IR (-O0):
%struct.i8x_ctx = type { i32 }
%struct.i8x_func = type { i32 }
%struct.i8x_object = type { i32 }
define %struct.i8x_ctx* @i8x_func_get_ctx(%struct.i8x_func* %0) {
%2 = alloca %struct.i8x_func*
store %struct.i8x_func* %0, %struct.i8x_func** %2
%3 = load %struct.i8x_func*, %struct.i8x_func** %2
%4 = bitcast %struct.i8x_func* %3 to %struct.i8x_object*
%5 = call %struct.i8x_ctx* @i8x_ob_get_ctx(%struct.i8x_object* %4)
ret %struct.i8x_ctx* %5
}

LLVM IR (-O2):
%struct.i8x_ctx = type { i32 }
%struct.i8x_func = type { i32 }
%struct.i8x_object = type { i32 }
define %struct.i8x_ctx* @i8x_func_get_ctx(%struct.i8x_func* %0) {
%2 = bitcast %struct.i8x_func* %0 to %struct.i8x_object*
%3 = tail call %struct.i8x_ctx* @i8x_ob_get_ctx(%struct.i8x_object* %2)
ret %struct.i8x_ctx* %3
}
const char *skipBlank(const char *src) {
  unsigned chr;
  for (; *src != '\0'; ++src) {
    chr = *src;
    if (chr > 0x20 || chr != 0x7F) {
      return src;
    }
  }
  return src;
}


x86 assembly (clang, -O0):
<skipBlank>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1159 <skipBlank+0x59>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x20,-0x14(%rbp)
ja     1136 <skipBlank+0x36>
cmpl   $0x7f,-0x14(%rbp)
je     1143 <skipBlank+0x43>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1161 <skipBlank+0x61>
jmp    1148 <skipBlank+0x48>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1108 <skipBlank+0x8>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i8* @skipBlank(i8* returned %0) {
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) { printf("hello, world\n"); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%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
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"hello, world\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [13 x i8] c"hello, world\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void remove_entry(void *memory, char *file, int line) {}


x86 assembly (clang, -O0):
<remove_entry>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @remove_entry(i8* nocapture %0, i8* nocapture %1, i32 %2) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int geteuid();
int getuid();
int /*<<< orphan*/ printf(char *, int, int);
int main(void) {
  printf("real uid = %d, effective uid = %d\n", getuid(), geteuid());
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getuid@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <geteuid@plt>
mov    -0x8(%rbp),%esi
mov    %eax,%edx
lea    0xe94(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <getuid@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <geteuid@plt>
lea    0xea8(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"real uid = %d, effective uid = %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @getuid()
%3 = call i32 (...) @geteuid()
%4 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %3)
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [35 x i8] c"real uid = %d, effective uid = %d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @getuid()
%2 = tail call i32 (...) @geteuid()
%3 = tail call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
%4 = tail call i32 @exit(i32 0)
unreachable
}
void cbc_display_clear() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_epel_v48_8_sse4() {
ret void
}
float kmRadiansToDegrees(float radians) {
  return radians * (180.0 / 3.14159265358979323846f);
}


x86 assembly (clang, -O0):
<kmRadiansToDegrees>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xee6(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<kmRadiansToDegrees>:
cvtss2sd %xmm0,%xmm0
mulsd  0xef4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @kmRadiansToDegrees(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fmul double %4, 0x404CA5DC0D03CF26
%6 = fptrunc double %5 to float
ret float %6
}

LLVM IR (-O2):
define float @kmRadiansToDegrees(float %0) {
%2 = fpext float %0 to double
%3 = fmul double %2, 0x404CA5DC0D03CF26
%4 = fptrunc double %3 to float
ret float %4
}
/* Type definitions */
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int find(int *, int, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a[10] = {2, 4, 6, 7, 8, 9, 1, 3, 5, 10};
  int size = sizeof(a) / sizeof(a[0]);
  printf("%d\n", find(a, size, 40));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
movl   $0xa,-0x34(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x28,%edx
call   1050 <find@plt>
mov    %eax,%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
mov    0xef5(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xebd(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0xa,%esi
mov    $0x28,%edx
call   1040 <find@plt>
lea    0xec8(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
@__const.main.a = [10 x i32] [i32 2, i32 4, i32 6, i32 7, i32 8, i32 9, i32 1, i32 3, i32 5, i32 10]
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%4 = call i32 @find(i32* %3, i32 10, i32 40)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _IOLBF;
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/ *, int /*<<< orphan*/,
                           int /*<<< orphan*/, int /*<<< orphan*/);
void setlinebuf(FILE *f) { setvbuf(f, 0, _IOLBF, 0); }


x86 assembly (clang, -O0):
<setlinebuf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb9(%rip),%rax
mov    (%rax),%edx
xor    %ecx,%ecx
mov    %ecx,%esi
call   1030 <setvbuf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setlinebuf>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
xor    %ecx,%ecx
jmp    1030 <setvbuf@plt>

LLVM IR (-O0):
@_IOLBF = global i32 0
define void @setlinebuf(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* @_IOLBF
%5 = call i32 @setvbuf(i32* %3, i32 0, i32 %4, i32 0)
ret void
}

LLVM IR (-O2):
@_IOLBF = global i32 0
define void @setlinebuf(i32* nocapture %0) {
%2 = load i32, i32* @_IOLBF
%3 = tail call i32 @setvbuf(i32* %0, i32 0, i32 %2, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void quit(void) { exit(1); }


x86 assembly (clang, -O0):
<quit>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<quit>:
push   %rax
mov    $0x1,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @quit() {
%1 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define void @quit() {
%1 = tail call i32 @exit(i32 1)
unreachable
}