xunge/DecIR huggingface dataset:
void type_tags_placeholder(void) {}


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

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

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

LLVM IR (-O2):
define void @type_tags_placeholder() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ forwardCDeclaration();
int /*<<< orphan*/ normalCDeclaration1();
int /*<<< orphan*/ normalCDeclaration2();
void spin() {
  normalCDeclaration1();
  normalCDeclaration2();
  normalCDeclaration2();
  forwardCDeclaration();
}


x86 assembly (clang, -O0):
<spin>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <normalCDeclaration1@plt>
mov    $0x0,%al
call   1030 <normalCDeclaration2@plt>
mov    $0x0,%al
call   1030 <normalCDeclaration2@plt>
mov    $0x0,%al
call   1050 <forwardCDeclaration@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<spin>:
push   %rax
xor    %eax,%eax
call   1040 <normalCDeclaration1@plt>
xor    %eax,%eax
call   1030 <normalCDeclaration2@plt>
xor    %eax,%eax
call   1030 <normalCDeclaration2@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <forwardCDeclaration@plt>

LLVM IR (-O0):
define void @spin() {
%1 = call i32 (...) @normalCDeclaration1()
%2 = call i32 (...) @normalCDeclaration2()
%3 = call i32 (...) @normalCDeclaration2()
%4 = call i32 (...) @forwardCDeclaration()
ret void
}

LLVM IR (-O2):
define void @spin() {
%1 = tail call i32 (...) @normalCDeclaration1()
%2 = tail call i32 (...) @normalCDeclaration2()
%3 = tail call i32 (...) @normalCDeclaration2()
%4 = tail call i32 (...) @forwardCDeclaration()
ret void
}
int do_120() { return 120; }


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

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

LLVM IR (-O0):
define i32 @do_120() {
ret i32 120
}

LLVM IR (-O2):
define i32 @do_120() {
ret i32 120
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalpha(int);
void t_isalpha_0xfa() {
  Assert_real((isalpha(250) == 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_isalpha.c",
              1255, ("isalpha should be 0 for 0xfa"));
}


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

x86 assembly (clang, -O2):
<t_isalpha_0xfa>:
push   %rax
mov    $0xfa,%edi
call   1030 <isalpha@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x4e7,%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_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xfa\00"
define void @t_isalpha_0xfa() {
%1 = call i64 @isalpha(i32 250)
%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 1255, 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_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xfa\00"
define void @t_isalpha_0xfa() {
%1 = tail call i64 @isalpha(i32 250)
%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 1255, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_error();
int fibo(int);
int main() {
  int x = 10;
  int result = fibo(x);
  if (result != 55) {
    __VERIFIER_error();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <fibo@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x37,-0xc(%rbp)
je     1152 <main+0x32>
mov    $0x0,%al
call   1030 <__VERIFIER_error@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
call   1040 <fibo@plt>
cmp    $0x37,%eax
je     1137 <main+0x17>
xor    %eax,%eax
call   1030 <__VERIFIER_error@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @fibo(i32 10)
%2 = icmp eq i32 %1, 55
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @__VERIFIER_error()
br label %5
5: ; preds = %3, %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ clear_screen();
int /*<<< orphan*/ printf(char *);
void main(void) {
  clear_screen();
  printf("\n>>> SosachOS\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <clear_screen@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

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

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

LLVM IR (-O2):
@str = [14 x i8] c"\0A>>> SosachOS\00"
define void @main() {
%1 = tail call i32 (...) @clear_screen()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct timezone {
  int dummy;
};
struct timeval {
  double tv_sec;
  double tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, struct timezone *);
double timeout_gettime(void) {
  struct timeval v;
  gettimeofday(&v, (struct timezone *)NULL);
  return v.tv_sec + v.tv_usec / 1.0e6;
}


x86 assembly (clang, -O0):
<timeout_gettime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  0xec9(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<timeout_gettime>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movsd  0x10(%rsp),%xmm0
divsd  0xed2(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
%struct.timezone = type { i32 }
define double @timeout_gettime() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load double, double* %3
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%6 = load double, double* %5
%7 = fdiv double %6, 1.000000e+06
%8 = fadd double %4, %7
ret double %8
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
%struct.timezone = type { i32 }
define double @timeout_gettime() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, %struct.timezone* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load double, double* %4
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%7 = load double, double* %6
%8 = fdiv double %7, 1.000000e+06
%9 = fadd double %5, %8
ret double %9
}
void button_chat2_onpress(void) {}


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

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

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

LLVM IR (-O2):
define void @button_chat2_onpress() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ __swahb32p(int /*<<< orphan*/ *);
void __swahb32s(uint32_t *p) { *p = __swahb32p(p); }


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

x86 assembly (clang, -O2):
<__swahb32s>:
push   %rbx
mov    %rdi,%rbx
call   1030 <__swahb32p@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
define void @__swahb32s(i32* %0) {
%2 = tail call i32 @__swahb32p(i32* %0)
store i32 %2, i32* %0
ret void
}
void test80_HelloWorld_targetInit__I() {}


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

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

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

LLVM IR (-O2):
define void @test80_HelloWorld_targetInit__I() {
ret void
}
long f7(long a, long b) { return a + b; }


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

x86 assembly (clang, -O2):
<f7>:
lea    (%rdi,%rsi,1),%rax
ret

LLVM IR (-O0):
define i64 @f7(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 = add nsw i64 %5, %6
ret i64 %7
}

LLVM IR (-O2):
define i64 @f7(i64 %0, i64 %1) {
%3 = add nsw i64 %1, %0
ret i64 %3
}
int test_imm_A6uint8_mem(unsigned char *val) {
  return ((*val) & (0xA6 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_A6uint8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = zext i8 %4 to i32
%6 = and i32 %5, 166
%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_A6uint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -90
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
typedef int GLint;
typedef int GLenum;

/* Variables and functions */
#define GL_EYE_PLANE 130
#define GL_OBJECT_PLANE 129
#define GL_TEXTURE_GEN_MODE 128
GLint __glGetTexGenfv_size(GLenum pname) {
  switch (pname) {
  case GL_TEXTURE_GEN_MODE:
    return 1;
  case GL_OBJECT_PLANE:
    return 4;
  case GL_EYE_PLANE:
    return 4;
  default:
    return -1;
  }
}


x86 assembly (clang, -O0):
<__glGetTexGenfv_size>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x80,%eax
je     1143 <__glGetTexGenfv_size+0x43>
jmp    111d <__glGetTexGenfv_size+0x1d>
mov    -0xc(%rbp),%eax
sub    $0x81,%eax
je     114f <__glGetTexGenfv_size+0x4f>
jmp    1130 <__glGetTexGenfv_size+0x30>
mov    -0xc(%rbp),%eax
sub    $0x82,%eax
je     115b <__glGetTexGenfv_size+0x5b>
jmp    1167 <__glGetTexGenfv_size+0x67>
movl   $0x1,-0x4(%rbp)
jmp    116e <__glGetTexGenfv_size+0x6e>
movl   $0x4,-0x4(%rbp)
jmp    116e <__glGetTexGenfv_size+0x6e>
movl   $0x4,-0x4(%rbp)
jmp    116e <__glGetTexGenfv_size+0x6e>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__glGetTexGenfv_size>:
add    $0xffffff80,%edi
mov    $0xffffffff,%eax
cmp    $0x2,%edi
ja     111a <__glGetTexGenfv_size+0x1a>
movslq %edi,%rax
lea    0xee9(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

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

LLVM IR (-O2):
@switch.table.__glGetTexGenfv_size = [3 x i32] [i32 1, i32 4, i32 4]
define i32 @__glGetTexGenfv_size(i32 %0) {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 3
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds [3 x i32], [3 x i32]* @switch.table.__glGetTexGenfv_size, i64 0, i64 %5
%7 = load i32, i32* %6
br label %8
8: ; preds = %1, %4
%9 = phi i32 [ %7, %4 ], [ -1, %1 ]
ret i32 %9
}
/* Variables and functions */
void *thread_worker(void *data) {
  if (data == NULL)
    goto out;
out:
  return NULL;
}


x86 assembly (clang, -O0):
<thread_worker>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1118 <thread_worker+0x18>
jmp    111d <thread_worker+0x1d>
jmp    111d <thread_worker+0x1d>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i8* @thread_worker(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %7
6: ; preds = %1
br label %7
7: ; preds = %6, %5
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @thread_worker(i8* nocapture readnone %0) {
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ printNeighborAssessmentConfig();
int roamGetNborParams(int argc, char *argv[]) {
  printNeighborAssessmentConfig();
  return (0);
}


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

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

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

LLVM IR (-O2):
define i32 @roamGetNborParams(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @printNeighborAssessmentConfig()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
void negate_mixed(int m, int n) {
  if (m - n > ((~0U) & ~((~0U) >> 1)) && m - n <= 0)
    return;
  clang_analyzer_eval(n - m <= 0);
}


x86 assembly (clang, -O0):
<negate_mixed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
cmp    $0x80000000,%eax
jbe    1143 <negate_mixed+0x33>
mov    -0x4(%rbp),%eax
sub    -0x8(%rbp),%eax
cmp    $0x0,%eax
jg     1143 <negate_mixed+0x33>
jmp    1159 <negate_mixed+0x49>
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
cmp    $0x0,%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<negate_mixed>:
mov    %edi,%eax
sub    %esi,%eax
cmp    $0x80000000,%eax
jbe    111c <negate_mixed+0xc>
ret
xor    %eax,%eax
cmp    %esi,%edi
setge  %al
mov    %eax,%edi
jmp    1030 <clang_analyzer_eval@plt>

LLVM IR (-O0):
define void @negate_mixed(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 = sub nsw i32 %5, %6
%8 = icmp ugt i32 %7, -2147483648
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = sub nsw i32 %10, %11
%13 = icmp sle i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
br label %22
15: ; preds = %9, %2
%16 = load i32, i32* %4
%17 = load i32, i32* %3
%18 = sub nsw i32 %16, %17
%19 = icmp sle i32 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @clang_analyzer_eval(i32 %20)
br label %22
22: ; preds = %15, %14
ret void
}

LLVM IR (-O2):
define void @negate_mixed(i32 %0, i32 %1) {
%3 = sub nsw i32 %0, %1
%4 = icmp ugt i32 %3, -2147483648
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = icmp sge i32 %0, %1
%7 = zext i1 %6 to i32
%8 = tail call i32 @clang_analyzer_eval(i32 %7)
br label %9
9: ; preds = %2, %5
ret void
}
unsigned int test_03_00(unsigned int x) {
  unsigned int res;
  return res;
}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define i32 @test_03_00(i32 %0) {
ret i32 undef
}
int right(int i) { return (i * 2 + 2); }


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

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

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

LLVM IR (-O2):
define i32 @right(i32 %0) {
%2 = shl nsw i32 %0, 1
%3 = add nsw i32 %2, 2
ret i32 %3
}
const char *HighwayList(void) {
  return "    motorway     = Motorway\n"
         "    trunk        = Trunk\n"
         "    primary      = Primary\n"
         "    secondary    = Secondary\n"
         "    tertiary     = Tertiary\n"
         "    unclassified = Unclassified\n"
         "    residential  = Residential\n"
         "    service      = Service\n"
         "    track        = Track\n"
         "    cycleway     = Cycleway\n"
         "    path         = Path\n"
         "    steps        = Steps\n"
         "    ferry        = Ferry\n";
}


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

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

LLVM IR (-O0):
@.str = [355 x i8] c" motorway = Motorway\0A trunk = Trunk\0A primary = Primary\0A secondary = Secondary\0A tertiary = Tertiary\0A unclassified = Unclassified\0A residential = Residential\0A service = Service\0A track = Track\0A cycleway = Cycleway\0A path = Path\0A steps = Steps\0A ferry = Ferry\0A\00"
define i8* @HighwayList() {
ret i8* getelementptr inbounds ([355 x i8], [355 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [355 x i8] c" motorway = Motorway\0A trunk = Trunk\0A primary = Primary\0A secondary = Secondary\0A tertiary = Tertiary\0A unclassified = Unclassified\0A residential = Residential\0A service = Service\0A track = Track\0A cycleway = Cycleway\0A path = Path\0A steps = Steps\0A ferry = Ferry\0A\00"
define i8* @HighwayList() {
ret i8* getelementptr inbounds ([355 x i8], [355 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
struct in_addr {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ Inet_aton(char *, struct in_addr *);
void setIParg(char *string, struct in_addr *addr) {
  Inet_aton(string, addr);
  return;
}


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

x86 assembly (clang, -O2):
<setIParg>:
jmp    1030 <Inet_aton@plt>

LLVM IR (-O0):
%struct.in_addr = type { i32 }
define void @setIParg(i8* %0, %struct.in_addr* %1) {
%3 = alloca i8*
%4 = alloca %struct.in_addr*
store i8* %0, i8** %3
store %struct.in_addr* %1, %struct.in_addr** %4
%5 = load i8*, i8** %3
%6 = load %struct.in_addr*, %struct.in_addr** %4
%7 = call i32 @Inet_aton(i8* %5, %struct.in_addr* %6)
ret void
}

LLVM IR (-O2):
%struct.in_addr = type { i32 }
define void @setIParg(i8* %0, %struct.in_addr* %1) {
%3 = tail call i32 @Inet_aton(i8* %0, %struct.in_addr* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int strlen(char const *);
int /*<<< orphan*/ write(int, char const *, int);
void synbad(const char *s1, const char *s2) {
  write(2, "test: ", 6);
  write(2, s1, strlen(s1));
  write(2, s2, strlen(s2));
  write(2, "\n", 1);
  exit(255);
}


x86 assembly (clang, -O0):
<synbad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x2,%edi
lea    0xeb4(%rip),%rsi
mov    $0x6,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
mov    $0x2,%edi
call   1030 <write@plt>
mov    $0x2,%edi
lea    0xe63(%rip),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    $0xff,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<synbad>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xebf(%rip),%rsi
mov    $0x2,%edi
mov    $0x6,%edx
call   1030 <write@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xe82(%rip),%rsi
mov    $0x2,%edi
mov    $0x1,%edx
call   1030 <write@plt>
mov    $0xff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"test: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @synbad(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 @write(i32 2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%6 = load i8*, i8** %3
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @write(i32 2, i8* %6, i32 %8)
%10 = load i8*, i8** %4
%11 = load i8*, i8** %4
%12 = call i32 @strlen(i8* %11)
%13 = call i32 @write(i32 2, i8* %10, i32 %12)
%14 = call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%15 = call i32 @exit(i32 255)
unreachable
}

LLVM IR (-O2):
@.str = [7 x i8] c"test: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @synbad(i8* %0, i8* %1) {
%3 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%4 = tail call i32 @strlen(i8* %0)
%5 = tail call i32 @write(i32 2, i8* %0, i32 %4)
%6 = tail call i32 @strlen(i8* %1)
%7 = tail call i32 @write(i32 2, i8* %1, i32 %6)
%8 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%9 = tail call i32 @exit(i32 255)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, char *, int *, int *, int *, int *);
void main() {
  char str[20];
  int num0, num1, num2;
  int n;
  scanf("%s%n%d%d%d", str, &n, &num0, &num1, &num2);
  printf("%d\n", n);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x20(%rbp),%rsi
lea    0xecd(%rip),%rdi
lea    -0x30(%rbp),%rdx
lea    -0x24(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x2c(%rbp),%r9
call   1040 <scanf@plt>
mov    -0x30(%rbp),%esi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0xed5(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    %rsp,%rdx
lea    0xc(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0x4(%rsp),%r9
call   1040 <scanf@plt>
mov    (%rsp),%esi
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
@.str = [11 x i8] c"%s%n%d%d%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define void @main() {
%1 = alloca [20 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = call i32 @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %6, i32* %5, i32* %2, i32* %3, i32* %4)
%12 = load i32, i32* %5
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %12)
ret void
}
void g_object_interface_find_property() {}


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

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

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

LLVM IR (-O2):
define void @g_object_interface_find_property() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cmac_periph_create();
int /*<<< orphan*/ hal_system_clock_start();
void hal_bsp_init(void) {
  hal_system_clock_start();
  cmac_periph_create();
}


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

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

LLVM IR (-O0):
define void @hal_bsp_init() {
%1 = call i32 (...) @hal_system_clock_start()
%2 = call i32 (...) @cmac_periph_create()
ret void
}

LLVM IR (-O2):
define void @hal_bsp_init() {
%1 = tail call i32 (...) @hal_system_clock_start()
%2 = tail call i32 (...) @cmac_periph_create()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CG_DemocamShutdown();
int /*<<< orphan*/ CG_ScreenShutdown();
int /*<<< orphan*/ CG_UnregisterCGameCommands();
void CG_Shutdown(void) {
  CG_DemocamShutdown();
  CG_ScreenShutdown();
  CG_UnregisterCGameCommands();
}


x86 assembly (clang, -O0):
<CG_Shutdown>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <CG_DemocamShutdown@plt>
mov    $0x0,%al
call   1040 <CG_ScreenShutdown@plt>
mov    $0x0,%al
call   1050 <CG_UnregisterCGameCommands@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_Shutdown>:
push   %rax
xor    %eax,%eax
call   1030 <CG_DemocamShutdown@plt>
xor    %eax,%eax
call   1040 <CG_ScreenShutdown@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <CG_UnregisterCGameCommands@plt>

LLVM IR (-O0):
define void @CG_Shutdown() {
%1 = call i32 (...) @CG_DemocamShutdown()
%2 = call i32 (...) @CG_ScreenShutdown()
%3 = call i32 (...) @CG_UnregisterCGameCommands()
ret void
}

LLVM IR (-O2):
define void @CG_Shutdown() {
%1 = tail call i32 (...) @CG_DemocamShutdown()
%2 = tail call i32 (...) @CG_ScreenShutdown()
%3 = tail call i32 (...) @CG_UnregisterCGameCommands()
ret void
}
/* Variables and functions */
double __ieee754_hypot(double, double);
double jhypot(double x, double y) { return __ieee754_hypot(x, y); }


x86 assembly (clang, -O0):
<jhypot>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <__ieee754_hypot@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<jhypot>:
jmp    1030 <__ieee754_hypot@plt>

LLVM IR (-O0):
define double @jhypot(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = call double @__ieee754_hypot(double %5, double %6)
ret double %7
}

LLVM IR (-O2):
define double @jhypot(double %0, double %1) {
%3 = tail call double @__ieee754_hypot(double %0, double %1)
ret double %3
}
int digits(int n) {
  int i;
  for (i = 0;; i++) {
    n /= 10;
    if (n == 0)
      break;
  }
  return i + 1;
}


x86 assembly (clang, -O0):
<digits>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    112b <digits+0x2b>
jmp    113e <digits+0x3e>
jmp    1130 <digits+0x30>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <digits+0xe>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<digits>:
lea    0x9(%rdi),%ecx
mov    $0x1,%eax
cmp    $0x13,%ecx
jb     1145 <digits+0x45>
mov    $0x1,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %edi,%rcx
imul   $0x66666667,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
lea    (%rcx,%rdx,1),%edi
add    $0x1,%eax
add    %edx,%ecx
add    $0x9,%ecx
cmp    $0x12,%ecx
ja     1120 <digits+0x20>
ret

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

LLVM IR (-O2):
define i32 @digits(i32 %0) {
%2 = add i32 %0, 9
%3 = icmp ult i32 %2, 19
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 1, %1 ]
%6 = phi i32 [ %7, %4 ], [ %0, %1 ]
%7 = sdiv i32 %6, 10
%8 = add i32 %5, 1
%9 = add nsw i32 %7, 9
%10 = icmp ult i32 %9, 19
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 1, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
long long PAPI_get_virt_usec();
void papif_get_virt_usec_(long long *time) { *time = PAPI_get_virt_usec(); }


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

x86 assembly (clang, -O2):
<papif_get_virt_usec_>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <PAPI_get_virt_usec@plt>
mov    %rax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @papif_get_virt_usec_(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = call i64 (...) @PAPI_get_virt_usec()
%4 = load i64*, i64** %2
store i64 %3, i64* %4
ret void
}

LLVM IR (-O2):
define void @papif_get_virt_usec_(i64* nocapture writeonly %0) {
%2 = tail call i64 (...) @PAPI_get_virt_usec()
store i64 %2, i64* %0
ret void
}
/* Type definitions */
struct timex {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_REALTIME;
int /*<<< orphan*/ SYS_clock_adjtime;
int syscall(int /*<<< orphan*/, int /*<<< orphan*/, struct timex *);
int adjtimex_posix(struct timex *txc) {
  return syscall(SYS_clock_adjtime, CLOCK_REALTIME, txc);
}


x86 assembly (clang, -O0):
<adjtimex_posix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
mov    0x2eac(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rdx
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adjtimex_posix>:
mov    %rdi,%rdx
mov    0x2ece(%rip),%rax
mov    (%rax),%edi
mov    0x2eb5(%rip),%rax
mov    (%rax),%esi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
%struct.timex = type { i32 }
@SYS_clock_adjtime = global i32 0
@CLOCK_REALTIME = global i32 0
define i32 @adjtimex_posix(%struct.timex* %0) {
%2 = alloca %struct.timex*
store %struct.timex* %0, %struct.timex** %2
%3 = load i32, i32* @SYS_clock_adjtime
%4 = load i32, i32* @CLOCK_REALTIME
%5 = load %struct.timex*, %struct.timex** %2
%6 = call i32 @syscall(i32 %3, i32 %4, %struct.timex* %5)
ret i32 %6
}

LLVM IR (-O2):
%struct.timex = type { i32 }
@SYS_clock_adjtime = global i32 0
@CLOCK_REALTIME = global i32 0
define i32 @adjtimex_posix(%struct.timex* %0) {
%2 = load i32, i32* @SYS_clock_adjtime
%3 = load i32, i32* @CLOCK_REALTIME
%4 = tail call i32 @syscall(i32 %2, i32 %3, %struct.timex* %0)
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
float _mm_vectorGetByIndex(__m128 V, unsigned int i) {
  union {
    __m128 v;
    float a[4];
  } converter;
  converter.v = V;
  return converter.a[i];
}


x86 assembly (clang, -O0):
<_mm_vectorGetByIndex>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
movss  -0x18(%rbp,%rax,4),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<_mm_vectorGetByIndex>:
mov    %edi,-0x10(%rsp)
mov    %esi,%eax
movss  -0x10(%rsp,%rax,4),%xmm0
ret

LLVM IR (-O0):
%union.anon = type { [4 x float] }
define float @_mm_vectorGetByIndex(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %union.anon
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = bitcast %union.anon* %5 to i32*
store i32 %6, i32* %7
%8 = bitcast %union.anon* %5 to [4 x float]*
%9 = load i32, i32* %4
%10 = zext i32 %9 to i64
%11 = getelementptr inbounds [4 x float], [4 x float]* %8, i64 0, i64 %10
%12 = load float, float* %11
ret float %12
}

LLVM IR (-O2):
%union.anon = type { [4 x float] }
define float @_mm_vectorGetByIndex(i32 %0, i32 %1) {
%3 = alloca %union.anon
%4 = bitcast %union.anon* %3 to i8*
%5 = bitcast %union.anon* %3 to i32*
store i32 %0, i32* %5
%6 = zext i32 %1 to i64
%7 = getelementptr inbounds %union.anon, %union.anon* %3, i64 0, i32 0, i64 %6
%8 = load float, float* %7
ret float %8
}
void mread(fd, address, bytes) int fd;
char *address;
register int bytes;
{
  if (read(fd, address, bytes) < 0 && bytes != 0)
    error(1, "Read error", ((char *)0));
}


x86 assembly (clang, -O0):
<mread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0x0,%al
call   1030 <read@plt>
cmp    $0x0,%eax
jge    116d <mread+0x4d>
cmpl   $0x0,-0x14(%rbp)
je     116d <mread+0x4d>
mov    $0x1,%edi
lea    0xe9e(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    $0x0,%al
call   1040 <error@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mread>:
push   %rbx
mov    %edx,%ebx
xor    %eax,%eax
call   1030 <read@plt>
test   %ebx,%ebx
je     1148 <mread+0x28>
test   %eax,%eax
jns    1148 <mread+0x28>
lea    0xec7(%rip),%rsi
mov    $0x1,%edi
xor    %edx,%edx
xor    %eax,%eax
pop    %rbx
jmp    1040 <error@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Read error\00"
define void @mread(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @read to i32 (i32, i8*, i32, ...)*)(i32 %7, i8* %8, i32 %9)
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %3
%13 = load i32, i32* %6
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i32, i8*, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* null)
br label %17
17: ; preds = %15, %12, %3
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"Read error\00"
define void @mread(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @read to i32 (i32, i8*, i32, ...)*)(i32 %0, i8* %1, i32 %2)
%5 = icmp slt i32 %4, 0
%6 = icmp ne i32 %2, 0
%7 = and i1 %6, %5
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = tail call i32 (i32, i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i32, i8*, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* null)
br label %10
10: ; preds = %8, %3
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int read_standard_start_Laurent_system(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(759, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<read_standard_start_Laurent_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x2f7,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_standard_start_Laurent_system>:
mov    $0x2f7,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

LLVM IR (-O0):
define i32 @read_standard_start_Laurent_system() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32
%4 = alloca double*
%5 = load i32*, i32** %1
%6 = load i32*, i32** %2
%7 = load double*, double** %4
%8 = call i32 @_ada_use_c2phc4c(i32 759, i32* %5, i32* %6, double* %7, i32 0)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @read_standard_start_Laurent_system() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 759, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ say(char *, int);
void push(void) { say("Uh, darn thing won't budge!!", 1); }


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

x86 assembly (clang, -O2):
<push>:
lea    0xee9(%rip),%rdi
mov    $0x1,%esi
jmp    1030 <say@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Uh, darn thing won't budge!!\00"
define void @push() {
%1 = call i32 @say(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 1)
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Uh, darn thing won't budge!!\00"
define void @push() {
%1 = tail call i32 @say(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 1)
ret void
}
void p_MakeFileHidden(char *name) { return; }


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

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

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

LLVM IR (-O2):
define void @p_MakeFileHidden(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int foo();
int main() {
  if (foo() != 3)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <foo@plt>
cmp    $0x3,%eax
je     1146 <main+0x26>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <foo@plt>
cmp    $0x3,%eax
jne    1131 <main+0x11>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @foo()
%3 = icmp ne i32 %2, 3
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @foo()
%2 = icmp eq i32 %1, 3
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
ret i32 0
}
/* Variables and functions */
int access(char const *, int);
int octave_access_wrapper(const char *nm, int mode) { return access(nm, mode); }


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

x86 assembly (clang, -O2):
<octave_access_wrapper>:
jmp    1030 <access@plt>

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

LLVM IR (-O2):
define i32 @octave_access_wrapper(i8* nocapture %0, i32 %1) {
%3 = tail call i32 @access(i8* %0, i32 %1)
ret i32 %3
}
exit(code) {
  _cleanup();
  _exit(code);
}


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

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

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

LLVM IR (-O2):
define i32 @exit(i32 %0) {
%2 = tail call i32 (...) @_cleanup()
tail call void @_exit(i32 %0)
unreachable
}
int ls_cost_nm9_work(int *sz_arg, int *sz_res, int *sz_iw, int *sz_w) {
  if (sz_arg)
    *sz_arg = 2;
  if (sz_res)
    *sz_res = 2;
  if (sz_iw)
    *sz_iw = 0;
  if (sz_w)
    *sz_w = 1;
  return 0;
}


x86 assembly (clang, -O0):
<ls_cost_nm9_work>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1129 <ls_cost_nm9_work+0x29>
mov    -0x8(%rbp),%rax
movl   $0x2,(%rax)
cmpq   $0x0,-0x10(%rbp)
je     113e <ls_cost_nm9_work+0x3e>
mov    -0x10(%rbp),%rax
movl   $0x2,(%rax)
cmpq   $0x0,-0x18(%rbp)
je     1153 <ls_cost_nm9_work+0x53>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
cmpq   $0x0,-0x20(%rbp)
je     1168 <ls_cost_nm9_work+0x68>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ls_cost_nm9_work>:
test   %rdi,%rdi
je     110b <ls_cost_nm9_work+0xb>
movl   $0x2,(%rdi)
test   %rsi,%rsi
je     1116 <ls_cost_nm9_work+0x16>
movl   $0x2,(%rsi)
test   %rdx,%rdx
je     1121 <ls_cost_nm9_work+0x21>
movl   $0x0,(%rdx)
test   %rcx,%rcx
je     112c <ls_cost_nm9_work+0x2c>
movl   $0x1,(%rcx)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @ls_cost_nm9_work(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 = icmp ne i32* %9, null
br i1 %10, label %11, label %13
11: ; preds = %4
%12 = load i32*, i32** %5
store i32 2, i32* %12
br label %13
13: ; preds = %11, %4
%14 = load i32*, i32** %6
%15 = icmp ne i32* %14, null
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = load i32*, i32** %6
store i32 2, i32* %17
br label %18
18: ; preds = %16, %13
%19 = load i32*, i32** %7
%20 = icmp ne i32* %19, null
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = load i32*, i32** %7
store i32 0, i32* %22
br label %23
23: ; preds = %21, %18
%24 = load i32*, i32** %8
%25 = icmp ne i32* %24, null
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = load i32*, i32** %8
store i32 1, i32* %27
br label %28
28: ; preds = %26, %23
ret i32 0
}

LLVM IR (-O2):
define i32 @ls_cost_nm9_work(i32* writeonly %0, i32* writeonly %1, i32* writeonly %2, i32* writeonly %3) {
%5 = icmp eq i32* %0, null
br i1 %5, label %7, label %6
6: ; preds = %4
store i32 2, i32* %0
br label %7
7: ; preds = %6, %4
%8 = icmp eq i32* %1, null
br i1 %8, label %10, label %9
9: ; preds = %7
store i32 2, i32* %1
br label %10
10: ; preds = %9, %7
%11 = icmp eq i32* %2, null
br i1 %11, label %13, label %12
12: ; preds = %10
store i32 0, i32* %2
br label %13
13: ; preds = %12, %10
%14 = icmp eq i32* %3, null
br i1 %14, label %16, label %15
15: ; preds = %13
store i32 1, i32* %3
br label %16
16: ; preds = %15, %13
ret i32 0
}
/* Variables and functions */
float getsample_ass(float *, int, int, int, int, int, int);
int positive_reflex(int, int);
float getsample_2(float *x, int w, int h, int pd, int i, int j, int l) {
  i = positive_reflex(i, w);
  j = positive_reflex(j, h);
  return getsample_ass(x, w, h, pd, i, j, l);
}


x86 assembly (clang, -O0):
<getsample_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <positive_reflex@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <positive_reflex@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    0x10(%rbp),%eax
mov    %eax,(%rsp)
call   1030 <getsample_ass@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getsample_2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r15d
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%ebx
mov    %rdi,%r12
mov    %r8d,%edi
call   1040 <positive_reflex@plt>
mov    %eax,%r13d
mov    %r15d,%edi
mov    %ebp,%esi
call   1040 <positive_reflex@plt>
mov    %r12,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r13d,%r8d
mov    %eax,%r9d
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <getsample_ass@plt>

LLVM IR (-O0):
define float @getsample_2(float* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca float*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store float* %0, float** %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%15 = load i32, i32* %12
%16 = load i32, i32* %9
%17 = call i32 @positive_reflex(i32 %15, i32 %16)
store i32 %17, i32* %12
%18 = load i32, i32* %13
%19 = load i32, i32* %10
%20 = call i32 @positive_reflex(i32 %18, i32 %19)
store i32 %20, i32* %13
%21 = load float*, float** %8
%22 = load i32, i32* %9
%23 = load i32, i32* %10
%24 = load i32, i32* %11
%25 = load i32, i32* %12
%26 = load i32, i32* %13
%27 = load i32, i32* %14
%28 = call float @getsample_ass(float* %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27)
ret float %28
}

LLVM IR (-O2):
define float @getsample_2(float* %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = tail call i32 @positive_reflex(i32 %4, i32 %1)
%9 = tail call i32 @positive_reflex(i32 %5, i32 %2)
%10 = tail call float @getsample_ass(float* %0, i32 %1, i32 %2, i32 %3, i32 %8, i32 %9, i32 %6)
ret float %10
}