xunge/DecIR huggingface dataset:
/* Variables and functions */
int atoi(char *);
char *getenv(char *);
int get_term_lines(void) {
  char *lines;
  lines = getenv("LINES");
  if (lines == NULL || atoi(lines) < 1)
    return 25;
  return (int)atoi(lines);
}


x86 assembly (clang, -O0):
<get_term_lines>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1155 <get_term_lines+0x35>
mov    -0x10(%rbp),%rdi
call   1040 <atoi@plt>
cmp    $0x1,%eax
jge    1161 <get_term_lines+0x41>
movl   $0x19,-0x4(%rbp)
jmp    116d <get_term_lines+0x4d>
mov    -0x10(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_term_lines>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1148 <get_term_lines+0x28>
mov    %rax,%rdi
call   1040 <atoi@plt>
mov    %eax,%ecx
test   %eax,%eax
mov    $0x19,%eax
cmovg  %ecx,%eax
pop    %rcx
ret
mov    $0x19,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"LINES\00"
define i32 @get_term_lines() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i8* %1, null
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = tail call i32 @atoi(i8* %1)
%5 = icmp slt i32 %4, 1
%6 = select i1 %5, i32 25, i32 %4
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ 25, %0 ], [ %6, %3 ]
ret i32 %8
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int focus;
};
typedef TYPE_1__ XLeaveWindowEvent;

/* Variables and functions */
void set_XLeaveWindowEvent_focus(void *_p, int _v) {
  ((XLeaveWindowEvent *)_p)->focus = (int)_v;
}


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

x86 assembly (clang, -O2):
<set_XLeaveWindowEvent_focus>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XLeaveWindowEvent_focus(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 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XLeaveWindowEvent_focus(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t tcp_make_mask(uint8_t cwr, uint8_t ece, uint8_t urg, uint8_t ack,
                      uint8_t psh, uint8_t rst, uint8_t syn, uint8_t fin) {
  return cwr << (7 - 0) | ece << (7 - 1) | urg << (7 - 2) | ack << (7 - 3) |
         psh << (7 - 4) | rst << (7 - 5) | syn << (7 - 6) | fin << (7 - 7);
}


x86 assembly (clang, -O0):
<tcp_make_mask>:
push   %rbp
mov    %rsp,%rbp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x7,%eax
mov    -0x8(%rbp),%ecx
shl    $0x6,%ecx
or     %ecx,%eax
mov    -0xc(%rbp),%ecx
shl    $0x5,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%ecx
shl    $0x4,%ecx
or     %ecx,%eax
mov    -0x14(%rbp),%ecx
shl    $0x3,%ecx
or     %ecx,%eax
mov    -0x18(%rbp),%ecx
shl    $0x2,%ecx
or     %ecx,%eax
mov    0x10(%rbp),%ecx
shl    $0x1,%ecx
or     %ecx,%eax
mov    0x18(%rbp),%ecx
shl    $0x0,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcp_make_mask>:
mov    0x8(%rsp),%eax
shl    $0x7,%edi
shl    $0x6,%esi
or     %edi,%esi
shl    $0x5,%edx
shl    $0x4,%ecx
or     %edx,%ecx
or     %esi,%ecx
lea    0x0(,%r8,8),%edx
lea    0x0(,%r9,4),%esi
or     %edx,%esi
or     %ecx,%esi
add    %eax,%eax
or     %esi,%eax
or     0x10(%rsp),%eax
ret

LLVM IR (-O0):
define i32 @tcp_make_mask(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i32, i32* %9
%18 = shl i32 %17, 7
%19 = load i32, i32* %10
%20 = shl i32 %19, 6
%21 = or i32 %18, %20
%22 = load i32, i32* %11
%23 = shl i32 %22, 5
%24 = or i32 %21, %23
%25 = load i32, i32* %12
%26 = shl i32 %25, 4
%27 = or i32 %24, %26
%28 = load i32, i32* %13
%29 = shl i32 %28, 3
%30 = or i32 %27, %29
%31 = load i32, i32* %14
%32 = shl i32 %31, 2
%33 = or i32 %30, %32
%34 = load i32, i32* %15
%35 = shl i32 %34, 1
%36 = or i32 %33, %35
%37 = load i32, i32* %16
%38 = shl i32 %37, 0
%39 = or i32 %36, %38
ret i32 %39
}

LLVM IR (-O2):
define i32 @tcp_make_mask(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = shl i32 %0, 7
%10 = shl i32 %1, 6
%11 = or i32 %10, %9
%12 = shl i32 %2, 5
%13 = or i32 %11, %12
%14 = shl i32 %3, 4
%15 = or i32 %13, %14
%16 = shl i32 %4, 3
%17 = or i32 %15, %16
%18 = shl i32 %5, 2
%19 = or i32 %17, %18
%20 = shl i32 %6, 1
%21 = or i32 %19, %20
%22 = or i32 %21, %7
ret i32 %22
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
int ext() {
  printf("\nThe entered expression is invalid!!");
  printf("\nExiting...");
  exit(1);
}


x86 assembly (clang, -O0):
<ext>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<ext>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"\0AThe entered expression is invalid!!\00"
@.str.1 = [12 x i8] c"\0AExiting...\00"
define i32 @ext() {
%1 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [37 x i8] c"\0AThe entered expression is invalid!!\00"
@.str.1 = [12 x i8] c"\0AExiting...\00"
define i32 @ext() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int age = 10;
  int height = 55;
  printf("I am %d years old.\n", age);
  printf("I am %d inches tall.\n", height);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0x37,-0xc(%rbp)
mov    -0x8(%rbp),%esi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0xa,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x37,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"I am %d years old.\0A\00"
@.str.1 = [22 x i8] c"I am %d inches tall.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 10, i32* %2
store i32 55, i32* %3
%4 = load i32, i32* %2
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"I am %d years old.\0A\00"
@.str.1 = [22 x i8] c"I am %d inches tall.\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 10)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 55)
ret i32 0
}
/* Type definitions */
struct b_whirl {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct b_whirl *);
void freeWhirl(struct b_whirl *w) { free(w); }


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

x86 assembly (clang, -O2):
<freeWhirl>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
%struct.b_whirl = type { i32 }
define void @freeWhirl(%struct.b_whirl* nocapture %0) {
%2 = tail call i32 @free(%struct.b_whirl* %0)
ret void
}
/* Type definitions */
typedef scalar_t__ int32_t;
typedef scalar_t__ int16_t;

/* Variables and functions */
int32_t L_deposit_l(int16_t var1) {
  int32_t L_var_out;
  L_var_out = (int32_t)var1;
  return (L_var_out);
}


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

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

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

LLVM IR (-O2):
define i64 @L_deposit_l(i64 returned %0) {
ret i64 %0
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void Mem_free(void *ptr, const char *file, int line) {
  if (ptr)
    free(ptr);
}


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

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

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

LLVM IR (-O2):
define void @Mem_free(i8* %0, i8* nocapture readnone %1, i32 %2) {
%4 = icmp eq i8* %0, null
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @free(i8* %0)
br label %7
7: ; preds = %5, %3
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, float);
float remainingAngle(float, float);
int main(int argc, const char *argv[]) {
  float angleA = 30.0;
  float angleB = 60.0;
  float angleC = remainingAngle(angleA, angleB);
  printf("The remaining angle is %f degrees \n", angleC);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xec6(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xeb5(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
call   1030 <remainingAngle@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movss  0xed7(%rip),%xmm0
movss  0xed3(%rip),%xmm1
call   1030 <remainingAngle@plt>
lea    0xecb(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"The remaining angle is %f degrees \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 3.000000e+01, float* %6
store float 6.000000e+01, float* %7
%9 = load float, float* %6
%10 = load float, float* %7
%11 = call float @remainingAngle(float %9, float %10)
store float %11, float* %8
%12 = load float, float* %8
%13 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), float %12)
%14 = load i32, i32* @EXIT_SUCCESS
ret i32 %14
}

LLVM IR (-O2):
@.str = [36 x i8] c"The remaining angle is %f degrees \0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call float @remainingAngle(float 3.000000e+01, float 6.000000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), float %3)
%5 = load i32, i32* @EXIT_SUCCESS
ret i32 %5
}
float *Vector3Copy(const float source[3], float destination[3]) {
  destination[0] = source[0];
  destination[1] = source[1];
  destination[2] = source[2];
  return destination;
}


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

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

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

LLVM IR (-O2):
define float* @Vector3Copy(float* nocapture %0, float* returned writeonly %1) {
%3 = load float, float* %0
store float %3, float* %1
%4 = getelementptr inbounds float, float* %0, i64 1
%5 = load float, float* %4
%6 = getelementptr inbounds float, float* %1, i64 1
store float %5, float* %6
%7 = getelementptr inbounds float, float* %0, i64 2
%8 = load float, float* %7
%9 = getelementptr inbounds float, float* %1, i64 2
store float %8, float* %9
ret float* %1
}
/* Variables and functions */
int rand();
int /*<<< orphan*/ srand(int);
void aleatorio(int *vet, int tam) {
  vet[tam];
  srand(tam);
  int num, i;
  for (i = 0; i < tam; i++) {
    num = rand() % tam;
    vet[i] = num;
  }
}


x86 assembly (clang, -O0):
<aleatorio>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <srand@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1174 <aleatorio+0x54>
mov    $0x0,%al
call   1040 <rand@plt>
cltd
idivl  -0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113e <aleatorio+0x1e>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aleatorio>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r15d
mov    %rdi,%r14
mov    %esi,%edi
call   1030 <srand@plt>
test   %r15d,%r15d
jle    1158 <aleatorio+0x38>
mov    %r15d,%ebx
xor    %ebp,%ebp
xchg   %ax,%ax
xor    %eax,%eax
call   1040 <rand@plt>
cltd
idiv   %r15d
mov    %edx,(%r14,%rbp,4)
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1140 <aleatorio+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @aleatorio(i32* nocapture writeonly %0, i32 %1) {
%3 = tail call i32 @srand(i32 %1)
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %14
5: ; preds = %2
%6 = zext i32 %1 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %12, %7 ]
%9 = tail call i32 (...) @rand()
%10 = srem i32 %9, %1
%11 = getelementptr inbounds i32, i32* %0, i64 %8
store i32 %10, i32* %11
%12 = add nuw nsw i64 %8, 1
%13 = icmp eq i64 %12, %6
br i1 %13, label %14, label %7
14: ; preds = %7, %2
ret void
}
/* Variables and functions */
int mockup_3(void *user_data) {
  if (user_data != NULL) {
    *((int *)user_data) = 3;
  }
  return 3;
}


x86 assembly (clang, -O0):
<mockup_3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     111d <mockup_3+0x1d>
mov    -0x8(%rbp),%rax
movl   $0x3,(%rax)
mov    $0x3,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mockup_3>:
test   %rdi,%rdi
je     110b <mockup_3+0xb>
movl   $0x3,(%rdi)
mov    $0x3,%eax
ret

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

LLVM IR (-O2):
define i32 @mockup_3(i8* writeonly %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = bitcast i8* %0 to i32*
store i32 3, i32* %4
br label %5
5: ; preds = %3, %1
ret i32 3
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMR6C_set(void) { return U_WMRCORENONE_set("U_WMR6C"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMR6C\00"
define i8* @U_WMR6C_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR6C\00"
define i8* @U_WMR6C_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fclose(int /*<<< orphan*/ *);
int AMCBmpFileClose(FILE *bmpFile) { return fclose(bmpFile); }


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

x86 assembly (clang, -O2):
<AMCBmpFileClose>:
jmp    1030 <fclose@plt>

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

LLVM IR (-O2):
define i32 @AMCBmpFileClose(i32* nocapture %0) {
%2 = tail call i32 @fclose(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void socketClose(int fd) { close(fd); }


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

x86 assembly (clang, -O2):
<socketClose>:
jmp    1030 <close@plt>

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

LLVM IR (-O2):
define void @socketClose(i32 %0) {
%2 = tail call i32 @close(i32 %0)
ret void
}
int ft_minimum(int a, int b, int c) {
  int smallest;
  smallest = 0;
  while (a && b && c) {
    a--;
    b--;
    c--;
    smallest++;
  }
  return (smallest);
}


x86 assembly (clang, -O0):
<ft_minimum>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x11(%rbp)
je     113c <ft_minimum+0x3c>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
je     113c <ft_minimum+0x3c>
cmpl   $0x0,-0xc(%rbp)
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    114c <ft_minimum+0x4c>
jmp    1175 <ft_minimum+0x75>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1114 <ft_minimum+0x14>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_minimum>:
xor    %eax,%eax
test   %edi,%edi
je     1135 <ft_minimum+0x35>
test   %esi,%esi
je     1135 <ft_minimum+0x35>
test   %edx,%edx
je     1135 <ft_minimum+0x35>
add    $0xffffffff,%edi
add    $0xffffffff,%esi
add    $0xffffffff,%edx
cmp    %esi,%edx
cmovae %esi,%edx
cmp    %edi,%edx
cmovae %edi,%edx
add    $0x1,%edx
test   %esi,%esi
mov    $0x1,%eax
cmove  %eax,%edx
test   %edi,%edi
cmove  %eax,%edx
mov    %edx,%eax
ret

LLVM IR (-O0):
define i32 @ft_minimum(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
br label %8
8: ; preds = %19, %3
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, i32* %5
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* %6
%16 = icmp ne i32 %15, 0
br label %17
17: ; preds = %14, %11, %8
%18 = phi i1 [ false, %11 ], [ false, %8 ], [ %16, %14 ]
br i1 %18, label %19, label %28
19: ; preds = %17
%20 = load i32, i32* %4
%21 = add nsw i32 %20, -1
store i32 %21, i32* %4
%22 = load i32, i32* %5
%23 = add nsw i32 %22, -1
store i32 %23, i32* %5
%24 = load i32, i32* %6
%25 = add nsw i32 %24, -1
store i32 %25, i32* %6
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
store i32 %27, i32* %7
br label %8
28: ; preds = %17
%29 = load i32, i32* %7
ret i32 %29
}

LLVM IR (-O2):
define i32 @ft_minimum(i32 %0, i32 %1, i32 %2) {
%4 = icmp ne i32 %0, 0
%5 = icmp ne i32 %1, 0
%6 = and i1 %4, %5
%7 = icmp ne i32 %2, 0
%8 = and i1 %6, %7
br i1 %8, label %9, label %20
9: ; preds = %3
%10 = add i32 %0, -1
%11 = add i32 %1, -1
%12 = add i32 %2, -1
%13 = icmp eq i32 %10, 0
%14 = icmp eq i32 %11, 0
%15 = or i1 %13, %14
%16 = call i32 @llvm.umin.i32(i32 %12, i32 %11)
%17 = call i32 @llvm.umin.i32(i32 %16, i32 %10)
%18 = add nuw i32 %17, 1
%19 = select i1 %15, i32 1, i32 %18
br label %20
20: ; preds = %9, %3
%21 = phi i32 [ 0, %3 ], [ %19, %9 ]
ret i32 %21
}
void UARTWakeUpEventsDisable(unsigned int baseAdd, unsigned int wakeUpFlag) {
  (*((volatile unsigned int *)(baseAdd + (0x5C)))) &=
      ~(wakeUpFlag &
        ((0x00000080u) | (0x00000040u) | (0x00000020u) | (0x00000010u) |
         (0x00000008u) | (0x00000004u) | (0x00000002u) | (0x00000001u)));
}


x86 assembly (clang, -O0):
<UARTWakeUpEventsDisable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edx
and    $0xff,%edx
xor    $0xffffffff,%edx
mov    -0x4(%rbp),%eax
add    $0x5c,%eax
mov    %eax,%eax
mov    (%rax),%ecx
and    %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<UARTWakeUpEventsDisable>:
not    %esi
or     $0xffffff00,%esi
add    $0x5c,%edi
and    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @UARTWakeUpEventsDisable(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 = xor i32 %6, -1
%8 = load i32, i32* %3
%9 = add i32 %8, 92
%10 = zext i32 %9 to i64
%11 = inttoptr i64 %10 to i32*
%12 = load volatile i32, i32* %11
%13 = and i32 %12, %7
store volatile i32 %13, i32* %11
ret void
}

LLVM IR (-O2):
define void @UARTWakeUpEventsDisable(i32 %0, i32 %1) {
%3 = and i32 %1, 255
%4 = xor i32 %3, -1
%5 = add i32 %0, 92
%6 = zext i32 %5 to i64
%7 = inttoptr i64 %6 to i32*
%8 = load volatile i32, i32* %7
%9 = and i32 %8, %4
store volatile i32 %9, i32* %7
ret void
}
/* Variables and functions */
int fail_the_test(void *);
int pass_the_test(void *);
int __attribute__((no)) foo(void *p) {
  uintptr_t a = (uintptr_t)p;
  if (a % 4)
    return fail_the_test(p);
  else
    return pass_the_test(p);
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
and    $0x3,%rax
cmp    $0x0,%rax
je     1157 <foo+0x37>
mov    -0x10(%rbp),%rdi
call   1030 <fail_the_test@plt>
mov    %eax,-0x4(%rbp)
jmp    1163 <foo+0x43>
mov    -0x10(%rbp),%rdi
call   1040 <pass_the_test@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
test   $0x3,%dil
je     112b <foo+0xb>
jmp    1030 <fail_the_test@plt>
jmp    1040 <pass_the_test@plt>

LLVM IR (-O0):
define i32 @foo(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = ptrtoint i8* %5 to i64
store i64 %6, i64* %4
%7 = load i64, i64* %4
%8 = urem i64 %7, 4
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = call i32 @fail_the_test(i8* %11)
store i32 %12, i32* %2
br label %16
13: ; preds = %1
%14 = load i8*, i8** %3
%15 = call i32 @pass_the_test(i8* %14)
store i32 %15, i32* %2
br label %16
16: ; preds = %13, %10
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
define i32 @foo(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = and i64 %2, 3
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @fail_the_test(i8* %0)
br label %9
7: ; preds = %1
%8 = tail call i32 @pass_the_test(i8* %0)
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ %6, %5 ], [ %8, %7 ]
ret i32 %10
}
void autogroup_init(struct task_struct *init_task) {}


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

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

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

LLVM IR (-O2):
%struct.task_struct = type opaque
define void @autogroup_init(%struct.task_struct* nocapture %0) {
ret void
}
void foo_1_2_1_2_2_1_1_2_2() {}


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

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

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

LLVM IR (-O2):
define void @foo_1_2_1_2_2_1_1_2_2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ open(char *, int /*<<< orphan*/);
int main(void) {
  open("/etc/rc.local", O_RDONLY);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [14 x i8] c"/etc/rc.local\00"
@O_RDONLY = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @O_RDONLY
%3 = call i32 @open(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"/etc/rc.local\00"
@O_RDONLY = global i32 0
define i32 @main() {
%1 = load i32, i32* @O_RDONLY
%2 = tail call i32 @open(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0x92() {
  Assert_real((isbdigit(146) == 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_isbdigit.c",
              735, ("isbdigit should be 0 for 0x92"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0x92>:
push   %rax
mov    $0x92,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x2df,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0x92\00"
define void @t_isbdigit_0x92() {
%1 = call i64 @isbdigit(i32 146)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 735, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0x92\00"
define void @t_isbdigit_0x92() {
%1 = tail call i64 @isbdigit(i32 146)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 735, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
double rangam(double);
double gds(double a) { return rangam(a); }


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

x86 assembly (clang, -O2):
<gds>:
jmp    1030 <rangam@plt>

LLVM IR (-O0):
define double @gds(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @rangam(double %3)
ret double %4
}

LLVM IR (-O2):
define double @gds(double %0) {
%2 = tail call double @rangam(double %0)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ putchar(char);
_qstmark() { putchar('?'); }


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

x86 assembly (clang, -O2):
<_qstmark>:
mov    $0x3f,%edi
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define i32 @_qstmark() {
%1 = alloca i32
%2 = call i32 @putchar(i8 signext 63)
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @_qstmark() {
%1 = tail call i32 @putchar(i8 signext 63)
ret i32 undef
}
int increase(int *restrict a, int *restrict b, int *restrict c) {
  *a = *a + *c;
  *b = *b + *c;
}


x86 assembly (clang, -O0):
<increase>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x20(%rbp),%rax
add    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
mov    -0x20(%rbp),%rax
add    (%rax),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<increase>:
mov    (%rdx),%eax
add    %eax,(%rdi)
add    %eax,(%rsi)
ret

LLVM IR (-O0):
define i32 @increase(i32* noalias %0, i32* noalias %1, i32* noalias %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32*
store i32* %0, i32** %5
store i32* %1, i32** %6
store i32* %2, i32** %7
%8 = load i32*, i32** %5
%9 = load i32, i32* %8
%10 = load i32*, i32** %7
%11 = load i32, i32* %10
%12 = add nsw i32 %9, %11
%13 = load i32*, i32** %5
store i32 %12, i32* %13
%14 = load i32*, i32** %6
%15 = load i32, i32* %14
%16 = load i32*, i32** %7
%17 = load i32, i32* %16
%18 = add nsw i32 %15, %17
%19 = load i32*, i32** %6
store i32 %18, i32* %19
%20 = load i32, i32* %4
ret i32 %20
}

LLVM IR (-O2):
define i32 @increase(i32* noalias nocapture %0, i32* noalias nocapture %1, i32* noalias nocapture %2) {
%4 = load i32, i32* %0
%5 = load i32, i32* %2
%6 = add nsw i32 %5, %4
store i32 %6, i32* %0
%7 = load i32, i32* %1
%8 = add nsw i32 %7, %5
store i32 %8, i32* %1
ret i32 undef
}
void foo808() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @foo821() {
ret void
}
char *ngettext(msgid1, msgid2, n) const char *msgid1;
const char *msgid2;
unsigned long int n;
{ return ngettext__(msgid1, msgid2, n); }


x86 assembly (clang, -O0):
<ngettext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1030 <ngettext__@plt>
cltq
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i8* @ngettext(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @ngettext__ to i32 (i8*, i8*, i64, ...)*)(i8* %7, i8* %8, i64 %9)
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i8*
ret i8* %12
}

LLVM IR (-O2):
define i8* @ngettext(i8* %0, i8* %1, i64 %2) {
%4 = tail call i32 (i8*, i8*, i64, ...) bitcast (i32 (...)* @ngettext__ to i32 (i8*, i8*, i64, ...)*)(i8* %0, i8* %1, i64 %2)
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
double stdlib_strided_dnansum(int, double *, int);
int main() {
  double x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0 / 0.0, 0.0 / 0.0};
  int64_t N = 5;
  int64_t stride = 2;
  double v = stdlib_strided_dnansum(N, x, stride);
  printf("sum: %lf\n", v);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x50(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
movl   $0x5,-0x54(%rbp)
movl   $0x2,-0x58(%rbp)
mov    -0x54(%rbp),%edi
lea    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%edx
call   1050 <stdlib_strided_dnansum@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
movaps 0xf15(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xea5(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
mov    $0x5,%edi
mov    $0x2,%edx
call   1040 <stdlib_strided_dnansum@plt>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
ret

LLVM IR (-O0):
@__const.main.x = [10 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 0x7FF8000000000000, double 0x7FF8000000000000]
@.str = [10 x i8] c"sum: %lf\0A\00"
define i32 @main() {
%1 = alloca [10 x double]
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = bitcast [10 x double]* %1 to i8*
store i32 5, i32* %2
store i32 2, i32* %3
%6 = load i32, i32* %2
%7 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 0
%8 = load i32, i32* %3
%9 = call double @stdlib_strided_dnansum(i32 %6, double* %7, i32 %8)
store double %9, double* %4
%10 = load double, double* %4
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double %10)
ret i32 0
}

LLVM IR (-O2):
@__const.main.x = [10 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 0x7FF8000000000000, double 0x7FF8000000000000]
@.str = [10 x i8] c"sum: %lf\0A\00"
define i32 @main() {
%1 = alloca [10 x double]
%2 = bitcast [10 x double]* %1 to i8*
%3 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 0
%4 = call double @stdlib_strided_dnansum(i32 5, double* %3, i32 2)
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double %4)
ret i32 0
}
void __attribute__((visibility("default")))
border_w_horizontal_special_sand_n(unsigned char *pic, unsigned char *mirr) {
  *pic = 0x2D;
  *mirr = 0x02 | 0x01;
}


x86 assembly (clang, -O0):
<border_w_horizontal_special_sand_n>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x2d,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x3,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<border_w_horizontal_special_sand_n>:
movb   $0x2d,(%rdi)
movb   $0x3,(%rsi)
ret

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

LLVM IR (-O2):
define void @border_w_horizontal_special_sand_n(i8* nocapture writeonly %0, i8* nocapture writeonly %1) {
store i8 45, i8* %0
store i8 3, i8* %1
ret void
}
int main() {
  long a = "asdf";
  long b = "asdf";
  return a == b;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
lea    0xeee(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xee3(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [5 x i8] c"asdf\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
store i64 ptrtoint ([5 x i8]* @.str to i64), i64* %2
store i64 ptrtoint ([5 x i8]* @.str to i64), i64* %3
%4 = load i64, i64* %2
%5 = load i64, i64* %3
%6 = icmp eq i64 %4, %5
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @main() {
ret i32 1
}
void fax2_incoming_nsf(char *nsf_hex) {}


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

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

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

LLVM IR (-O2):
define void @fax2_incoming_nsf(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *, float);
void printfloat(const char *text, float value) {
  if (value < 0.0001f)
    printf("%s%.6f\n", text, value);
  else
    printf("%s%g\n", text, value);
}


x86 assembly (clang, -O0):
<printfloat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  0xed7(%rip),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    114d <printfloat+0x3d>
mov    -0x8(%rbp),%rsi
movss  -0xc(%rbp),%xmm0
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
jmp    1162 <printfloat+0x52>
mov    -0x8(%rbp),%rsi
movss  -0xc(%rbp),%xmm0
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printfloat>:
mov    %rdi,%rsi
movss  0xee5(%rip),%xmm1
ucomiss %xmm0,%xmm1
lea    0xedf(%rip),%rax
lea    0xee0(%rip),%rdi
cmova  %rax,%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"%s%.6f\0A\00"
@.str.1 = [6 x i8] c"%s%g\0A\00"
define void @printfloat(i8* %0, float %1) {
%3 = alloca i8*
%4 = alloca float
store i8* %0, i8** %3
store float %1, float* %4
%5 = load float, float* %4
%6 = fcmp olt float %5, 0x3F1A36E2E0000000
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i8*, i8** %3
%9 = load float, float* %4
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %8, float %9)
br label %15
11: ; preds = %2
%12 = load i8*, i8** %3
%13 = load float, float* %4
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %12, float %13)
br label %15
15: ; preds = %11, %7
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%s%.6f\0A\00"
@.str.1 = [6 x i8] c"%s%g\0A\00"
define void @printfloat(i8* %0, float %1) {
%3 = fcmp olt float %1, 0x3F1A36E2E0000000
%4 = select i1 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0)
%5 = tail call i32 @printf(i8* %4, i8* %0, float %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ alias_for_target();
int /*<<< orphan*/ target();
void inunit2(void) {
  target();
  alias_for_target();
}


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

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

LLVM IR (-O0):
define void @inunit2() {
%1 = call i32 (...) @target()
%2 = call i32 (...) @alias_for_target()
ret void
}

LLVM IR (-O2):
define void @inunit2() {
%1 = tail call i32 (...) @target()
%2 = tail call i32 (...) @alias_for_target()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write(char *, char *, char *);
void function_state(char *state) { write("csv-task.csv", "%s,", state); }


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

x86 assembly (clang, -O2):
<function_state>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xeec(%rip),%rsi
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"csv-task.csv\00"
@.str.1 = [4 x i8] c"%s,\00"
define void @function_state(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @write(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"csv-task.csv\00"
@.str.1 = [4 x i8] c"%s,\00"
define void @function_state(i8* %0) {
%2 = tail call i32 @write(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}
int prev_row(int a[500][500], int i, int j) {
  if (i == 0)
    return 0;
  return a[i - 1][j];
}


x86 assembly (clang, -O0):
<prev_row>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1124 <prev_row+0x24>
movl   $0x0,-0x4(%rbp)
jmp    1145 <prev_row+0x45>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   $0x7d0,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<prev_row>:
test   %esi,%esi
je     111b <prev_row+0x1b>
add    $0xffffffff,%esi
movslq %esi,%rax
movslq %edx,%rcx
imul   $0x7d0,%rax,%rax
add    %rax,%rdi
mov    (%rdi,%rcx,4),%eax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @prev_row([500 x i32]* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca [500 x i32]*
%6 = alloca i32
%7 = alloca i32
store [500 x i32]* %0, [500 x i32]** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load i32, i32* %6
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %3
store i32 0, i32* %4
br label %21
11: ; preds = %3
%12 = load [500 x i32]*, [500 x i32]** %5
%13 = load i32, i32* %6
%14 = sub nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [500 x i32], [500 x i32]* %12, i64 %15
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [500 x i32], [500 x i32]* %16, i64 0, i64 %18
%20 = load i32, i32* %19
store i32 %20, i32* %4
br label %21
21: ; preds = %11, %10
%22 = load i32, i32* %4
ret i32 %22
}

LLVM IR (-O2):
define i32 @prev_row([500 x i32]* nocapture %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %1, 0
br i1 %4, label %11, label %5
5: ; preds = %3
%6 = add nsw i32 %1, -1
%7 = sext i32 %6 to i64
%8 = sext i32 %2 to i64
%9 = getelementptr inbounds [500 x i32], [500 x i32]* %0, i64 %7, i64 %8
%10 = load i32, i32* %9
br label %11
11: ; preds = %3, %5
%12 = phi i32 [ %10, %5 ], [ 0, %3 ]
ret i32 %12
}
int bug(void) {
  unsigned long a, b;
  __asm__("" : "=d"(a) : : "memory");
  __asm__ __volatile__("" : : "g"(b) : "memory");
  return a;
}


x86 assembly (clang, -O0):
<bug>:
push   %rbp
mov    %rsp,%rbp
mov    %rdx,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bug>:
mov    %rdx,%rax
ret

LLVM IR (-O0):
define i32 @bug() {
%1 = alloca i64
%2 = alloca i64
%3 = call i64 asm "", "={dx},~{memory},~{dirflag},~{fpsr},~{flags}"()
store i64 %3, i64* %1
%4 = load i64, i64* %2
%5 = load i64, i64* %1
%6 = trunc i64 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @bug() {
%1 = tail call i64 asm "", "={dx},~{memory},~{dirflag},~{fpsr},~{flags}"()
tail call void asm sideeffect "", "imr,~{memory},~{dirflag},~{fpsr},~{flags}"(i64 undef)
%2 = trunc i64 %1 to i32
ret i32 %2
}