xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalnum(int);
void t_isalnum_0x84() {
  Assert_real((isalnum(132) == 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_isalnum.c",
              665, ("isalnum should be 0 for 0x84"));
}


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

x86 assembly (clang, -O2):
<t_isalnum_0x84>:
push   %rax
mov    $0x84,%edi
call   1030 <isalnum@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x299,%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_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0x84\00"
define void @t_isalnum_0x84() {
%1 = call i64 @isalnum(i32 132)
%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 665, i8* getelementptr inbounds ([29 x i8], [29 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_isalnum.c\00"
@.str.1 = [29 x i8] c"isalnum should be 0 for 0x84\00"
define void @t_isalnum_0x84() {
%1 = tail call i64 @isalnum(i32 132)
%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 665, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mdaq_pwm_stop(unsigned char);
void PWMTerminate(unsigned char module) {
  module *= 2;
  mdaq_pwm_stop(module);
  mdaq_pwm_stop(module + 1);
}


x86 assembly (clang, -O0):
<PWMTerminate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edi
call   1030 <mdaq_pwm_stop@plt>
movzbl -0x1(%rbp),%eax
add    $0x1,%eax
movzbl %al,%edi
call   1030 <mdaq_pwm_stop@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PWMTerminate>:
push   %rbx
add    %dil,%dil
movzbl %dil,%ebx
mov    %ebx,%edi
call   1030 <mdaq_pwm_stop@plt>
or     $0x1,%bl
movzbl %bl,%edi
pop    %rbx
jmp    1030 <mdaq_pwm_stop@plt>

LLVM IR (-O0):
define void @PWMTerminate(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = mul nsw i32 %4, 2
%6 = trunc i32 %5 to i8
store i8 %6, i8* %2
%7 = load i8, i8* %2
%8 = call i32 @mdaq_pwm_stop(i8 zeroext %7)
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = trunc i32 %11 to i8
%13 = call i32 @mdaq_pwm_stop(i8 zeroext %12)
ret void
}

LLVM IR (-O2):
define void @PWMTerminate(i8 zeroext %0) {
%2 = shl i8 %0, 1
%3 = tail call i32 @mdaq_pwm_stop(i8 zeroext %2)
%4 = or i8 %2, 1
%5 = tail call i32 @mdaq_pwm_stop(i8 zeroext %4)
ret void
}
/* Type definitions */
struct kvm_regs {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ KVM_GET_REGS;
int ioctl(int, int /*<<< orphan*/, struct kvm_regs *);
int kvm_get_regs(int fd, struct kvm_regs *regs) {
  return ioctl(fd, KVM_GET_REGS, regs);
}


x86 assembly (clang, -O0):
<kvm_get_regs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ecf(%rip),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
call   1030 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kvm_get_regs>:
mov    %rsi,%rdx
mov    0x2ede(%rip),%rax
mov    (%rax),%esi
jmp    1030 <ioctl@plt>

LLVM IR (-O0):
%struct.kvm_regs = type { i32 }
@KVM_GET_REGS = global i32 0
define i32 @kvm_get_regs(i32 %0, %struct.kvm_regs* %1) {
%3 = alloca i32
%4 = alloca %struct.kvm_regs*
store i32 %0, i32* %3
store %struct.kvm_regs* %1, %struct.kvm_regs** %4
%5 = load i32, i32* %3
%6 = load i32, i32* @KVM_GET_REGS
%7 = load %struct.kvm_regs*, %struct.kvm_regs** %4
%8 = call i32 @ioctl(i32 %5, i32 %6, %struct.kvm_regs* %7)
ret i32 %8
}

LLVM IR (-O2):
%struct.kvm_regs = type { i32 }
@KVM_GET_REGS = global i32 0
define i32 @kvm_get_regs(i32 %0, %struct.kvm_regs* %1) {
%3 = load i32, i32* @KVM_GET_REGS
%4 = tail call i32 @ioctl(i32 %0, i32 %3, %struct.kvm_regs* %1)
ret i32 %4
}
/* Variables and functions */
double RAND_MAX;
double rand();
double read_random_number_generator(void) {
  double a = rand();
  double b = RAND_MAX;
  return a / (b + 1);
}


x86 assembly (clang, -O0):
<read_random_number_generator>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <rand@plt>
movsd  %xmm0,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xebf(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_random_number_generator>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
mov    0x2ec9(%rip),%rax
movsd  (%rax),%xmm1
addsd  0xed5(%rip),%xmm1
divsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@RAND_MAX = global double 0.000000e+00
define double @read_random_number_generator() {
%1 = alloca double
%2 = alloca double
%3 = call double (...) @rand()
store double %3, double* %1
%4 = load double, double* @RAND_MAX
store double %4, double* %2
%5 = load double, double* %1
%6 = load double, double* %2
%7 = fadd double %6, 1.000000e+00
%8 = fdiv double %5, %7
ret double %8
}

LLVM IR (-O2):
@RAND_MAX = global double 0.000000e+00
define double @read_random_number_generator() {
%1 = tail call double (...) @rand()
%2 = load double, double* @RAND_MAX
%3 = fadd double %2, 1.000000e+00
%4 = fdiv double %1, %3
ret double %4
}
/* Type definitions */
struct oneir_app {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct oneir_app *);
void destroy_app(struct oneir_app *app) {
  if (app != NULL) {
    free(app);
  }
}


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

x86 assembly (clang, -O2):
<destroy_app>:
test   %rdi,%rdi
je     111a <destroy_app+0xa>
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
%struct.oneir_app = type { i32 }
define void @destroy_app(%struct.oneir_app* %0) {
%2 = icmp eq %struct.oneir_app* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(%struct.oneir_app* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
void convertPath(char *pathToConvert) {
  while (*pathToConvert != 0) {
    if (*pathToConvert == '\\') {
      *pathToConvert = '/';
    }
    pathToConvert++;
  }
}


x86 assembly (clang, -O0):
<convertPath>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1140 <convertPath+0x40>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
jne    112f <convertPath+0x2f>
mov    -0x8(%rbp),%rax
movb   $0x2f,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <convertPath+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<convertPath>:
jmp    1117 <convertPath+0x17>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movb   $0x2f,(%rdi)
add    $0x1,%rdi
movzbl (%rdi),%eax
cmp    $0x5c,%al
je     1110 <convertPath+0x10>
test   %al,%al
jne    1113 <convertPath+0x13>
ret

LLVM IR (-O0):
define void @convertPath(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %15, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 92
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = load i8*, i8** %2
store i8 47, i8* %14
br label %15
15: ; preds = %13, %8
%16 = load i8*, i8** %2
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %2
br label %3
18: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @convertPath(i8* nocapture %0) {
br label %2
2: ; preds = %6, %1
%3 = phi i8* [ %0, %1 ], [ %7, %6 ]
%4 = load i8, i8* %3
switch i8 %4, label %6 [
i8 0, label %8
i8 92, label %5
]
5: ; preds = %2
store i8 47, i8* %3
br label %6
6: ; preds = %2, %5
%7 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
8: ; preds = %2
ret void
}
/* Variables and functions */
int isblank(int c) { return (c == ' ' || c == '\t'); }


x86 assembly (clang, -O0):
<isblank>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1120 <isblank+0x20>
cmpl   $0x9,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isblank>:
cmp    $0x20,%edi
sete   %al
cmp    $0x9,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @isblank(i32 %0) {
%2 = icmp eq i32 %0, 32
%3 = icmp eq i32 %0, 9
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ fatal(char *);
void google_rd_init(const char *fname) {
  fatal("google"
        ": This build excluded Google Maps support because expat was not "
        "installed.\n");
}


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

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

LLVM IR (-O0):
@.str = [82 x i8] c"google: This build excluded Google Maps support because expat was not installed.\0A\00"
define void @google_rd_init(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @fatal(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [82 x i8] c"google: This build excluded Google Maps support because expat was not installed.\0A\00"
define void @google_rd_init(i8* nocapture readnone %0) {
%2 = tail call i32 @fatal(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ getmem(size_t, int);
long *lgetmem(const int leng) {
  return ((long *)getmem((size_t)leng, sizeof(long)));
}


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

x86 assembly (clang, -O2):
<lgetmem>:
movslq %edi,%rdi
mov    $0x8,%esi
jmp    1030 <getmem@plt>

LLVM IR (-O0):
define i64* @lgetmem(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = call i64 @getmem(i64 %4, i32 8)
%6 = inttoptr i64 %5 to i64*
ret i64* %6
}

LLVM IR (-O2):
define i64* @lgetmem(i32 %0) {
%2 = sext i32 %0 to i64
%3 = tail call i64 @getmem(i64 %2, i32 8)
%4 = inttoptr i64 %3 to i64*
ret i64* %4
}
/* Variables and functions */
int EXIT_SUCCESS;
char *malloc(int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ readlink(char *, void *, int);
int main(int argc, char **argv) {
  char *mybuf = malloc(256);
  readlink(*++argv, (void *)mybuf, 256);
  printf("%s\n", mybuf);
  return EXIT_SUCCESS;
}


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    $0x100,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x100,%edx
call   1030 <readlink@plt>
mov    -0x18(%rbp),%rsi
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    $0x100,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    0x8(%r14),%rdi
mov    %rax,%rsi
mov    $0x100,%edx
call   1030 <readlink@plt>
lea    0xea4(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    0x2e75(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i8* @malloc(i32 256)
store i8* %7, i8** %6
%8 = load i8**, i8*** %5
%9 = getelementptr inbounds i8*, i8** %8, i32 1
store i8** %9, i8*** %5
%10 = load i8*, i8** %9
%11 = load i8*, i8** %6
%12 = call i32 @readlink(i8* %10, i8* %11, i32 256)
%13 = load i8*, i8** %6
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = load i32, i32* @EXIT_SUCCESS
ret i32 %15
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call dereferenceable_or_null(256) i8* @malloc(i32 256)
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = tail call i32 @readlink(i8* %5, i8* %3, i32 256)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
%8 = load i32, i32* @EXIT_SUCCESS
ret i32 %8
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int htonl(int);
extern uint64_t htonll(uint64_t number) {
  return (htonl((number >> 32) & 0xFFFFFFFF) |
          ((uint64_t)(htonl(number & 0xFFFFFFFF)) << 32));
}


x86 assembly (clang, -O0):
<htonll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x20,%ecx
sar    %cl,%edi
and    $0xffffffff,%edi
call   1030 <htonl@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
and    $0xffffffff,%edi
call   1030 <htonl@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%eax
mov    $0x20,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<htonll>:
push   %rbx
mov    %edi,%ebx
call   1030 <htonl@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <htonl@plt>

LLVM IR (-O0):
define i32 @htonll(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 32
%5 = and i32 %4, -1
%6 = call i32 @htonl(i32 %5)
%7 = load i32, i32* %2
%8 = and i32 %7, -1
%9 = call i32 @htonl(i32 %8)
%10 = shl i32 %9, 32
%11 = or i32 %6, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @htonll(i32 %0) {
%2 = tail call i32 @htonl(i32 poison)
%3 = tail call i32 @htonl(i32 %0)
ret i32 poison
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, long long, long long);
int fun_stub_base_12_stub(long long a, long long b) {
  printf("fun_stub_base_12_stub:a = %lld, b = %lld\n", a, b);
  return a + b;
}


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

x86 assembly (clang, -O2):
<fun_stub_base_12_stub>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xedf(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <printf@plt>
add    %r14d,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [42 x i8] c"fun_stub_base_12_stub:a = %lld, b = %lld\0A\00"
define i32 @fun_stub_base_12_stub(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i64 %5, i64 %6)
%8 = load i64, i64* %3
%9 = load i64, i64* %4
%10 = add nsw i64 %8, %9
%11 = trunc i64 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
@.str = [42 x i8] c"fun_stub_base_12_stub:a = %lld, b = %lld\0A\00"
define i32 @fun_stub_base_12_stub(i64 %0, i64 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i64 %0, i64 %1)
%4 = add nsw i64 %1, %0
%5 = trunc i64 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  printf("합 = %d\n평균 = %d", a + b + c, (a + b + c) / 3);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x10(%rsp),%eax
add    0x14(%rsp),%eax
add    0xc(%rsp),%eax
movslq %eax,%rsi
imul   $0x55555556,%rsi,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
shr    $0x20,%rdx
add    %eax,%edx
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [21 x i8] c"\ED\95\A9 = %d\0A\ED\8F\89\EA\B7\A0 = %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = add nsw i32 %6, %7
%9 = load i32, i32* %4
%10 = add nsw i32 %8, %9
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = add nsw i32 %11, %12
%14 = load i32, i32* %4
%15 = add nsw i32 %13, %14
%16 = sdiv i32 %15, 3
%17 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %10, i32 %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [21 x i8] c"\ED\95\A9 = %d\0A\ED\8F\89\EA\B7\A0 = %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = add nsw i32 %9, %8
%11 = load i32, i32* %3
%12 = add nsw i32 %10, %11
%13 = sdiv i32 %12, 3
%14 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %13)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ EVP_CIPHER;

/* Variables and functions */
const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha256(void) { return NULL; }


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

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

LLVM IR (-O0):
define i32* @EVP_aes_256_cbc_hmac_sha256() {
ret i32* null
}

LLVM IR (-O2):
define noalias i32* @EVP_aes_256_cbc_hmac_sha256() {
ret i32* null
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ Exchange(int);
void SIO1update(uint32_t t) { Exchange(-1); }


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

x86 assembly (clang, -O2):
<SIO1update>:
mov    $0xffffffff,%edi
jmp    1030 <Exchange@plt>

LLVM IR (-O0):
define void @SIO1update(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @Exchange(i32 -1)
ret void
}

LLVM IR (-O2):
define void @SIO1update(i32 %0) {
%2 = tail call i32 @Exchange(i32 -1)
ret void
}
int cmc221_init_modemctl_device(struct modem_ctl *mc,
                                struct modem_data *pdata) {
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct.modem_ctl = type opaque
%struct.modem_data = type opaque
define i32 @cmc221_init_modemctl_device(%struct.modem_ctl* nocapture readnone %0, %struct.modem_data* nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_usage() {
  printf("Usage:\n");
  printf("\t$ 3dps --dev /dev/ttyACM0 --speed 115200 --port 666 [--ip "
         "192.168.0.1] [--dbgfile] [--okwait]\n");
}


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [96 x i8] c"\09$ 3dps --dev /dev/ttyACM0 --speed 115200 --port 666 [--ip 192.168.0.1] [--dbgfile] [--okwait]\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.2 = [95 x i8] c"\09$ 3dps --dev /dev/ttyACM0 --speed 115200 --port 666 [--ip 192.168.0.1] [--dbgfile] [--okwait]\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int far_func();
int long_call_func();
int near_func();
int normal_func();
int test() {
  return (long_call_func() + far_func() + near_func() + normal_func());
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <long_call_func@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1060 <far_func@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <near_func@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <normal_func@plt>
mov    %eax,%ecx
mov    -0x4(%rbp),%eax
add    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <long_call_func@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1060 <far_func@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1050 <near_func@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   1030 <normal_func@plt>
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @test() {
%1 = call i32 (...) @long_call_func()
%2 = call i32 (...) @far_func()
%3 = add nsw i32 %1, %2
%4 = call i32 (...) @near_func()
%5 = add nsw i32 %3, %4
%6 = call i32 (...) @normal_func()
%7 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @test() {
%1 = tail call i32 (...) @long_call_func()
%2 = tail call i32 (...) @far_func()
%3 = add nsw i32 %2, %1
%4 = tail call i32 (...) @near_func()
%5 = add nsw i32 %3, %4
%6 = tail call i32 (...) @normal_func()
%7 = add nsw i32 %5, %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ japi_setcolorbg(int, int, int, int);
void j_setcolorbg(int arg0, int arg1, int arg2, int arg3) {
  japi_setcolorbg(arg0, arg1, arg2, arg3);
}


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

x86 assembly (clang, -O2):
<j_setcolorbg>:
jmp    1030 <japi_setcolorbg@plt>

LLVM IR (-O0):
define void @j_setcolorbg(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = call i32 @japi_setcolorbg(i32 %9, i32 %10, i32 %11, i32 %12)
ret void
}

LLVM IR (-O2):
define void @j_setcolorbg(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @japi_setcolorbg(i32 %0, i32 %1, i32 %2, i32 %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
void wait_phyboard(FILE *from_handctl) {
  char buf[6];
  printf("waiting machine...\n");
  fgets(buf, 5, from_handctl);
}


x86 assembly (clang, -O0):
<wait_phyboard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
lea    -0xe(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x5,%esi
call   1040 <fgets@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wait_phyboard>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
lea    0xa(%rsp),%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
call   1040 <fgets@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"waiting machine...\0A\00"
define void @wait_phyboard(i32* %0) {
%2 = alloca i32*
%3 = alloca [6 x i8]
store i32* %0, i32** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%6 = load i32*, i32** %2
%7 = call i32 @fgets(i8* %5, i32 5, i32* %6)
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"waiting machine...\00"
define void @wait_phyboard(i32* nocapture %0) {
%2 = alloca [6 x i8]
%3 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%5 = call i32 @fgets(i8* %3, i32 5, i32* %0)
ret void
}
/* Variables and functions */
int stb_size_varlenu(int);
int stb_size_varlen(int v) {
  return stb_size_varlenu((v < 0 ? (~v << 1) + 1 : (v << 1)));
}


x86 assembly (clang, -O0):
<stb_size_varlen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1139 <stb_size_varlen+0x29>
mov    -0x4(%rbp),%eax
xor    $0xffffffff,%eax
shl    $0x1,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1142 <stb_size_varlen+0x32>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <stb_size_varlenu@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stb_size_varlen>:
lea    (%rdi,%rdi,1),%eax
test   %edi,%edi
not    %edi
lea    0x1(%rdi,%rdi,1),%edi
cmovns %eax,%edi
jmp    1030 <stb_size_varlenu@plt>

LLVM IR (-O0):
define i32 @stb_size_varlen(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %1
%6 = load i32, i32* %2
%7 = xor i32 %6, -1
%8 = shl i32 %7, 1
%9 = add nsw i32 %8, 1
br label %13
10: ; preds = %1
%11 = load i32, i32* %2
%12 = shl i32 %11, 1
br label %13
13: ; preds = %10, %5
%14 = phi i32 [ %9, %5 ], [ %12, %10 ]
%15 = call i32 @stb_size_varlenu(i32 %14)
ret i32 %15
}

LLVM IR (-O2):
define i32 @stb_size_varlen(i32 %0) {
%2 = icmp slt i32 %0, 0
%3 = xor i32 %0, -1
%4 = shl i32 %3, 1
%5 = or i32 %4, 1
%6 = shl i32 %0, 1
%7 = select i1 %2, i32 %5, i32 %6
%8 = tail call i32 @stb_size_varlenu(i32 %7)
ret i32 %8
}
void thread_pool_run_now(void(*worker_func), void *data) {}


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

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

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

LLVM IR (-O2):
define void @thread_pool_run_now(i8* nocapture %0, i8* nocapture %1) {
ret void
}
/* Type definitions */
struct map_sp {
  int dummy;
};

/* Variables and functions */
void **_pbcM_sp_query_insert_hash(struct map_sp *, char const *,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ calc_hash(char const *);
void **_pbcM_sp_query_insert(struct map_sp *map, const char *key) {
  return _pbcM_sp_query_insert_hash(map, key, calc_hash(key));
}


x86 assembly (clang, -O0):
<_pbcM_sp_query_insert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <calc_hash@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <_pbcM_sp_query_insert_hash@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_pbcM_sp_query_insert>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <calc_hash@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <_pbcM_sp_query_insert_hash@plt>

LLVM IR (-O0):
%struct.map_sp = type { i32 }
define i8** @_pbcM_sp_query_insert(%struct.map_sp* %0, i8* %1) {
%3 = alloca %struct.map_sp*
%4 = alloca i8*
store %struct.map_sp* %0, %struct.map_sp** %3
store i8* %1, i8** %4
%5 = load %struct.map_sp*, %struct.map_sp** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @calc_hash(i8* %7)
%9 = call i8** @_pbcM_sp_query_insert_hash(%struct.map_sp* %5, i8* %6, i32 %8)
ret i8** %9
}

LLVM IR (-O2):
%struct.map_sp = type { i32 }
define i8** @_pbcM_sp_query_insert(%struct.map_sp* %0, i8* %1) {
%3 = tail call i32 @calc_hash(i8* %1)
%4 = tail call i8** @_pbcM_sp_query_insert_hash(%struct.map_sp* %0, i8* %1, i32 %3)
ret i8** %4
}
void RTAvlrooGCPtrGetLeft(void) {}


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

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

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

LLVM IR (-O2):
define void @RTAvlrooGCPtrGetLeft() {
ret void
}
int man_ign_pre(const struct roff_meta *man, const struct roff_node *n,
                struct mhtml *mh, struct html *h) {
  return 0;
}


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

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

LLVM IR (-O0):
%struct.roff_meta = type opaque
%struct.roff_node = type opaque
%struct.mhtml = type opaque
%struct.html = type opaque
define i32 @man_ign_pre(%struct.roff_meta* %0, %struct.roff_node* %1, %struct.mhtml* %2, %struct.html* %3) {
%5 = alloca %struct.roff_meta*
%6 = alloca %struct.roff_node*
%7 = alloca %struct.mhtml*
%8 = alloca %struct.html*
store %struct.roff_meta* %0, %struct.roff_meta** %5
store %struct.roff_node* %1, %struct.roff_node** %6
store %struct.mhtml* %2, %struct.mhtml** %7
store %struct.html* %3, %struct.html** %8
ret i32 0
}

LLVM IR (-O2):
%struct.roff_meta = type opaque
%struct.roff_node = type opaque
%struct.mhtml = type opaque
%struct.html = type opaque
define i32 @man_ign_pre(%struct.roff_meta* nocapture readnone %0, %struct.roff_node* nocapture readnone %1, %struct.mhtml* nocapture readnone %2, %struct.html* nocapture readnone %3) {
ret i32 0
}
void par_shapes__add3(float *result, float const *a) {
  result[0] += a[0];
  result[1] += a[1];
  result[2] += a[2];
}


x86 assembly (clang, -O0):
<par_shapes__add3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x8(%rbp),%rax
addss  0x4(%rax),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
addss  0x8(%rax),%xmm0
movss  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<par_shapes__add3>:
movss  (%rsi),%xmm0
addss  (%rdi),%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rsi),%xmm0
addss  0x4(%rdi),%xmm0
movss  %xmm0,0x4(%rdi)
movss  0x8(%rsi),%xmm0
addss  0x8(%rdi),%xmm0
movss  %xmm0,0x8(%rdi)
ret

LLVM IR (-O0):
define void @par_shapes__add3(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %4
%6 = getelementptr inbounds float, float* %5, i64 0
%7 = load float, float* %6
%8 = load float*, float** %3
%9 = getelementptr inbounds float, float* %8, i64 0
%10 = load float, float* %9
%11 = fadd float %10, %7
store float %11, float* %9
%12 = load float*, float** %4
%13 = getelementptr inbounds float, float* %12, i64 1
%14 = load float, float* %13
%15 = load float*, float** %3
%16 = getelementptr inbounds float, float* %15, i64 1
%17 = load float, float* %16
%18 = fadd float %17, %14
store float %18, float* %16
%19 = load float*, float** %4
%20 = getelementptr inbounds float, float* %19, i64 2
%21 = load float, float* %20
%22 = load float*, float** %3
%23 = getelementptr inbounds float, float* %22, i64 2
%24 = load float, float* %23
%25 = fadd float %24, %21
store float %25, float* %23
ret void
}

LLVM IR (-O2):
define void @par_shapes__add3(float* nocapture %0, float* nocapture %1) {
%3 = load float, float* %1
%4 = load float, float* %0
%5 = fadd float %3, %4
store float %5, float* %0
%6 = getelementptr inbounds float, float* %1, i64 1
%7 = load float, float* %6
%8 = getelementptr inbounds float, float* %0, i64 1
%9 = load float, float* %8
%10 = fadd float %7, %9
store float %10, float* %8
%11 = getelementptr inbounds float, float* %1, i64 2
%12 = load float, float* %11
%13 = getelementptr inbounds float, float* %0, i64 2
%14 = load float, float* %13
%15 = fadd float %12, %14
store float %15, float* %13
ret void
}
/* Variables and functions */
int t();
main() { return t(); }


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @t()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ vecMatrixMult();
int main(int argc, char *argv[]) { vecMatrixMult(); }


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

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @vecMatrixMult()
ret i32 0
}
void msDebug(const char *fmt, ...) { (void)fmt; }


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

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

LLVM IR (-O0):
define void @msDebug(i8* %0, ...) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
ret void
}

LLVM IR (-O2):
define void @msDebug(i8* nocapture %0, ...) {
ret void
}
int iscomplete(char w1[], char w2[]) {
  int i;
  for (i = 0; w1[i] != '\0'; i++) {
    if (w2[i] == '_')
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<iscomplete>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     115c <iscomplete+0x5c>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x5f,%eax
jne    1149 <iscomplete+0x49>
movl   $0x0,-0x4(%rbp)
jmp    1163 <iscomplete+0x63>
jmp    114e <iscomplete+0x4e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1113 <iscomplete+0x13>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscomplete>:
mov    $0x1,%eax
cmpb   $0x0,(%rdi)
je     1121 <iscomplete+0x21>
xor    %ecx,%ecx
nopl   0x0(%rax)
cmpb   $0x5f,(%rsi,%rcx,1)
je     1122 <iscomplete+0x22>
cmpb   $0x0,0x1(%rdi,%rcx,1)
lea    0x1(%rcx),%rcx
jne    1110 <iscomplete+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @iscomplete(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %15, label %9
5: ; preds = %9
%6 = getelementptr inbounds i8, i8* %0, i64 %14
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 0
br i1 %8, label %15, label %9
9: ; preds = %2, %5
%10 = phi i64 [ %14, %5 ], [ 0, %2 ]
%11 = getelementptr inbounds i8, i8* %1, i64 %10
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 95
%14 = add nuw i64 %10, 1
br i1 %13, label %15, label %5
15: ; preds = %9, %5, %2
%16 = phi i32 [ 1, %2 ], [ 1, %5 ], [ 0, %9 ]
ret i32 %16
}
/* Variables and functions */
unsigned long db_getsequencecount();
unsigned long sdb_get_sequence_count() { return db_getsequencecount(); }


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

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

LLVM IR (-O0):
define i64 @sdb_get_sequence_count() {
%1 = call i64 (...) @db_getsequencecount()
ret i64 %1
}

LLVM IR (-O2):
define i64 @sdb_get_sequence_count() {
%1 = tail call i64 (...) @db_getsequencecount()
ret i64 %1
}
int abs(int value) {
  if (value < 0)
    return -value;
  return value;
}


x86 assembly (clang, -O0):
<abs>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    111e <abs+0x1e>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1124 <abs+0x24>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<abs>:
mov    %edi,%eax
neg    %eax
cmovs  %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @abs(i32 %0) {
%2 = tail call i32 @llvm.abs.i32(i32 %0, i1 true)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ protected_memory_save();
void native_exit(void) { protected_memory_save(); }


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

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

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

LLVM IR (-O2):
define void @native_exit() {
%1 = tail call i32 (...) @protected_memory_save()
ret void
}
/* Variables and functions */
unsigned long UINT_MAX;
unsigned add_ul(unsigned long augend, long unsigned addend) {
  if ((UINT_MAX - addend) < augend)
    return UINT_MAX;
  return (addend + augend);
}


x86 assembly (clang, -O0):
<add_ul>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    0x2ed5(%rip),%rax
mov    (%rax),%rax
sub    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1136 <add_ul+0x36>
mov    0x2ebd(%rip),%rax
mov    (%rax),%rax
mov    %eax,-0x4(%rbp)
jmp    1141 <add_ul+0x41>
mov    -0x18(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_ul>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%rax
mov    %rax,%rcx
sub    %rsi,%rcx
lea    (%rdi,%rsi,1),%edx
cmp    %rdi,%rcx
cmovae %edx,%eax
ret

LLVM IR (-O0):
@UINT_MAX = global i64 0
define i32 @add_ul(i64 %0, i64 %1) {
%3 = alloca i32
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
%6 = load i64, i64* @UINT_MAX
%7 = load i64, i64* %5
%8 = sub i64 %6, %7
%9 = load i64, i64* %4
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i64, i64* @UINT_MAX
%13 = trunc i64 %12 to i32
store i32 %13, i32* %3
br label %19
14: ; preds = %2
%15 = load i64, i64* %5
%16 = load i64, i64* %4
%17 = add i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, i32* %3
br label %19
19: ; preds = %14, %11
%20 = load i32, i32* %3
ret i32 %20
}

LLVM IR (-O2):
@UINT_MAX = global i64 0
define i32 @add_ul(i64 %0, i64 %1) {
%3 = load i64, i64* @UINT_MAX
%4 = sub i64 %3, %1
%5 = icmp ult i64 %4, %0
%6 = add i64 %1, %0
%7 = select i1 %5, i64 %3, i64 %6
%8 = trunc i64 %7 to i32
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
extern void shmem_double_p(double *addr, double value, int pe) {
  printf("\nOpenSHMEM Analyzer\n");
}


x86 assembly (clang, -O0):
<shmem_double_p>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00"
define void @shmem_double_p(double* %0, double %1, i32 %2) {
%4 = alloca double*
%5 = alloca double
%6 = alloca i32
store double* %0, double** %4
store double %1, double* %5
store i32 %2, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [20 x i8] c"\0AOpenSHMEM Analyzer\00"
define void @shmem_double_p(double* nocapture readnone %0, double %1, i32 %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret void
}
void fc107(int n) {
  {
    typedef int(*b)[n];
    {
      typedef int(*c)[n];
      0;
    }
    {
      typedef int(*d)[n];
      0;
    }
  a:;
    typedef int(*e)[n];
    goto a;
    0;
  };
  {
    typedef int(*f)[n];
    {
      typedef int(*g)[n];
      0;
    };
    {
      typedef int(*h)[n];
      0;
    };
    ;
    typedef int(*i)[n];
    0;
  };
  ;
  typedef int(*j)[n];
  0;
}


x86 assembly (clang, -O0):
<fc107>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fc107+0x7>

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

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

LLVM IR (-O2):
define void @fc107(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
long *am_malloc_longs(int size) {
  long *result = ((long *)malloc((size) * sizeof(long)));
  return (result);
}


x86 assembly (clang, -O0):
<am_malloc_longs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rdi
shl    $0x3,%rdi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<am_malloc_longs>:
movslq %edi,%rdi
shl    $0x3,%rdi
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define i64* @am_malloc_longs(i32 %0) {
%2 = alloca i32
%3 = alloca i64*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = call i8* @malloc(i64 %6)
%8 = bitcast i8* %7 to i64*
store i64* %8, i64** %3
%9 = load i64*, i64** %3
ret i64* %9
}

LLVM IR (-O2):
define noalias i64* @am_malloc_longs(i32 %0) {
%2 = sext i32 %0 to i64
%3 = shl nsw i64 %2, 3
%4 = tail call i8* @malloc(i64 %3)
%5 = bitcast i8* %4 to i64*
ret i64* %5
}