xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ FlightModeSettingsHandle();
int /*<<< orphan*/ UAVObjRequestUpdate(int /*<<< orphan*/);
void FlightModeSettingsRequestUpdate() {
  UAVObjRequestUpdate(FlightModeSettingsHandle());
}


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

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

LLVM IR (-O0):
define void @FlightModeSettingsRequestUpdate() {
%1 = call i32 (...) @FlightModeSettingsHandle()
%2 = call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}

LLVM IR (-O2):
define void @FlightModeSettingsRequestUpdate() {
%1 = tail call i32 (...) @FlightModeSettingsHandle()
%2 = tail call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}
void *untag_pointer(void *p) { return p; }


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

x86 assembly (clang, -O2):
<untag_pointer>:
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i8* @untag_pointer(i8* readnone returned %0) {
ret i8* %0
}
void acc_kernels() {
  int i, j, k;
#pragma acc kernels num_gangs(i)
  ;
#pragma acc kernels num_workers(j)
  ;
#pragma acc kernels vector_length(k)
  ;
}


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

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

LLVM IR (-O0):
define void @acc_kernels() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
ret void
}

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


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

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

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

LLVM IR (-O2):
define void @pollen_math_Random8_targetInit__I() {
ret void
}
int foo11() { return 11; }


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

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

LLVM IR (-O0):
define i32 @foo11() {
ret i32 11
}

LLVM IR (-O2):
define i32 @foo11() {
ret i32 11
}
int test_imm_5Fuint16_mem(unsigned short *val) {
  return ((*val) & (0x5F << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_5Fuint16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzwl (%rax),%edx
and    $0x5f,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_5Fuint16_mem>:
testb  $0x5f,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_5Fuint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 95
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ test_unsigned_neg();
void main() { test_unsigned_neg(); }


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

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

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

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @test_unsigned_neg()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ stderr;
char *translateErrorCodeToMessage(unsigned char);
void raiseError(unsigned char errorCode) {
  char *errorMessage = translateErrorCodeToMessage(errorCode);
  if (errorMessage != NULL) {
    fprintf(stderr, "Error from host virtual core: %s\n", errorMessage);
    free(errorMessage);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<raiseError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edi
call   1040 <translateErrorCodeToMessage@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1188 <raiseError+0x48>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe86(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<raiseError>:
push   %rbx
call   1040 <translateErrorCodeToMessage@plt>
test   %rax,%rax
je     116e <raiseError+0x2e>
mov    %rax,%rbx
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
mov    %rbx,%rdx
call   1050 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"Error from host virtual core: %s\0A\00"
define void @raiseError(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i8*
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = call i8* @translateErrorCodeToMessage(i8 zeroext %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %14
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %3
%11 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load i8*, i8** %3
%13 = call i32 @free(i8* %12)
br label %14
14: ; preds = %8, %1
%15 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"Error from host virtual core: %s\0A\00"
define void @raiseError(i8 zeroext %0) {
%2 = tail call i8* @translateErrorCodeToMessage(i8 zeroext %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %2)
%7 = tail call i32 @free(i8* %2)
br label %8
8: ; preds = %4, %1
%9 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
struct server_list {
  int dummy;
};
struct genlist {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ genlist_clear(struct genlist *);
void server_list_clear(struct server_list *tthis) {
  genlist_clear(((struct genlist *)(tthis)));
}


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

x86 assembly (clang, -O2):
<server_list_clear>:
jmp    1030 <genlist_clear@plt>

LLVM IR (-O0):
%struct.server_list = type { i32 }
%struct.genlist = type { i32 }
define void @server_list_clear(%struct.server_list* %0) {
%2 = alloca %struct.server_list*
store %struct.server_list* %0, %struct.server_list** %2
%3 = load %struct.server_list*, %struct.server_list** %2
%4 = bitcast %struct.server_list* %3 to %struct.genlist*
%5 = call i32 @genlist_clear(%struct.genlist* %4)
ret void
}

LLVM IR (-O2):
%struct.server_list = type { i32 }
%struct.genlist = type { i32 }
define void @server_list_clear(%struct.server_list* %0) {
%2 = bitcast %struct.server_list* %0 to %struct.genlist*
%3 = tail call i32 @genlist_clear(%struct.genlist* %2)
ret void
}
/* Variables and functions */
scalar_t__ is_g(unsigned char *, int);
scalar_t__ is_t(unsigned char *, int);
int is_gtg(unsigned char *seq, int n) {
  if (is_g(seq, n) == 0 || is_t(seq, n + 1) == 0 || is_g(seq, n + 2) == 0)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<is_gtg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <is_g@plt>
cmp    $0x0,%rax
je     1177 <is_gtg+0x57>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
call   1030 <is_t@plt>
cmp    $0x0,%rax
je     1177 <is_gtg+0x57>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
add    $0x2,%esi
call   1040 <is_g@plt>
cmp    $0x0,%rax
jne    1183 <is_gtg+0x63>
movl   $0x0,-0x4(%rbp)
jmp    118a <is_gtg+0x6a>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_gtg>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %rdi,%r14
call   1040 <is_g@plt>
xor    %ebp,%ebp
test   %rax,%rax
je     115b <is_gtg+0x3b>
lea    0x1(%rbx),%esi
mov    %r14,%rdi
call   1030 <is_t@plt>
test   %rax,%rax
je     115b <is_gtg+0x3b>
add    $0x2,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1040 <is_g@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @is_gtg(i8* %0, i32 %1) {
%3 = tail call i64 @is_g(i8* %0, i32 %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %2
%6 = add nsw i32 %1, 1
%7 = tail call i64 @is_t(i8* %0, i32 %6)
%8 = icmp eq i64 %7, 0
br i1 %8, label %14, label %9
9: ; preds = %5
%10 = add nsw i32 %1, 2
%11 = tail call i64 @is_g(i8* %0, i32 %10)
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %9, %2, %5
%15 = phi i32 [ 0, %5 ], [ 0, %2 ], [ %13, %9 ]
ret i32 %15
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void read_input(FILE *input) {
  char line[4096];
  return;
}


x86 assembly (clang, -O0):
<read_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf90,%rsp
mov    %rdi,-0x8(%rbp)
add    $0xf90,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @read_input(i32* %0) {
%2 = alloca i32*
%3 = alloca [4096 x i8]
store i32* %0, i32** %2
ret void
}

LLVM IR (-O2):
define void @read_input(i32* nocapture %0) {
ret void
}
/* Variables and functions */
int html_string(char *, char *);
int html_comment(char *text) {
  return (text != NULL ? html_string("<!-- %s -->\n", text) : 0);
}


x86 assembly (clang, -O0):
<html_comment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     113f <html_comment+0x2f>
mov    -0x8(%rbp),%rsi
lea    0xece(%rip),%rdi
call   1030 <html_string@plt>
mov    %eax,-0xc(%rbp)
jmp    1149 <html_comment+0x39>
xor    %eax,%eax
mov    %eax,-0xc(%rbp)
jmp    1149 <html_comment+0x39>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<html_comment>:
test   %rdi,%rdi
je     1124 <html_comment+0x14>
mov    %rdi,%rsi
lea    0xee1(%rip),%rdi
jmp    1030 <html_string@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [13 x i8] c"<!-- %s -->\0A\00"
define i32 @html_comment(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 @html_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %9
8: ; preds = %1
br label %9
9: ; preds = %8, %5
%10 = phi i32 [ %7, %5 ], [ 0, %8 ]
ret i32 %10
}

LLVM IR (-O2):
@.str = [13 x i8] c"<!-- %s -->\0A\00"
define i32 @html_comment(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @html_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ 0, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ CIP();
int /*<<< orphan*/ IDO();
int /*<<< orphan*/ init_cond();
int /*<<< orphan*/ upwind();
int main() {
  init_cond();
  IDO();
  init_cond();
  CIP();
  init_cond();
  upwind();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <init_cond@plt>
xor    %eax,%eax
call   1050 <IDO@plt>
xor    %eax,%eax
call   1040 <init_cond@plt>
xor    %eax,%eax
call   1060 <CIP@plt>
xor    %eax,%eax
call   1040 <init_cond@plt>
xor    %eax,%eax
call   1030 <upwind@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @init_cond()
%3 = call i32 (...) @IDO()
%4 = call i32 (...) @init_cond()
%5 = call i32 (...) @CIP()
%6 = call i32 (...) @init_cond()
%7 = call i32 (...) @upwind()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @init_cond()
%2 = tail call i32 (...) @IDO()
%3 = tail call i32 (...) @init_cond()
%4 = tail call i32 (...) @CIP()
%5 = tail call i32 (...) @init_cond()
%6 = tail call i32 (...) @upwind()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ softwareurecursiveboehm();
int main() {
  printf("Hello world\n");
  printf("softwareurecursiveboehm\n");
  softwareurecursiveboehm();
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [13 x i8] c"Hello world\0A\00"
@.str.1 = [25 x i8] c"softwareurecursiveboehm\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @softwareurecursiveboehm()
ret i32 0
}

LLVM IR (-O2):
@str = [12 x i8] c"Hello world\00"
@str.2 = [24 x i8] c"softwareurecursiveboehm\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 (...) @softwareurecursiveboehm()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ __io_getchar();
__attribute__((weak)) int _read(int file, char *ptr, int len) {
  (void)(file);
  int DataIdx;
  for (DataIdx = 0; DataIdx < len; DataIdx++) {
    *ptr++ = __io_getchar();
  }
  return len;
}


x86 assembly (clang, -O0):
<_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    115d <_read+0x4d>
mov    $0x0,%al
call   1030 <__io_getchar@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1129 <_read+0x19>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_read>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
test   %edx,%edx
jle    1143 <_read+0x33>
mov    %rsi,%r15
mov    %r14d,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <__io_getchar@plt>
mov    %al,(%r15,%rbx,1)
add    $0x1,%rbx
cmp    %ebx,%ebp
jne    1130 <_read+0x20>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define weak i32 @_read(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
store i32 0, i32* %7
br label %9
9: ; preds = %18, %3
%10 = load i32, i32* %7
%11 = load i32, i32* %6
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %21
13: ; preds = %9
%14 = call i32 (...) @__io_getchar()
%15 = trunc i32 %14 to i8
%16 = load i8*, i8** %5
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %5
store i8 %15, i8* %16
br label %18
18: ; preds = %13
%19 = load i32, i32* %7
%20 = add nsw i32 %19, 1
store i32 %20, i32* %7
br label %9
21: ; preds = %9
%22 = load i32, i32* %6
ret i32 %22
}

LLVM IR (-O2):
define weak i32 @_read(i32 %0, i8* %1, i32 %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %13
5: ; preds = %3, %5
%6 = phi i32 [ %11, %5 ], [ 0, %3 ]
%7 = phi i8* [ %10, %5 ], [ %1, %3 ]
%8 = tail call i32 (...) @__io_getchar()
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, i8* %7, i64 1
store i8 %9, i8* %7
%11 = add nuw nsw i32 %6, 1
%12 = icmp eq i32 %11, %2
br i1 %12, label %13, label %5
13: ; preds = %5, %3
ret i32 %2
}
/* Variables and functions */
int DensitySemiSolid(int /*<<< orphan*/);
int /*<<< orphan*/ GBackDensity(int, int);
int GBackSemiSolid(int x, int y) {
  return DensitySemiSolid(GBackDensity(x, y));
}


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

x86 assembly (clang, -O2):
<GBackSemiSolid>:
push   %rax
call   1030 <GBackDensity@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <DensitySemiSolid@plt>

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

LLVM IR (-O2):
define i32 @GBackSemiSolid(i32 %0, i32 %1) {
%3 = tail call i32 @GBackDensity(i32 %0, i32 %1)
%4 = tail call i32 @DensitySemiSolid(i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ hcreate(int);
void hash_table_create() { hcreate(100000); }


x86 assembly (clang, -O0):
<hash_table_create>:
push   %rbp
mov    %rsp,%rbp
mov    $0x186a0,%edi
call   1030 <hcreate@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_table_create>:
mov    $0x186a0,%edi
jmp    1030 <hcreate@plt>

LLVM IR (-O0):
define void @hash_table_create() {
%1 = call i32 @hcreate(i32 100000)
ret void
}

LLVM IR (-O2):
define void @hash_table_create() {
%1 = tail call i32 @hcreate(i32 100000)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;

/* Variables and functions */
int /*<<< orphan*/ os_freakout();
int os_mkdir(char const *, int /*<<< orphan*/, int *);
int mkdir(const char *dirname, mode_t mode) {
  int rc;
  if (os_mkdir(dirname, mode, &rc) == -1)
    os_freakout();
  return rc;
}


x86 assembly (clang, -O0):
<mkdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdx
call   1030 <os_mkdir@plt>
cmp    $0xffffffff,%eax
jne    114f <mkdir+0x2f>
mov    $0x0,%al
call   1040 <os_freakout@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkdir>:
push   %rax
lea    0x4(%rsp),%rdx
call   1030 <os_mkdir@plt>
cmp    $0xffffffff,%eax
jne    1137 <mkdir+0x17>
xor    %eax,%eax
call   1040 <os_freakout@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @mkdir(i8* %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = call i32 @os_mkdir(i8* %0, i32 %1, i32* %3)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 (...) @os_freakout()
br label %9
9: ; preds = %7, %2
%10 = load i32, i32* %3
ret i32 %10
}
f(unsigned char *a) {
  int i, j;
  int x, y;
  j = a[1];
  i = a[0] - j;
  if (i < 0) {
    x = 1;
    y = -i;
  } else {
    x = 0;
    y = i;
  }
  return x + y;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    113e <f+0x3e>
movl   $0x1,-0x14(%rbp)
xor    %eax,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    114b <f+0x4b>
movl   $0x0,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
movzbl 0x1(%rdi),%eax
movzbl (%rdi),%ecx
sub    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
mov    %ecx,%eax
neg    %eax
cmovs  %ecx,%eax
add    %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @f(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = load i8, i8* %0
%6 = zext i8 %5 to i32
%7 = sub nsw i32 %6, %4
%8 = lshr i32 %7, 31
%9 = tail call i32 @llvm.abs.i32(i32 %7, i1 true)
%10 = add nuw nsw i32 %8, %9
ret i32 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *filePointer(int, char **);
int /*<<< orphan*/ solve(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  FILE *fp = filePointer(argc, argv);
  if (fp == NULL)
    return 1;
  solve(fp);
  fclose(fp);
  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    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <filePointer@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    116d <main+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    118b <main+0x5b>
mov    -0x18(%rbp),%rdi
call   1030 <solve@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x2e5a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
call   1050 <filePointer@plt>
test   %rax,%rax
je     1159 <main+0x29>
mov    %rax,%rbx
mov    %rax,%rdi
call   1030 <solve@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32* @filePointer(i32 %0, i8** %1)
%4 = icmp eq i32* %3, null
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i32 @solve(i32* %3)
%7 = tail call i32 @fclose(i32* %3)
%8 = load i32, i32* @EXIT_SUCCESS
br label %9
9: ; preds = %2, %5
%10 = phi i32 [ %8, %5 ], [ 1, %2 ]
ret i32 %10
}
void CFGMR3QueryU64Def(void) {}


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

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

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

LLVM IR (-O2):
define void @CFGMR3QueryU64Def() {
ret void
}
int _fstat_r(struct _reent *r, int file, struct stat *st) { return -1; }


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

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

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

LLVM IR (-O2):
%struct._reent = type opaque
%struct.stat = type opaque
define i32 @_fstat_r(%struct._reent* nocapture readnone %0, i32 %1, %struct.stat* nocapture readnone %2) {
ret i32 -1
}
void setup_frame_alloc() {
  unsigned char *frames_ptr = (void *)0xC1400000;
  for (int i = 0; i < 0x400; i++) {
    frames_ptr[i] = 1;
  }
  for (int i = 0x400; i < 0x100000; i++) {
    frames_ptr[i] = 0;
  }
}


x86 assembly (clang, -O0):
<setup_frame_alloc>:
push   %rbp
mov    %rsp,%rbp
mov    $0xc1400000,%eax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x400,-0xc(%rbp)
jge    113b <setup_frame_alloc+0x3b>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x1,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1114 <setup_frame_alloc+0x14>
movl   $0x400,-0x10(%rbp)
cmpl   $0x100000,-0x10(%rbp)
jge    1169 <setup_frame_alloc+0x69>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1142 <setup_frame_alloc+0x42>
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup_frame_alloc>:
push   %rax
mov    $0xc1400000,%edi
mov    $0x400,%edx
mov    $0x1,%esi
call   1030 <memset@plt>
mov    $0xc1400400,%edi
mov    $0xffc00,%edx
xor    %esi,%esi
call   1030 <memset@plt>
pop    %rax
ret

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

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


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

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

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

LLVM IR (-O2):
define void @mknod() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() { printf("Nothing to see here.\n"); }


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"Nothing to see here.\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [21 x i8] c"Nothing to see here.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ snprintf(char *, int, char *, int, int);
int /*<<< orphan*/ stdout;
int c_scrlu(int n) {
  char c[6];
  snprintf(c, 6, "%c[%dS", 0x1b, n);
  return fputs(c, stdout);
}


x86 assembly (clang, -O0):
<c_scrlu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0xa(%rbp),%rdi
mov    -0x4(%rbp),%r8d
mov    $0x6,%esi
lea    0xec1(%rip),%rdx
mov    $0x1b,%ecx
call   1030 <snprintf@plt>
lea    -0xa(%rbp),%rdi
mov    0x2e8c(%rip),%rax
mov    (%rax),%esi
call   1040 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_scrlu>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%r8d
lea    0xed1(%rip),%rdx
lea    0xa(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x1b,%ecx
call   1030 <snprintf@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1040 <fputs@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%c[%dS\00"
@stdout = global i32 0
define i32 @c_scrlu(i32 %0) {
%2 = alloca i32
%3 = alloca [6 x i8]
store i32 %0, i32* %2
%4 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%5 = load i32, i32* %2
%6 = call i32 @snprintf(i8* %4, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 27, i32 %5)
%7 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%8 = load i32, i32* @stdout
%9 = call i32 @fputs(i8* %7, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
@.str = [7 x i8] c"%c[%dS\00"
@stdout = global i32 0
define i32 @c_scrlu(i32 %0) {
%2 = alloca [6 x i8]
%3 = getelementptr inbounds [6 x i8], [6 x i8]* %2, i64 0, i64 0
%4 = call i32 @snprintf(i8* %3, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 27, i32 %0)
%5 = load i32, i32* @stdout
%6 = call i32 @fputs(i8* %3, i32 %5)
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ died(int, int /*<<< orphan*/);
void ohome2(int died_reason) { died(died_reason, 0); }


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

x86 assembly (clang, -O2):
<ohome2>:
xor    %esi,%esi
jmp    1030 <died@plt>

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

LLVM IR (-O2):
define void @ohome2(i32 %0) {
%2 = tail call i32 @died(i32 %0, i32 0)
ret void
}
/* Variables and functions */
int _IONBF;
int scalanative_libc_ionbf() { return _IONBF; }


x86 assembly (clang, -O0):
<scalanative_libc_ionbf>:
push   %rbp
mov    %rsp,%rbp
mov    0x2edd(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<scalanative_libc_ionbf>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@_IONBF = global i32 0
define i32 @scalanative_libc_ionbf() {
%1 = load i32, i32* @_IONBF
ret i32 %1
}

LLVM IR (-O2):
@_IONBF = global i32 0
define i32 @scalanative_libc_ionbf() {
%1 = load i32, i32* @_IONBF
ret i32 %1
}
void VecSelfAdd3fv(float v[3], const float a[3]) {
  v[0] += a[0];
  v[1] += a[1];
  v[2] += a[2];
}


x86 assembly (clang, -O0):
<VecSelfAdd3fv>:
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):
<VecSelfAdd3fv>:
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 @VecSelfAdd3fv(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 @VecSelfAdd3fv(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
}
/* Type definitions */
typedef scalar_t__ time_t;

/* Variables and functions */
time_t getNextMinForTs(time_t ts) {
  int modValue = (int)ts % 60;
  return (time_t)(ts + 60 - modValue);
}


x86 assembly (clang, -O0):
<getNextMinForTs>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x3c,%rax
movslq -0xc(%rbp),%rcx
sub    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getNextMinForTs>:
movslq %edi,%rax
imul   $0xffffffff88888889,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x3c,%ecx,%ecx
sub    %eax,%ecx
movslq %ecx,%rax
add    %rdi,%rax
add    $0x3c,%rax
ret

LLVM IR (-O0):
define i64 @getNextMinForTs(i64 %0) {
%2 = alloca i64
%3 = alloca i32
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = trunc i64 %4 to i32
%6 = srem i32 %5, 60
store i32 %6, i32* %3
%7 = load i64, i64* %2
%8 = add nsw i64 %7, 60
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = sub nsw i64 %8, %10
ret i64 %11
}

LLVM IR (-O2):
define i64 @getNextMinForTs(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = srem i32 %2, 60
%4 = add nsw i64 %0, 60
%5 = sub nsw i32 0, %3
%6 = sext i32 %5 to i64
%7 = add i64 %4, %6
ret i64 %7
}
void SPIM_RX_ISR(void) {}


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

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

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

LLVM IR (-O2):
define void @SPIM_RX_ISR() {
ret void
}
int main() {
  int *p;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
void brace_check(int cquad[], int pnctn_sts[]) {
  if (cquad[3] == '{') {
    ++pnctn_sts[0];
  }
  if (cquad[3] == '}') {
    --pnctn_sts[0];
  }
}


x86 assembly (clang, -O0):
<brace_check>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x7b,0xc(%rax)
jne    1125 <brace_check+0x25>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
cmpl   $0x7d,0xc(%rax)
jne    113e <brace_check+0x3e>
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0xffffffff,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<brace_check>:
mov    0xc(%rdi),%eax
cmp    $0x7b,%eax
je     110e <brace_check+0xe>
cmp    $0x7d,%eax
je     1119 <brace_check+0x19>
ret
addl   $0x1,(%rsi)
mov    0xc(%rdi),%eax
cmp    $0x7d,%eax
jne    110d <brace_check+0xd>
addl   $0xffffffff,(%rsi)
ret

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

LLVM IR (-O2):
define void @brace_check(i32* nocapture %0, i32* nocapture %1) {
%3 = getelementptr inbounds i32, i32* %0, i64 3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 123
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i32, i32* %1
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
%9 = load i32, i32* %3
br label %10
10: ; preds = %6, %2
%11 = phi i32 [ %9, %6 ], [ %4, %2 ]
%12 = icmp eq i32 %11, 125
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %1
%15 = add nsw i32 %14, -1
store i32 %15, i32* %1
br label %16
16: ; preds = %13, %10
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ off_t;

/* Variables and functions */
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ lseek(int, int, int /*<<< orphan*/);
int main(void) {
  off_t res;
  int fd = 42;
  res = lseek(fd, 0, SEEK_SET);
  res = lseek(fd, 1, SEEK_CUR);
  res = lseek(fd, 2, SEEK_END);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2a,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    0x2ea0(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <lseek@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%edi
mov    0x2e9a(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%esi
call   1030 <lseek@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%edi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%esi
call   1030 <lseek@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edx
mov    $0x2a,%edi
xor    %esi,%esi
call   1030 <lseek@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edx
mov    $0x2a,%edi
mov    $0x1,%esi
call   1030 <lseek@plt>
mov    0x2ea3(%rip),%rax
mov    (%rax),%edx
mov    $0x2a,%edi
mov    $0x2,%esi
call   1030 <lseek@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@SEEK_SET = global i32 0
@SEEK_CUR = global i32 0
@SEEK_END = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 42, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* @SEEK_SET
%6 = call i32 @lseek(i32 %4, i32 0, i32 %5)
store i32 %6, i32* %2
%7 = load i32, i32* %3
%8 = load i32, i32* @SEEK_CUR
%9 = call i32 @lseek(i32 %7, i32 1, i32 %8)
store i32 %9, i32* %2
%10 = load i32, i32* %3
%11 = load i32, i32* @SEEK_END
%12 = call i32 @lseek(i32 %10, i32 2, i32 %11)
store i32 %12, i32* %2
ret i32 0
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
@SEEK_CUR = global i32 0
@SEEK_END = global i32 0
define i32 @main() {
%1 = load i32, i32* @SEEK_SET
%2 = tail call i32 @lseek(i32 42, i32 0, i32 %1)
%3 = load i32, i32* @SEEK_CUR
%4 = tail call i32 @lseek(i32 42, i32 1, i32 %3)
%5 = load i32, i32* @SEEK_END
%6 = tail call i32 @lseek(i32 42, i32 2, i32 %5)
ret i32 0
}
int IsPrime(int p) {
  int i = 2;
  for (; i < p / 2; i++) {
    if (p % i == 0)
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<IsPrime>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
jge    115b <IsPrime+0x5b>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    1148 <IsPrime+0x48>
movl   $0x0,-0x4(%rbp)
jmp    1162 <IsPrime+0x62>
jmp    114d <IsPrime+0x4d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110e <IsPrime+0xe>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsPrime>:
mov    $0x1,%r8d
cmp    $0x6,%edi
jl     1130 <IsPrime+0x30>
mov    %edi,%esi
shr    %esi
mov    $0x2,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %edi,%eax
cltd
idiv   %ecx
test   %edx,%edx
je     1134 <IsPrime+0x34>
add    $0x1,%ecx
cmp    %ecx,%esi
jne    1120 <IsPrime+0x20>
mov    %r8d,%eax
ret
xor    %r8d,%r8d
mov    %r8d,%eax
ret

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

LLVM IR (-O2):
define i32 @IsPrime(i32 %0) {
%2 = icmp sgt i32 %0, 5
br i1 %2, label %3, label %12
3: ; preds = %1
%4 = lshr i32 %0, 1
br label %7
5: ; preds = %7
%6 = icmp eq i32 %11, %4
br i1 %6, label %12, label %7
7: ; preds = %3, %5
%8 = phi i32 [ %11, %5 ], [ 2, %3 ]
%9 = srem i32 %0, %8
%10 = icmp eq i32 %9, 0
%11 = add nuw nsw i32 %8, 1
br i1 %10, label %12, label %5
12: ; preds = %7, %5, %1
%13 = phi i32 [ 1, %1 ], [ 1, %5 ], [ 0, %7 ]
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ _IO(int, int);
int ioctl(int, int /*<<< orphan*/);
int CED_Free1401(int fh) { return ioctl(fh, _IO(0xce, 26)); }


x86 assembly (clang, -O0):
<CED_Free1401>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0xce,%edi
mov    $0x1a,%esi
call   1030 <_IO@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1040 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CED_Free1401>:
push   %rbx
mov    %edi,%ebx
mov    $0xce,%edi
mov    $0x1a,%esi
call   1030 <_IO@plt>
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
jmp    1040 <ioctl@plt>

LLVM IR (-O0):
define i32 @CED_Free1401(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_IO(i32 206, i32 26)
%5 = call i32 @ioctl(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @CED_Free1401(i32 %0) {
%2 = tail call i32 @_IO(i32 206, i32 26)
%3 = tail call i32 @ioctl(i32 %0, i32 %2)
ret i32 %3
}
/* Variables and functions */
scalar_t__ malloc(int);
void weak_update_malloc2_Bad_FN() {
  int a[10];
  int *x = (int *)malloc(sizeof(int) * 2);
  x[0] = 0;
  a[x[1]] = 0;
}


x86 assembly (clang, -O0):
<weak_update_malloc2_Bad_FN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x38(%rbp),%rax
movslq 0x4(%rax),%rax
movl   $0x0,-0x30(%rbp,%rax,4)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<weak_update_malloc2_Bad_FN>:
push   %rax
mov    $0x8,%edi
call   1030 <malloc@plt>
movl   $0x0,(%rax)
pop    %rax
ret

LLVM IR (-O0):
define void @weak_update_malloc2_Bad_FN() {
%1 = alloca [10 x i32]
%2 = alloca i32*
%3 = call i64 @malloc(i32 8)
%4 = inttoptr i64 %3 to i32*
store i32* %4, i32** %2
%5 = load i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i64 0
store i32 0, i32* %6
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = load i32, i32* %8
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %10
store i32 0, i32* %11
ret void
}

LLVM IR (-O2):
define void @weak_update_malloc2_Bad_FN() {
%1 = tail call i64 @malloc(i32 8)
%2 = inttoptr i64 %1 to i32*
store i32 0, i32* %2
ret void
}
/* Variables and functions */
float clampf(float, int /*<<< orphan*/, int);
float saturatef(float x) { return clampf(x, 0, 1); }


x86 assembly (clang, -O0):
<saturatef>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <clampf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<saturatef>:
xor    %edi,%edi
mov    $0x1,%esi
jmp    1030 <clampf@plt>

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

LLVM IR (-O2):
define float @saturatef(float %0) {
%2 = tail call float @clampf(float %0, i32 0, i32 1)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ gen_op_load_xer();
void spr_read_xer(void *opaque, int sprn) { gen_op_load_xer(); }


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

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

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

LLVM IR (-O2):
define void @spr_read_xer(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 (...) @gen_op_load_xer()
ret void
}