xunge/DecIR huggingface dataset:
/* Variables and functions */
int f(int);
int main(void) {
  int *x, *y;
  for (int i = 0; i < 100; i++) {
    x[i] = f(y[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    115b <main+0x4b>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1030 <f@plt>
mov    %eax,%edx
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @f(i32 undef)
unreachable
}
void f_omp_parallel(void) {
#pragma omp parallel
  {
    int i;
#pragma acc loop
    for (i = 0; i < 2; ++i)
      ;
  }
}


x86 assembly (clang, -O0):
<f_omp_parallel>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x2,-0x4(%rbp)
jge    1128 <f_omp_parallel+0x28>
jmp    111a <f_omp_parallel+0x1a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <f_omp_parallel+0xb>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @f_omp_parallel() {
ret void
}
/* Type definitions */
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
unsigned long time_count() {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
}


x86 assembly (clang, -O0):
<time_count>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0x3e8,-0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
cltq
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<time_count>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movslq (%rsp),%rax
imul   $0x3e8,%rax,%rcx
movslq 0x4(%rsp),%rax
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rax
add    %edx,%eax
cltq
add    %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
define i64 @time_count() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load i32, i32* %3
%5 = mul nsw i32 %4, 1000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%7 = load i32, i32* %6
%8 = sdiv i32 %7, 1000
%9 = add nsw i32 %5, %8
%10 = sext i32 %9 to i64
ret i64 %10
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define i64 @time_count() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i32, i32* %7
%9 = sdiv i32 %8, 1000
%10 = add nsw i32 %9, %6
%11 = sext i32 %10 to i64
ret i64 %11
}
void initTimer() {
  *(((volatile unsigned int *)0x101E2000) + 0x2) = 0x80 | 0x01 | 0x02;
}


x86 assembly (clang, -O0):
<initTimer>:
push   %rbp
mov    %rsp,%rbp
mov    $0x101e2000,%eax
movl   $0x83,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initTimer>:
movl   $0x83,0x101e2008
ret

LLVM IR (-O0):
define void @initTimer() {
store volatile i32 131, i32* getelementptr inbounds (i32, i32* inttoptr (i64 270409728 to i32*), i64 2)
ret void
}

LLVM IR (-O2):
define void @initTimer() {
store volatile i32 131, i32* inttoptr (i64 270409736 to i32*)
ret void
}
int main(void) {
  int a;
  return 42;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 42
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, unsigned long);
void iscsiAuthClientNumberToText(unsigned long number, char *text,
                                 unsigned int length) {
  sprintf(text, "%lu", number);
}


x86 assembly (clang, -O0):
<iscsiAuthClientNumberToText>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xece(%rip),%rsi
call   1030 <sprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscsiAuthClientNumberToText>:
mov    %rsi,%rax
mov    %rdi,%rdx
lea    0xee3(%rip),%rsi
mov    %rax,%rdi
jmp    1030 <sprintf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%lu\00"
define void @iscsiAuthClientNumberToText(i64 %0, i8* %1, i32 %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i32
store i64 %0, i64* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %5
%8 = load i64, i64* %4
%9 = call i32 @sprintf(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %8)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lu\00"
define void @iscsiAuthClientNumberToText(i64 %0, i8* nocapture writeonly %1, i32 %2) {
%4 = tail call i32 @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %0)
ret void
}
void mlx5e_dcbnl_build_netdev(struct net_device *netdev) {}


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

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

LLVM IR (-O0):
%struct.net_device = type opaque
define void @mlx5e_dcbnl_build_netdev(%struct.net_device* %0) {
%2 = alloca %struct.net_device*
store %struct.net_device* %0, %struct.net_device** %2
ret void
}

LLVM IR (-O2):
%struct.net_device = type opaque
define void @mlx5e_dcbnl_build_netdev(%struct.net_device* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void main(void) {
  int valor = 6;
  if (valor > 5)
    printf("%d es mayor que 4\n", valor);
  else
    printf("%d es menor o igual que 4\n", valor);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x6,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jle    113d <main+0x2d>
mov    -0x4(%rbp),%esi
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
jmp    114c <main+0x3c>
mov    -0x4(%rbp),%esi
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [19 x i8] c"%d es mayor que 4\0A\00"
@.str.1 = [27 x i8] c"%d es menor o igual que 4\0A\00"
define void @main() {
%1 = alloca i32
store i32 6, i32* %1
%2 = load i32, i32* %1
%3 = icmp sgt i32 %2, 5
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = load i32, i32* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %5)
br label %10
7: ; preds = %0
%8 = load i32, i32* %1
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %8)
br label %10
10: ; preds = %7, %4
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"%d es mayor que 4\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 6)
ret void
}
/* Type definitions */
struct timespec {
  scalar_t__ tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
double time_now() {
  struct timespec tp;
  clock_gettime(CLOCK_MONOTONIC, &tp);
  double rtn = ((double)tp.tv_sec) + (((double)tp.tv_nsec) * 0.000000001);
  return rtn;
}


x86 assembly (clang, -O0):
<time_now>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1030 <clock_gettime@plt>
cvtsi2sdq -0x8(%rbp),%xmm1
cvtsi2sdq -0x10(%rbp),%xmm0
movsd  0xec2(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<time_now>:
sub    $0x18,%rsp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1030 <clock_gettime@plt>
cvtsi2sdq 0x10(%rsp),%xmm1
cvtsi2sdq 0x8(%rsp),%xmm0
mulsd  0xec3(%rip),%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timespec = type { i64, i64 }
@CLOCK_MONOTONIC = global i32 0
define double @time_now() {
%1 = alloca %struct.timespec
%2 = alloca double
%3 = load i32, i32* @CLOCK_MONOTONIC
%4 = call i32 @clock_gettime(i32 %3, %struct.timespec* %1)
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 0
%9 = load i64, i64* %8
%10 = sitofp i64 %9 to double
%11 = call double @llvm.fmuladd.f64(double %10, double 1.000000e-09, double %7)
store double %11, double* %2
%12 = load double, double* %2
ret double %12
}

LLVM IR (-O2):
%struct.timespec = type { i64, i64 }
@CLOCK_MONOTONIC = global i32 0
define double @time_now() {
%1 = alloca %struct.timespec
%2 = bitcast %struct.timespec* %1 to i8*
%3 = load i32, i32* @CLOCK_MONOTONIC
%4 = call i32 @clock_gettime(i32 %3, %struct.timespec* %1)
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%9 = load i64, i64* %8
%10 = sitofp i64 %9 to double
%11 = call double @llvm.fmuladd.f64(double %10, double 1.000000e-09, double %7)
ret double %11
}
double obd_convert_0D(int a, int b) { return (double)a; }


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

x86 assembly (clang, -O2):
<obd_convert_0D>:
cvtsi2sd %edi,%xmm0
ret

LLVM IR (-O0):
define double @obd_convert_0D(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 = sitofp i32 %5 to double
ret double %6
}

LLVM IR (-O2):
define double @obd_convert_0D(i32 %0, i32 %1) {
%3 = sitofp i32 %0 to double
ret double %3
}
void terminate_wait(int signum) {}


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

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

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

LLVM IR (-O2):
define void @terminate_wait(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
void screenclear() { system("clear"); }


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

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

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

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
define void @screenclear() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
long long GetTimeStamp() {
  struct timeval tv;
  long long microsec;
  gettimeofday(&tv, NULL);
  microsec = (tv.tv_sec * 1000000) + (tv.tv_usec);
  return microsec;
}


x86 assembly (clang, -O0):
<GetTimeStamp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,-0x8(%rbp),%eax
add    -0x4(%rbp),%eax
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetTimeStamp>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movslq (%rsp),%rax
imul   $0xf4240,%rax,%rcx
movslq 0x4(%rsp),%rax
add    %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
define i64 @GetTimeStamp() {
%1 = alloca %struct.timeval
%2 = alloca i64
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%8 = load i32, i32* %7
%9 = add nsw i32 %6, %8
%10 = sext i32 %9 to i64
store i64 %10, i64* %2
%11 = load i64, i64* %2
ret i64 %11
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define i64 @GetTimeStamp() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i32, i32* %7
%9 = add nsw i32 %6, %8
%10 = sext i32 %9 to i64
ret i64 %10
}
int fun833() { return 833; }


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

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

LLVM IR (-O0):
define i32 @fun833() {
ret i32 833
}

LLVM IR (-O2):
define i32 @fun833() {
ret i32 833
}
/* Variables and functions */
int /*<<< orphan*/ DEBUG_ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ I2CMasterBaseValid(unsigned long);
void I2CMasterIntClearEx(unsigned long ulBase, unsigned long ulIntFlags) {
  DEBUG_ASSERT(I2CMasterBaseValid(ulBase));
  (*((volatile unsigned long *)(ulBase + 0x0000001C))) = ulIntFlags;
}


x86 assembly (clang, -O0):
<I2CMasterIntClearEx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <I2CMasterBaseValid@plt>
mov    %eax,%edi
call   1040 <DEBUG_ASSERT@plt>
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x1c(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2CMasterIntClearEx>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <I2CMasterBaseValid@plt>
mov    %eax,%edi
call   1040 <DEBUG_ASSERT@plt>
mov    %r14,0x1c(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @I2CMasterIntClearEx(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = call i32 @I2CMasterBaseValid(i64 %5)
%7 = call i32 @DEBUG_ASSERT(i32 %6)
%8 = load i64, i64* %4
%9 = load i64, i64* %3
%10 = add i64 %9, 28
%11 = inttoptr i64 %10 to i64*
store volatile i64 %8, i64* %11
ret void
}

LLVM IR (-O2):
define void @I2CMasterIntClearEx(i64 %0, i64 %1) {
%3 = tail call i32 @I2CMasterBaseValid(i64 %0)
%4 = tail call i32 @DEBUG_ASSERT(i32 %3)
%5 = add i64 %0, 28
%6 = inttoptr i64 %5 to i64*
store volatile i64 %1, i64* %6
ret void
}
void test_ar_2_INT(void *d, int n) {
  if (0x7fffffff - 2 <= n && n <= 0x7fffffff - 1)
    n = 0x7fffffff - 3;
  __builtin_memset(d, 0, n);
}


x86 assembly (clang, -O0):
<test_ar_2_INT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x7ffffffd,%eax
cmp    -0xc(%rbp),%eax
jg     1141 <test_ar_2_INT+0x31>
cmpl   $0x7ffffffe,-0xc(%rbp)
jg     1141 <test_ar_2_INT+0x31>
movl   $0x7ffffffc,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_ar_2_INT>:
lea    -0x7ffffffd(%rsi),%eax
cmp    $0x2,%eax
mov    $0x7ffffffc,%eax
cmovae %esi,%eax
movslq %eax,%rdx
xor    %esi,%esi
jmp    1030 <memset@plt>

LLVM IR (-O0):
define void @test_ar_2_INT(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp sle i32 2147483645, %5
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i32, i32* %4
%9 = icmp sle i32 %8, 2147483646
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 2147483644, i32* %4
br label %11
11: ; preds = %10, %7, %2
%12 = load i8*, i8** %3
%13 = load i32, i32* %4
%14 = sext i32 %13 to i64
ret void
}

LLVM IR (-O2):
define void @test_ar_2_INT(i8* nocapture writeonly %0, i32 %1) {
%3 = add i32 %1, -2147483645
%4 = icmp ult i32 %3, 2
%5 = select i1 %4, i32 2147483644, i32 %1
%6 = sext i32 %5 to i64
tail call void @llvm.memset.p0i8.i64(i8* align 1 %0, i8 0, i64 %6, i1 false)
ret void
}
char *lower_string(start_cp)
char *start_cp;
{
  register char *cp;
  cp = start_cp;
  while (*cp) {
    if (isupper(*cp))
      *cp = tolower(*cp);
    ++cp;
  }
  return start_cp;
}


x86 assembly (clang, -O0):
<lower_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     117b <lower_string+0x5b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isupper@plt>
cmp    $0x0,%eax
je     116a <lower_string+0x4a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <tolower@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1134 <lower_string+0x14>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lower_string>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%r14
mov    (%rdi),%al
test   %al,%al
je     1165 <lower_string+0x45>
lea    0x1(%r14),%rbx
jmp    114b <lower_string+0x2b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     1165 <lower_string+0x45>
movsbl %al,%ebp
mov    %ebp,%edi
call   1040 <isupper@plt>
test   %eax,%eax
je     1140 <lower_string+0x20>
mov    %ebp,%edi
call   1030 <tolower@plt>
mov    %al,-0x1(%rbx)
jmp    1140 <lower_string+0x20>
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i8* @lower_string(i8* returned %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %17, label %4
4: ; preds = %1, %13
%5 = phi i8 [ %15, %13 ], [ %2, %1 ]
%6 = phi i8* [ %14, %13 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = tail call i32 @isupper(i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %4
%11 = tail call i32 @tolower(i32 %7)
%12 = trunc i32 %11 to i8
store i8 %12, i8* %6
br label %13
13: ; preds = %10, %4
%14 = getelementptr inbounds i8, i8* %6, i64 1
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 0
br i1 %16, label %17, label %4
17: ; preds = %13, %1
ret i8* %0
}
int config_MODULE_CONSTCW(void) { return 1; }


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

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

LLVM IR (-O0):
define i32 @config_MODULE_CONSTCW() {
ret i32 1
}

LLVM IR (-O2):
define i32 @config_MODULE_CONSTCW() {
ret i32 1
}
void silent_printf(const char *fmt, ...) {}


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

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

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

LLVM IR (-O2):
define void @silent_printf(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
scalar_t__ stdlib_base_is_nan(double const);
double stdlib_base_ramp(const double x) {
  if (stdlib_base_is_nan(x)) {
    return 0.0 / 0.0;
  }
  if (x > 0.0) {
    return x;
  }
  return 0.0;
}


x86 assembly (clang, -O0):
<stdlib_base_ramp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <stdlib_base_is_nan@plt>
cmp    $0x0,%rax
je     1143 <stdlib_base_ramp+0x33>
movsd  0xec7(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    116c <stdlib_base_ramp+0x5c>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1164 <stdlib_base_ramp+0x54>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    116c <stdlib_base_ramp+0x5c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_base_ramp>:
push   %rax
movsd  %xmm0,(%rsp)
call   1030 <stdlib_base_is_nan@plt>
test   %rax,%rax
je     112a <stdlib_base_ramp+0x1a>
movsd  0xed8(%rip),%xmm0
pop    %rax
ret
xorpd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
maxsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @stdlib_base_ramp(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = call i64 @stdlib_base_is_nan(double %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store double 0x7FF8000000000000, double* %2
br label %14
8: ; preds = %1
%9 = load double, double* %3
%10 = fcmp ogt double %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = load double, double* %3
store double %12, double* %2
br label %14
13: ; preds = %8
store double 0.000000e+00, double* %2
br label %14
14: ; preds = %13, %11, %7
%15 = load double, double* %2
ret double %15
}

LLVM IR (-O2):
define double @stdlib_base_ramp(double %0) {
%2 = tail call i64 @stdlib_base_is_nan(double %0)
%3 = icmp eq i64 %2, 0
%4 = fcmp ogt double %0, 0.000000e+00
%5 = select i1 %4, double %0, double 0.000000e+00
%6 = select i1 %3, double %5, double 0x7FF8000000000000
ret double %6
}
unsigned long long int __gnu_dev_makedev(unsigned int __major,
                                         unsigned int __minor) {
  return ((__minor & 0xff) | ((__major & 0xfff) << 8) |
          (((unsigned long long int)(__minor & ~0xff)) << 12) |
          (((unsigned long long int)(__major & ~0xfff)) << 32));
}


x86 assembly (clang, -O0):
<__gnu_dev_makedev>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xff,%eax
mov    -0x4(%rbp),%ecx
and    $0xfff,%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    %eax,%eax
mov    -0x8(%rbp),%ecx
and    $0xffffff00,%ecx
mov    %ecx,%ecx
shl    $0xc,%rcx
or     %rcx,%rax
mov    -0x4(%rbp),%ecx
and    $0xfffff000,%ecx
mov    %ecx,%ecx
shl    $0x20,%rcx
or     %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__gnu_dev_makedev>:
movzbl %sil,%ecx
mov    %edi,%eax
shl    $0x8,%eax
and    $0xfff00,%eax
or     %ecx,%eax
and    $0xffffff00,%esi
shl    $0xc,%rsi
or     %rsi,%rax
and    $0xfffff000,%edi
shl    $0x20,%rdi
or     %rdi,%rax
ret

LLVM IR (-O0):
define i64 @__gnu_dev_makedev(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = and i32 %5, 255
%7 = load i32, i32* %3
%8 = and i32 %7, 4095
%9 = shl i32 %8, 8
%10 = or i32 %6, %9
%11 = zext i32 %10 to i64
%12 = load i32, i32* %4
%13 = and i32 %12, -256
%14 = zext i32 %13 to i64
%15 = shl i64 %14, 12
%16 = or i64 %11, %15
%17 = load i32, i32* %3
%18 = and i32 %17, -4096
%19 = zext i32 %18 to i64
%20 = shl i64 %19, 32
%21 = or i64 %16, %20
ret i64 %21
}

LLVM IR (-O2):
define i64 @__gnu_dev_makedev(i32 %0, i32 %1) {
%3 = and i32 %1, 255
%4 = shl i32 %0, 8
%5 = and i32 %4, 1048320
%6 = or i32 %3, %5
%7 = zext i32 %6 to i64
%8 = and i32 %1, -256
%9 = zext i32 %8 to i64
%10 = shl nuw nsw i64 %9, 12
%11 = or i64 %10, %7
%12 = and i32 %0, -4096
%13 = zext i32 %12 to i64
%14 = shl nuw i64 %13, 32
%15 = or i64 %11, %14
ret i64 %15
}
void stop_DMA_controller() {}


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

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

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

LLVM IR (-O2):
define void @stop_DMA_controller() {
ret void
}
/* Variables and functions */
char *strcpy(int /*<<< orphan*/, char const *const);
scalar_t__ strlen(char const *const);
int /*<<< orphan*/ xmalloc(scalar_t__);
char *xstrdup(const char *const string) {
  return strcpy(xmalloc(strlen(string) + 1), string);
}


x86 assembly (clang, -O0):
<xstrdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <xmalloc@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xstrdup>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <xmalloc@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <strcpy@plt>

LLVM IR (-O0):
define i8* @xstrdup(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strlen(i8* %3)
%5 = add nsw i64 %4, 1
%6 = call i32 @xmalloc(i64 %5)
%7 = load i8*, i8** %2
%8 = call i8* @strcpy(i32 %6, i8* %7)
ret i8* %8
}

LLVM IR (-O2):
define i8* @xstrdup(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i32 @xmalloc(i64 %3)
%5 = tail call i8* @strcpy(i32 %4, i8* %0)
ret i8* %5
}
int main() {
  int q, r;
  q = funct(r);
  int *p = (int *)malloc(sizeof(p));
  int **z = (int **)malloc(sizeof(z));
  if (q < 9)
    p = &r;
  z++;
  printf("%d %d", p, z);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1050 <funct@plt>
mov    %eax,-0x8(%rbp)
mov    $0x8,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    $0x8,%edi
call   1040 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmpl   $0x9,-0x8(%rbp)
jge    117a <main+0x4a>
lea    -0xc(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <funct@plt>
mov    %eax,%ebp
mov    $0x8,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    $0x8,%edi
call   1040 <malloc@plt>
cmp    $0x9,%ebp
lea    0x4(%rsp),%rsi
cmovge %rbx,%rsi
lea    0x8(%rax),%rdx
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @funct to i32 (i32, ...)*)(i32 undef)
%4 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%5 = bitcast i8* %4 to i32*
%6 = tail call dereferenceable_or_null(8) i8* @malloc(i64 8)
%7 = icmp slt i32 %3, 9
%8 = select i1 %7, i32* %1, i32* %5
%9 = bitcast i8* %6 to i32**
%10 = getelementptr inbounds i32*, i32** %9, i64 1
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %8, i32** %10)
ret i32 0
}
/* Type definitions */
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double get_time(void) {
  struct timeval t;
  gettimeofday(&t, NULL);
  return t.tv_sec * 1000 + t.tv_usec / 1000;
}


x86 assembly (clang, -O0):
<get_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0x3e8,-0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_time>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
imul   $0x3e8,(%rsp),%eax
movslq 0x4(%rsp),%rcx
imul   $0x10624dd3,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rcx
add    %edx,%ecx
add    %eax,%ecx
cvtsi2sd %ecx,%xmm0
pop    %rax
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
define double @get_time() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load i32, i32* %3
%5 = mul nsw i32 %4, 1000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%7 = load i32, i32* %6
%8 = sdiv i32 %7, 1000
%9 = add nsw i32 %5, %8
%10 = sitofp i32 %9 to double
ret double %10
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define double @get_time() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i32, i32* %7
%9 = sdiv i32 %8, 1000
%10 = add nsw i32 %9, %6
%11 = sitofp i32 %10 to double
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ allow_ctrl_c();
int /*<<< orphan*/ ignore_ctrl_c();
int /*<<< orphan*/ wait(int *);
void wait_for_child_process() {
  int status;
  ignore_ctrl_c();
  wait(&status);
  allow_ctrl_c();
}


x86 assembly (clang, -O0):
<wait_for_child_process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <ignore_ctrl_c@plt>
lea    -0x4(%rbp),%rdi
call   1050 <wait@plt>
mov    $0x0,%al
call   1030 <allow_ctrl_c@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wait_for_child_process>:
push   %rax
xor    %eax,%eax
call   1040 <ignore_ctrl_c@plt>
lea    0x4(%rsp),%rdi
call   1050 <wait@plt>
xor    %eax,%eax
call   1030 <allow_ctrl_c@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @wait_for_child_process() {
%1 = alloca i32
%2 = call i32 (...) @ignore_ctrl_c()
%3 = call i32 @wait(i32* %1)
%4 = call i32 (...) @allow_ctrl_c()
ret void
}

LLVM IR (-O2):
define void @wait_for_child_process() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (...) @ignore_ctrl_c()
%4 = call i32 @wait(i32* %1)
%5 = call i32 (...) @allow_ctrl_c()
ret void
}
void CPY_STR(tt, ff) int *tt, *ff;
{
  int i;
  char *f, *t;
  f = (char *)ff;
  t = (char *)tt;
  i = 0;
  while (f[i] != '\0') {
    t[i] = f[i];
    i = i + 1;
  };
  t[i] = '\0';
}


x86 assembly (clang, -O0):
<CPY_STR>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     115c <CPY_STR+0x5c>
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1123 <CPY_STR+0x23>
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
pop    %rbp
ret

x86 assembly (clang, -O2):
<CPY_STR>:
mov    (%rsi),%al
test   %al,%al
je     1127 <CPY_STR+0x27>
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
mov    %al,(%rdi,%rcx,1)
movzbl 0x1(%rsi,%rcx,1),%eax
add    $0x1,%rcx
test   %al,%al
jne    1110 <CPY_STR+0x10>
mov    %ecx,%eax
movb   $0x0,(%rdi,%rax,1)
ret
xor    %eax,%eax
movb   $0x0,(%rdi,%rax,1)
ret

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

LLVM IR (-O2):
define void @CPY_STR(i32* nocapture writeonly %0, i32* nocapture %1) {
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %0 to i8*
%5 = load i8, i8* %3
%6 = icmp eq i8 %5, 0
br i1 %6, label %17, label %7
7: ; preds = %2, %7
%8 = phi i64 [ %11, %7 ], [ 0, %2 ]
%9 = phi i8 [ %13, %7 ], [ %5, %2 ]
%10 = getelementptr inbounds i8, i8* %4, i64 %8
store i8 %9, i8* %10
%11 = add nuw nsw i64 %8, 1
%12 = getelementptr inbounds i8, i8* %3, i64 %11
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %7
15: ; preds = %7
%16 = and i64 %11, 4294967295
br label %17
17: ; preds = %15, %2
%18 = phi i64 [ 0, %2 ], [ %16, %15 ]
%19 = getelementptr inbounds i8, i8* %4, i64 %18
store i8 0, i8* %19
ret void
}
void dma_buf_uninit_sysfs_statistics(void) {}


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

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

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

LLVM IR (-O2):
define void @dma_buf_uninit_sysfs_statistics() {
ret void
}
long getNbCyclePerdu(int bs, long nbDefautLecture, long nbDefautEcriture,
                     long nbLigneSupprDuCache) {
  return (12 + bs / 8) *
         (nbDefautLecture + nbDefautEcriture + nbLigneSupprDuCache);
}


x86 assembly (clang, -O0):
<getNbCyclePerdu>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
add    $0xc,%eax
cltq
mov    -0x10(%rbp),%rcx
add    -0x18(%rbp),%rcx
add    -0x20(%rbp),%rcx
imul   %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getNbCyclePerdu>:
lea    0x7(%rdi),%eax
test   %edi,%edi
cmovns %edi,%eax
sar    $0x3,%eax
add    $0xc,%eax
movslq %eax,%rdi
lea    (%rsi,%rdx,1),%rax
add    %rcx,%rax
imul   %rdi,%rax
ret

LLVM IR (-O0):
define i64 @getNbCyclePerdu(i32 %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca i32
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
store i32 %0, i32* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%9 = load i32, i32* %5
%10 = sdiv i32 %9, 8
%11 = add nsw i32 12, %10
%12 = sext i32 %11 to i64
%13 = load i64, i64* %6
%14 = load i64, i64* %7
%15 = add nsw i64 %13, %14
%16 = load i64, i64* %8
%17 = add nsw i64 %15, %16
%18 = mul nsw i64 %12, %17
ret i64 %18
}

LLVM IR (-O2):
define i64 @getNbCyclePerdu(i32 %0, i64 %1, i64 %2, i64 %3) {
%5 = sdiv i32 %0, 8
%6 = add nsw i32 %5, 12
%7 = sext i32 %6 to i64
%8 = add nsw i64 %2, %1
%9 = add nsw i64 %8, %3
%10 = mul nsw i64 %9, %7
ret i64 %10
}
/* Variables and functions */
scalar_t__ compare_versions(char *, char *);
int /*<<< orphan*/ exit(int);
void check_version(char *want) {
  if (compare_versions("0.22", want))
    exit(1);
}


x86 assembly (clang, -O0):
<check_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <compare_versions@plt>
cmp    $0x0,%rax
je     1150 <check_version+0x30>
mov    $0x1,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_version>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <compare_versions@plt>
test   %rax,%rax
jne    1137 <check_version+0x17>
pop    %rax
ret
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"0.22\00"
define void @check_version(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @compare_versions(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @exit(i32 1)
unreachable
8: ; preds = %1
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"0.22\00"
define void @check_version(i8* %0) {
%2 = tail call i64 @compare_versions(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @exit(i32 1)
unreachable
6: ; preds = %1
ret void
}
void RTStrStr(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fileexist(char *file) {
  FILE *fp;
  fp = fopen(file, "r");
  if (!fp) {
    return (0);
  }
  fclose(fp);
  return (1);
}


x86 assembly (clang, -O0):
<fileexist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1157 <fileexist+0x37>
movl   $0x0,-0x4(%rbp)
jmp    1167 <fileexist+0x47>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fileexist>:
push   %rax
lea    0xed8(%rip),%rsi
call   1040 <fopen@plt>
test   %rax,%rax
je     1141 <fileexist+0x21>
mov    %rax,%rdi
call   1030 <fclose@plt>
mov    $0x1,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
define i32 @fileexist(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i32* @fopen(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %6, i32** %4
%7 = load i32*, i32** %4
%8 = icmp ne i32* %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, i32* %2
br label %13
10: ; preds = %1
%11 = load i32*, i32** %4
%12 = call i32 @fclose(i32* %11)
store i32 1, i32* %2
br label %13
13: ; preds = %10, %9
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
define i32 @fileexist(i8* nocapture %0) {
%2 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @fclose(i32* %2)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ p_sat(char *);
int /*<<< orphan*/ register_row_num(int);
void col_test_iter_43(void) {
  register_row_num(5);
  p_sat("  o");
  p_sat("  F");
  p_sat("ooG L1A");
  p_sat("A G G A");
  p_sat("A0L GFE");
}


x86 assembly (clang, -O0):
<col_test_iter_43>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5,%edi
call   1040 <register_row_num@plt>
lea    0xecb(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xec3(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xebb(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xeb7(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xeb3(%rip),%rdi
call   1030 <p_sat@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<col_test_iter_43>:
push   %rax
mov    $0x5,%edi
call   1040 <register_row_num@plt>
lea    0xece(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xec6(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xebe(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xeba(%rip),%rdi
call   1030 <p_sat@plt>
lea    0xeb6(%rip),%rdi
pop    %rax
jmp    1030 <p_sat@plt>

LLVM IR (-O0):
@.str = [4 x i8] c" o\00"
@.str.1 = [4 x i8] c" F\00"
@.str.2 = [8 x i8] c"ooG L1A\00"
@.str.3 = [8 x i8] c"A G G A\00"
@.str.4 = [8 x i8] c"A0L GFE\00"
define void @col_test_iter_43() {
%1 = call i32 @register_row_num(i32 5)
%2 = call i32 @p_sat(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @p_sat(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @p_sat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @p_sat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @p_sat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c" o\00"
@.str.1 = [4 x i8] c" F\00"
@.str.2 = [8 x i8] c"ooG L1A\00"
@.str.3 = [8 x i8] c"A G G A\00"
@.str.4 = [8 x i8] c"A0L GFE\00"
define void @col_test_iter_43() {
%1 = tail call i32 @register_row_num(i32 5)
%2 = tail call i32 @p_sat(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @p_sat(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @p_sat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @p_sat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @p_sat(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
ret void
}
int imms_isleap(int year) {
  return (!(year % 4) && ((year % 100) || !(year % 400)));
}


x86 assembly (clang, -O0):
<imms_isleap>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    $0x0,%edx
mov    %al,-0x5(%rbp)
jne    1155 <imms_isleap+0x55>
mov    -0x4(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x0,%edx
mov    %al,-0x6(%rbp)
jne    114f <imms_isleap+0x4f>
mov    -0x4(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
setne  %al
xor    $0xff,%al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<imms_isleap>:
xor    %eax,%eax
test   $0x3,%dil
je     1109 <imms_isleap+0x9>
ret
imul   $0xc28f5c29,%edi,%ecx
add    $0x51eb850,%ecx
mov    %ecx,%edx
ror    $0x2,%edx
mov    $0x1,%eax
cmp    $0x28f5c28,%edx
ja     1108 <imms_isleap+0x8>
ror    $0x4,%ecx
xor    %eax,%eax
cmp    $0xa3d70b,%ecx
setb   %al
ret

LLVM IR (-O0):
define i32 @imms_isleap(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = srem i32 %3, 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %17, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = srem i32 %7, 100
%9 = icmp ne i32 %8, 0
br i1 %9, label %15, label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = srem i32 %11, 400
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
br label %15
15: ; preds = %10, %6
%16 = phi i1 [ true, %6 ], [ %14, %10 ]
br label %17
17: ; preds = %15, %1
%18 = phi i1 [ false, %1 ], [ %16, %15 ]
%19 = zext i1 %18 to i32
ret i32 %19
}

LLVM IR (-O2):
define i32 @imms_isleap(i32 %0) {
%2 = and i32 %0, 3
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1
%5 = srem i32 %0, 100
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = srem i32 %0, 400
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %4, %7, %1
%12 = phi i32 [ 0, %1 ], [ 1, %4 ], [ %10, %7 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d", a, b);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

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