xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ asockInstall();
int /*<<< orphan*/ eponymousInstall();
int /*<<< orphan*/ impexpInstall();
int /*<<< orphan*/ sfeInstall();
void sysInstall() {
  eponymousInstall();
  asockInstall();
  sfeInstall();
  impexpInstall();
}


x86 assembly (clang, -O0):
<sysInstall>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <eponymousInstall@plt>
mov    $0x0,%al
call   1060 <asockInstall@plt>
mov    $0x0,%al
call   1040 <sfeInstall@plt>
mov    $0x0,%al
call   1030 <impexpInstall@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sysInstall>:
push   %rax
xor    %eax,%eax
call   1050 <eponymousInstall@plt>
xor    %eax,%eax
call   1060 <asockInstall@plt>
xor    %eax,%eax
call   1040 <sfeInstall@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <impexpInstall@plt>

LLVM IR (-O0):
define void @sysInstall() {
%1 = call i32 (...) @eponymousInstall()
%2 = call i32 (...) @asockInstall()
%3 = call i32 (...) @sfeInstall()
%4 = call i32 (...) @impexpInstall()
ret void
}

LLVM IR (-O2):
define void @sysInstall() {
%1 = tail call i32 (...) @eponymousInstall()
%2 = tail call i32 (...) @asockInstall()
%3 = tail call i32 (...) @sfeInstall()
%4 = tail call i32 (...) @impexpInstall()
ret void
}
/* Variables and functions */
int mode_scan(int /*<<< orphan*/);
int /*<<< orphan*/ video_current_mode();
unsigned video_scan(void) { return mode_scan(video_current_mode()); }


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

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

LLVM IR (-O0):
define i32 @video_scan() {
%1 = call i32 (...) @video_current_mode()
%2 = call i32 @mode_scan(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
define i32 @video_scan() {
%1 = tail call i32 (...) @video_current_mode()
%2 = tail call i32 @mode_scan(i32 %1)
ret i32 %2
}
int Add(int a, int b) { return a + b; }


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
}
/* Variables and functions */
scalar_t__ CallBack2(int, void *, void *);
int StoreStrVar(const char *varName, const char *stringPtr) {
  return (int)CallBack2(6, (void *)varName, (void *)stringPtr);
}


x86 assembly (clang, -O0):
<StoreStrVar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    $0x6,%edi
call   1030 <CallBack2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<StoreStrVar>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0x6,%edi
jmp    1030 <CallBack2@plt>

LLVM IR (-O0):
define i32 @StoreStrVar(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i64 @CallBack2(i32 6, i8* %5, i8* %6)
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @StoreStrVar(i8* %0, i8* %1) {
%3 = tail call i64 @CallBack2(i32 6, i8* %0, i8* %1)
%4 = trunc i64 %3 to i32
ret i32 %4
}
int set_bit(unsigned char *x, int i) { return x[i / 8] |= 1 << (i % 8); }


x86 assembly (clang, -O0):
<set_bit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    $0x1,%esi
shl    %cl,%esi
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%eax
mov    $0x8,%edi
cltd
idiv   %edi
movslq %eax,%rdx
movzbl (%rcx,%rdx,1),%eax
or     %esi,%eax
mov    %al,(%rcx,%rdx,1)
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_bit>:
mov    %esi,%ecx
and    $0x7,%cl
mov    $0x1,%eax
shl    %cl,%eax
lea    0x7(%rsi),%ecx
test   %esi,%esi
cmovns %esi,%ecx
sar    $0x3,%ecx
movslq %ecx,%rcx
or     (%rdi,%rcx,1),%al
movzbl %al,%eax
mov    %al,(%rdi,%rcx,1)
ret

LLVM IR (-O0):
define i32 @set_bit(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = srem i32 %5, 8
%7 = shl i32 1, %6
%8 = load i8*, i8** %3
%9 = load i32, i32* %4
%10 = sdiv i32 %9, 8
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, i8* %8, i64 %11
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = or i32 %14, %7
%16 = trunc i32 %15 to i8
store i8 %16, i8* %12
%17 = zext i8 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @set_bit(i8* nocapture %0, i32 %1) {
%3 = and i32 %1, 7
%4 = shl nuw nsw i32 1, %3
%5 = sdiv i32 %1, 8
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = trunc i32 %4 to i8
%10 = or i8 %8, %9
store i8 %10, i8* %7
%11 = zext i8 %10 to i32
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void form_output_back_forward_buttons(void) {
  printf("<td><input type=\"button\" value=\"Back\" "
         "onClick=\"history.back()\">\n");
  printf("<td><input type=\"button\" value=\"Forward\" "
         "onClick=\"timlib_history_forward()\">\n");
}


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

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

LLVM IR (-O0):
@.str = [65 x i8] c"<td><input type=\22button\22 value=\22Back\22 onClick=\22history.back()\22>\0A\00"
@.str.1 = [78 x i8] c"<td><input type=\22button\22 value=\22Forward\22 onClick=\22timlib_history_forward()\22>\0A\00"
define void @form_output_back_forward_buttons() {
%1 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [64 x i8] c"<td><input type=\22button\22 value=\22Back\22 onClick=\22history.back()\22>\00"
@str.2 = [77 x i8] c"<td><input type=\22button\22 value=\22Forward\22 onClick=\22timlib_history_forward()\22>\00"
define void @form_output_back_forward_buttons() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ io_out8(int, int);
int /*<<< orphan*/ wait_kbc_sendready();
void init_keyboard(void) {
  wait_kbc_sendready();
  io_out8((0x0064), (0x60));
  wait_kbc_sendready();
  io_out8((0x0060), (0x47));
}


x86 assembly (clang, -O0):
<init_keyboard>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <wait_kbc_sendready@plt>
mov    $0x64,%edi
mov    $0x60,%esi
call   1040 <io_out8@plt>
mov    $0x0,%al
call   1030 <wait_kbc_sendready@plt>
mov    $0x60,%edi
mov    $0x47,%esi
call   1040 <io_out8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_keyboard>:
push   %rax
xor    %eax,%eax
call   1030 <wait_kbc_sendready@plt>
mov    $0x64,%edi
mov    $0x60,%esi
call   1040 <io_out8@plt>
xor    %eax,%eax
call   1030 <wait_kbc_sendready@plt>
mov    $0x60,%edi
mov    $0x47,%esi
pop    %rax
jmp    1040 <io_out8@plt>

LLVM IR (-O0):
define void @init_keyboard() {
%1 = call i32 (...) @wait_kbc_sendready()
%2 = call i32 @io_out8(i32 100, i32 96)
%3 = call i32 (...) @wait_kbc_sendready()
%4 = call i32 @io_out8(i32 96, i32 71)
ret void
}

LLVM IR (-O2):
define void @init_keyboard() {
%1 = tail call i32 (...) @wait_kbc_sendready()
%2 = tail call i32 @io_out8(i32 100, i32 96)
%3 = tail call i32 (...) @wait_kbc_sendready()
%4 = tail call i32 @io_out8(i32 96, i32 71)
ret void
}
int f2(int a) { return a * 4 + a; }


x86 assembly (clang, -O0):
<f2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x2,%eax
add    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f2>:
lea    (%rdi,%rdi,4),%eax
ret

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

LLVM IR (-O2):
define i32 @f2(i32 %0) {
%2 = mul nsw i32 %0, 5
ret i32 %2
}
void BN_GF2m_poly2arr(void) {}


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

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

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

LLVM IR (-O2):
define void @BN_GF2m_poly2arr() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ atomic_write_barrier();
void membar_producer(void) { atomic_write_barrier(); }


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

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

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

LLVM IR (-O2):
define void @membar_producer() {
%1 = tail call i32 (...) @atomic_write_barrier()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ VIA1_ExtraTimeEnd();
void ExtraTimeEndNotify(void) { VIA1_ExtraTimeEnd(); }


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

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

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

LLVM IR (-O2):
define void @ExtraTimeEndNotify() {
%1 = tail call i32 (...) @VIA1_ExtraTimeEnd()
ret void
}
/* Variables and functions */
scalar_t__ strtol(char *, int /*<<< orphan*/ *, int);
int char_to_int(char c) {
  char str[2];
  str[0] = c;
  str[1] = '\0';
  return (int)strtol(str, NULL, 10);
}


x86 assembly (clang, -O0):
<char_to_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
mov    %al,-0x3(%rbp)
movb   $0x0,-0x2(%rbp)
lea    -0x3(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1030 <strtol@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<char_to_int>:
push   %rax
mov    %dil,0x6(%rsp)
movb   $0x0,0x7(%rsp)
lea    0x6(%rsp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1030 <strtol@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @char_to_int(i8 signext %0) {
%2 = alloca i8
%3 = alloca [2 x i8]
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 0
store i8 %4, i8* %5
%6 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 1
store i8 0, i8* %6
%7 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 0
%8 = call i64 @strtol(i8* %7, i32* null, i32 10)
%9 = trunc i64 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @char_to_int(i8 signext %0) {
%2 = alloca [2 x i8]
%3 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 0
store i8 %0, i8* %3
%4 = getelementptr inbounds [2 x i8], [2 x i8]* %2, i64 0, i64 1
store i8 0, i8* %4
%5 = call i64 @strtol(i8* nocapture %3, i32* null, i32 10)
%6 = trunc i64 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void Help(void) {
  fprintf(stderr,
          "Usage: get_disto [-ssim][-psnr][-alpha] compressed.webp orig.webp\n"
          "  -ssim ..... print SSIM distortion\n"
          "  -psnr ..... print PSNR distortion (default)\n"
          "  -alpha .... preserve alpha plane\n"
          "  -h ........ this message\n"
          "  -o <file> . save the diff map as a WebP lossless file\n"
          "  -scale .... scale the difference map to fit [0..255] range\n"
          "  -gray ..... use grayscale for difference map (-scale)\n"
          " Also handles PNG, JPG and TIFF files, in addition to WebP.\n");
}


x86 assembly (clang, -O0):
<Help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Help>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [444 x i8] c"Usage: get_disto [-ssim][-psnr][-alpha] compressed.webp orig.webp\0A -ssim ..... print SSIM distortion\0A -psnr ..... print PSNR distortion (default)\0A -alpha .... preserve alpha plane\0A -h ........ this message\0A -o <file> . save the diff map as a WebP lossless file\0A -scale .... scale the difference map to fit [0..255] range\0A -gray ..... use grayscale for difference map (-scale)\0A Also handles PNG, JPG and TIFF files, in addition to WebP.\0A\00"
define void @Help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([444 x i8], [444 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [444 x i8] c"Usage: get_disto [-ssim][-psnr][-alpha] compressed.webp orig.webp\0A -ssim ..... print SSIM distortion\0A -psnr ..... print PSNR distortion (default)\0A -alpha .... preserve alpha plane\0A -h ........ this message\0A -o <file> . save the diff map as a WebP lossless file\0A -scale .... scale the difference map to fit [0..255] range\0A -gray ..... use grayscale for difference map (-scale)\0A Also handles PNG, JPG and TIFF files, in addition to WebP.\0A\00"
define void @Help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([444 x i8], [444 x i8]* @.str, i64 0, i64 0))
ret void
}
void fc167(int n) {
  {
    typedef int(*b)[n];
    {
      typedef int(*c)[n];
      0;
    }
    {
      typedef int(*d)[n];
      0;
    };
    typedef int(*e)[n];
    0;
  };
  {
    typedef int(*f)[n];
    {
      typedef int(*g)[n];
      goto a;
      0;
    };
    {
      typedef int(*h)[n];
      0;
    };
    ;
    typedef int(*i)[n];
    0;
  };
a:;
  typedef int(*j)[n];
  0;
}


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

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

LLVM IR (-O0):
define void @fc167(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = zext i32 %3 to i64
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
%7 = load i32, i32* %2
%8 = zext i32 %7 to i64
%9 = load i32, i32* %2
%10 = zext i32 %9 to i64
%11 = load i32, i32* %2
%12 = zext i32 %11 to i64
%13 = load i32, i32* %2
%14 = zext i32 %13 to i64
br label %20
15: ; No predecessors!
%16 = load i32, i32* %2
%17 = zext i32 %16 to i64
%18 = load i32, i32* %2
%19 = zext i32 %18 to i64
br label %20
20: ; preds = %15, %1
%21 = load i32, i32* %2
%22 = zext i32 %21 to i64
ret void
}

LLVM IR (-O2):
define void @fc167(i32 %0) {
ret void
}
void pause(int t) {
  int i;
  for (; t > 0; t--) {
    for (i = 5000; i > 0; i--)
      i++;
    i--;
  }
}


x86 assembly (clang, -O0):
<pause>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1150 <pause+0x50>
movl   $0x1388,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1139 <pause+0x39>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1118 <pause+0x18>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    1107 <pause+0x7>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @pause(i32 %0) {
%2 = icmp slt i32 %0, 1
ret void
}
void fa104(void) {
P0A:
  goto P0A;
  ({
    P01A:
      goto P01A;
      ({
        P012A:
          goto P012A;
          0;
      });
    P01B:
      goto P01B;
      ({
        P013A:
          goto P013A;
          0;
      });
    P01C:
      goto P01C;
      0;
  });
a:
  ({
    p02A:
      goto p02A;
      goto a;
    P02A:
      goto P02A;
      ({
        P024A:
          goto P024A;
          0;
      });
    P02B:
      goto P02B;
      ({
        P025A:
          goto P025A;
          0;
      });
    P02C:
      goto P02C;
      0;
  });
P0C:
  goto P0C;
  0;
P0D:
  goto P0D;
}


x86 assembly (clang, -O0):
<fa104>:
push   %rbp
mov    %rsp,%rbp
jmp    1104 <fa104+0x4>

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

LLVM IR (-O0):
define void @fa104() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
br label %7
7: ; preds = %7, %0
br label %7
8: ; No predecessors!
br label %9
9: ; preds = %9, %8
br label %9
10: ; No predecessors!
br label %11
11: ; preds = %11, %10
br label %11
12: ; preds = %12
br label %12
13: ; No predecessors!
br label %14
14: ; preds = %14, %13
br label %14
15: ; preds = %15
br label %15
16: ; No predecessors!
br label %17
17: ; preds = %17, %16
br label %17
18: ; preds = %18
br label %18
19: ; No predecessors!
br label %20
20: ; preds = %20, %19
br label %20
21: ; preds = %21
br label %21
22: ; No predecessors!
br label %23
23: ; preds = %23, %22
br label %23
24: ; preds = %24
br label %24
25: ; preds = %25
br label %25
26: ; preds = %26
br label %26
}

LLVM IR (-O2):
define void @fa104() {
br label %1
1: ; preds = %1, %0
br label %1
}
void set_int(int *dst, int value) { *dst = value; }


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

x86 assembly (clang, -O2):
<set_int>:
mov    %esi,(%rdi)
ret

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

LLVM IR (-O2):
define void @set_int(i32* nocapture writeonly %0, i32 %1) {
store i32 %1, i32* %0
ret void
}
int ft_isalpha(char c) {
  return ((c >= 65 && c <= 90) || (c >= 97 && c <= 122));
}


x86 assembly (clang, -O0):
<ft_isalpha>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     1129 <ft_isalpha+0x29>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x5a,%ecx
mov    %al,-0x2(%rbp)
jle    114e <ft_isalpha+0x4e>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x61,%ecx
mov    %al,-0x3(%rbp)
jl     1148 <ft_isalpha+0x48>
movsbl -0x1(%rbp),%eax
cmp    $0x7a,%eax
setle  %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_isalpha>:
and    $0xdf,%dil
add    $0xbf,%dil
xor    %eax,%eax
cmp    $0x1a,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @ft_isalpha(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 65
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 90
br i1 %9, label %20, label %10
10: ; preds = %6, %1
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 97
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 122
br label %18
18: ; preds = %14, %10
%19 = phi i1 [ false, %10 ], [ %17, %14 ]
br label %20
20: ; preds = %18, %6
%21 = phi i1 [ true, %6 ], [ %19, %18 ]
%22 = zext i1 %21 to i32
ret i32 %22
}

LLVM IR (-O2):
define i32 @ft_isalpha(i8 signext %0) {
%2 = and i8 %0, -33
%3 = add i8 %2, -65
%4 = icmp ult i8 %3, 26
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
char *tmpnam(char *);
char *mktemp(char *s) { return (tmpnam(s)); }


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

x86 assembly (clang, -O2):
<mktemp>:
jmp    1030 <tmpnam@plt>

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

LLVM IR (-O2):
define i8* @mktemp(i8* %0) {
%2 = tail call i8* @tmpnam(i8* %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ minprintf(char *, int, int, int, int, int, char *, double);
int main() {
  minprintf("%%, %d, %o, %x, %u, %c, %s, %f\n", 63, 63, 63, 63, 63, "abc",
            63.0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x3f,%r9d
lea    0xef5(%rip),%rax
movsd  0xec5(%rip),%xmm0
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %rax,(%rsp)
call   1030 <minprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf10(%rip),%rax
mov    %rax,(%rsp)
lea    0xee5(%rip),%rdi
movsd  0xed5(%rip),%xmm0
mov    $0x3f,%esi
mov    $0x3f,%edx
mov    $0x3f,%ecx
mov    $0x3f,%r8d
mov    $0x3f,%r9d
call   1030 <minprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [32 x i8] c"%%, %d, %o, %x, %u, %c, %s, %f\0A\00"
@.str.1 = [4 x i8] c"abc\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @minprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 63, i32 63, i32 63, i32 63, i32 63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double 6.300000e+01)
ret i32 0
}

LLVM IR (-O2):
@.str = [32 x i8] c"%%, %d, %o, %x, %u, %c, %s, %f\0A\00"
@.str.1 = [4 x i8] c"abc\00"
define i32 @main() {
%1 = tail call i32 @minprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 63, i32 63, i32 63, i32 63, i32 63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double 6.300000e+01)
ret i32 0
}
float __floatsisf(int i __attribute__((unused))) { return 0.0; }


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

x86 assembly (clang, -O2):
<__floatsisf>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @__floatsisf(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret float 0.000000e+00
}

LLVM IR (-O2):
define float @__floatsisf(i32 %0) {
ret float 0.000000e+00
}
unsigned int RSHash(unsigned char *str) {
  unsigned int b = 378551;
  unsigned int a = 63689;
  unsigned int hash = 0;
  int c;
  while ((c = *str++)) {
    hash = hash * a + c;
    a = a * b;
  }
  return (hash & 0x7FFFFFFF);
}


x86 assembly (clang, -O0):
<RSHash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x5c6b7,-0xc(%rbp)
movl   $0xf8c9,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movzbl (%rax),%eax
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
je     1157 <RSHash+0x57>
mov    -0x14(%rbp),%eax
imul   -0x10(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    111d <RSHash+0x1d>
mov    -0x14(%rbp),%eax
and    $0x7fffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<RSHash>:
mov    (%rdi),%cl
test   %cl,%cl
je     113f <RSHash+0x3f>
add    $0x1,%rdi
mov    $0xf8c9,%edx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl %cl,%ecx
imul   %edx,%eax
add    %ecx,%eax
imul   $0x5c6b7,%edx,%edx
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1120 <RSHash+0x20>
and    $0x7fffffff,%eax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @RSHash(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %18, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %14, %4 ], [ %2, %1 ]
%6 = phi i8* [ %10, %4 ], [ %0, %1 ]
%7 = phi i32 [ %12, %4 ], [ 0, %1 ]
%8 = phi i32 [ %13, %4 ], [ 63689, %1 ]
%9 = zext i8 %5 to i32
%10 = getelementptr inbounds i8, i8* %6, i64 1
%11 = mul i32 %7, %8
%12 = add i32 %11, %9
%13 = mul i32 %8, 378551
%14 = load i8, i8* %10
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %4
16: ; preds = %4
%17 = and i32 %12, 2147483647
br label %18
18: ; preds = %16, %1
%19 = phi i32 [ 0, %1 ], [ %17, %16 ]
ret i32 %19
}
/* Variables and functions */
int /*<<< orphan*/ mstrout(char *, int /*<<< orphan*/);
int /*<<< orphan*/ purgeline();
void canit() {
  static char canistr[] = {24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 8,
                           8,  8,  8,  8,  8,  8,  8,  8,  8,  0};
  mstrout(canistr, 0);
  purgeline();
}


x86 assembly (clang, -O0):
<canit>:
push   %rbp
mov    %rsp,%rbp
lea    0x2f15(%rip),%rdi
xor    %esi,%esi
call   1040 <mstrout@plt>
mov    $0x0,%al
call   1030 <purgeline@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<canit>:
push   %rax
lea    0x2f18(%rip),%rdi
xor    %esi,%esi
call   1040 <mstrout@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <purgeline@plt>

LLVM IR (-O0):
@canit.canistr = internal global [21 x i8] c"\18\18\18\18\18\18\18\18\18\18\08\08\08\08\08\08\08\08\08\08\00"
define void @canit() {
%1 = call i32 @mstrout(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @canit.canistr, i64 0, i64 0), i32 0)
%2 = call i32 (...) @purgeline()
ret void
}

LLVM IR (-O2):
@canit.canistr = internal global [21 x i8] c"\18\18\18\18\18\18\18\18\18\18\08\08\08\08\08\08\08\08\08\08\00"
define void @canit() {
%1 = tail call i32 @mstrout(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @canit.canistr, i64 0, i64 0), i32 0)
%2 = tail call i32 (...) @purgeline()
ret void
}
void command_add(void) {
  printf("%s, %s, %d\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/sczzq/symmetrical-spoon/refs/heads/master/"
         "base-usage/make_study/command.c",
         __func__, 14);
  cadd();
}


x86 assembly (clang, -O0):
<command_add>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xeda(%rip),%rsi
lea    0xf77(%rip),%rdx
mov    $0xe,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <cadd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<command_add>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xedd(%rip),%rsi
lea    0xf7a(%rip),%rdx
mov    $0xe,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <cadd@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"%s, %s, %d\0A\00"
@.str.1 = [164 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sczzq/symmetrical-spoon/refs/heads/master/base-usage/make_study/command.c\00"
@__func__.command_add = [12 x i8] c"command_add\00"
define void @command_add() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([164 x i8], [164 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @__func__.command_add, i64 0, i64 0), i32 14)
%2 = call i32 (...) @cadd()
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s, %s, %d\0A\00"
@.str.1 = [164 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sczzq/symmetrical-spoon/refs/heads/master/base-usage/make_study/command.c\00"
@__func__.command_add = [12 x i8] c"command_add\00"
define void @command_add() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([164 x i8], [164 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @__func__.command_add, i64 0, i64 0), i32 14)
%2 = tail call i32 (...) @cadd()
ret void
}
/* Variables and functions */
int strcmp(char *, char *);
int hpstate_postagcmp(char *a, char *b) {
  if ((a == 0) || (b == 0)) {
    return (0);
  }
  return (strcmp(a, b));
}


x86 assembly (clang, -O0):
<hpstate_postagcmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1136 <hpstate_postagcmp+0x26>
cmpq   $0x0,-0x18(%rbp)
jne    1142 <hpstate_postagcmp+0x32>
movl   $0x0,-0x4(%rbp)
jmp    1152 <hpstate_postagcmp+0x42>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hpstate_postagcmp>:
test   %rdi,%rdi
je     111f <hpstate_postagcmp+0xf>
test   %rsi,%rsi
je     111f <hpstate_postagcmp+0xf>
jmp    1030 <strcmp@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @hpstate_postagcmp(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
%4 = icmp eq i8* %1, null
%5 = or i1 %3, %4
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
br label %8
8: ; preds = %2, %6
%9 = phi i32 [ %7, %6 ], [ 0, %2 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ use(int *);
int foo() {
  int x;
  use(&x);
  return x;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
call   1030 <use@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %rax
lea    0x4(%rsp),%rdi
call   1030 <use@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @foo() {
%1 = alloca i32
%2 = call i32 @use(i32* %1)
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @foo() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @use(i32* %1)
%4 = load i32, i32* %1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *del_param(char *buffer) {
  if (buffer != NULL)
    free(buffer);
  return NULL;
}


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

x86 assembly (clang, -O2):
<del_param>:
test   %rdi,%rdi
je     111f <del_param+0xf>
push   %rax
call   1030 <free@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

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

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

/* Variables and functions */
int /*<<< orphan*/ _mm_cmpgt_sd(int /*<<< orphan*/, int /*<<< orphan*/);
__m128d test_mm_cmpgt_sd(__m128d A, __m128d B) { return _mm_cmpgt_sd(A, B); }


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

x86 assembly (clang, -O2):
<test_mm_cmpgt_sd>:
jmp    1030 <_mm_cmpgt_sd@plt>

LLVM IR (-O0):
define i32 @test_mm_cmpgt_sd(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 = call i32 @_mm_cmpgt_sd(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test_mm_cmpgt_sd(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_cmpgt_sd(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ lprintf(int, char *);
int tio_set_rs232_lines(int fd, int do_dtr, int do_rts) {
  int mctl, rc = 0;
  lprintf(3, "setting of RS232 lines not supported");
  return rc;
}


x86 assembly (clang, -O0):
<tio_set_rs232_lines>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x3,%edi
lea    0xecc(%rip),%rsi
call   1030 <lprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tio_set_rs232_lines>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x3,%edi
call   1030 <lprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [37 x i8] c"setting of RS232 lines not supported\00"
define i32 @tio_set_rs232_lines(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %8
%9 = call i32 @lprintf(i32 3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %8
ret i32 %10
}

LLVM IR (-O2):
@.str = [37 x i8] c"setting of RS232 lines not supported\00"
define i32 @tio_set_rs232_lines(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @lprintf(i32 3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
int fun1282() { return 1282; }


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

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

LLVM IR (-O0):
define i32 @fun1282() {
ret i32 1282
}

LLVM IR (-O2):
define i32 @fun1282() {
ret i32 1282
}
/* Variables and functions */
int strtol(char *, int /*<<< orphan*/ *, int);
int econfig_getInt(char *value) { return strtol(value, NULL, 10); }


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

x86 assembly (clang, -O2):
<econfig_getInt>:
xor    %esi,%esi
mov    $0xa,%edx
jmp    1030 <strtol@plt>

LLVM IR (-O0):
define i32 @econfig_getInt(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strtol(i8* %3, i32* null, i32 10)
ret i32 %4
}

LLVM IR (-O2):
define i32 @econfig_getInt(i8* nocapture %0) {
%2 = tail call i32 @strtol(i8* nocapture %0, i32* null, i32 10)
ret i32 %2
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ nios_pkt_8x16_unpack(int const *, int *, int *, int *,
                                        int /*<<< orphan*/ *);
void nios_pkt_8x16_resp_unpack(const uint8_t *buf, uint8_t *target, bool *write,
                               uint8_t *addr, uint16_t *data, bool *success) {
  nios_pkt_8x16_unpack(buf, target, write, addr, data);
  if ((buf[2] & (1 << 1)) != 0) {
    *success = true;
  } else {
    *success = false;
  }
}


x86 assembly (clang, -O0):
<nios_pkt_8x16_resp_unpack>:
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    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <nios_pkt_8x16_unpack@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     116b <nios_pkt_8x16_resp_unpack+0x5b>
mov    -0x30(%rbp),%rax
movl   $0x1,(%rax)
jmp    1175 <nios_pkt_8x16_resp_unpack+0x65>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nios_pkt_8x16_resp_unpack>:
push   %r14
push   %rbx
push   %rax
mov    %r9,%r14
mov    %rdi,%rbx
call   1030 <nios_pkt_8x16_unpack@plt>
mov    0x8(%rbx),%eax
shr    %eax
and    $0x1,%eax
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @nios_pkt_8x16_resp_unpack(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* nocapture writeonly %5) {
%7 = tail call i32 @nios_pkt_8x16_unpack(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4)
%8 = getelementptr inbounds i32, i32* %0, i64 2
%9 = load i32, i32* %8
%10 = lshr i32 %9, 1
%11 = and i32 %10, 1
store i32 %11, i32* %5
ret void
}
unsigned int is_VOLUME_VL(const unsigned int indexgVOLUME,
                          const unsigned int indexgVL) {
  if (indexgVOLUME == indexgVL)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<is_VOLUME_VL>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1122 <is_VOLUME_VL+0x22>
movl   $0x1,-0x4(%rbp)
jmp    1129 <is_VOLUME_VL+0x29>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @is_VOLUME_VL(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
int execute_pread64() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @execute_pread64() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _usage(void) {
  fputs("Usage: "
        "ln"
        " [-fs] source_file target_file\n       "
        "ln"
        " [-fs] source_file ... target_dir\n  -f	Force existing "
        "destination pathnames to be removed\n  -s	Create symbolic links "
        "instead of hard links\n",
        stderr);
  return 1;
}


x86 assembly (clang, -O0):
<_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_usage>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [189 x i8] c"Usage: ln [-fs] source_file target_file\0A ln [-fs] source_file ... target_dir\0A -f\09Force existing destination pathnames to be removed\0A -s\09Create symbolic links instead of hard links\0A\00"
@stderr = global i32 0
define i32 @_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([189 x i8], [189 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}

LLVM IR (-O2):
@.str = [189 x i8] c"Usage: ln [-fs] source_file target_file\0A ln [-fs] source_file ... target_dir\0A -f\09Force existing destination pathnames to be removed\0A -s\09Create symbolic links instead of hard links\0A\00"
@stderr = global i32 0
define i32 @_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([189 x i8], [189 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}
/* Variables and functions */
unsigned long ERR_get_error();
int /*<<< orphan*/ sslerror_log(unsigned long, char *);
void sslerror_queue(void) {
  unsigned long err;
  err = ERR_get_error();
  if (err) {
    sslerror_queue();
    sslerror_log(err, "error queue");
  }
}


x86 assembly (clang, -O0):
<sslerror_queue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <ERR_get_error@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1163 <sslerror_queue+0x33>
call   1030 <sslerror_queue@plt>
mov    -0x8(%rbp),%rdi
lea    0xea2(%rip),%rsi
call   1050 <sslerror_log@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sslerror_queue>:
push   %rbx
xor    %eax,%eax
call   1040 <ERR_get_error@plt>
test   %rax,%rax
je     1155 <sslerror_queue+0x25>
mov    %rax,%rbx
call   1030 <sslerror_queue@plt>
lea    0xeb4(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1050 <sslerror_log@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"error queue\00"
define void @sslerror_queue() {
%1 = alloca i64
%2 = call i64 (...) @ERR_get_error()
store i64 %2, i64* %1
%3 = load i64, i64* %1
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = load i64, i64* %1
%7 = call i32 @sslerror_log(i64 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %5, %0
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"error queue\00"
define void @sslerror_queue() {
%1 = tail call i64 (...) @ERR_get_error()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %4
3: ; preds = %0, %4
ret void
4: ; preds = %0
tail call void @sslerror_queue()
%5 = tail call i32 @sslerror_log(i64 %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %3
}
double do_pow_0_75_nosqrt(double a) { return __builtin_pow(a, 0.75); }


x86 assembly (clang, -O0):
<do_pow_0_75_nosqrt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
call   1030 <pow@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_pow_0_75_nosqrt>:
movsd  0xee8(%rip),%xmm1
jmp    1030 <pow@plt>

LLVM IR (-O0):
define double @do_pow_0_75_nosqrt(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @pow(double %3, double 7.500000e-01)
ret double %4
}

LLVM IR (-O2):
define double @do_pow_0_75_nosqrt(double %0) {
%2 = tail call double @pow(double %0, double 7.500000e-01)
ret double %2
}
/* Variables and functions */
int CHAR_BIT;
int bit_population_count(unsigned int);
unsigned int bit_propagate_ones_towards_right(unsigned int);
int bit_num_leading_zeros2(unsigned int n) {
  n = bit_propagate_ones_towards_right(n);
  return ((CHAR_BIT * sizeof(unsigned int)) - bit_population_count(n));
}


x86 assembly (clang, -O0):
<bit_num_leading_zeros2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <bit_propagate_ones_towards_right@plt>
mov    %eax,-0x4(%rbp)
mov    0x2ea3(%rip),%rax
movslq (%rax),%rax
shl    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <bit_population_count@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
sub    %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bit_num_leading_zeros2>:
push   %rbx
call   1040 <bit_propagate_ones_towards_right@plt>
mov    0x2eb3(%rip),%rcx
mov    (%rcx),%ebx
shl    $0x2,%ebx
mov    %eax,%edi
call   1030 <bit_population_count@plt>
sub    %eax,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@CHAR_BIT = global i32 0
define i32 @bit_num_leading_zeros2(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @bit_propagate_ones_towards_right(i32 %3)
store i32 %4, i32* %2
%5 = load i32, i32* @CHAR_BIT
%6 = sext i32 %5 to i64
%7 = mul i64 %6, 4
%8 = load i32, i32* %2
%9 = call i32 @bit_population_count(i32 %8)
%10 = sext i32 %9 to i64
%11 = sub i64 %7, %10
%12 = trunc i64 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
@CHAR_BIT = global i32 0
define i32 @bit_num_leading_zeros2(i32 %0) {
%2 = tail call i32 @bit_propagate_ones_towards_right(i32 %0)
%3 = load i32, i32* @CHAR_BIT
%4 = shl i32 %3, 2
%5 = tail call i32 @bit_population_count(i32 %2)
%6 = sub i32 %4, %5
ret i32 %6
}
/* Type definitions */
struct node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ dispose_node(struct node *);
void tree_dispose(struct node *node) { dispose_node(node); }


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

x86 assembly (clang, -O2):
<tree_dispose>:
jmp    1030 <dispose_node@plt>

LLVM IR (-O0):
%struct.node = type { i32 }
define void @tree_dispose(%struct.node* %0) {
%2 = alloca %struct.node*
store %struct.node* %0, %struct.node** %2
%3 = load %struct.node*, %struct.node** %2
%4 = call i32 @dispose_node(%struct.node* %3)
ret void
}

LLVM IR (-O2):
%struct.node = type { i32 }
define void @tree_dispose(%struct.node* %0) {
%2 = tail call i32 @dispose_node(%struct.node* %0)
ret void
}
__attribute__((always_)) int ggg() {
  asm("ggg_label: .globl ggg_label");
  return hhh() + 1;
}


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

x86 assembly (clang, -O2):
<ggg>:
push   %rax

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

LLVM IR (-O2):
define i32 @ggg() {
tail call void asm sideeffect "ggg_label: .globl ggg_label", "~{dirflag},~{fpsr},~{flags}"()
%1 = tail call i32 (...) @hhh()
%2 = add nsw i32 %1, 1
ret i32 %2
}
void g_key_file_set_value() {}


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

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

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

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