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


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

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

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

LLVM IR (-O2):
define void @XtDispatchEvent() {
ret void
}
/* Variables and functions */
double jd2ep(int /*<<< orphan*/);
int /*<<< orphan*/ ut2jd();
double ut2ep() { return (jd2ep(ut2jd())); }


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

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

LLVM IR (-O0):
define double @ut2ep() {
%1 = call i32 (...) @ut2jd()
%2 = call double @jd2ep(i32 %1)
ret double %2
}

LLVM IR (-O2):
define double @ut2ep() {
%1 = tail call i32 (...) @ut2jd()
%2 = tail call double @jd2ep(i32 %1)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ pi_monte_carlo(double);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *);
int main(void) {
  double point_count = 0;
  printf("Enter point count: ");
  scanf("%lf", &point_count);
  printf("Pi =  %lf \n", pi_monte_carlo(point_count));
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
call   1050 <pi_monte_carlo@plt>
mov    %eax,%esi
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movq   $0x0,(%rsp)
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
call   1050 <pi_monte_carlo@plt>
lea    0xeb1(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Enter point count: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [12 x i8] c"Pi = %lf \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%5 = load double, double* %2
%6 = call i32 @pi_monte_carlo(double %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Enter point count: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [12 x i8] c"Pi = %lf \0A\00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
store double 0.000000e+00, double* %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%5 = load double, double* %1
%6 = call i32 @pi_monte_carlo(double %5)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %6)
ret i32 0
}
/* Type definitions */
struct extent_buffer {
  int dummy;
};
struct btrfs_leaf {
  int dummy;
};

/* Variables and functions */
struct btrfs_leaf *btrfs_buffer_leaf(struct extent_buffer *eb) {
  return NULL;
}


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

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

LLVM IR (-O0):
%struct.btrfs_leaf = type { i32 }
%struct.extent_buffer = type { i32 }
define %struct.btrfs_leaf* @btrfs_buffer_leaf(%struct.extent_buffer* %0) {
%2 = alloca %struct.extent_buffer*
store %struct.extent_buffer* %0, %struct.extent_buffer** %2
ret %struct.btrfs_leaf* null
}

LLVM IR (-O2):
%struct.btrfs_leaf = type { i32 }
%struct.extent_buffer = type { i32 }
define noalias %struct.btrfs_leaf* @btrfs_buffer_leaf(%struct.extent_buffer* nocapture readnone %0) {
ret %struct.btrfs_leaf* null
}
unsigned long crb_set_env(unsigned long id, const char *buf,
                          unsigned long length) {
  return 0xc000000000000000ul;
}


x86 assembly (clang, -O0):
<crb_set_env>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movabs $0xc000000000000000,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<crb_set_env>:
movabs $0xc000000000000000,%rax
ret

LLVM IR (-O0):
define i64 @crb_set_env(i64 %0, i8* %1, i64 %2) {
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i64
store i64 %0, i64* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
ret i64 -4611686018427387904
}

LLVM IR (-O2):
define i64 @crb_set_env(i64 %0, i8* nocapture readnone %1, i64 %2) {
ret i64 -4611686018427387904
}
void foo226() {}


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

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

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

LLVM IR (-O2):
define void @foo226() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ firc_send(char *, char *);
char *strtok(int /*<<< orphan*/, char *);
int /*<<< orphan*/ term();
void quit() {
  char *message = strtok(0, "\r\n");
  firc_send("QUIT :%s", message ? message : "Shutting Down");
  term();
}


x86 assembly (clang, -O0):
<quit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
lea    0xebf(%rip),%rsi
call   1050 <strtok@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1162 <quit+0x32>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1172 <quit+0x42>
lea    0xea3(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1172 <quit+0x42>
mov    -0x10(%rbp),%rsi
lea    0xe86(%rip),%rdi
call   1030 <firc_send@plt>
mov    $0x0,%al
call   1040 <term@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quit>:
push   %rax
lea    0xec8(%rip),%rsi
xor    %edi,%edi
call   1050 <strtok@plt>
test   %rax,%rax
lea    0xec3(%rip),%rsi
cmovne %rax,%rsi
lea    0xeaf(%rip),%rdi
call   1030 <firc_send@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <term@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\0D\0A\00"
@.str.1 = [9 x i8] c"QUIT :%s\00"
@.str.2 = [14 x i8] c"Shutting Down\00"
define void @quit() {
%1 = alloca i8*
%2 = call i8* @strtok(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load i8*, i8** %1
br label %8
7: ; preds = %0
br label %8
8: ; preds = %7, %5
%9 = phi i8* [ %6, %5 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), %7 ]
%10 = call i32 @firc_send(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = call i32 (...) @term()
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"\0D\0A\00"
@.str.1 = [9 x i8] c"QUIT :%s\00"
@.str.2 = [14 x i8] c"Shutting Down\00"
define void @quit() {
%1 = tail call i8* @strtok(i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i8* %1, null
%3 = select i1 %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %1
%4 = tail call i32 @firc_send(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = tail call i32 (...) @term()
ret void
}
int fun1322() { return 1322; }


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

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

LLVM IR (-O0):
define i32 @fun1322() {
ret i32 1322
}

LLVM IR (-O2):
define i32 @fun1322() {
ret i32 1322
}
/* Variables and functions */
scalar_t__ find(int);
int same(int x, int y) { return find(x) == find(y); }


x86 assembly (clang, -O0):
<same>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <find@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <find@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<same>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
call   1030 <find@plt>
mov    %rax,%rbx
mov    %ebp,%edi
call   1030 <find@plt>
xor    %ecx,%ecx
cmp    %rax,%rbx
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @same(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 = call i64 @find(i32 %5)
%7 = load i32, i32* %4
%8 = call i64 @find(i32 %7)
%9 = icmp eq i64 %6, %8
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @same(i32 %0, i32 %1) {
%3 = tail call i64 @find(i32 %0)
%4 = tail call i64 @find(i32 %1)
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
int test_imm_21uint16_reg(unsigned short val) {
  return ((val) & (-0x21 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_21uint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%edx
and    $0xffffffdf,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_21uint16_reg>:
test   $0xffdf,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_21uint16_reg(i16 zeroext %0) {
%2 = and i16 %0, -33
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
bool SHAREMIND_SET_KEY_LESS_THAN_long(long const k1, long const k2) {
  return k1 < k2;
}


x86 assembly (clang, -O0):
<SHAREMIND_SET_KEY_LESS_THAN_long>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SHAREMIND_SET_KEY_LESS_THAN_long>:
xor    %eax,%eax
cmp    %rsi,%rdi
setl   %al
ret

LLVM IR (-O0):
define i32 @SHAREMIND_SET_KEY_LESS_THAN_long(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp slt i64 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @SHAREMIND_SET_KEY_LESS_THAN_long(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
scalar_t__ qe_inrange(int, char, char);
int qe_isalpha_(int c) {
  return (qe_inrange(c | ('a' - 'A'), 'a', 'z') || c == '_');
}


x86 assembly (clang, -O0):
<qe_isalpha_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
or     $0x20,%edi
mov    $0x61,%esi
mov    $0x7a,%edx
call   1030 <qe_inrange@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    114c <qe_isalpha_+0x3c>
cmpl   $0x5f,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qe_isalpha_>:
push   %rbx
mov    %edi,%ebx
or     $0x20,%edi
mov    $0x61,%esi
mov    $0x7a,%edx
call   1030 <qe_inrange@plt>
test   %rax,%rax
setne  %al
cmp    $0x5f,%ebx
sete   %cl
or     %al,%cl
movzbl %cl,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @qe_isalpha_(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = or i32 %3, 32
%5 = call i64 @qe_inrange(i32 %4, i8 signext 97, i8 signext 122)
%6 = icmp ne i64 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 95
br label %10
10: ; preds = %7, %1
%11 = phi i1 [ true, %1 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @qe_isalpha_(i32 %0) {
%2 = or i32 %0, 32
%3 = tail call i64 @qe_inrange(i32 %2, i8 signext 97, i8 signext 122)
%4 = icmp ne i64 %3, 0
%5 = icmp eq i32 %0, 95
%6 = or i1 %5, %4
%7 = zext i1 %6 to i32
ret i32 %7
}
int bar(int *volatile a) { return printf("[%d, %d]\n", a[0], a[1]); }


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edx
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
mov    %rdi,-0x8(%rsp)
mov    -0x8(%rsp),%rax
mov    (%rax),%esi
mov    -0x8(%rsp),%rax
mov    0x4(%rax),%edx
lea    0xed5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"[%d, %d]\0A\00"
define i32 @bar(i32* %0) {
%2 = alloca i32*
store volatile i32* %0, i32** %2
%3 = load volatile i32*, i32** %2
%4 = load i32, i32* %3
%5 = load volatile i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i64 1
%7 = load i32, i32* %6
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %7)
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ __NR_tgkill;
long syscall(int /*<<< orphan*/, int, int, int);
long int __tgkill(int x, int y, int z) { return syscall(__NR_tgkill, x, y, z); }


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

x86 assembly (clang, -O2):
<__tgkill>:
mov    %edx,%ecx
mov    %esi,%edx
mov    %edi,%esi
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@__NR_tgkill = global i32 0
define i64 @__tgkill(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* @__NR_tgkill
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i64 @syscall(i32 %7, i32 %8, i32 %9, i32 %10)
ret i64 %11
}

LLVM IR (-O2):
@__NR_tgkill = global i32 0
define i64 @__tgkill(i32 %0, i32 %1, i32 %2) {
%4 = load i32, i32* @__NR_tgkill
%5 = tail call i64 @syscall(i32 %4, i32 %0, i32 %1, i32 %2)
ret i64 %5
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, char);
int main(void) {
  char *p = "A String in C is a Poiner itself";
  for (int i = 0; *(p + i) != '\0'; ++i)
    printf("%c", *(p + i));
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     116c <main+0x5c>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
lea    0xecc(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1131 <main+0x21>
mov    0x2e6d(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %ebx,%ebx
lea    0xee2(%rip),%r15
lea    0xefc(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
movsbl (%rbx,%r15,1),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0x20,%rbx
jne    1130 <main+0x20>
mov    0x2e92(%rip),%rax
mov    (%rax),%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [33 x i8] c"A String in C is a Poiner itself\00"
@.str.1 = [3 x i8] c"%c\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
store i32 0, i32* %1
store i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %19, %0
%5 = load i8*, i8** %2
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %4
%13 = load i8*, i8** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = load i8, i8* %16
%18 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %17)
br label %19
19: ; preds = %12
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %4
22: ; preds = %4
%23 = load i32, i32* @EXIT_SUCCESS
ret i32 %23
}

LLVM IR (-O2):
@.str = [33 x i8] c"A String in C is a Poiner itself\00"
@.str.1 = [3 x i8] c"%c\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
br label %3
1: ; preds = %3
%2 = load i32, i32* @EXIT_SUCCESS
ret i32 %2
3: ; preds = %0, %3
%4 = phi i64 [ 0, %0 ], [ %8, %3 ]
%5 = getelementptr inbounds [33 x i8], [33 x i8]* @.str, i64 0, i64 %4
%6 = load i8, i8* %5
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %6)
%8 = add nuw nsw i64 %4, 1
%9 = icmp eq i64 %8, 32
br i1 %9, label %1, label %3
}
/* Variables and functions */
int SIGALRM;
int /*<<< orphan*/ printf(char *);
void timer(int sig) {
  if (SIGALRM == sig) {
    printf("timer\n");
  }
  return;
}


x86 assembly (clang, -O0):
<timer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ec6(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jne    1139 <timer+0x29>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<timer>:
mov    0x2ed1(%rip),%rax
cmp    %edi,(%rax)
jne    1127 <timer+0x17>
lea    0xede(%rip),%rdi
jmp    1030 <puts@plt>
ret

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

LLVM IR (-O2):
@SIGALRM = global i32 0
@str = [6 x i8] c"timer\00"
define void @timer(i32 %0) {
%2 = load i32, i32* @SIGALRM
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ emit(char const *, char *, int, int);
void emit_inet(const char *name, int level, int optname) {
  emit(name, "StandardProtocolFamily.INET", level, optname);
}


x86 assembly (clang, -O0):
<emit_inet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xecd(%rip),%rsi
call   1030 <emit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emit_inet>:
mov    %edx,%ecx
mov    %esi,%edx
lea    0xee5(%rip),%rsi
jmp    1030 <emit@plt>

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

LLVM IR (-O2):
@.str = [28 x i8] c"StandardProtocolFamily.INET\00"
define void @emit_inet(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @emit(i8* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %2)
ret void
}
/* Variables and functions */
int strlen(char *);
int removeNewLine(char *str) {
  int lenght = strlen(str);
  if (str[lenght - 1] == '\n') {
    str[lenght - 1] = '\0';
  }
  return lenght;
}


x86 assembly (clang, -O0):
<removeNewLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    1153 <removeNewLine+0x43>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<removeNewLine>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
movslq %eax,%rcx
cmpb   $0xa,-0x1(%rcx,%rbx,1)
jne    1128 <removeNewLine+0x18>
movb   $0x0,-0x1(%rbx,%rcx,1)
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @removeNewLine(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, -1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 10
br i1 %7, label %8, label %9
8: ; preds = %1
store i8 0, i8* %5
br label %9
9: ; preds = %8, %1
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ __buf_size_arg_constraint_mul(short *, int, int);
void test_buf_size_concrete_with_multiplication() {
  short buf[3];
  __buf_size_arg_constraint_mul(buf, 4, sizeof(short));
}


x86 assembly (clang, -O0):
<test_buf_size_concrete_with_multiplication>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x6(%rbp),%rdi
mov    $0x4,%esi
mov    $0x2,%edx
call   1030 <__buf_size_arg_constraint_mul@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_buf_size_concrete_with_multiplication>:
push   %rax
lea    0x2(%rsp),%rdi
mov    $0x4,%esi
mov    $0x2,%edx
call   1030 <__buf_size_arg_constraint_mul@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @test_buf_size_concrete_with_multiplication() {
%1 = alloca [3 x i16]
%2 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 0
%3 = call i32 @__buf_size_arg_constraint_mul(i16* %2, i32 4, i32 2)
ret void
}

LLVM IR (-O2):
define void @test_buf_size_concrete_with_multiplication() {
%1 = alloca [3 x i16]
%2 = bitcast [3 x i16]* %1 to i8*
%3 = getelementptr inbounds [3 x i16], [3 x i16]* %1, i64 0, i64 0
%4 = call i32 @__buf_size_arg_constraint_mul(i16* %3, i32 4, i32 2)
ret void
}
int same(char *str1, int len1, char *str2, int len2) {}


x86 assembly (clang, -O0):
<same>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @same(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%10 = load i32, i32* %5
ret i32 %10
}

LLVM IR (-O2):
define i32 @same(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3) {
ret i32 undef
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMRA2_set(void) { return U_WMRCORENONE_set("U_WMRA2"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMRA2\00"
define i8* @U_WMRA2_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_WMRA2\00"
define i8* @U_WMRA2_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
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n;
  scanf("%d", &n);
  printf("%d\n", (1 + n) * n / 2);
  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
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
imul   -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
lea    0x1(%rax),%ecx
imul   %eax,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
add    %ecx,%esi
sar    %esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = add nsw i32 %4, 1
%6 = mul nsw i32 %5, %4
%7 = sdiv i32 %6, 2
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %7)
ret i32 0
}
const char *Cast_Brief(void) { return "Runtime Type Checking"; }


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"Runtime Type Checking\00"
define i8* @Cast_Brief() {
ret i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [22 x i8] c"Runtime Type Checking\00"
define i8* @Cast_Brief() {
ret i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int drv_EFN_list(void) {
  printf("EFN LED modules + EUG100 Ethernet to serial converter");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [54 x i8] c"EFN LED modules + EUG100 Ethernet to serial converter\00"
define i32 @drv_EFN_list() {
%1 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [54 x i8] c"EFN LED modules + EUG100 Ethernet to serial converter\00"
define i32 @drv_EFN_list() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void blockForKeys(void) {
  _serverPanic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/"
               "heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c",
               50, "Function '%s' is disabled.", __func__);
}


x86 assembly (clang, -O0):
<blockForKeys>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x32,%esi
lea    0xf79(%rip),%rdx
lea    0xf8d(%rip),%rcx
mov    $0x0,%al
call   1030 <_serverPanic@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<blockForKeys>:
lea    0xee9(%rip),%rdi
lea    0xf82(%rip),%rdx
lea    0xf96(%rip),%rcx
mov    $0x32,%esi
xor    %eax,%eax
jmp    1030 <_serverPanic@plt>

LLVM IR (-O0):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.blockForKeys = [13 x i8] c"blockForKeys\00"
define void @blockForKeys() {
%1 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__func__.blockForKeys, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.blockForKeys = [13 x i8] c"blockForKeys\00"
define void @blockForKeys() {
%1 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 50, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__func__.blockForKeys, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void usage(const char *prog) {
  printf("usage: %s <ttydev> <outfile> <start offset> <length>\n", prog);
}


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

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [54 x i8] c"usage: %s <ttydev> <outfile> <start offset> <length>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [54 x i8] c"usage: %s <ttydev> <outfile> <start offset> <length>\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isascii(int);
void t_isascii_0x1b() {
  Assert_real((isascii(27)),
              "/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_isascii.c",
              140, ("isascii should be 1 for 0x1b"));
}


x86 assembly (clang, -O0):
<t_isascii_0x1b>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1b,%edi
call   1030 <isascii@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x8c,%edx
lea    0xf65(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isascii_0x1b>:
lea    0xee9(%rip),%rsi
lea    0xf8a(%rip),%rcx
mov    $0x1,%edi
mov    $0x8c,%edx
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 1 for 0x1b\00"
define void @t_isascii_0x1b() {
%1 = call i32 @isascii(i32 27)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 140, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 1 for 0x1b\00"
define void @t_isascii_0x1b() {
%1 = tail call i32 @Assert_real(i32 1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 140, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int jac_chain_nm6_n_in(void) { return 2; }


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

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

LLVM IR (-O0):
define i32 @jac_chain_nm6_n_in() {
ret i32 2
}

LLVM IR (-O2):
define i32 @jac_chain_nm6_n_in() {
ret i32 2
}
/* Type definitions */
struct value {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ collect(struct value *);
int /*<<< orphan*/ equal(struct value *, struct value *);
int /*<<< orphan*/ new_int(int /*<<< orphan*/);
struct value *pop();
int /*<<< orphan*/ push(int /*<<< orphan*/);
void builtin_equal() {
  struct value *x, *y;
  x = pop();
  y = pop();
  push(new_int(equal(x, y)));
  collect(x);
  collect(y);
}


x86 assembly (clang, -O0):
<builtin_equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <pop@plt>
mov    %rax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <pop@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <equal@plt>
mov    %eax,%edi
call   1040 <new_int@plt>
mov    %eax,%edi
call   1050 <push@plt>
mov    -0x8(%rbp),%rdi
call   1070 <collect@plt>
mov    -0x10(%rbp),%rdi
call   1070 <collect@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<builtin_equal>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <pop@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1030 <pop@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
call   1060 <equal@plt>
mov    %eax,%edi
call   1040 <new_int@plt>
mov    %eax,%edi
call   1050 <push@plt>
mov    %r14,%rdi
call   1070 <collect@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <collect@plt>

LLVM IR (-O0):
%struct.value = type { i32 }
define void @builtin_equal() {
%1 = alloca %struct.value*
%2 = alloca %struct.value*
%3 = call %struct.value* (...) @pop()
store %struct.value* %3, %struct.value** %1
%4 = call %struct.value* (...) @pop()
store %struct.value* %4, %struct.value** %2
%5 = load %struct.value*, %struct.value** %1
%6 = load %struct.value*, %struct.value** %2
%7 = call i32 @equal(%struct.value* %5, %struct.value* %6)
%8 = call i32 @new_int(i32 %7)
%9 = call i32 @push(i32 %8)
%10 = load %struct.value*, %struct.value** %1
%11 = call i32 @collect(%struct.value* %10)
%12 = load %struct.value*, %struct.value** %2
%13 = call i32 @collect(%struct.value* %12)
ret void
}

LLVM IR (-O2):
%struct.value = type { i32 }
define void @builtin_equal() {
%1 = tail call %struct.value* (...) @pop()
%2 = tail call %struct.value* (...) @pop()
%3 = tail call i32 @equal(%struct.value* %1, %struct.value* %2)
%4 = tail call i32 @new_int(i32 %3)
%5 = tail call i32 @push(i32 %4)
%6 = tail call i32 @collect(%struct.value* %1)
%7 = tail call i32 @collect(%struct.value* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fdatasync(int);
int real_close(int);
int close(int fd) {
  fdatasync(fd);
  return real_close(fd);
}


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

x86 assembly (clang, -O2):
<close>:
push   %rbx
mov    %edi,%ebx
call   1030 <fdatasync@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1040 <real_close@plt>

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

LLVM IR (-O2):
define i32 @close(i32 %0) {
%2 = tail call i32 @fdatasync(i32 %0)
%3 = tail call i32 @real_close(i32 %0)
ret i32 %3
}
/* Variables and functions */
float bounce_ease_out(float);
float bounce_ease_in(float p) { return 1.0f - bounce_ease_out(1.0f - p); }


x86 assembly (clang, -O0):
<bounce_ease_in>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  0xedb(%rip),%xmm0
subss  -0x4(%rbp),%xmm0
call   1030 <bounce_ease_out@plt>
movaps %xmm0,%xmm1
movss  0xec6(%rip),%xmm0
subss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bounce_ease_in>:
push   %rax
movss  0xee7(%rip),%xmm1
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
call   1030 <bounce_ease_out@plt>
movss  0xed3(%rip),%xmm1
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @bounce_ease_in(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fsub float 1.000000e+00, %3
%5 = call float @bounce_ease_out(float %4)
%6 = fsub float 1.000000e+00, %5
ret float %6
}

LLVM IR (-O2):
define float @bounce_ease_in(float %0) {
%2 = fsub float 1.000000e+00, %0
%3 = tail call float @bounce_ease_out(float %2)
%4 = fsub float 1.000000e+00, %3
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void print_help(void) {
  fprintf(stderr, "Usage: mkchkimg -o output -k kernel [-f filesys] [-b "
                  "board_id] [-r region]\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [76 x i8] c"Usage: mkchkimg -o output -k kernel [-f filesys] [-b board_id] [-r region]\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [76 x i8] c"Usage: mkchkimg -o output -k kernel [-f filesys] [-b board_id] [-r region]\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printDouble(double);
int /*<<< orphan*/ printInt(int);
int /*<<< orphan*/ printString(char *);
int readInt();
int main() {
  printInt(7 * readInt());
  printDouble(3.14);
  printString("hello");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <readInt@plt>
imul   $0x7,%eax,%edi
call   1030 <printInt@plt>
movsd  0xea5(%rip),%xmm0
call   1060 <printDouble@plt>
lea    0xea1(%rip),%rdi
call   1040 <printString@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <readInt@plt>
lea    0x0(,%rax,8),%edi
sub    %eax,%edi
call   1030 <printInt@plt>
movsd  0xea2(%rip),%xmm0
call   1060 <printDouble@plt>
lea    0xe9e(%rip),%rdi
call   1040 <printString@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"hello\00"
define i32 @main() {
%1 = call i32 (...) @readInt()
%2 = mul nsw i32 7, %1
%3 = call i32 @printInt(i32 %2)
%4 = call i32 @printDouble(double 3.140000e+00)
%5 = call i32 @printString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"hello\00"
define i32 @main() {
%1 = tail call i32 (...) @readInt()
%2 = mul nsw i32 %1, 7
%3 = tail call i32 @printInt(i32 %2)
%4 = tail call i32 @printDouble(double 3.140000e+00)
%5 = tail call i32 @printString(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void timeval_to_jiffies(void) { nsc_assert(0, __func__); }


x86 assembly (clang, -O0):
<timeval_to_jiffies>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <nsc_assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<timeval_to_jiffies>:
lea    0xee9(%rip),%rsi
xor    %edi,%edi
xor    %eax,%eax
jmp    1030 <nsc_assert@plt>

LLVM IR (-O0):
@__func__.timeval_to_jiffies = [19 x i8] c"timeval_to_jiffies\00"
define void @timeval_to_jiffies() {
%1 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.timeval_to_jiffies, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__func__.timeval_to_jiffies = [19 x i8] c"timeval_to_jiffies\00"
define void @timeval_to_jiffies() {
%1 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.timeval_to_jiffies, i64 0, i64 0))
ret void
}
int smp_test_rbt_cmp(void *data1_, void *data2_) {
  int *data1 = data1_;
  int *data2 = data2_;
  if (*data1 > *data2)
    return 1;
  else {
    if (*data1 < *data2)
      return -1;
    else
      return 0;
  }
}


x86 assembly (clang, -O0):
<smp_test_rbt_cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jle    113a <smp_test_rbt_cmp+0x3a>
movl   $0x1,-0x4(%rbp)
jmp    115f <smp_test_rbt_cmp+0x5f>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jge    1158 <smp_test_rbt_cmp+0x58>
movl   $0xffffffff,-0x4(%rbp)
jmp    115f <smp_test_rbt_cmp+0x5f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<smp_test_rbt_cmp>:
mov    (%rdi),%eax
mov    (%rsi),%ecx
xor    %edx,%edx
cmp    %ecx,%eax
setl   %dl
neg    %edx
cmp    %ecx,%eax
mov    $0x1,%eax
cmovle %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @smp_test_rbt_cmp(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = bitcast i8* %1 to i32*
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp sgt i32 %5, %6
%8 = icmp slt i32 %5, %6
%9 = sext i1 %8 to i32
%10 = select i1 %7, i32 1, i32 %9
ret i32 %10
}
/* Variables and functions */
int YabSockInit() { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @YabSockInit() {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ acc_device_default;
int /*<<< orphan*/ acc_init(int /*<<< orphan*/);
int /*<<< orphan*/ acc_shutdown(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  acc_init(acc_device_default);
  acc_shutdown(acc_device_default);
  fprintf(stderr, "CheCKpOInT\n");
  acc_shutdown(acc_device_default);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
call   1050 <acc_init@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
call   1030 <acc_shutdown@plt>
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
lea    0xe8e(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e5a(%rip),%rax
mov    (%rax),%edi
call   1030 <acc_shutdown@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ea0(%rip),%rbx
mov    (%rbx),%edi
call   1050 <acc_init@plt>
mov    (%rbx),%edi
call   1030 <acc_shutdown@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%edi
lea    0xeaa(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1030 <acc_shutdown@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@acc_device_default = global i32 0
@stderr = global i32 0
@.str = [12 x i8] c"CheCKpOInT\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* @acc_device_default
%7 = call i32 @acc_init(i32 %6)
%8 = load i32, i32* @acc_device_default
%9 = call i32 @acc_shutdown(i32 %8)
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @acc_device_default
%13 = call i32 @acc_shutdown(i32 %12)
ret i32 0
}

LLVM IR (-O2):
@acc_device_default = global i32 0
@stderr = global i32 0
@.str = [12 x i8] c"CheCKpOInT\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @acc_device_default
%4 = tail call i32 @acc_init(i32 %3)
%5 = load i32, i32* @acc_device_default
%6 = tail call i32 @acc_shutdown(i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @acc_device_default
%10 = tail call i32 @acc_shutdown(i32 %9)
ret i32 0
}