xunge/DecIR huggingface dataset:
const char *__malidrv_build_info(void) {
  return "malidrv:  API_VERSION=401 REPO_URL=heads/develop-3.10-next "
         "REVISION=r4p0-00rel0-lsk-android-14.05-18365-g3172295 "
         "CHANGED_REVISION=lsk-android-14.05-18365-g3172295 "
         "CHANGE_DATE=2014-06-26 20:38:04 +0800 BUILD_DATE=2014年 06月 30日 "
         "星期一 12:43:13 CST BUILD=debug TARGET_PLATFORM=rk30 MALI_PLATFORM= "
         "KDIR= OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=16 USING_UMP=y "
         "USING_PROFILING= USING_INTERNAL_PROFILING= USING_GPU_UTILIZATION=1 "
         "USING_POWER_PERFORMANCE_POLICY= MALI_UPPER_HALF_SCHEDULING=1";
}


x86 assembly (clang, -O0):
<__malidrv_build_info>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__malidrv_build_info>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [487 x i8] c"malidrv: API_VERSION=401 REPO_URL=heads/develop-3.10-next REVISION=r4p0-00rel0-lsk-android-14.05-18365-g3172295 CHANGED_REVISION=lsk-android-14.05-18365-g3172295 CHANGE_DATE=2014-06-26 20:38:04 +0800 BUILD_DATE=2014\E5\B9\B4 06\E6\9C\88 30\E6\97\A5 \E6\98\9F\E6\9C\9F\E4\B8\80 12:43:13 CST BUILD=debug TARGET_PLATFORM=rk30 MALI_PLATFORM= KDIR= OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=16 USING_UMP=y USING_PROFILING= USING_INTERNAL_PROFILING= USING_GPU_UTILIZATION=1 USING_POWER_PERFORMANCE_POLICY= MALI_UPPER_HALF_SCHEDULING=1\00"
define i8* @__malidrv_build_info() {
ret i8* getelementptr inbounds ([487 x i8], [487 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [487 x i8] c"malidrv: API_VERSION=401 REPO_URL=heads/develop-3.10-next REVISION=r4p0-00rel0-lsk-android-14.05-18365-g3172295 CHANGED_REVISION=lsk-android-14.05-18365-g3172295 CHANGE_DATE=2014-06-26 20:38:04 +0800 BUILD_DATE=2014\E5\B9\B4 06\E6\9C\88 30\E6\97\A5 \E6\98\9F\E6\9C\9F\E4\B8\80 12:43:13 CST BUILD=debug TARGET_PLATFORM=rk30 MALI_PLATFORM= KDIR= OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=16 USING_UMP=y USING_PROFILING= USING_INTERNAL_PROFILING= USING_GPU_UTILIZATION=1 USING_POWER_PERFORMANCE_POLICY= MALI_UPPER_HALF_SCHEDULING=1\00"
define i8* @__malidrv_build_info() {
ret i8* getelementptr inbounds ([487 x i8], [487 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef scalar_t__ uint64_t;

/* Variables and functions */
uint64_t multimap_maxU64(uint64_t a, uint64_t b) { return a > b ? a : b; }


x86 assembly (clang, -O0):
<multimap_maxU64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jle    1127 <multimap_maxU64+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <multimap_maxU64+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<multimap_maxU64>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovg  %rdi,%rax
ret

LLVM IR (-O0):
define i64 @multimap_maxU64(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp sgt i64 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i64, i64* %3
br label %12
10: ; preds = %2
%11 = load i64, i64* %4
br label %12
12: ; preds = %10, %8
%13 = phi i64 [ %9, %8 ], [ %11, %10 ]
ret i64 %13
}

LLVM IR (-O2):
define i64 @multimap_maxU64(i64 %0, i64 %1) {
%3 = icmp sgt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int num = 0;
  for (printf("Keep entering numbers!\n"); num != 6;)
    scanf("%d", &num);
  printf("That's the one I want!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
je     1161 <main+0x41>
lea    0xec5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
jmp    1142 <main+0x22>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
lea    0xec1(%rip),%r14
lea    0x4(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmpl   $0x6,0x4(%rsp)
jne    1150 <main+0x30>
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Keep entering numbers!\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [24 x i8] c"That's the one I want!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %7, %0
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 6
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
br label %4
9: ; preds = %4
%10 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [23 x i8] c"Keep entering numbers!\00"
@str.3 = [23 x i8] c"That's the one I want!\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
br label %4
4: ; preds = %0, %4
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp eq i32 %6, 6
br i1 %7, label %8, label %4
8: ; preds = %4
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.3, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ halt();
int f21() {
  int x = 4;
  x = x + 1;
  if (1) {
    halt();
    (void)x;
  }
  return 1;
}


x86 assembly (clang, -O0):
<f21>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x4,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <halt@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @f21() {
%1 = alloca i32
store i32 4, i32* %1
%2 = load i32, i32* %1
%3 = add nsw i32 %2, 1
store i32 %3, i32* %1
%4 = call i32 (...) @halt()
%5 = load i32, i32* %1
ret i32 1
}

LLVM IR (-O2):
define i32 @f21() {
%1 = tail call i32 (...) @halt()
ret i32 1
}
int mlx5_accel_ipsec_init(struct mlx5_core_dev *mdev) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.mlx5_core_dev = type opaque
define i32 @mlx5_accel_ipsec_init(%struct.mlx5_core_dev* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int num;
  scanf("%d", &num);
  printf("%d", num ^ 8);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%esi
xor    $0x8,%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%esi
xor    $0x8,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = xor i32 %4, 8
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
scalar_t__ mcp23018_init();
scalar_t__ teensy_init();
uint8_t kb_init(void) {
  if (teensy_init())
    return 1;
  if (mcp23018_init())
    return 2;
  return 0;
}


x86 assembly (clang, -O0):
<kb_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <teensy_init@plt>
cmp    $0x0,%rax
je     1145 <kb_init+0x25>
movl   $0x1,-0x4(%rbp)
jmp    1169 <kb_init+0x49>
mov    $0x0,%al
call   1030 <mcp23018_init@plt>
cmp    $0x0,%rax
je     1162 <kb_init+0x42>
movl   $0x2,-0x4(%rbp)
jmp    1169 <kb_init+0x49>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kb_init>:
push   %rax
xor    %eax,%eax
call   1040 <teensy_init@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1137 <kb_init+0x17>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <mcp23018_init@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
add    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @kb_init() {
%1 = tail call i64 (...) @teensy_init()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i64 (...) @mcp23018_init()
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i32 0, i32 2
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ 1, %0 ], [ %6, %3 ]
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ wint_t;
typedef scalar_t__ wchar_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
wint_t fputwc(wchar_t wc, FILE *stream) {
  return (wint_t)fputc((char)wc, stream);
}


x86 assembly (clang, -O0):
<fputwc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rsi
movsbl %al,%edi
call   1030 <fputc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fputwc>:
movsbl %dil,%edi
jmp    1030 <fputc@plt>

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

LLVM IR (-O2):
define i32 @fputwc(i64 %0, i32* nocapture %1) {
%3 = trunc i64 %0 to i8
%4 = tail call i32 @fputc(i8 signext %3, i32* %1)
ret i32 %4
}
void CharToHex(unsigned char c, char *hexBuf) {
  const char *hexchar = "0123456789ABCDEF";
  hexBuf[0] = hexchar[c >> 4];
  hexBuf[1] = hexchar[c & 0x0F];
}


x86 assembly (clang, -O0):
<CharToHex>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeeb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movzbl -0x1(%rbp),%ecx
sar    $0x4,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
movzbl -0x1(%rbp),%ecx
and    $0xf,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x1(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<CharToHex>:
mov    %edi,%eax
mov    %rax,%rcx
shr    $0x4,%rcx
lea    0xef0(%rip),%rdx
mov    (%rcx,%rdx,1),%cl
mov    %cl,(%rsi)
and    $0xf,%eax
mov    (%rax,%rdx,1),%al
mov    %al,0x1(%rsi)
ret

LLVM IR (-O0):
@.str = [17 x i8] c"0123456789ABCDEF\00"
define void @CharToHex(i8 zeroext %0, i8* %1) {
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i8*
store i8 %0, i8* %3
store i8* %1, i8** %4
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8** %5
%6 = load i8*, i8** %5
%7 = load i8, i8* %3
%8 = zext i8 %7 to i32
%9 = ashr i32 %8, 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, i8* %6, i64 %10
%12 = load i8, i8* %11
%13 = load i8*, i8** %4
%14 = getelementptr inbounds i8, i8* %13, i64 0
store i8 %12, i8* %14
%15 = load i8*, i8** %5
%16 = load i8, i8* %3
%17 = zext i8 %16 to i32
%18 = and i32 %17, 15
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %15, i64 %19
%21 = load i8, i8* %20
%22 = load i8*, i8** %4
%23 = getelementptr inbounds i8, i8* %22, i64 1
store i8 %21, i8* %23
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"0123456789ABCDEF\00"
define void @CharToHex(i8 zeroext %0, i8* nocapture writeonly %1) {
%3 = zext i8 %0 to i32
%4 = lshr i32 %3, 4
%5 = zext i32 %4 to i64
%6 = getelementptr inbounds [17 x i8], [17 x i8]* @.str, i64 0, i64 %5
%7 = load i8, i8* %6
store i8 %7, i8* %1
%8 = and i32 %3, 15
%9 = zext i32 %8 to i64
%10 = getelementptr inbounds [17 x i8], [17 x i8]* @.str, i64 0, i64 %9
%11 = load i8, i8* %10
%12 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %11, i8* %12
ret void
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x;
  int y;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  while (x > y) {
    x = x + 1;
    y = y + 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1156 <main+0x46>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <main+0x23>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, i32* %2
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
br label %6
6: ; preds = %10, %0
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 2
store i32 %14, i32* %3
br label %6
15: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ glutPostRedisplay();
void stroke_keyboard(unsigned char key, int x, int y) {
  switch (key) {
  case ' ':
    glutPostRedisplay();
    break;
  case 27:
    exit(0);
    break;
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<stroke_keyboard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movzbl -0x1(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x1b,%eax
je     1166 <stroke_keyboard+0x46>
jmp    1149 <stroke_keyboard+0x29>
mov    -0x10(%rbp),%eax
sub    $0x20,%eax
jne    116d <stroke_keyboard+0x4d>
jmp    115a <stroke_keyboard+0x3a>
mov    $0x0,%al
call   1030 <glutPostRedisplay@plt>
jmp    1172 <stroke_keyboard+0x52>
xor    %edi,%edi
call   1040 <exit@plt>
jmp    1172 <stroke_keyboard+0x52>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stroke_keyboard>:
cmp    $0x20,%dil
je     112d <stroke_keyboard+0xd>
cmp    $0x1b,%dil
je     1134 <stroke_keyboard+0x14>
ret
xor    %eax,%eax
jmp    1030 <glutPostRedisplay@plt>
push   %rax
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @stroke_keyboard(i8 zeroext %0, i32 %1, i32 %2) {
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
store i8 %0, i8* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
switch i32 %8, label %13 [
i32 32, label %9
i32 27, label %11
]
9: ; preds = %3
%10 = call i32 (...) @glutPostRedisplay()
br label %14
11: ; preds = %3
%12 = call i32 @exit(i32 0)
unreachable
13: ; preds = %3
br label %14
14: ; preds = %13, %9
ret void
}

LLVM IR (-O2):
define void @stroke_keyboard(i8 zeroext %0, i32 %1, i32 %2) {
switch i8 %0, label %8 [
i8 32, label %4
i8 27, label %6
]
4: ; preds = %3
%5 = tail call i32 (...) @glutPostRedisplay()
br label %8
6: ; preds = %3
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %3, %4
ret void
}
/* Variables and functions */
scalar_t__ strtol(char const *, char **, int);
unsigned long long strtoull(const char *__restrict nptr,
                            char **__restrict endptr, int base) {
  return (unsigned long long)strtol(nptr, endptr, base);
}


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

x86 assembly (clang, -O2):
<strtoull>:
jmp    1030 <strtol@plt>

LLVM IR (-O0):
define i64 @strtoull(i8* noalias %0, i8** noalias %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
%7 = load i8*, i8** %4
%8 = load i8**, i8*** %5
%9 = load i32, i32* %6
%10 = call i64 @strtol(i8* %7, i8** %8, i32 %9)
ret i64 %10
}

LLVM IR (-O2):
define i64 @strtoull(i8* noalias %0, i8** noalias nocapture %1, i32 %2) {
%4 = tail call i64 @strtol(i8* %0, i8** %1, i32 %2)
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ check(int, int);
scalar_t__ strcmp(char const *, char const *);
void equal(const char *a, const char *b, int number) {
  check(a != NULL && b != NULL && (strcmp((a), (b)) == 0), number);
}


x86 assembly (clang, -O0):
<equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x8(%rbp)
mov    %al,-0x15(%rbp)
je     116a <equal+0x4a>
xor    %eax,%eax
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x15(%rbp)
je     116a <equal+0x4a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    -0x14(%rbp),%esi
call   1040 <check@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<equal>:
push   %rbx
mov    %edx,%ebx
mov    %rdi,%rax
xor    %edi,%edi
test   %rax,%rax
je     1143 <equal+0x23>
test   %rsi,%rsi
je     1143 <equal+0x23>
mov    %rax,%rdi
call   1030 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
mov    %ebx,%esi
pop    %rbx
jmp    1040 <check@plt>

LLVM IR (-O0):
define void @equal(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
%7 = load i8*, i8** %4
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %17
9: ; preds = %3
%10 = load i8*, i8** %5
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i8*, i8** %4
%14 = load i8*, i8** %5
%15 = call i64 @strcmp(i8* %13, i8* %14)
%16 = icmp eq i64 %15, 0
br label %17
17: ; preds = %12, %9, %3
%18 = phi i1 [ false, %9 ], [ false, %3 ], [ %16, %12 ]
%19 = zext i1 %18 to i32
%20 = load i32, i32* %6
%21 = call i32 @check(i32 %19, i32 %20)
ret void
}

LLVM IR (-O2):
define void @equal(i8* %0, i8* %1, i32 %2) {
%4 = icmp ne i8* %0, null
%5 = icmp ne i8* %1, null
%6 = and i1 %4, %5
br i1 %6, label %7, label %11
7: ; preds = %3
%8 = tail call i64 @strcmp(i8* %0, i8* %1)
%9 = icmp eq i64 %8, 0
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %7, %3
%12 = phi i32 [ 0, %3 ], [ %10, %7 ]
%13 = tail call i32 @check(i32 %12, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ log_err(int, char *, ...);
void log_err_read(char *fname) {
  if (fname != NULL)
    log_err(1, "Could not read from %s", fname);
  else
    log_err(1, "Could not read input.");
}


x86 assembly (clang, -O0):
<log_err_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1143 <log_err_read+0x33>
mov    -0x8(%rbp),%rdx
mov    $0x1,%edi
lea    0xec9(%rip),%rsi
mov    $0x0,%al
call   1030 <log_err@plt>
jmp    1156 <log_err_read+0x46>
mov    $0x1,%edi
lea    0xec8(%rip),%rsi
mov    $0x0,%al
call   1030 <log_err@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_err_read>:
test   %rdi,%rdi
je     112b <log_err_read+0x1b>
mov    %rdi,%rdx
lea    0xee1(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
jmp    1030 <log_err@plt>
lea    0xee5(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
jmp    1030 <log_err@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Could not read from %s\00"
@.str.1 = [22 x i8] c"Could not read input.\00"
define void @log_err_read(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 (i32, i8*, ...) @log_err(i32 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %10
8: ; preds = %1
%9 = call i32 (i32, i8*, ...) @log_err(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Could not read from %s\00"
@.str.1 = [22 x i8] c"Could not read input.\00"
define void @log_err_read(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (i32, i8*, ...) @log_err(i32 1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %7
5: ; preds = %1
%6 = tail call i32 (i32, i8*, ...) @log_err(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %5, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ func(int);
int __attribute__((no)) call1(int a) {
  func(a);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @call1(i32 %0) {
%2 = tail call i32 @func(i32 %0)
ret i32 0
}
/* Variables and functions */
void *realloc(void *, int);
void *speex_realloc(void *ptr, int oldcount, int newcount, int size) {
  if (newcount * size < 4096) {
    return ptr;
  }
  return realloc(ptr, newcount * size);
}


x86 assembly (clang, -O0):
<speex_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
cmp    $0x1000,%eax
jge    1144 <speex_realloc+0x34>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1158 <speex_realloc+0x48>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
imul   -0x1c(%rbp),%esi
call   1030 <realloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<speex_realloc>:
imul   %ecx,%edx
cmp    $0x1000,%edx
jge    111f <speex_realloc+0xf>
mov    %rdi,%rax
ret
mov    %edx,%esi
jmp    1030 <realloc@plt>

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

LLVM IR (-O2):
define i8* @speex_realloc(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = mul nsw i32 %3, %2
%6 = icmp slt i32 %5, 4096
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i8* @realloc(i8* %0, i32 %5)
br label %9
9: ; preds = %4, %7
%10 = phi i8* [ %8, %7 ], [ %0, %4 ]
ret i8* %10
}
/* Variables and functions */
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
void strncat_no_overflow_2(char *y) {
  char x[4] = "12";
  if (strlen(y) == 4)
    strncat(x, y, 1);
}


x86 assembly (clang, -O0):
<strncat_no_overflow_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0xece(%rip),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x4,%eax
jne    1159 <strncat_no_overflow_2+0x39>
lea    -0xc(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x1,%edx
call   1040 <strncat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strncat_no_overflow_2>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movl   $0x3231,0xc(%rsp)
call   1030 <strlen@plt>
cmp    $0x4,%eax
jne    114c <strncat_no_overflow_2+0x2c>
lea    0xc(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
call   1040 <strncat@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.strncat_no_overflow_2.x = [4 x i8] c"12\00\00"
define void @strncat_no_overflow_2(i8* %0) {
%2 = alloca i8*
%3 = alloca [4 x i8]
store i8* %0, i8** %2
%4 = bitcast [4 x i8]* %3 to i8*
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = icmp eq i32 %6, 4
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%10 = load i8*, i8** %2
%11 = call i32 @strncat(i8* %9, i8* %10, i32 1)
br label %12
12: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
define void @strncat_no_overflow_2(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 12849, i32* %2
%4 = tail call i32 @strlen(i8* %0)
%5 = icmp eq i32 %4, 4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @strncat(i8* %3, i8* %0, i32 1)
br label %8
8: ; preds = %6, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ copy_arguments(char **, int, char **);
int /*<<< orphan*/ start_process(char **);
void start_child(char *name, int argc, char *argv[]) {
  char *arguments[8] = {name};
  copy_arguments(arguments, argc, argv);
  start_process(arguments);
}


x86 assembly (clang, -O0):
<start_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1030 <memset@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x60(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1050 <copy_arguments@plt>
lea    -0x60(%rbp),%rdi
call   1040 <start_process@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start_child>:
push   %rbx
sub    $0x40,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
mov    %rdi,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <copy_arguments@plt>
mov    %rbx,%rdi
call   1030 <start_process@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @start_child(i8* %0, i32 %1, i8** %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8**
%7 = alloca [8 x i8*]
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%8 = bitcast [8 x i8*]* %7 to i8*
%9 = getelementptr inbounds [8 x i8*], [8 x i8*]* %7, i64 0, i64 0
%10 = load i8*, i8** %4
store i8* %10, i8** %9
%11 = getelementptr inbounds [8 x i8*], [8 x i8*]* %7, i64 0, i64 0
%12 = load i32, i32* %5
%13 = load i8**, i8*** %6
%14 = call i32 @copy_arguments(i8** %11, i32 %12, i8** %13)
%15 = getelementptr inbounds [8 x i8*], [8 x i8*]* %7, i64 0, i64 0
%16 = call i32 @start_process(i8** %15)
ret void
}

LLVM IR (-O2):
define void @start_child(i8* %0, i32 %1, i8** %2) {
%4 = alloca [8 x i8*]
%5 = bitcast [8 x i8*]* %4 to i8*
%6 = getelementptr inbounds [8 x i8*], [8 x i8*]* %4, i64 0, i64 0
store i8* %0, i8** %6
%7 = call i32 @copy_arguments(i8** %6, i32 %1, i8** %2)
%8 = call i32 @start_process(i8** %6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dtoa_milo_c_wrapper(double, char *);
void cstr_loaddouble(char *buffer, double d) {
  buffer[0] = 0;
  dtoa_milo_c_wrapper(d, buffer);
}


x86 assembly (clang, -O0):
<cstr_loaddouble>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rdi
call   1030 <dtoa_milo_c_wrapper@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cstr_loaddouble>:
movb   $0x0,(%rdi)
jmp    1030 <dtoa_milo_c_wrapper@plt>

LLVM IR (-O0):
define void @cstr_loaddouble(i8* %0, double %1) {
%3 = alloca i8*
%4 = alloca double
store i8* %0, i8** %3
store double %1, double* %4
%5 = load i8*, i8** %3
%6 = getelementptr inbounds i8, i8* %5, i64 0
store i8 0, i8* %6
%7 = load double, double* %4
%8 = load i8*, i8** %3
%9 = call i32 @dtoa_milo_c_wrapper(double %7, i8* %8)
ret void
}

LLVM IR (-O2):
define void @cstr_loaddouble(i8* %0, double %1) {
store i8 0, i8* %0
%3 = tail call i32 @dtoa_milo_c_wrapper(double %1, i8* %0)
ret void
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
scalar_t__ readlink(char const *, char *, int);
int32_t mz_os_read_symlink(const char *path, char *target_path,
                           int32_t max_target_path) {
  size_t length = 0;
  length = (size_t)readlink(path, target_path, max_target_path - 1);
  if (length == (size_t)-1)
    return (-107);
  target_path[length] = 0;
  return (0);
}


x86 assembly (clang, -O0):
<mz_os_read_symlink>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
sub    $0x1,%edx
call   1030 <readlink@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0xffffffffffffffff,-0x28(%rbp)
jne    1159 <mz_os_read_symlink+0x49>
movl   $0xffffff95,-0x4(%rbp)
jmp    116c <mz_os_read_symlink+0x5c>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mz_os_read_symlink>:
push   %rbx
mov    %rsi,%rbx
add    $0xffffffff,%edx
call   1030 <readlink@plt>
cmp    $0xffffffffffffffff,%rax
je     112a <mz_os_read_symlink+0x1a>
movb   $0x0,(%rbx,%rax,1)
xor    %eax,%eax
pop    %rbx
ret
mov    $0xffffff95,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @mz_os_read_symlink(i8* nocapture %0, i8* nocapture %1, i32 %2) {
%4 = add nsw i32 %2, -1
%5 = tail call i64 @readlink(i8* %0, i8* %1, i32 %4)
%6 = icmp eq i64 %5, -1
br i1 %6, label %9, label %7
7: ; preds = %3
%8 = getelementptr inbounds i8, i8* %1, i64 %5
store i8 0, i8* %8
br label %9
9: ; preds = %3, %7
%10 = phi i32 [ 0, %7 ], [ -107, %3 ]
ret i32 %10
}
void Msat_ReadWhitespace(char **pIn) {
  while ((**pIn >= 9 && **pIn <= 13) || **pIn == 32)
    (*pIn)++;
}


x86 assembly (clang, -O0):
<Msat_ReadWhitespace>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jl     1133 <Msat_ReadWhitespace+0x33>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x9(%rbp)
jle    1146 <Msat_ReadWhitespace+0x46>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1156 <Msat_ReadWhitespace+0x56>
jmp    1169 <Msat_ReadWhitespace+0x69>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    1108 <Msat_ReadWhitespace+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Msat_ReadWhitespace>:
mov    (%rdi),%rax
jmp    1113 <Msat_ReadWhitespace+0x13>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,(%rdi)
add    $0x1,%rax
movzbl -0x1(%rax),%ecx
lea    -0x9(%rcx),%edx
cmp    $0x5,%dl
jb     1110 <Msat_ReadWhitespace+0x10>
cmp    $0x20,%cl
je     1110 <Msat_ReadWhitespace+0x10>
ret

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

LLVM IR (-O2):
define void @Msat_ReadWhitespace(i8** nocapture %0) {
%2 = load i8*, i8** %0
br label %3
3: ; preds = %6, %1
%4 = phi i8* [ %7, %6 ], [ %2, %1 ]
%5 = load i8, i8* %4
switch i8 %5, label %8 [
i8 32, label %6
i8 13, label %6
i8 12, label %6
i8 11, label %6
i8 10, label %6
i8 9, label %6
]
6: ; preds = %3, %3, %3, %3, %3, %3
%7 = getelementptr inbounds i8, i8* %4, i64 1
store i8* %7, i8** %0
br label %3
8: ; preds = %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_hashmap_new_full() {
  printf("NOT IMPLEMENTED:"
         "pa_hashmap_new_full"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [37 x i8] c"NOT IMPLEMENTED:pa_hashmap_new_full\0A\00"
define i32 @pa_hashmap_new_full() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [36 x i8] c"NOT IMPLEMENTED:pa_hashmap_new_full\00"
define i32 @pa_hashmap_new_full() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
scalar_t__ powf(float, int);
int sqrt(scalar_t__);
float inCirc(float t, float b, float c, float d) {
  return (-c * (sqrt(1 - powf(t / d, 2)) - 1) + b);
}


x86 assembly (clang, -O0):
<inCirc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
divss  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <powf@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1040 <sqrt@plt>
movss  -0x14(%rbp),%xmm0
sub    $0x1,%eax
cvtsi2ss %eax,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inCirc>:
push   %rax
movss  %xmm2,(%rsp)
movss  %xmm1,0x4(%rsp)
divss  %xmm3,%xmm0
mov    $0x2,%edi
call   1030 <powf@plt>
mov    $0x1,%edi
sub    %rax,%rdi
call   1040 <sqrt@plt>
add    $0xffffffff,%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
mulss  (%rsp),%xmm1
movss  0x4(%rsp),%xmm0
subss  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @inCirc(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %7
%10 = fneg float %9
%11 = load float, float* %5
%12 = load float, float* %8
%13 = fdiv float %11, %12
%14 = call i64 @powf(float %13, i32 2)
%15 = sub nsw i64 1, %14
%16 = call i32 @sqrt(i64 %15)
%17 = sub nsw i32 %16, 1
%18 = sitofp i32 %17 to float
%19 = load float, float* %6
%20 = call float @llvm.fmuladd.f32(float %10, float %18, float %19)
ret float %20
}

LLVM IR (-O2):
define float @inCirc(float %0, float %1, float %2, float %3) {
%5 = fneg float %2
%6 = fdiv float %0, %3
%7 = tail call i64 @powf(float %6, i32 2)
%8 = sub nsw i64 1, %7
%9 = tail call i32 @sqrt(i64 %8)
%10 = add nsw i32 %9, -1
%11 = sitofp i32 %10 to float
%12 = tail call float @llvm.fmuladd.f32(float %5, float %11, float %1)
ret float %12
}
void gtk_accel_map_add_filter() {}


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

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

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

LLVM IR (-O2):
define void @gtk_accel_map_add_filter() {
ret void
}
/* Variables and functions */
char *_ui64toa(unsigned long long, char *, int);
char *ulltoa(unsigned long long _n, char *_c, int _i) {
  return _ui64toa(_n, _c, _i);
}


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

x86 assembly (clang, -O2):
<ulltoa>:
jmp    1030 <_ui64toa@plt>

LLVM IR (-O0):
define i8* @ulltoa(i64 %0, i8* %1, i32 %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i32
store i64 %0, i64* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i64, i64* %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i8* @_ui64toa(i64 %7, i8* %8, i32 %9)
ret i8* %10
}

LLVM IR (-O2):
define i8* @ulltoa(i64 %0, i8* %1, i32 %2) {
%4 = tail call i8* @_ui64toa(i64 %0, i8* %1, i32 %2)
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ setcooked();
void quit(int x) {
  setcooked();
  exit(x);
}


x86 assembly (clang, -O0):
<quit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <setcooked@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<quit>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <setcooked@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @quit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @setcooked()
%4 = load i32, i32* %2
%5 = call i32 @exit(i32 %4)
unreachable
}

LLVM IR (-O2):
define void @quit(i32 %0) {
%2 = tail call i32 (...) @setcooked()
%3 = tail call i32 @exit(i32 %0)
unreachable
}
int double2BCD(double val, int dig, int prec, unsigned char bcdBuf[],
               int buflen) {
  return (0);
}


x86 assembly (clang, -O0):
<double2BCD>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @double2BCD(double %0, i32 %1, i32 %2, i8* nocapture readnone %3, i32 %4) {
ret i32 0
}
int f2(int (*f_p)(), int a) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @f2(i32 (...)* nocapture readnone %0, i32 %1) {
ret i32 0
}
/* Type definitions */
typedef int uint64_t;
typedef int uint32_t;

/* Variables and functions */
uint32_t MWC64X_Next(uint64_t *s, uint32_t range) {
  uint32_t x = (*s) & 0xFFFFFFFF;
  uint32_t c = (*s) >> 32;
  *s = (uint64_t)4294883355U * x + c;
  return (x ^ c) % range;
}


x86 assembly (clang, -O0):
<MWC64X_Next>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
and    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    $0x20,%ecx
sar    %cl,%eax
mov    %eax,-0x14(%rbp)
imul   $0xfffeb81b,-0x10(%rbp),%ecx
add    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%eax
xor    -0x14(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @MWC64X_Next(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = and i32 %8, -1
store i32 %9, i32* %5
%10 = load i32*, i32** %3
%11 = load i32, i32* %10
%12 = ashr i32 %11, 32
store i32 %12, i32* %6
%13 = load i32, i32* %5
%14 = mul nsw i32 -83941, %13
%15 = load i32, i32* %6
%16 = add nsw i32 %14, %15
%17 = load i32*, i32** %3
store i32 %16, i32* %17
%18 = load i32, i32* %5
%19 = load i32, i32* %6
%20 = xor i32 %18, %19
%21 = load i32, i32* %4
%22 = srem i32 %20, %21
ret i32 %22
}

LLVM IR (-O2):
define i32 @MWC64X_Next(i32* nocapture readnone %0, i32 %1) {
ret i32 poison
}
int multi(int *a, int b) { return (*a *= b); }


x86 assembly (clang, -O0):
<multi>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
imul   (%rcx),%eax
mov    %eax,(%rcx)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @multi(i32* nocapture %0, i32 %1) {
%3 = load i32, i32* %0
%4 = mul nsw i32 %3, %1
store i32 %4, i32* %0
ret i32 %4
}
/* Variables and functions */
scalar_t__ endst();
int /*<<< orphan*/ expression();
int /*<<< orphan*/ modstk(int /*<<< orphan*/);
int /*<<< orphan*/ zret();
doreturn() {
  if (endst() == 0)
    expression();
  modstk(0);
  zret();
}


x86 assembly (clang, -O0):
<doreturn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <endst@plt>
cmp    $0x0,%rax
jne    1160 <doreturn+0x20>
mov    $0x0,%al
call   1030 <expression@plt>
xor    %edi,%edi
call   1040 <modstk@plt>
mov    $0x0,%al
call   1050 <zret@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doreturn>:
push   %rax
xor    %eax,%eax
call   1060 <endst@plt>
test   %rax,%rax
jne    1154 <doreturn+0x14>
xor    %eax,%eax
call   1030 <expression@plt>
xor    %edi,%edi
call   1040 <modstk@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <zret@plt>

LLVM IR (-O0):
define i32 @doreturn() {
%1 = alloca i32
%2 = call i64 (...) @endst()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @expression()
br label %6
6: ; preds = %4, %0
%7 = call i32 @modstk(i32 0)
%8 = call i32 (...) @zret()
%9 = load i32, i32* %1
ret i32 %9
}

LLVM IR (-O2):
define i32 @doreturn() {
%1 = tail call i64 (...) @endst()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @expression()
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @modstk(i32 0)
%7 = tail call i32 (...) @zret()
ret i32 undef
}
void debug_object_init_on_stack(void *addr, struct debug_obj_descr *descr) {}


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

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

LLVM IR (-O0):
%struct.debug_obj_descr = type opaque
define void @debug_object_init_on_stack(i8* %0, %struct.debug_obj_descr* %1) {
%3 = alloca i8*
%4 = alloca %struct.debug_obj_descr*
store i8* %0, i8** %3
store %struct.debug_obj_descr* %1, %struct.debug_obj_descr** %4
ret void
}

LLVM IR (-O2):
%struct.debug_obj_descr = type opaque
define void @debug_object_init_on_stack(i8* nocapture %0, %struct.debug_obj_descr* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ make_filename(long, char *, char *);
long umfpack_dl_load_symbolic(void **, char *);
void umf4lsym_(void **Symbolic, long *filenum, long *status) {
  char filename[200];
  make_filename(*filenum, "s", filename);
  *status = umfpack_dl_load_symbolic(Symbolic, filename);
}


x86 assembly (clang, -O0):
<umf4lsym_>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    -0xe0(%rbp),%rdx
lea    0xeb4(%rip),%rsi
call   1030 <make_filename@plt>
mov    -0x8(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   1040 <umfpack_dl_load_symbolic@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<umf4lsym_>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
mov    %rdx,%r14
mov    %rdi,%rbx
mov    (%rsi),%rdi
lea    0xec4(%rip),%rsi
mov    %rsp,%r15
mov    %r15,%rdx
call   1030 <make_filename@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <umfpack_dl_load_symbolic@plt>
mov    %rax,(%r14)
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"s\00"
define void @umf4lsym_(i8** %0, i64* %1, i64* %2) {
%4 = alloca i8**
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca [200 x i8]
store i8** %0, i8*** %4
store i64* %1, i64** %5
store i64* %2, i64** %6
%8 = load i64*, i64** %5
%9 = load i64, i64* %8
%10 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%11 = call i32 @make_filename(i64 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load i8**, i8*** %4
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%14 = call i64 @umfpack_dl_load_symbolic(i8** %12, i8* %13)
%15 = load i64*, i64** %6
store i64 %14, i64* %15
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"s\00"
define void @umf4lsym_(i8** %0, i64* nocapture %1, i64* nocapture writeonly %2) {
%4 = alloca [200 x i8]
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%6 = load i64, i64* %1
%7 = call i32 @make_filename(i64 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %5)
%8 = call i64 @umfpack_dl_load_symbolic(i8** %0, i8* %5)
store i64 %8, i64* %2
ret void
}