xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0x87() {
  Assert_real((isodigit(135) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isodigit.c",
              680, ("isodigit should be 0 for 0x87"));
}


x86 assembly (clang, -O0):
<t_isodigit_0x87>:
push   %rbp
mov    %rsp,%rbp
mov    $0x87,%edi
call   1040 <isodigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x2a8,%edx
lea    0xf5c(%rip),%rcx
call   1030 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isodigit_0x87>:
push   %rax
mov    $0x87,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x2a8,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0x87\00"
define void @t_isodigit_0x87() {
%1 = call i64 @isodigit(i32 135)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 680, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0x87\00"
define void @t_isodigit_0x87() {
%1 = tail call i64 @isodigit(i32 135)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 680, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct i2c_client {
  int dummy;
};
struct device {
  int dummy;
};

/* Variables and functions */
int i2c_smbus_read_byte_data(struct i2c_client *, unsigned char);
struct i2c_client *to_i2c_client(struct device *);
int adxl34x_smbus_read(struct device *dev, unsigned char reg) {
  struct i2c_client *client = to_i2c_client(dev);
  return i2c_smbus_read_byte_data(client, reg);
}


x86 assembly (clang, -O0):
<adxl34x_smbus_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <to_i2c_client@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
movzbl -0x9(%rbp),%esi
call   1040 <i2c_smbus_read_byte_data@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adxl34x_smbus_read>:
push   %rbx
mov    %esi,%ebx
call   1030 <to_i2c_client@plt>
mov    %rax,%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <i2c_smbus_read_byte_data@plt>

LLVM IR (-O0):
%struct.device = type { i32 }
%struct.i2c_client = type { i32 }
define i32 @adxl34x_smbus_read(%struct.device* %0, i8 zeroext %1) {
%3 = alloca %struct.device*
%4 = alloca i8
%5 = alloca %struct.i2c_client*
store %struct.device* %0, %struct.device** %3
store i8 %1, i8* %4
%6 = load %struct.device*, %struct.device** %3
%7 = call %struct.i2c_client* @to_i2c_client(%struct.device* %6)
store %struct.i2c_client* %7, %struct.i2c_client** %5
%8 = load %struct.i2c_client*, %struct.i2c_client** %5
%9 = load i8, i8* %4
%10 = call i32 @i2c_smbus_read_byte_data(%struct.i2c_client* %8, i8 zeroext %9)
ret i32 %10
}

LLVM IR (-O2):
%struct.device = type { i32 }
%struct.i2c_client = type { i32 }
define i32 @adxl34x_smbus_read(%struct.device* %0, i8 zeroext %1) {
%3 = tail call %struct.i2c_client* @to_i2c_client(%struct.device* %0)
%4 = tail call i32 @i2c_smbus_read_byte_data(%struct.i2c_client* %3, i8 zeroext %1)
ret i32 %4
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int arm32_read_p15_c1();
int /*<<< orphan*/ arm32_write_p15_c1(int);
void arm32_dcache_enable(void) {
  uint32_t value = arm32_read_p15_c1();
  arm32_write_p15_c1(value | (1 << 2));
}


x86 assembly (clang, -O0):
<arm32_dcache_enable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <arm32_read_p15_c1@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
or     $0x4,%edi
call   1040 <arm32_write_p15_c1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arm32_dcache_enable>:
push   %rax
xor    %eax,%eax
call   1030 <arm32_read_p15_c1@plt>
or     $0x4,%eax
mov    %eax,%edi
pop    %rax
jmp    1040 <arm32_write_p15_c1@plt>

LLVM IR (-O0):
define void @arm32_dcache_enable() {
%1 = alloca i32
%2 = call i32 (...) @arm32_read_p15_c1()
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = or i32 %3, 4
%5 = call i32 @arm32_write_p15_c1(i32 %4)
ret void
}

LLVM IR (-O2):
define void @arm32_dcache_enable() {
%1 = tail call i32 (...) @arm32_read_p15_c1()
%2 = or i32 %1, 4
%3 = tail call i32 @arm32_write_p15_c1(i32 %2)
ret void
}
/* Variables and functions */
scalar_t__ gettid();
unsigned int cthread_self_id() { return (unsigned int)gettid(); }


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

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

LLVM IR (-O0):
define i32 @cthread_self_id() {
%1 = call i64 (...) @gettid()
%2 = trunc i64 %1 to i32
ret i32 %2
}

LLVM IR (-O2):
define i32 @cthread_self_id() {
%1 = tail call i64 (...) @gettid()
%2 = trunc i64 %1 to i32
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ p3dfft_clean();
void Cp3dfft_clean() { p3dfft_clean(); }


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

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

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

LLVM IR (-O2):
define void @Cp3dfft_clean() {
%1 = tail call i32 (...) @p3dfft_clean()
ret void
}
void mca_init(void) {}


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

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

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

LLVM IR (-O2):
define void @mca_init() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test_reductions();
int /*<<< orphan*/ test_reductions_minmax();
int main(void) {
  test_reductions();
  test_reductions_minmax();
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_reductions()
%3 = call i32 (...) @test_reductions_minmax()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_reductions()
%2 = tail call i32 (...) @test_reductions_minmax()
ret i32 0
}
void int_demarshal(i) int *i;
{
  DI_object_demarshal(i);
  return;
}


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

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

LLVM IR (-O0):
define void @int_demarshal(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 (i32*, ...) bitcast (i32 (...)* @DI_object_demarshal to i32 (i32*, ...)*)(i32* %3)
ret void
}

LLVM IR (-O2):
define void @int_demarshal(i32* %0) {
%2 = tail call i32 (i32*, ...) bitcast (i32 (...)* @DI_object_demarshal to i32 (i32*, ...)*)(i32* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ point(int, int);
int ozgetpoint(int x, int y) { return (!point(x, y)); }


x86 assembly (clang, -O0):
<ozgetpoint>:
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 <point@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ozgetpoint>:
push   %rax
call   1030 <point@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @ozgetpoint(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 @point(i32 %5, i32 %6)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @ozgetpoint(i32 %0, i32 %1) {
%3 = tail call i32 @point(i32 %0, i32 %1)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ key_click_percent;
};
typedef TYPE_1__ XKeyboardState;

/* Variables and functions */
int get_XKeyboardState_key_click_percent(void *_p) {
  return (int)((XKeyboardState *)_p)->key_click_percent;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i32 @get_XKeyboardState_key_click_percent(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @get_XKeyboardState_key_click_percent(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ ft_input(int, char **);
int main(int argc, char **argv) {
  ft_input(argc, argv);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <ft_input@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @ft_input(i32 %0, i8** %1)
ret i32 0
}
int sfd_isdigit(const char c) { return (c >= '0' && c <= '9'); }


x86 assembly (clang, -O0):
<sfd_isdigit>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x2(%rbp)
jl     1129 <sfd_isdigit+0x29>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sfd_isdigit>:
add    $0xd0,%dil
xor    %eax,%eax
cmp    $0xa,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @sfd_isdigit(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, 48
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, 57
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @sfd_isdigit(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
int iwl_legacy_dbgfs_register(struct iwl_priv *priv, const char *name) {
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct.iwl_priv = type opaque
define i32 @iwl_legacy_dbgfs_register(%struct.iwl_priv* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 0
}
int test_imm_A9int64_highword_reg(long long val) {
  return ((val >> 32) & (0xA9 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_A9int64_highword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
sar    $0x20,%rdx
and    $0xa9,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_A9int64_highword_reg>:
movabs $0xa900000000,%rax
test   %rax,%rdi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_A9int64_highword_reg(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = ashr i64 %3, 32
%5 = and i64 %4, 169
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_A9int64_highword_reg(i64 %0) {
%2 = and i64 %0, 725849473024
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ StrSetCopy(char **, char const *);
void SetPrefVal(char **s, const char *newVal) { StrSetCopy(s, newVal); }


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

x86 assembly (clang, -O2):
<SetPrefVal>:
jmp    1030 <StrSetCopy@plt>

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

LLVM IR (-O2):
define void @SetPrefVal(i8** %0, i8* %1) {
%3 = tail call i32 @StrSetCopy(i8** %0, i8* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ INC_();
int /*<<< orphan*/ c64_memAbsoluteAddr();
void INC_abs(void) {
  c64_memAbsoluteAddr();
  INC_();
}


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

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

LLVM IR (-O0):
define void @INC_abs() {
%1 = call i32 (...) @c64_memAbsoluteAddr()
%2 = call i32 (...) @INC_()
ret void
}

LLVM IR (-O2):
define void @INC_abs() {
%1 = tail call i32 (...) @c64_memAbsoluteAddr()
%2 = tail call i32 (...) @INC_()
ret void
}
int stack_overflow() {
  int waste[8000];
  waste[7999] = 0;
  return waste[7999];
}


x86 assembly (clang, -O0):
<stack_overflow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x7c80,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x7c80,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @stack_overflow() {
%1 = alloca [8000 x i32]
%2 = getelementptr inbounds [8000 x i32], [8000 x i32]* %1, i64 0, i64 7999
store i32 0, i32* %2
%3 = getelementptr inbounds [8000 x i32], [8000 x i32]* %1, i64 0, i64 7999
%4 = load i32, i32* %3
ret i32 %4
}

LLVM IR (-O2):
define i32 @stack_overflow() {
ret i32 0
}
void rop3_95_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  stk1 = *D & T;
  stk1 = ~stk1;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_95_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xa(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
movzbl -0xa(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0xa(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_95_1_1>:
mov    (%rdi),%al
mov    %eax,%ecx
and    %dl,%cl
or     %sil,%dl
not    %dl
and    %sil,%al
or     %dl,%al
or     %cl,%al
mov    %al,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_95_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = and i8 %4, %2
%6 = or i8 %2, %1
%7 = xor i8 %6, -1
%8 = and i8 %4, %1
%9 = or i8 %8, %7
%10 = or i8 %9, %5
store i8 %10, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int diminuto_module_example_ctor(void) {
  fputs("diminuto_module_example_ctor\n", stderr);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [30 x i8] c"diminuto_module_example_ctor\0A\00"
@stderr = global i32 0
define i32 @diminuto_module_example_ctor() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}

LLVM IR (-O2):
@.str = [30 x i8] c"diminuto_module_example_ctor\0A\00"
@stderr = global i32 0
define i32 @diminuto_module_example_ctor() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
double log10(double);
double munge(double);
double crm114__pR(double p, double comp) {
  p = munge(p);
  comp = munge(comp);
  if (comp == p)
    comp = 1.0 - p;
  return log10(p) - log10(comp);
}


x86 assembly (clang, -O0):
<crm114__pR>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <munge@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <munge@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
jne    1178 <crm114__pR+0x58>
jp     1178 <crm114__pR+0x58>
movsd  0xe92(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <log10@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <log10@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
subsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crm114__pR>:
sub    $0x28,%rsp
movsd  %xmm1,0x10(%rsp)
call   1030 <munge@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <munge@plt>
movsd  0xeb8(%rip),%xmm1
movsd  0x8(%rsp),%xmm2
subsd  %xmm2,%xmm1
movapd %xmm0,%xmm3
cmpeqsd %xmm2,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
movapd %xmm3,0x10(%rsp)
movapd %xmm2,%xmm0
call   1040 <log10@plt>
movsd  %xmm0,0x8(%rsp)
movapd 0x10(%rsp),%xmm0
call   1040 <log10@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define double @crm114__pR(double %0, double %1) {
%3 = tail call double @munge(double %0)
%4 = tail call double @munge(double %1)
%5 = fcmp oeq double %4, %3
%6 = fsub double 1.000000e+00, %3
%7 = select i1 %5, double %6, double %4
%8 = tail call double @log10(double %3)
%9 = tail call double @log10(double %7)
%10 = fsub double %8, %9
ret double %10
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "netreceive port [nthreads]\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [28 x i8] c"netreceive port [nthreads]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [28 x i8] c"netreceive port [nthreads]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 -1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void td_exit(int code) { exit(code); }


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

x86 assembly (clang, -O2):
<td_exit>:
push   %rax
call   1030 <exit@plt>

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

LLVM IR (-O2):
define void @td_exit(i32 %0) {
%2 = tail call i32 @exit(i32 %0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ putenv(char *);
void init() { putenv("TRACE_LEVE=5"); }


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

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

LLVM IR (-O0):
@.str = [13 x i8] c"TRACE_LEVE=5\00"
define void @init() {
%1 = call i32 @putenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"TRACE_LEVE=5\00"
define void @init() {
%1 = tail call i32 @putenv(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}
void foo_1_2_1_1_2_1_2_2_1() {}


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

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

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

LLVM IR (-O2):
define void @foo_1_2_1_1_2_1_2_2_1() {
ret void
}
/* Variables and functions */
int fdiv(int, int);
int mod(int x, int y) { return x - fdiv(x, y) * y; }


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

x86 assembly (clang, -O2):
<mod>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
call   1030 <fdiv@plt>
imul   %ebx,%eax
sub    %eax,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @mod(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* %3
%7 = load i32, i32* %4
%8 = call i32 @fdiv(i32 %6, i32 %7)
%9 = load i32, i32* %4
%10 = mul nsw i32 %8, %9
%11 = sub nsw i32 %5, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @mod(i32 %0, i32 %1) {
%3 = tail call i32 @fdiv(i32 %0, i32 %1)
%4 = mul nsw i32 %3, %1
%5 = sub nsw i32 %0, %4
ret i32 %5
}
/* Variables and functions */
int bitDivision(int, int);
int /*<<< orphan*/ printf(char *, int);
void test() {
  int numerator = 23, denominator = 5;
  printf("%d\n", bitDivision(numerator, denominator));
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x17,-0x4(%rbp)
movl   $0x5,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <bitDivision@plt>
mov    %eax,%esi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
mov    $0x17,%edi
mov    $0x5,%esi
call   1040 <bitDivision@plt>
lea    0xec9(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <printf@plt>

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

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

/* Variables and functions */
int /*<<< orphan*/ MAG3110_ReadRawData(int, int, int);
int16_t MAG3110_ReadRawData_y() {
  return MAG3110_ReadRawData(0x03, 0x04, (0x01 << 1));
}


x86 assembly (clang, -O0):
<MAG3110_ReadRawData_y>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
mov    $0x4,%esi
mov    $0x2,%edx
call   1030 <MAG3110_ReadRawData@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<MAG3110_ReadRawData_y>:
mov    $0x3,%edi
mov    $0x4,%esi
mov    $0x2,%edx
jmp    1030 <MAG3110_ReadRawData@plt>

LLVM IR (-O0):
define i32 @MAG3110_ReadRawData_y() {
%1 = call i32 @MAG3110_ReadRawData(i32 3, i32 4, i32 2)
ret i32 %1
}

LLVM IR (-O2):
define i32 @MAG3110_ReadRawData_y() {
%1 = tail call i32 @MAG3110_ReadRawData(i32 3, i32 4, i32 2)
ret i32 %1
}
/* Type definitions */
struct rlimit {
  scalar_t__ rlim_cur;
};

/* Variables and functions */
int /*<<< orphan*/ RLIMIT_NOFILE;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ getrlimit(int /*<<< orphan*/, struct rlimit *);
void close_fds(void) {
  struct rlimit curr_lim;
  getrlimit(RLIMIT_NOFILE, &curr_lim);
  int fd;
  for (fd = 3; fd < (int)curr_lim.rlim_cur; fd++) {
    (void)close(fd);
  }
}


x86 assembly (clang, -O0):
<close_fds>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
lea    -0x8(%rbp),%rsi
call   1040 <getrlimit@plt>
movl   $0x3,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    %ecx,%eax
jge    1166 <close_fds+0x46>
mov    -0xc(%rbp),%edi
call   1030 <close@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1141 <close_fds+0x21>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close_fds>:
push   %rbx
sub    $0x10,%rsp
mov    0x2ebc(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1040 <getrlimit@plt>
cmpl   $0x4,0x8(%rsp)
jl     1160 <close_fds+0x40>
mov    $0x3,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebx,%edi
call   1030 <close@plt>
add    $0x1,%ebx
cmp    0x8(%rsp),%ebx
jl     1150 <close_fds+0x30>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.rlimit = type { i64 }
@RLIMIT_NOFILE = global i32 0
define void @close_fds() {
%1 = alloca %struct.rlimit
%2 = alloca i32
%3 = load i32, i32* @RLIMIT_NOFILE
%4 = call i32 @getrlimit(i32 %3, %struct.rlimit* %1)
store i32 3, i32* %2
br label %5
5: ; preds = %14, %0
%6 = load i32, i32* %2
%7 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %1, i32 0, i32 0
%8 = load i64, i64* %7
%9 = trunc i64 %8 to i32
%10 = icmp slt i32 %6, %9
br i1 %10, label %11, label %17
11: ; preds = %5
%12 = load i32, i32* %2
%13 = call i32 @close(i32 %12)
br label %14
14: ; preds = %11
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %5
17: ; preds = %5
ret void
}

LLVM IR (-O2):
%struct.rlimit = type { i64 }
@RLIMIT_NOFILE = global i32 0
define void @close_fds() {
%1 = alloca %struct.rlimit
%2 = bitcast %struct.rlimit* %1 to i8*
%3 = load i32, i32* @RLIMIT_NOFILE
%4 = call i32 @getrlimit(i32 %3, %struct.rlimit* %1)
%5 = getelementptr inbounds %struct.rlimit, %struct.rlimit* %1, i64 0, i32 0
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
%8 = icmp sgt i32 %7, 3
br i1 %8, label %9, label %16
9: ; preds = %0, %9
%10 = phi i32 [ %12, %9 ], [ 3, %0 ]
%11 = call i32 @close(i32 %10)
%12 = add nuw nsw i32 %10, 1
%13 = load i64, i64* %5
%14 = trunc i64 %13 to i32
%15 = icmp slt i32 %12, %14
br i1 %15, label %9, label %16
16: ; preds = %9, %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_p521_to_bytes(uintptr_t, uintptr_t);
void fiat_p521_to_bytes(uint8_t out1[66], const uint64_t arg1[9]) {
  internal_fiat_p521_to_bytes((uintptr_t)out1, (uintptr_t)arg1);
}


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

x86 assembly (clang, -O2):
<fiat_p521_to_bytes>:
jmp    1030 <internal_fiat_p521_to_bytes@plt>

LLVM IR (-O0):
define void @fiat_p521_to_bytes(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 = ptrtoint i32* %5 to i64
%7 = load i32*, i32** %4
%8 = ptrtoint i32* %7 to i64
%9 = call i32 @internal_fiat_p521_to_bytes(i64 %6, i64 %8)
ret void
}

LLVM IR (-O2):
define void @fiat_p521_to_bytes(i32* %0, i32* %1) {
%3 = ptrtoint i32* %0 to i64
%4 = ptrtoint i32* %1 to i64
%5 = tail call i32 @internal_fiat_p521_to_bytes(i64 %3, i64 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ GL_COLOR_BUFFER_BIT;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glutWireTeapot(int);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(1.0, 0, 0);
  glutWireTeapot(3);
  glFlush();
  return;
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xea6(%rip),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1040 <glColor3f@plt>
mov    $0x3,%edi
call   1060 <glutWireTeapot@plt>
mov    $0x0,%al
call   1050 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xea9(%rip),%xmm0
xor    %edi,%edi
xor    %esi,%esi
call   1040 <glColor3f@plt>
mov    $0x3,%edi
call   1060 <glutWireTeapot@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glColor3f(double 1.000000e+00, i32 0, i32 0)
%4 = call i32 @glutWireTeapot(i32 3)
%5 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @glColor3f(double 1.000000e+00, i32 0, i32 0)
%4 = tail call i32 @glutWireTeapot(i32 3)
%5 = tail call i32 (...) @glFlush()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isascii(int);
void t_isascii_0x20() {
  Assert_real((isascii(32)),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isascii.c",
              165, ("isascii should be 1 for  "));
}


x86 assembly (clang, -O0):
<t_isascii_0x20>:
push   %rbp
mov    %rsp,%rbp
mov    $0x20,%edi
call   1030 <isascii@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0xa5,%edx
lea    0xf65(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isascii_0x20>:
lea    0xee9(%rip),%rsi
lea    0xf8a(%rip),%rcx
mov    $0x1,%edi
mov    $0xa5,%edx
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [26 x i8] c"isascii should be 1 for \00"
define void @t_isascii_0x20() {
%1 = call i32 @isascii(i32 32)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 165, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [26 x i8] c"isascii should be 1 for \00"
define void @t_isascii_0x20() {
%1 = tail call i32 @Assert_real(i32 1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 165, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned int exynos_get_frame_seq(unsigned char *frm) {
  unsigned short cfg = *(unsigned short *)(frm + 2);
  return cfg;
}


x86 assembly (clang, -O0):
<exynos_get_frame_seq>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x2(%rax),%ax
mov    %ax,-0xa(%rbp)
movzwl -0xa(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<exynos_get_frame_seq>:
movzwl 0x2(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @exynos_get_frame_seq(i8* %0) {
%2 = alloca i8*
%3 = alloca i16
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 2
%6 = bitcast i8* %5 to i16*
%7 = load i16, i16* %6
store i16 %7, i16* %3
%8 = load i16, i16* %3
%9 = zext i16 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @exynos_get_frame_seq(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 2
%3 = bitcast i8* %2 to i16*
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
ret i32 %5
}
/* Variables and functions */
scalar_t__ ceil(double);
double log10(double);
int iw_mwatt2dbm(int in) { return ((int)(ceil(10.0 * log10((double)in)))); }


x86 assembly (clang, -O0):
<iw_mwatt2dbm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
call   1040 <log10@plt>
movaps %xmm0,%xmm1
movsd  0xec0(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <ceil@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iw_mwatt2dbm>:
push   %rax
cvtsi2sd %edi,%xmm0
call   1040 <log10@plt>
mulsd  0xece(%rip),%xmm0
pop    %rax
jmp    1030 <ceil@plt>

LLVM IR (-O0):
define i32 @iw_mwatt2dbm(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sitofp i32 %3 to double
%5 = call double @log10(double %4)
%6 = fmul double 1.000000e+01, %5
%7 = call i64 @ceil(double %6)
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @iw_mwatt2dbm(i32 %0) {
%2 = sitofp i32 %0 to double
%3 = tail call double @log10(double %2)
%4 = fmul double %3, 1.000000e+01
%5 = tail call i64 @ceil(double %4)
%6 = trunc i64 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ bar(char *);
void foo(void) { bar("BBBBBBBBBB"); }


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

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

LLVM IR (-O0):
@.str = [11 x i8] c"BBBBBBBBBB\00"
define void @foo() {
%1 = call i32 @bar(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"BBBBBBBBBB\00"
define void @foo() {
%1 = tail call i32 @bar(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ perror(char *);
void PrintSystemError() { perror("Error"); }


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

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

LLVM IR (-O0):
@.str = [6 x i8] c"Error\00"
define void @PrintSystemError() {
%1 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"Error\00"
define void @PrintSystemError() {
%1 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
void hpgl_clearviewport(void) { ; }


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

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

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

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


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

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

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

LLVM IR (-O2):
define i32 @di_irq_clear() {
%1 = tail call i32 (...) @DI_Clear_irq()
ret i32 0
}
/* Variables and functions */
size_t round_up(size_t size, size_t n) { return (n * ((size + (n - 1)) / n)); }


x86 assembly (clang, -O0):
<round_up>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
add    %rcx,%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x10(%rbp)
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
imul   %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<round_up>:
lea    (%rdi,%rsi,1),%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,%rax
or     %rsi,%rax
shr    $0x20,%rax
je     111e <round_up+0x1e>
mov    %rcx,%rax
xor    %edx,%edx
div    %rsi
jmp    1124 <round_up+0x24>
mov    %ecx,%eax
xor    %edx,%edx
div    %esi
sub    %rdx,%rcx
mov    %rcx,%rax
ret

LLVM IR (-O0):
define i64 @round_up(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i64, i64* %3
%7 = load i64, i64* %4
%8 = sub i64 %7, 1
%9 = add i64 %6, %8
%10 = load i64, i64* %4
%11 = udiv i64 %9, %10
%12 = mul i64 %5, %11
ret i64 %12
}

LLVM IR (-O2):
define i64 @round_up(i64 %0, i64 %1) {
%3 = add i64 %0, -1
%4 = add i64 %3, %1
%5 = urem i64 %4, %1
%6 = sub i64 %4, %5
ret i64 %6
}
void foo53() {}


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

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

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

LLVM IR (-O2):
define void @foo53() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ truclient_step(char *, char *, char *);
Script_View_Init() {
  truclient_step("1", "Evaluate JavaScript code var jTransIteration = 0;",
                 "snapshot=Init_1.inf");
}


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

x86 assembly (clang, -O2):
<Script_View_Init>:
lea    0xee9(%rip),%rdi
lea    0xee4(%rip),%rsi
lea    0xf0f(%rip),%rdx
jmp    1030 <truclient_step@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [50 x i8] c"Evaluate JavaScript code var jTransIteration = 0;\00"
@.str.2 = [20 x i8] c"snapshot=Init_1.inf\00"
define i32 @Script_View_Init() {
%1 = alloca i32
%2 = call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [50 x i8] c"Evaluate JavaScript code var jTransIteration = 0;\00"
@.str.2 = [20 x i8] c"snapshot=Init_1.inf\00"
define i32 @Script_View_Init() {
%1 = tail call i32 @truclient_step(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
ret i32 undef
}
int sprec(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @sprec() {
ret i32 0
}
void __current_clr_polling(void) {}


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

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

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

LLVM IR (-O2):
define void @__current_clr_polling() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_hex_dump(char *, char const *, int, int, int,
                                  void const *, size_t, int);
void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
                          const void *buf, size_t len) {
  print_hex_dump("", prefix_str, prefix_type, 16, 1, buf, len, 1);
}


x86 assembly (clang, -O0):
<print_hex_dump_bytes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%rax
lea    0xec3(%rip),%rdi
mov    $0x10,%ecx
mov    $0x1,%r8d
mov    %rax,(%rsp)
movl   $0x1,0x8(%rsp)
call   1030 <print_hex_dump@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hex_dump_bytes>:
push   %rax
mov    %rcx,%rax
mov    %rdx,%r9
mov    %esi,%edx
mov    %rdi,%rsi
lea    0xedd(%rip),%rdi
mov    $0x10,%ecx
mov    $0x1,%r8d
push   $0x1
push   %rax
call   1030 <print_hex_dump@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @print_hex_dump_bytes(i8* %0, i32 %1, i8* %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i64 %3, i64* %8
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = load i8*, i8** %7
%12 = load i64, i64* %8
%13 = call i32 @print_hex_dump(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %9, i32 %10, i32 16, i32 1, i8* %11, i64 %12, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @print_hex_dump_bytes(i8* %0, i32 %1, i8* %2, i64 %3) {
%5 = tail call i32 @print_hex_dump(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1, i32 16, i32 1, i8* %2, i64 %3, i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void help(char s[]) {
  printf("%s [options] [fastq file 1] [fastq file 2]\n", s);
}


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

x86 assembly (clang, -O2):
<help>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [44 x i8] c"%s [options] [fastq file 1] [fastq file 2]\0A\00"
define void @help(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
int do_801() { return 801; }


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

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

LLVM IR (-O0):
define i32 @do_801() {
ret i32 801
}

LLVM IR (-O2):
define i32 @do_801() {
ret i32 801
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void Usage() {
  fprintf(stderr, "Usage: ./a.out -n mq_name \n");
  exit(-1);
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [28 x i8] c"Usage: ./a.out -n mq_name \0A\00"
define void @Usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [28 x i8] c"Usage: ./a.out -n mq_name \0A\00"
define void @Usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 -1)
unreachable
}