xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ islower(int);
void t_islower_0x30() {
  Assert_real((islower(48) == 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_islower.c",
              245, ("islower should be 0 for 0"));
}


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

x86 assembly (clang, -O2):
<t_islower_0x30>:
push   %rax
mov    $0x30,%edi
call   1030 <islower@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0xf5,%edx
pop    %rax
jmp    1040 <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_islower.c\00"
@.str.1 = [26 x i8] c"islower should be 0 for 0\00"
define void @t_islower_0x30() {
%1 = call i64 @islower(i32 48)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 245, 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_islower.c\00"
@.str.1 = [26 x i8] c"islower should be 0 for 0\00"
define void @t_islower_0x30() {
%1 = tail call i64 @islower(i32 48)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 245, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int f_direito(int N) { return (2 * N) + 2; }


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

x86 assembly (clang, -O2):
<f_direito>:
lea    (%rdi,%rdi,1),%eax
add    $0x2,%eax
ret

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

LLVM IR (-O2):
define i32 @f_direito(i32 %0) {
%2 = shl nsw i32 %0, 1
%3 = add nsw i32 %2, 2
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ INT_MAX;
char *safe_gets(char *, int /*<<< orphan*/);
char *gets(char *buf) { return (safe_gets(buf, INT_MAX)); }


x86 assembly (clang, -O0):
<gets>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ec1(%rip),%rax
mov    (%rax),%esi
call   1030 <safe_gets@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gets>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%esi
jmp    1030 <safe_gets@plt>

LLVM IR (-O0):
@INT_MAX = global i32 0
define i8* @gets(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @INT_MAX
%5 = call i8* @safe_gets(i8* %3, i32 %4)
ret i8* %5
}

LLVM IR (-O2):
@INT_MAX = global i32 0
define i8* @gets(i8* %0) {
%2 = load i32, i32* @INT_MAX
%3 = tail call i8* @safe_gets(i8* %0, i32 %2)
ret i8* %3
}
int is_leap_year(int year) {
  int temp_value = 0, temp_value_b = 0, is_leap = 0;
  temp_value = year % 4;
  if (temp_value == 0) {
    is_leap = 1;
    temp_value = year % 100;
    temp_value_b = year % 400;
    if (temp_value == 0 && temp_value_b != 0) {
      is_leap = 0;
    }
  }
  return is_leap;
}


x86 assembly (clang, -O0):
<is_leap_year>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1177 <is_leap_year+0x77>
movl   $0x1,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1172 <is_leap_year+0x72>
cmpl   $0x0,-0xc(%rbp)
je     1172 <is_leap_year+0x72>
movl   $0x0,-0x10(%rbp)
jmp    1177 <is_leap_year+0x77>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_leap_year>:
xor    %eax,%eax
test   $0x3,%dil
je     1109 <is_leap_year+0x9>
ret
imul   $0xc28f5c29,%edi,%eax
add    $0x51eb850,%eax
mov    %eax,%ecx
ror    $0x2,%ecx
cmp    $0x28f5c29,%ecx
setae  %cl
ror    $0x4,%eax
cmp    $0xa3d70b,%eax
setb   %al
or     %cl,%al
movzbl %al,%eax
ret

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

LLVM IR (-O2):
define i32 @is_leap_year(i32 %0) {
%2 = and i32 %0, 3
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1
%5 = srem i32 %0, 100
%6 = srem i32 %0, 400
%7 = icmp ne i32 %5, 0
%8 = icmp eq i32 %6, 0
%9 = or i1 %7, %8
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %4, %1
%12 = phi i32 [ 0, %1 ], [ %10, %4 ]
ret i32 %12
}
long long int llrintf(float x) { return x; }


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

x86 assembly (clang, -O2):
<llrintf>:
cvttss2si %xmm0,%rax
ret

LLVM IR (-O0):
define i64 @llrintf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fptosi float %3 to i64
ret i64 %4
}

LLVM IR (-O2):
define i64 @llrintf(float %0) {
%2 = fptosi float %0 to i64
ret i64 %2
}
void RB_StageIteratorVertexLitTexture(void) {}


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

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

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

LLVM IR (-O2):
define void @RB_StageIteratorVertexLitTexture() {
ret void
}
int pm8xxx_dump_gpios(struct seq_file *m, int curr_len, char *gpio_buffer) {
  return curr_len;
}


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

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

LLVM IR (-O0):
%struct.seq_file = type opaque
define i32 @pm8xxx_dump_gpios(%struct.seq_file* %0, i32 %1, i8* %2) {
%4 = alloca %struct.seq_file*
%5 = alloca i32
%6 = alloca i8*
store %struct.seq_file* %0, %struct.seq_file** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %5
ret i32 %7
}

LLVM IR (-O2):
%struct.seq_file = type opaque
define i32 @pm8xxx_dump_gpios(%struct.seq_file* nocapture readnone %0, i32 returned %1, i8* nocapture readnone %2) {
ret i32 %1
}
void opm_AI(int p, float dt) {}


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

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

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

LLVM IR (-O2):
define void @opm_AI(i32 %0, float %1) {
ret void
}
int vidconsole_sync_copy(struct udevice *dev, void *from, void *to) {
  return 0;
}


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

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

LLVM IR (-O0):
%struct.udevice = type opaque
define i32 @vidconsole_sync_copy(%struct.udevice* %0, i8* %1, i8* %2) {
%4 = alloca %struct.udevice*
%5 = alloca i8*
%6 = alloca i8*
store %struct.udevice* %0, %struct.udevice** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
ret i32 0
}

LLVM IR (-O2):
%struct.udevice = type opaque
define i32 @vidconsole_sync_copy(%struct.udevice* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2) {
ret i32 0
}
/* Variables and functions */
long labs(long);
long modulo(long x, long y) { return labs(x) % labs(y); }


x86 assembly (clang, -O0):
<modulo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <labs@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <labs@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cqto
idiv   %rcx
mov    %rdx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<modulo>:
mov    %rdi,%rax
neg    %rax
cmovs  %rdi,%rax
mov    %rsi,%rcx
neg    %rcx
cmovs  %rsi,%rcx
mov    %rax,%rdx
or     %rcx,%rdx
shr    $0x20,%rdx
je     1129 <modulo+0x29>
xor    %edx,%edx
div    %rcx
mov    %rdx,%rax
ret
xor    %edx,%edx
div    %ecx
mov    %edx,%eax
ret

LLVM IR (-O0):
define i64 @modulo(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 = call i64 @labs(i64 %5)
%7 = load i64, i64* %4
%8 = call i64 @labs(i64 %7)
%9 = srem i64 %6, %8
ret i64 %9
}

LLVM IR (-O2):
define i64 @modulo(i64 %0, i64 %1) {
%3 = tail call i64 @llvm.abs.i64(i64 %0, i1 true)
%4 = tail call i64 @llvm.abs.i64(i64 %1, i1 true)
%5 = urem i64 %3, %4
ret i64 %5
}
/* Type definitions */
typedef int pid_t;

/* Variables and functions */
pid_t getpid() { return 42; }


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

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

LLVM IR (-O0):
define i32 @getpid() {
ret i32 42
}

LLVM IR (-O2):
define i32 @getpid() {
ret i32 42
}
int test_and_clear_bit(int nr, unsigned long *addr) {
  unsigned long mask = (1UL << ((nr) % (sizeof(unsigned long) * 8)));
  unsigned long *p = addr + ((nr) / (sizeof(unsigned long) * 8));
  unsigned long old = *p;
  *p = old & ~mask;
  return (old & mask) != 0;
}


x86 assembly (clang, -O0):
<test_and_clear_bit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movslq -0x4(%rbp),%rcx
and    $0x3f,%rcx
mov    $0x1,%eax
shl    %cl,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
shr    $0x6,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x18(%rbp),%rax
xor    $0xffffffffffffffff,%rax
and    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
and    -0x18(%rbp),%rax
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_and_clear_bit>:
movslq %edi,%rcx
mov    %rcx,%rax
shr    $0x6,%rax
mov    (%rsi,%rax,8),%rdx
mov    %rdx,%rdi
btr    %rcx,%rdi
mov    %rdi,(%rsi,%rax,8)
xor    %eax,%eax
bt     %rcx,%rdx
setb   %al
ret

LLVM IR (-O0):
define i32 @test_and_clear_bit(i32 %0, i64* %1) {
%3 = alloca i32
%4 = alloca i64*
%5 = alloca i64
%6 = alloca i64*
%7 = alloca i64
store i32 %0, i32* %3
store i64* %1, i64** %4
%8 = load i32, i32* %3
%9 = sext i32 %8 to i64
%10 = urem i64 %9, 64
%11 = shl i64 1, %10
store i64 %11, i64* %5
%12 = load i64*, i64** %4
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = udiv i64 %14, 64
%16 = getelementptr inbounds i64, i64* %12, i64 %15
store i64* %16, i64** %6
%17 = load i64*, i64** %6
%18 = load i64, i64* %17
store i64 %18, i64* %7
%19 = load i64, i64* %7
%20 = load i64, i64* %5
%21 = xor i64 %20, -1
%22 = and i64 %19, %21
%23 = load i64*, i64** %6
store i64 %22, i64* %23
%24 = load i64, i64* %7
%25 = load i64, i64* %5
%26 = and i64 %24, %25
%27 = icmp ne i64 %26, 0
%28 = zext i1 %27 to i32
ret i32 %28
}

LLVM IR (-O2):
define i32 @test_and_clear_bit(i32 %0, i64* nocapture %1) {
%3 = sext i32 %0 to i64
%4 = and i64 %3, 63
%5 = shl nuw i64 1, %4
%6 = lshr i64 %3, 6
%7 = getelementptr inbounds i64, i64* %1, i64 %6
%8 = load i64, i64* %7
%9 = xor i64 %5, -1
%10 = and i64 %8, %9
store i64 %10, i64* %7
%11 = and i64 %8, %5
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i32
ret i32 %13
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(unsigned int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, unsigned int);
int main(int argc, char *argv[]) {
  FILE *dt_in = fopen(argv[1], "rb");
  unsigned int death_time;
  fread(&death_time, sizeof(unsigned long), 1, dt_in);
  fclose(dt_in);
  printf("%d", death_time);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe9b(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x1c(%rbp),%esi
lea    0xe6b(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    0x8(%rsi),%rdi
lea    0xeb0(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
lea    0xc(%rsp),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1030 <fread@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    0xc(%rsp),%esi
lea    0xe81(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i8**, i8*** %5
%9 = getelementptr inbounds i8*, i8** %8, i64 1
%10 = load i8*, i8** %9
%11 = call i32* @fopen(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %11, i32** %6
%12 = load i32*, i32** %6
%13 = call i32 @fread(i32* %7, i32 8, i32 1, i32* %12)
%14 = load i32*, i32** %6
%15 = call i32 @fclose(i32* %14)
%16 = load i32, i32* %7
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = tail call i32* @fopen(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = bitcast i32* %3 to i8*
%8 = call i32 @fread(i32* %3, i32 8, i32 1, i32* %6)
%9 = tail call i32 @fclose(i32* %6)
%10 = load i32, i32* %3
%11 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %10)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ basename(char *);
int /*<<< orphan*/ *strstr(int /*<<< orphan*/, char *);
int basename_substring_filter(char *filename, char *textcontent) {
  if (strstr(basename(filename), textcontent) == NULL)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<basename_substring_filter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <basename@plt>
mov    %eax,%edi
mov    -0x18(%rbp),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
jne    115a <basename_substring_filter+0x3a>
movl   $0x0,-0x4(%rbp)
jmp    1161 <basename_substring_filter+0x41>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<basename_substring_filter>:
push   %rbx
mov    %rsi,%rbx
call   1030 <basename@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1040 <strstr@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
mov    %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @basename_substring_filter(i8* %0, i8* %1) {
%3 = tail call i32 @basename(i8* %0)
%4 = tail call i32* @strstr(i32 %3, i8* %1)
%5 = icmp ne i32* %4, null
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int _link(const char *old, const char *new) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<_link>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ed5(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebc(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_link>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @_link(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @ENOSYS
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @_link(i8* nocapture readnone %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @ENOSYS
store i32 %3, i32* @errno
ret i32 -1
}
/* Type definitions */
typedef int uint64_t;
typedef scalar_t__ rax;

/* Variables and functions */
int /*<<< orphan*/ cpuidInput_rax_rcx(int, int, int *, int *, int *, int *);
int cpuid_pkg_maxPhysicalProcessorCores() {
  uint64_t rax, rbx, rcx, rdx;
  int leafa = 4, leafc = 0;
  cpuidInput_rax_rcx(leafa, leafc, &rax, &rbx, &rcx, &rdx);
  return (((uint64_t)(rax) &
           ((((uint64_t)1 << (((31)) - ((26)) + 1)) - 1) << ((26)))) >>
          (26)) +
         1;
}


x86 assembly (clang, -O0):
<cpuid_pkg_maxPhysicalProcessorCores>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x4,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    -0x4(%rbp),%rdx
lea    -0x8(%rbp),%rcx
lea    -0xc(%rbp),%r8
lea    -0x10(%rbp),%r9
call   1030 <cpuidInput_rax_rcx@plt>
mov    -0x4(%rbp),%eax
and    $0xfc000000,%eax
sar    $0x1a,%eax
add    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpuid_pkg_maxPhysicalProcessorCores>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <cpuidInput_rax_rcx@plt>
mov    0x8(%rsp),%eax
sar    $0x1a,%eax
add    $0x1,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @cpuid_pkg_maxPhysicalProcessorCores() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 4, i32* %5
store i32 0, i32* %6
%7 = load i32, i32* %5
%8 = load i32, i32* %6
%9 = call i32 @cpuidInput_rax_rcx(i32 %7, i32 %8, i32* %1, i32* %2, i32* %3, i32* %4)
%10 = load i32, i32* %1
%11 = and i32 %10, -67108864
%12 = ashr i32 %11, 26
%13 = add nsw i32 %12, 1
ret i32 %13
}

LLVM IR (-O2):
define i32 @cpuid_pkg_maxPhysicalProcessorCores() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = call i32 @cpuidInput_rax_rcx(i32 4, i32 0, i32* %1, i32* %2, i32* %3, i32* %4)
%10 = load i32, i32* %1
%11 = ashr i32 %10, 26
%12 = add nsw i32 %11, 1
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ mbus_remote_register_write(int, int, int);
void debug_message() { mbus_remote_register_write(0x01, 0x04, 0xDEADBEEF); }


x86 assembly (clang, -O0):
<debug_message>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
mov    $0x4,%esi
mov    $0xdeadbeef,%edx
call   1030 <mbus_remote_register_write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_message>:
mov    $0x1,%edi
mov    $0x4,%esi
mov    $0xdeadbeef,%edx
jmp    1030 <mbus_remote_register_write@plt>

LLVM IR (-O0):
define void @debug_message() {
%1 = call i32 @mbus_remote_register_write(i32 1, i32 4, i32 -559038737)
ret void
}

LLVM IR (-O2):
define void @debug_message() {
%1 = tail call i32 @mbus_remote_register_write(i32 1, i32 4, i32 -559038737)
ret void
}
/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ strcat(char *, char const *);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
char *cat(const char *a, const char *b) {
  int l = strlen(a) + strlen(b) + 1;
  char *res = (char *)malloc(l);
  strcpy(res, a);
  strcat(res, b);
  return res;
}


x86 assembly (clang, -O0):
<cat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cat>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    (%r15,%rax,1),%edi
add    $0x1,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r12,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1060 <strcat@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i8* @cat(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
%11 = add nsw i32 %8, %10
%12 = add nsw i32 %11, 1
store i32 %12, i32* %5
%13 = load i32, i32* %5
%14 = call i64 @malloc(i32 %13)
%15 = inttoptr i64 %14 to i8*
store i8* %15, i8** %6
%16 = load i8*, i8** %6
%17 = load i8*, i8** %3
%18 = call i32 @strcpy(i8* %16, i8* %17)
%19 = load i8*, i8** %6
%20 = load i8*, i8** %4
%21 = call i32 @strcat(i8* %19, i8* %20)
%22 = load i8*, i8** %6
ret i8* %22
}

LLVM IR (-O2):
define i8* @cat(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = add i32 %3, 1
%6 = add i32 %5, %4
%7 = tail call i64 @malloc(i32 %6)
%8 = inttoptr i64 %7 to i8*
%9 = tail call i32 @strcpy(i8* %8, i8* %0)
%10 = tail call i32 @strcat(i8* %8, i8* %1)
ret i8* %8
}
/* Variables and functions */
char *wPopString();
int /*<<< orphan*/ wPushString(char *);
void wBasStr() {
  char *string;
  string = wPopString();
  wPushString(string);
}


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

x86 assembly (clang, -O2):
<wBasStr>:
push   %rax
xor    %eax,%eax
call   1030 <wPopString@plt>
mov    %rax,%rdi
pop    %rax
jmp    1040 <wPushString@plt>

LLVM IR (-O0):
define void @wBasStr() {
%1 = alloca i8*
%2 = call i8* (...) @wPopString()
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @wPushString(i8* %3)
ret void
}

LLVM IR (-O2):
define void @wBasStr() {
%1 = tail call i8* (...) @wPopString()
%2 = tail call i32 @wPushString(i8* %1)
ret void
}
__attribute__((no, noclone)) int J0(int A, int B) {
  int C = A | B;
  int D = A & B;
  return C | D;
}


x86 assembly (clang, -O0):
<J0>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
or     -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
and    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
or     -0x10(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @J0(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* %4
%9 = or i32 %7, %8
store i32 %9, i32* %5
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = and i32 %10, %11
store i32 %12, i32* %6
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = or i32 %13, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @J0(i32 %0, i32 %1) {
%3 = or i32 %1, %0
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ p(char *);
void p_newline() { p("\n"); }


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

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

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

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

/* Variables and functions */
int usleep(useconds_t usec) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @usleep(i32 %0) {
ret i32 0
}
__attribute__((constructor)) void load(void) {}


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

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

LLVM IR (-O0):
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @load, i8* null }]
define void @load() {
ret void
}

LLVM IR (-O2):
@llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
define void @load() {
ret void
}
/* Variables and functions */
int Kit_TruthWordNum(int);
int Kit_TruthIsConst0(unsigned *pIn, int nVars) {
  int w;
  for (w = Kit_TruthWordNum(nVars) - 1; w >= 0; w--)
    if (pIn[w])
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<Kit_TruthIsConst0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <Kit_TruthWordNum@plt>
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     1168 <Kit_TruthIsConst0+0x58>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     1155 <Kit_TruthIsConst0+0x45>
movl   $0x0,-0x4(%rbp)
jmp    116f <Kit_TruthIsConst0+0x5f>
jmp    115a <Kit_TruthIsConst0+0x4a>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    112d <Kit_TruthIsConst0+0x1d>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Kit_TruthIsConst0>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
call   1030 <Kit_TruthWordNum@plt>
mov    %eax,%eax
nopl   (%rax)
test   %eax,%eax
jle    1133 <Kit_TruthIsConst0+0x23>
cmpl   $0x0,-0x4(%rbx,%rax,4)
lea    -0x1(%rax),%rax
je     1120 <Kit_TruthIsConst0+0x10>
xor    %eax,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @Kit_TruthIsConst0(i32* nocapture %0, i32 %1) {
%3 = tail call i32 @Kit_TruthWordNum(i32 %1)
%4 = zext i32 %3 to i64
br label %5
5: ; preds = %10, %2
%6 = phi i64 [ %7, %10 ], [ %4, %2 ]
%7 = add nsw i64 %6, -1
%8 = trunc i64 %6 to i32
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = getelementptr inbounds i32, i32* %0, i64 %7
%12 = load i32, i32* %11
%13 = icmp eq i32 %12, 0
br i1 %13, label %5, label %14
14: ; preds = %5, %10
%15 = phi i32 [ 0, %10 ], [ 1, %5 ]
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ scanf(char *, float *);
int main(void) {
  int x = 0;
  float *fptr;
  scanf("%f", fptr);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <scanf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
%1 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* undef)
ret i32 0
}
/* Variables and functions */
#define SIGHUP 130
#define SIGINT 129
#define SIGTERM 128
int /*<<< orphan*/ _shutdown();
void shutdown_handler(int signal) {
  switch (signal) {
  case SIGHUP:
  case SIGTERM:
  case SIGINT:
    _shutdown();
    break;
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<shutdown_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
sub    $0x2,%eax
ja     113b <shutdown_handler+0x2b>
jmp    112f <shutdown_handler+0x1f>
mov    $0x0,%al
call   1030 <_shutdown@plt>
jmp    1140 <shutdown_handler+0x30>
jmp    1140 <shutdown_handler+0x30>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shutdown_handler>:
add    $0xffffff80,%edi
cmp    $0x2,%edi
ja     111f <shutdown_handler+0xf>
xor    %eax,%eax
jmp    1030 <_shutdown@plt>
ret

LLVM IR (-O0):
define void @shutdown_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %6 [
i32 130, label %4
i32 128, label %4
i32 129, label %4
]
4: ; preds = %1, %1, %1
%5 = call i32 (...) @_shutdown()
br label %7
6: ; preds = %1
br label %7
7: ; preds = %6, %4
ret void
}

LLVM IR (-O2):
define void @shutdown_handler(i32 %0) {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 3
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @_shutdown()
br label %6
6: ; preds = %1, %4
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
struct wl_shell_surface {
  int dummy;
};
struct wl_proxy {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_marshal(struct wl_proxy *, int /*<<< orphan*/,
                                    int /*<<< orphan*/);
void wl_shell_surface_pong(struct wl_shell_surface *wl_shell_surface,
                           uint32_t serial) {
  wl_proxy_marshal((struct wl_proxy *)wl_shell_surface, 0, serial);
}


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

x86 assembly (clang, -O2):
<wl_shell_surface_pong>:
mov    %esi,%edx
xor    %esi,%esi
jmp    1030 <wl_proxy_marshal@plt>

LLVM IR (-O0):
%struct.wl_shell_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_shell_surface_pong(%struct.wl_shell_surface* %0, i32 %1) {
%3 = alloca %struct.wl_shell_surface*
%4 = alloca i32
store %struct.wl_shell_surface* %0, %struct.wl_shell_surface** %3
store i32 %1, i32* %4
%5 = load %struct.wl_shell_surface*, %struct.wl_shell_surface** %3
%6 = bitcast %struct.wl_shell_surface* %5 to %struct.wl_proxy*
%7 = load i32, i32* %4
%8 = call i32 @wl_proxy_marshal(%struct.wl_proxy* %6, i32 0, i32 %7)
ret void
}

LLVM IR (-O2):
%struct.wl_shell_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_shell_surface_pong(%struct.wl_shell_surface* %0, i32 %1) {
%3 = bitcast %struct.wl_shell_surface* %0 to %struct.wl_proxy*
%4 = tail call i32 @wl_proxy_marshal(%struct.wl_proxy* %3, i32 0, i32 %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ ntohs(int /*<<< orphan*/);
uint16_t minipack_unpack_array16(void *ptr, size_t *sz) {
  *sz = 3;
  return ntohs(*((uint16_t *)(ptr + 1)));
}


x86 assembly (clang, -O0):
<minipack_unpack_array16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movq   $0x3,(%rax)
mov    -0x8(%rbp),%rax
mov    0x1(%rax),%edi
call   1030 <ntohs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<minipack_unpack_array16>:
movq   $0x3,(%rsi)
mov    0x1(%rdi),%edi
jmp    1030 <ntohs@plt>

LLVM IR (-O0):
define i32 @minipack_unpack_array16(i8* %0, i64* %1) {
%3 = alloca i8*
%4 = alloca i64*
store i8* %0, i8** %3
store i64* %1, i64** %4
%5 = load i64*, i64** %4
store i64 3, i64* %5
%6 = load i8*, i8** %3
%7 = getelementptr i8, i8* %6, i64 1
%8 = bitcast i8* %7 to i32*
%9 = load i32, i32* %8
%10 = call i32 @ntohs(i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @minipack_unpack_array16(i8* nocapture %0, i64* nocapture writeonly %1) {
store i64 3, i64* %1
%3 = getelementptr i8, i8* %0, i64 1
%4 = bitcast i8* %3 to i32*
%5 = load i32, i32* %4
%6 = tail call i32 @ntohs(i32 %5)
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ CrossoverInst();
int /*<<< orphan*/ CrossoverInstSamSiz();
int /*<<< orphan*/ CrossoverSeg();
int /*<<< orphan*/ DeletionInst();
int /*<<< orphan*/ DeletionSeg();
int /*<<< orphan*/ InsertionInst();
int /*<<< orphan*/ InsertionSeg();
int /*<<< orphan*/ MutationOps();
void GeneticOps() {
  MutationOps();
  CrossoverInstSamSiz();
  CrossoverInst();
  InsertionInst();
  DeletionInst();
  CrossoverSeg();
  InsertionSeg();
  DeletionSeg();
}


x86 assembly (clang, -O0):
<GeneticOps>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <MutationOps@plt>
mov    $0x0,%al
call   1070 <CrossoverInstSamSiz@plt>
mov    $0x0,%al
call   1060 <CrossoverInst@plt>
mov    $0x0,%al
call   1080 <InsertionInst@plt>
mov    $0x0,%al
call   10a0 <DeletionInst@plt>
mov    $0x0,%al
call   1040 <CrossoverSeg@plt>
mov    $0x0,%al
call   1030 <InsertionSeg@plt>
mov    $0x0,%al
call   1090 <DeletionSeg@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<GeneticOps>:
push   %rax
xor    %eax,%eax
call   1050 <MutationOps@plt>
xor    %eax,%eax
call   1070 <CrossoverInstSamSiz@plt>
xor    %eax,%eax
call   1060 <CrossoverInst@plt>
xor    %eax,%eax
call   1080 <InsertionInst@plt>
xor    %eax,%eax
call   10a0 <DeletionInst@plt>
xor    %eax,%eax
call   1040 <CrossoverSeg@plt>
xor    %eax,%eax
call   1030 <InsertionSeg@plt>
xor    %eax,%eax
pop    %rcx
jmp    1090 <DeletionSeg@plt>

LLVM IR (-O0):
define void @GeneticOps() {
%1 = call i32 (...) @MutationOps()
%2 = call i32 (...) @CrossoverInstSamSiz()
%3 = call i32 (...) @CrossoverInst()
%4 = call i32 (...) @InsertionInst()
%5 = call i32 (...) @DeletionInst()
%6 = call i32 (...) @CrossoverSeg()
%7 = call i32 (...) @InsertionSeg()
%8 = call i32 (...) @DeletionSeg()
ret void
}

LLVM IR (-O2):
define void @GeneticOps() {
%1 = tail call i32 (...) @MutationOps()
%2 = tail call i32 (...) @CrossoverInstSamSiz()
%3 = tail call i32 (...) @CrossoverInst()
%4 = tail call i32 (...) @InsertionInst()
%5 = tail call i32 (...) @DeletionInst()
%6 = tail call i32 (...) @CrossoverSeg()
%7 = tail call i32 (...) @InsertionSeg()
%8 = tail call i32 (...) @DeletionSeg()
ret void
}
/* Type definitions */
struct file_update {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct file_update *);
int /*<<< orphan*/ fup_cleanup(struct file_update *);
void fup_free(struct file_update *fup) {
  fup_cleanup(fup);
  free(fup);
}


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

x86 assembly (clang, -O2):
<fup_free>:
push   %rbx
mov    %rdi,%rbx
call   1040 <fup_cleanup@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.file_update = type { i32 }
define void @fup_free(%struct.file_update* %0) {
%2 = alloca %struct.file_update*
store %struct.file_update* %0, %struct.file_update** %2
%3 = load %struct.file_update*, %struct.file_update** %2
%4 = call i32 @fup_cleanup(%struct.file_update* %3)
%5 = load %struct.file_update*, %struct.file_update** %2
%6 = call i32 @free(%struct.file_update* %5)
ret void
}

LLVM IR (-O2):
%struct.file_update = type { i32 }
define void @fup_free(%struct.file_update* %0) {
%2 = tail call i32 @fup_cleanup(%struct.file_update* %0)
%3 = tail call i32 @free(%struct.file_update* %0)
ret void
}
void rop3_116_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = T ^ *D;
  stk2 = S | stk3;
  stk1 = *D ^ stk2;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_116_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)
movzbl -0xa(%rbp),%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
xor    %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xd(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%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_116_1_1>:
mov    (%rdi),%al
mov    %eax,%ecx
xor    %dl,%cl
or     %sil,%cl
xor    %al,%cl
or     %sil,%dl
xor    %cl,%al
and    %dl,%al
xor    %cl,%al
mov    %al,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_116_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = xor i8 %4, %2
%6 = or i8 %5, %1
%7 = xor i8 %6, %4
%8 = or i8 %2, %1
%9 = xor i8 %8, -1
%10 = and i8 %7, %9
%11 = and i8 %4, %8
%12 = or i8 %11, %10
store i8 %12, i8* %0
ret void
}
/* Type definitions */
struct ln_rst_time {
  int dummy;
};
struct ln_lnlat_posn {
  int dummy;
};
struct ln_equ_posn {
  int dummy;
};

/* Variables and functions */
int ln_get_object_next_rst_horizon(double, struct ln_lnlat_posn *,
                                   struct ln_equ_posn *, double,
                                   struct ln_rst_time *);
int ln_get_object_next_rst(double JD, struct ln_lnlat_posn *observer,
                           struct ln_equ_posn *object,
                           struct ln_rst_time *rst) {
  return ln_get_object_next_rst_horizon(JD, observer, object, -0.5667, rst);
}


x86 assembly (clang, -O0):
<ln_get_object_next_rst>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
movsd  0xebe(%rip),%xmm1
call   1030 <ln_get_object_next_rst_horizon@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.ln_lnlat_posn = type { i32 }
%struct.ln_equ_posn = type { i32 }
%struct.ln_rst_time = type { i32 }
define i32 @ln_get_object_next_rst(double %0, %struct.ln_lnlat_posn* %1, %struct.ln_equ_posn* %2, %struct.ln_rst_time* %3) {
%5 = alloca double
%6 = alloca %struct.ln_lnlat_posn*
%7 = alloca %struct.ln_equ_posn*
%8 = alloca %struct.ln_rst_time*
store double %0, double* %5
store %struct.ln_lnlat_posn* %1, %struct.ln_lnlat_posn** %6
store %struct.ln_equ_posn* %2, %struct.ln_equ_posn** %7
store %struct.ln_rst_time* %3, %struct.ln_rst_time** %8
%9 = load double, double* %5
%10 = load %struct.ln_lnlat_posn*, %struct.ln_lnlat_posn** %6
%11 = load %struct.ln_equ_posn*, %struct.ln_equ_posn** %7
%12 = load %struct.ln_rst_time*, %struct.ln_rst_time** %8
%13 = call i32 @ln_get_object_next_rst_horizon(double %9, %struct.ln_lnlat_posn* %10, %struct.ln_equ_posn* %11, double -5.667000e-01, %struct.ln_rst_time* %12)
ret i32 %13
}

LLVM IR (-O2):
%struct.ln_lnlat_posn = type { i32 }
%struct.ln_equ_posn = type { i32 }
%struct.ln_rst_time = type { i32 }
define i32 @ln_get_object_next_rst(double %0, %struct.ln_lnlat_posn* %1, %struct.ln_equ_posn* %2, %struct.ln_rst_time* %3) {
%5 = tail call i32 @ln_get_object_next_rst_horizon(double %0, %struct.ln_lnlat_posn* %1, %struct.ln_equ_posn* %2, double -5.667000e-01, %struct.ln_rst_time* %3)
ret i32 %5
}
void ff_hevc_put_hevc_uni_pel_pixels12_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_pel_pixels12_8_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ setClean(void *, int);
void setCleanCC(void *pa, unsigned char uc) { setClean(pa, uc > 63 ? 0 : 1); }


x86 assembly (clang, -O0):
<setCleanCC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
movzbl -0x9(%rbp),%ecx
mov    $0x1,%esi
xor    %eax,%eax
cmp    $0x3f,%ecx
cmovg  %eax,%esi
call   1030 <setClean@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setCleanCC>:
xor    %eax,%eax
cmp    $0x40,%sil
setb   %al
mov    %eax,%esi
jmp    1030 <setClean@plt>

LLVM IR (-O0):
define void @setCleanCC(i8* %0, i8 zeroext %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 = zext i8 %6 to i32
%8 = icmp sgt i32 %7, 63
%9 = zext i1 %8 to i64
%10 = select i1 %8, i32 0, i32 1
%11 = call i32 @setClean(i8* %5, i32 %10)
ret void
}

LLVM IR (-O2):
define void @setCleanCC(i8* %0, i8 zeroext %1) {
%3 = icmp ult i8 %1, 64
%4 = zext i1 %3 to i32
%5 = tail call i32 @setClean(i8* %0, i32 %4)
ret void
}
/* Type definitions */
struct stack_impl {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int stack_impl_ops_is_empty(struct stack_impl *stack_impl) {
  printf("stack_impl::is_empty()\n");
  return 0;
}


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

x86 assembly (clang, -O2):
<stack_impl_ops_is_empty>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stack_impl = type { i32 }
@.str = [24 x i8] c"stack_impl::is_empty()\0A\00"
define i32 @stack_impl_ops_is_empty(%struct.stack_impl* %0) {
%2 = alloca %struct.stack_impl*
store %struct.stack_impl* %0, %struct.stack_impl** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
%struct.stack_impl = type { i32 }
@str = [23 x i8] c"stack_impl::is_empty()\00"
define i32 @stack_impl_ops_is_empty(%struct.stack_impl* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
__attribute__((visibility("default"))) void *sd_network_monitor_unref(void *m) {
  return NULL;
}


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

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

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

LLVM IR (-O2):
define noalias i8* @sd_network_monitor_unref(i8* nocapture readnone %0) {
ret i8* null
}
/* Variables and functions */
int hfunc1();
int func1() { return hfunc1(); }


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

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

LLVM IR (-O0):
define i32 @func1() {
%1 = call i32 (...) @hfunc1()
ret i32 %1
}

LLVM IR (-O2):
define i32 @func1() {
%1 = tail call i32 (...) @hfunc1()
ret i32 %1
}
void gtk_tree_model_iter_has_child() {}


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

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

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

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