xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isdigit(int);
void t_isdigit_0x8b() {
  Assert_real((isdigit(139) == 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_isdigit.c",
              700, ("isdigit should be 0 for 0x8b"));
}


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

x86 assembly (clang, -O2):
<t_isdigit_0x8b>:
push   %rax
mov    $0x8b,%edi
call   1030 <isdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x2bc,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0x8b\00"
define void @t_isdigit_0x8b() {
%1 = call i64 @isdigit(i32 139)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 700, 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_isdigit.c\00"
@.str.1 = [29 x i8] c"isdigit should be 0 for 0x8b\00"
define void @t_isdigit_0x8b() {
%1 = tail call i64 @isdigit(i32 139)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 700, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ is_ctl(char const);
int __ctl_len(const char *s) {
  int l;
  for (l = 0; is_ctl(*s); l++)
    s++;
  return l;
}


x86 assembly (clang, -O0):
<__ctl_len>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <is_ctl@plt>
cmp    $0x0,%rax
je     1153 <__ctl_len+0x43>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <__ctl_len+0x13>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ctl_len>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
movsbl (%rdi),%edi
call   1030 <is_ctl@plt>
xor    %ebx,%ebx
test   %rax,%rax
je     1144 <__ctl_len+0x34>
cs nopw 0x0(%rax,%rax,1)
movsbl 0x1(%r14,%rbx,1),%edi
call   1030 <is_ctl@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1130 <__ctl_len+0x20>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @__ctl_len(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i8*, i8** %2
%6 = load i8, i8* %5
%7 = call i64 @is_ctl(i8 signext %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %4
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i32 1
store i8* %11, i8** %2
br label %12
12: ; preds = %9
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @__ctl_len(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = tail call i64 @is_ctl(i8 signext %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %13, label %5
5: ; preds = %1, %5
%6 = phi i32 [ %9, %5 ], [ 0, %1 ]
%7 = phi i8* [ %8, %5 ], [ %0, %1 ]
%8 = getelementptr inbounds i8, i8* %7, i64 1
%9 = add nuw nsw i32 %6, 1
%10 = load i8, i8* %8
%11 = tail call i64 @is_ctl(i8 signext %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %5, %1
%14 = phi i32 [ 0, %1 ], [ %9, %5 ]
ret i32 %14
}
/* Type definitions */
typedef int /*<<< orphan*/ __be32;

/* Variables and functions */
void *nla_reserve(void **, int, int);
void nla_put_be32(void **ctx, int t, __be32 var) {
  void *data = nla_reserve(ctx, t, sizeof(__be32));
  *(__be32 *)data = var;
}


x86 assembly (clang, -O0):
<nla_put_be32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x4,%edx
call   1030 <nla_reserve@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nla_put_be32>:
push   %rbx
mov    %edx,%ebx
mov    $0x4,%edx
call   1030 <nla_reserve@plt>
mov    %ebx,(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define void @nla_put_be32(i8** %0, i32 %1, i32 %2) {
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
store i8** %0, i8*** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i8**, i8*** %4
%9 = load i32, i32* %5
%10 = call i8* @nla_reserve(i8** %8, i32 %9, i32 4)
store i8* %10, i8** %7
%11 = load i32, i32* %6
%12 = load i8*, i8** %7
%13 = bitcast i8* %12 to i32*
store i32 %11, i32* %13
ret void
}

LLVM IR (-O2):
define void @nla_put_be32(i8** %0, i32 %1, i32 %2) {
%4 = tail call i8* @nla_reserve(i8** %0, i32 %1, i32 4)
%5 = bitcast i8* %4 to i32*
store i32 %2, i32* %5
ret void
}
void main(void) {
  int x;
  int i = 41;
  while (i >= 12) {
    x = 0;
    i--;
  }
  int y;
  int j = -40;
  while (-5 >= j) {
    y = 0;
    j++;
  }
  int z;
  int k = 41;
  while (k != 0) {
    z = 0;
    k--;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x29,-0x8(%rbp)
cmpl   $0xc,-0x8(%rbp)
jl     112a <main+0x2a>
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    110b <main+0xb>
movl   $0xffffffd8,-0x10(%rbp)
mov    $0xfffffffb,%eax
cmp    -0x10(%rbp),%eax
jl     1154 <main+0x54>
movl   $0x0,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1131 <main+0x31>
movl   $0x29,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     117a <main+0x7a>
movl   $0x0,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    115b <main+0x5b>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @main() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ pem_password_cb;
typedef int /*<<< orphan*/ d2i_of_void;
typedef int /*<<< orphan*/ PKCS7;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ *PEM_ASN1_read_bio(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                      int /*<<< orphan*/ *, void **,
                                      int /*<<< orphan*/ *, void *);
int /*<<< orphan*/ PEM_STRING_PKCS7;
scalar_t__ d2i_PKCS7;
PKCS7 *PEM_read_bio_PKCS7(BIO *bp, PKCS7 **x, pem_password_cb *cb, void *u) {
  return PEM_ASN1_read_bio((d2i_of_void *)d2i_PKCS7, PEM_STRING_PKCS7, bp,
                           (void **)x, cb, u);
}


x86 assembly (clang, -O0):
<PEM_read_bio_PKCS7>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    0x2ea9(%rip),%rax
mov    (%rax),%rdi
mov    0x2eaf(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
call   1030 <PEM_ASN1_read_bio@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PEM_read_bio_PKCS7>:
mov    %rcx,%r9
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%rdi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
jmp    1030 <PEM_ASN1_read_bio@plt>

LLVM IR (-O0):
@d2i_PKCS7 = global i64 0
@PEM_STRING_PKCS7 = global i32 0
define i32* @PEM_read_bio_PKCS7(i32* %0, i32** %1, i32* %2, i8* %3) {
%5 = alloca i32*
%6 = alloca i32**
%7 = alloca i32*
%8 = alloca i8*
store i32* %0, i32** %5
store i32** %1, i32*** %6
store i32* %2, i32** %7
store i8* %3, i8** %8
%9 = load i64, i64* @d2i_PKCS7
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* @PEM_STRING_PKCS7
%12 = load i32*, i32** %5
%13 = load i32**, i32*** %6
%14 = bitcast i32** %13 to i8**
%15 = load i32*, i32** %7
%16 = load i8*, i8** %8
%17 = call i32* @PEM_ASN1_read_bio(i32* %10, i32 %11, i32* %12, i8** %14, i32* %15, i8* %16)
ret i32* %17
}

LLVM IR (-O2):
@d2i_PKCS7 = global i64 0
@PEM_STRING_PKCS7 = global i32 0
define i32* @PEM_read_bio_PKCS7(i32* %0, i32** %1, i32* %2, i8* %3) {
%5 = load i64, i64* @d2i_PKCS7
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* @PEM_STRING_PKCS7
%8 = bitcast i32** %1 to i8**
%9 = tail call i32* @PEM_ASN1_read_bio(i32* %6, i32 %7, i32* %0, i8** %8, i32* %2, i8* %3)
ret i32* %9
}
void instruc_22() {}


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

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

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

LLVM IR (-O2):
define void @instruc_22() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char const *);
void fatal_system_error(char const *s) {
  perror(s);
  exit(1);
}


x86 assembly (clang, -O0):
<fatal_system_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <perror@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fatal_system_error>:
push   %rax
call   1030 <perror@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @fatal_system_error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @perror(i8* %3)
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define void @fatal_system_error(i8* nocapture %0) {
%2 = tail call i32 @perror(i8* %0)
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void sig_alrm(int signo) { exit(2); }


x86 assembly (clang, -O0):
<sig_alrm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x2,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<sig_alrm>:
push   %rax
mov    $0x2,%edi
call   1030 <exit@plt>

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

LLVM IR (-O2):
define void @sig_alrm(i32 %0) {
%2 = tail call i32 @exit(i32 2)
unreachable
}
void gtk_selection_owner_set() {}


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

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

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

LLVM IR (-O2):
define void @gtk_selection_owner_set() {
ret void
}
/* Variables and functions */
float nsvg__atof(char const *);
float nsvg__parseMiterLimit(const char *str) {
  float val = nsvg__atof(str);
  if (val < 0.0f)
    val = 0.0f;
  return val;
}


x86 assembly (clang, -O0):
<nsvg__parseMiterLimit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <nsvg__atof@plt>
movss  %xmm0,-0xc(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    113f <nsvg__parseMiterLimit+0x2f>
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nsvg__parseMiterLimit>:
push   %rax
call   1030 <nsvg__atof@plt>
xorps  %xmm1,%xmm1
maxss  %xmm0,%xmm1
movaps %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @nsvg__parseMiterLimit(i8* %0) {
%2 = alloca i8*
%3 = alloca float
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call float @nsvg__atof(i8* %4)
store float %5, float* %3
%6 = load float, float* %3
%7 = fcmp olt float %6, 0.000000e+00
br i1 %7, label %8, label %9
8: ; preds = %1
store float 0.000000e+00, float* %3
br label %9
9: ; preds = %8, %1
%10 = load float, float* %3
ret float %10
}

LLVM IR (-O2):
define float @nsvg__parseMiterLimit(i8* %0) {
%2 = tail call float @nsvg__atof(i8* %0)
%3 = fcmp olt float %2, 0.000000e+00
%4 = select i1 %3, float 0.000000e+00, float %2
ret float %4
}
/* Variables and functions */
int send_command_expect_ok(int, char *);
int netplot_init(int server_connection_index) {
  return send_command_expect_ok(server_connection_index, "init\n");
}


x86 assembly (clang, -O0):
<netplot_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    0xedb(%rip),%rsi
call   1030 <send_command_expect_ok@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<netplot_init>:
lea    0xee9(%rip),%rsi
jmp    1030 <send_command_expect_ok@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"init\0A\00"
define i32 @netplot_init(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @send_command_expect_ok(i32 %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 %4
}

LLVM IR (-O2):
@.str = [6 x i8] c"init\0A\00"
define i32 @netplot_init(i32 %0) {
%2 = tail call i32 @send_command_expect_ok(i32 %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 %2
}
/* Variables and functions */
int StartsWith(char *, char);
int IsLabel(char *string) { return StartsWith(string, ':'); }


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

x86 assembly (clang, -O2):
<IsLabel>:
mov    $0x3a,%esi
jmp    1030 <StartsWith@plt>

LLVM IR (-O0):
define i32 @IsLabel(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @StartsWith(i8* %3, i8 signext 58)
ret i32 %4
}

LLVM IR (-O2):
define i32 @IsLabel(i8* %0) {
%2 = tail call i32 @StartsWith(i8* %0, i8 signext 58)
ret i32 %2
}
void registerWaiter(int _usecs, void *_addr) {}


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

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

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

LLVM IR (-O2):
define void @registerWaiter(i32 %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __analyzer_eval(int);
void test_range_float_ge_le(float f) {
  if (f >= 4)
    if (f <= 4)
      __analyzer_eval(f == 4);
}


x86 assembly (clang, -O0):
<test_range_float_ge_le>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xed6(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     116c <test_range_float_ge_le+0x5c>
movss  0xec5(%rip),%xmm0
ucomiss -0x4(%rbp),%xmm0
jb     1167 <test_range_float_ge_le+0x57>
movss  -0x4(%rbp),%xmm0
movss  0xeae(%rip),%xmm1
ucomiss %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
jmp    116c <test_range_float_ge_le+0x5c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_range_float_ge_le>:
ucomiss 0xee9(%rip),%xmm0
jne    1125 <test_range_float_ge_le+0x15>
jp     1125 <test_range_float_ge_le+0x15>
mov    $0x1,%edi
jmp    1030 <__analyzer_eval@plt>
ret

LLVM IR (-O0):
define void @test_range_float_ge_le(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fcmp oge float %3, 4.000000e+00
br i1 %4, label %5, label %14
5: ; preds = %1
%6 = load float, float* %2
%7 = fcmp ole float %6, 4.000000e+00
br i1 %7, label %8, label %13
8: ; preds = %5
%9 = load float, float* %2
%10 = fcmp oeq float %9, 4.000000e+00
%11 = zext i1 %10 to i32
%12 = call i32 @__analyzer_eval(i32 %11)
br label %13
13: ; preds = %8, %5
br label %14
14: ; preds = %13, %1
ret void
}

LLVM IR (-O2):
define void @test_range_float_ge_le(float %0) {
%2 = fcmp oeq float %0, 4.000000e+00
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @__analyzer_eval(i32 1)
br label %5
5: ; preds = %3, %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
void int32_ttolocal(int32_t *l) {}


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

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

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

LLVM IR (-O2):
define void @int32_ttolocal(i32* nocapture %0) {
ret void
}
/* Variables and functions */
int getchar();
int _key() { return getchar(); }


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

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

LLVM IR (-O0):
define i32 @_key() {
%1 = call i32 (...) @getchar()
ret i32 %1
}

LLVM IR (-O2):
define i32 @_key() {
%1 = tail call i32 (...) @getchar()
ret i32 %1
}
int ubi_dbg_is_bgt_disabled(void) { return 0; }


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

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

LLVM IR (-O0):
define i32 @ubi_dbg_is_bgt_disabled() {
ret i32 0
}

LLVM IR (-O2):
define i32 @ubi_dbg_is_bgt_disabled() {
ret i32 0
}
void dlclose(void *handle) {}


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

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

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

LLVM IR (-O2):
define void @dlclose(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void const *, int);
void ZSTDv06_copy4(void *dst, const void *src) { memcpy(dst, src, 4); }


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

x86 assembly (clang, -O2):
<ZSTDv06_copy4>:
mov    $0x4,%edx
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
define void @ZSTDv06_copy4(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
%6 = load i8*, i8** %4
%7 = call i32 @memcpy(i8* %5, i8* %6, i32 4)
ret void
}

LLVM IR (-O2):
define void @ZSTDv06_copy4(i8* %0, i8* %1) {
%3 = tail call i32 @memcpy(i8* %0, i8* %1, i32 4)
ret void
}
/* Variables and functions */
scalar_t__ efc_new(int);
int /*<<< orphan*/ memmove(char *, char *, int);
char *cplStrNDup(char *from, int len) {
  char *dupl;
  dupl = (char *)efc_new(len + 1);
  if (dupl) {
    memmove(dupl, from, len);
    dupl[len] = '\0';
  }
  return dupl;
}


x86 assembly (clang, -O0):
<cplStrNDup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
call   1030 <efc_new@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1165 <cplStrNDup+0x45>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1040 <memmove@plt>
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cplStrNDup>:
push   %r15
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %rdi,%r15
lea    0x1(%r14),%edi
call   1030 <efc_new@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1151 <cplStrNDup+0x31>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1040 <memmove@plt>
movslq %r14d,%rax
movb   $0x0,(%rbx,%rax,1)
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i8* @cplStrNDup(i8* %0, i32 %1) {
%3 = add nsw i32 %1, 1
%4 = tail call i64 @efc_new(i32 %3)
%5 = inttoptr i64 %4 to i8*
%6 = icmp eq i64 %4, 0
br i1 %6, label %11, label %7
7: ; preds = %2
%8 = tail call i32 @memmove(i8* %5, i8* %0, i32 %1)
%9 = sext i32 %1 to i64
%10 = getelementptr inbounds i8, i8* %5, i64 %9
store i8 0, i8* %10
br label %11
11: ; preds = %7, %2
ret i8* %5
}
int serad(const void *a, const void *b) { return (*(int *)a - *(int *)b); }


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

x86 assembly (clang, -O2):
<serad>:
mov    (%rdi),%eax
sub    (%rsi),%eax
ret

LLVM IR (-O0):
define i32 @serad(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
%6 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = sub nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @serad(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %4, %6
ret i32 %7
}
void gtk_settings_set_long_property() {}


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

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

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

LLVM IR (-O2):
define void @gtk_settings_set_long_property() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ writeData4(int, int *);
void do_start(int socketfd, int id) { writeData4(socketfd, &id); }


x86 assembly (clang, -O0):
<do_start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x8(%rbp),%rsi
call   1030 <writeData4@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_start>:
push   %rax
mov    %esi,0x4(%rsp)
lea    0x4(%rsp),%rsi
call   1030 <writeData4@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @do_start(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 i32 @writeData4(i32 %5, i32* %4)
ret void
}

LLVM IR (-O2):
define void @do_start(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = call i32 @writeData4(i32 %0, i32* %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int8_t stdlib_ndarray_set_ptr_uint32(uint8_t *idx, const uint32_t v) {
  *(uint32_t *)idx = v;
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @stdlib_ndarray_set_ptr_uint32(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 = load i32*, i32** %3
store i32 %5, i32* %6
ret i32 0
}

LLVM IR (-O2):
define i32 @stdlib_ndarray_set_ptr_uint32(i32* nocapture writeonly %0, i32 %1) {
store i32 %1, i32* %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ dest_dowhile();
int /*<<< orphan*/ test_for();
int /*<<< orphan*/ test_if();
int /*<<< orphan*/ test_ifelse();
int /*<<< orphan*/ test_ifelseifelse();
int /*<<< orphan*/ test_switch();
int /*<<< orphan*/ test_while();
int main() {
  test_if();
  test_ifelse();
  test_ifelseifelse();
  test_switch();
  test_while();
  dest_dowhile();
  test_for();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <test_if@plt>
mov    $0x0,%al
call   1030 <test_ifelse@plt>
mov    $0x0,%al
call   1080 <test_ifelseifelse@plt>
mov    $0x0,%al
call   1090 <test_switch@plt>
mov    $0x0,%al
call   1060 <test_while@plt>
mov    $0x0,%al
call   1070 <dest_dowhile@plt>
mov    $0x0,%al
call   1040 <test_for@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <test_if@plt>
xor    %eax,%eax
call   1030 <test_ifelse@plt>
xor    %eax,%eax
call   1080 <test_ifelseifelse@plt>
xor    %eax,%eax
call   1090 <test_switch@plt>
xor    %eax,%eax
call   1060 <test_while@plt>
xor    %eax,%eax
call   1070 <dest_dowhile@plt>
xor    %eax,%eax
call   1040 <test_for@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @test_if()
%2 = call i32 (...) @test_ifelse()
%3 = call i32 (...) @test_ifelseifelse()
%4 = call i32 (...) @test_switch()
%5 = call i32 (...) @test_while()
%6 = call i32 (...) @dest_dowhile()
%7 = call i32 (...) @test_for()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_if()
%2 = tail call i32 (...) @test_ifelse()
%3 = tail call i32 (...) @test_ifelseifelse()
%4 = tail call i32 (...) @test_switch()
%5 = tail call i32 (...) @test_while()
%6 = tail call i32 (...) @dest_dowhile()
%7 = tail call i32 (...) @test_for()
ret i32 0
}
/* Variables and functions */
scalar_t__ atan2(double const, double const);
void doubles_mat44_to_xyt(const double M[16], double xyt[3]) {
  xyt[0] = M[3];
  xyt[1] = M[7];
  xyt[2] = (double)atan2(M[4], M[0]);
}


x86 assembly (clang, -O0):
<doubles_mat44_to_xyt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
call   1030 <atan2@plt>
cvtsi2sd %rax,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x10(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doubles_mat44_to_xyt>:
push   %rbx
mov    %rsi,%rbx
movsd  0x18(%rdi),%xmm0
movsd  %xmm0,(%rsi)
movsd  0x38(%rdi),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  (%rdi),%xmm1
movsd  0x20(%rdi),%xmm0
call   1030 <atan2@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  %xmm0,0x10(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @doubles_mat44_to_xyt(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 3
%7 = load double, double* %6
%8 = load double*, double** %4
%9 = getelementptr inbounds double, double* %8, i64 0
store double %7, double* %9
%10 = load double*, double** %3
%11 = getelementptr inbounds double, double* %10, i64 7
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 1
store double %12, double* %14
%15 = load double*, double** %3
%16 = getelementptr inbounds double, double* %15, i64 4
%17 = load double, double* %16
%18 = load double*, double** %3
%19 = getelementptr inbounds double, double* %18, i64 0
%20 = load double, double* %19
%21 = call i64 @atan2(double %17, double %20)
%22 = sitofp i64 %21 to double
%23 = load double*, double** %4
%24 = getelementptr inbounds double, double* %23, i64 2
store double %22, double* %24
ret void
}

LLVM IR (-O2):
define void @doubles_mat44_to_xyt(double* nocapture %0, double* nocapture writeonly %1) {
%3 = getelementptr inbounds double, double* %0, i64 3
%4 = load double, double* %3
store double %4, double* %1
%5 = getelementptr inbounds double, double* %0, i64 7
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %1, i64 1
store double %6, double* %7
%8 = getelementptr inbounds double, double* %0, i64 4
%9 = load double, double* %8
%10 = load double, double* %0
%11 = tail call i64 @atan2(double %9, double %10)
%12 = sitofp i64 %11 to double
%13 = getelementptr inbounds double, double* %1, i64 2
store double %12, double* %13
ret void
}
/* Variables and functions */
int /*<<< orphan*/ comprintf(char *);
void sync_m68k_pc(void) {
  comprintf("\t if (m68k_pc_offset>100) sync_m68k_pc();\n");
}


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

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

LLVM IR (-O0):
@.str = [43 x i8] c"\09 if (m68k_pc_offset>100) sync_m68k_pc();\0A\00"
define void @sync_m68k_pc() {
%1 = call i32 @comprintf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"\09 if (m68k_pc_offset>100) sync_m68k_pc();\0A\00"
define void @sync_m68k_pc() {
%1 = tail call i32 @comprintf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ grammar_tests();
int /*<<< orphan*/ util_tests();
int main() {
  util_tests();
  grammar_tests();
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <util_tests@plt>
xor    %eax,%eax
call   1030 <grammar_tests@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @util_tests()
%2 = call i32 (...) @grammar_tests()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @util_tests()
%2 = tail call i32 (...) @grammar_tests()
ret i32 0
}
void g_queue_is_empty() {}


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

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

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

LLVM IR (-O2):
define void @g_queue_is_empty() {
ret void
}
/* Type definitions */
struct UserInputNode {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ decodeFile(char *, struct UserInputNode *);
int /*<<< orphan*/ freeUserInput(struct UserInputNode *);
struct UserInputNode *getUserInput();
int main() {
  struct UserInputNode *uip;
  uip = getUserInput();
  decodeFile("theRaven.txt", uip);
  freeUserInput(uip);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getUserInput@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xeab(%rip),%rdi
call   1030 <decodeFile@plt>
mov    -0x10(%rbp),%rdi
call   1050 <freeUserInput@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <getUserInput@plt>
mov    %rax,%rbx
lea    0xebe(%rip),%rdi
mov    %rax,%rsi
call   1030 <decodeFile@plt>
mov    %rbx,%rdi
call   1050 <freeUserInput@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.UserInputNode = type { i32 }
@.str = [13 x i8] c"theRaven.txt\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.UserInputNode*
store i32 0, i32* %1
%3 = call %struct.UserInputNode* (...) @getUserInput()
store %struct.UserInputNode* %3, %struct.UserInputNode** %2
%4 = load %struct.UserInputNode*, %struct.UserInputNode** %2
%5 = call i32 @decodeFile(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.UserInputNode* %4)
%6 = load %struct.UserInputNode*, %struct.UserInputNode** %2
%7 = call i32 @freeUserInput(%struct.UserInputNode* %6)
ret i32 0
}

LLVM IR (-O2):
%struct.UserInputNode = type { i32 }
@.str = [13 x i8] c"theRaven.txt\00"
define i32 @main() {
%1 = tail call %struct.UserInputNode* (...) @getUserInput()
%2 = tail call i32 @decodeFile(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %struct.UserInputNode* %1)
%3 = tail call i32 @freeUserInput(%struct.UserInputNode* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a;
  scanf("%d", &a);
  printf("%d ano(s)\n%d mes(es)\n%d dia(s)\n", (a / 365), (a % 365) / 30,
         (a % 365) % 30);
  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
mov    $0x16d,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    -0x8(%rbp),%eax
mov    $0x16d,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    $0x1e,%ecx
cltd
idiv   %ecx
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x16d,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    $0x1e,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0xc(%rbp),%edx
lea    0xe7e(%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>
movslq 0x4(%rsp),%r8
imul   $0xffffffffb38cf9b1,%r8,%rsi
shr    $0x20,%rsi
add    %r8d,%esi
mov    %esi,%ecx
shr    $0x1f,%ecx
sar    $0x8,%esi
add    %ecx,%esi
imul   $0x16d,%esi,%ecx
sub    %ecx,%r8d
movswl %r8w,%ecx
imul   $0xffff8889,%ecx,%ecx
shr    $0x10,%ecx
add    %r8d,%ecx
movzwl %cx,%ecx
movswl %cx,%eax
shr    $0xf,%ecx
sar    $0x4,%eax
add    %ecx,%eax
movswl %ax,%edx
mov    %eax,%ecx
shl    $0x5,%ecx
mov    %eax,%edi
sub    %ecx,%edi
add    %eax,%edi
add    %r8d,%edi
movswl %di,%ecx
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [32 x i8] c"%d ano(s)\0A%d mes(es)\0A%d dia(s)\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 = sdiv i32 %4, 365
%6 = load i32, i32* %2
%7 = srem i32 %6, 365
%8 = sdiv i32 %7, 30
%9 = load i32, i32* %2
%10 = srem i32 %9, 365
%11 = srem i32 %10, 30
%12 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %5, i32 %8, i32 %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [32 x i8] c"%d ano(s)\0A%d mes(es)\0A%d dia(s)\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 = sdiv i32 %4, 365
%6 = srem i32 %4, 365
%7 = trunc i32 %6 to i16
%8 = sdiv i16 %7, 30
%9 = sext i16 %8 to i32
%10 = srem i16 %7, 30
%11 = sext i16 %10 to i32
%12 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32 %5, i32 %9, i32 %11)
ret i32 0
}
void put32bits(unsigned char *p, unsigned int v) {
  p[0] = v >> 24;
  p[1] = v >> 16;
  p[2] = v >> 8;
  p[3] = v;
}


x86 assembly (clang, -O0):
<put32bits>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shr    $0x18,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0xc(%rbp),%eax
shr    $0x10,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0xc(%rbp),%eax
shr    $0x8,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0xc(%rbp),%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x3(%rax)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @put32bits(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 = lshr i32 %5, 24
%7 = trunc i32 %6 to i8
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 0
store i8 %7, i8* %9
%10 = load i32, i32* %4
%11 = lshr i32 %10, 16
%12 = trunc i32 %11 to i8
%13 = load i8*, i8** %3
%14 = getelementptr inbounds i8, i8* %13, i64 1
store i8 %12, i8* %14
%15 = load i32, i32* %4
%16 = lshr i32 %15, 8
%17 = trunc i32 %16 to i8
%18 = load i8*, i8** %3
%19 = getelementptr inbounds i8, i8* %18, i64 2
store i8 %17, i8* %19
%20 = load i32, i32* %4
%21 = trunc i32 %20 to i8
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i64 3
store i8 %21, i8* %23
ret void
}

LLVM IR (-O2):
define void @put32bits(i8* nocapture writeonly %0, i32 %1) {
%3 = lshr i32 %1, 24
%4 = trunc i32 %3 to i8
store i8 %4, i8* %0
%5 = lshr i32 %1, 16
%6 = trunc i32 %5 to i8
%7 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %6, i8* %7
%8 = lshr i32 %1, 8
%9 = trunc i32 %8 to i8
%10 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %9, i8* %10
%11 = trunc i32 %1 to i8
%12 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %11, i8* %12
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
void clearScreen() { write(1, "\e!", 2); }


x86 assembly (clang, -O0):
<clearScreen>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<clearScreen>:
lea    0xee9(%rip),%rsi
mov    $0x1,%edi
mov    $0x2,%edx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\1B!\00"
define void @clearScreen() {
%1 = call i32 @write(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"\1B!\00"
define void @clearScreen() {
%1 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
ret void
}
/* Type definitions */
struct hostent {
  int dummy;
};
typedef enum nss_status { ____Placeholder_nss_status } nss_status;

/* Variables and functions */
int /*<<< orphan*/ AF_UNSPEC;
int _nss_devenv_gethostbyname2_r(char const *, int /*<<< orphan*/,
                                 struct hostent *, char *, size_t, int *,
                                 int *);
enum nss_status _nss_devenv_gethostbyname_r(const char *name,
                                            struct hostent *result,
                                            char *buffer, size_t buflen,
                                            int *errnop, int *h_errnop) {
  return _nss_devenv_gethostbyname2_r(name, AF_UNSPEC, result, buffer, buflen,
                                      errnop, h_errnop);
}


x86 assembly (clang, -O0):
<_nss_devenv_gethostbyname_r>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ead(%rip),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0x30(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <_nss_devenv_gethostbyname2_r@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_nss_devenv_gethostbyname_r>:
push   %rax
mov    %r8,%rax
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    0x2ec4(%rip),%rsi
mov    (%rsi),%esi
mov    %r9,(%rsp)
mov    %rax,%r9
call   1030 <_nss_devenv_gethostbyname2_r@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.hostent = type { i32 }
@AF_UNSPEC = global i32 0
define i32 @_nss_devenv_gethostbyname_r(i8* %0, %struct.hostent* %1, i8* %2, i64 %3, i32* %4, i32* %5) {
%7 = alloca i8*
%8 = alloca %struct.hostent*
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i32*
%12 = alloca i32*
store i8* %0, i8** %7
store %struct.hostent* %1, %struct.hostent** %8
store i8* %2, i8** %9
store i64 %3, i64* %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = load i8*, i8** %7
%14 = load i32, i32* @AF_UNSPEC
%15 = load %struct.hostent*, %struct.hostent** %8
%16 = load i8*, i8** %9
%17 = load i64, i64* %10
%18 = load i32*, i32** %11
%19 = load i32*, i32** %12
%20 = call i32 @_nss_devenv_gethostbyname2_r(i8* %13, i32 %14, %struct.hostent* %15, i8* %16, i64 %17, i32* %18, i32* %19)
ret i32 %20
}

LLVM IR (-O2):
%struct.hostent = type { i32 }
@AF_UNSPEC = global i32 0
define i32 @_nss_devenv_gethostbyname_r(i8* %0, %struct.hostent* %1, i8* %2, i64 %3, i32* %4, i32* %5) {
%7 = load i32, i32* @AF_UNSPEC
%8 = tail call i32 @_nss_devenv_gethostbyname2_r(i8* %0, i32 %7, %struct.hostent* %1, i8* %2, i64 %3, i32* %4, i32* %5)
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ ft_memset(char *, int /*<<< orphan*/, size_t);
scalar_t__ malloc(size_t);
char *ft_strnew(size_t size) {
  char *mem;
  mem = (char *)malloc(size + 1);
  if (!mem)
    return (NULL);
  ft_memset(mem, 0, size + 1);
  return (mem);
}


x86 assembly (clang, -O0):
<ft_strnew>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1155 <ft_strnew+0x35>
movq   $0x0,-0x8(%rbp)
jmp    1170 <ft_strnew+0x50>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rdx
add    $0x1,%rdx
xor    %esi,%esi
call   1030 <ft_memset@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_strnew>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
add    $0x1,%rbx
mov    %rbx,%rdi
call   1040 <malloc@plt>
test   %rax,%rax
je     114a <ft_strnew+0x2a>
mov    %rax,%r14
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <ft_memset@plt>
jmp    114d <ft_strnew+0x2d>
xor    %r14d,%r14d
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @ft_strnew(i64 %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
%5 = load i64, i64* %3
%6 = add i64 %5, 1
%7 = call i64 @malloc(i64 %6)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %4
%9 = load i8*, i8** %4
%10 = icmp ne i8* %9, null
br i1 %10, label %12, label %11
11: ; preds = %1
store i8* null, i8** %2
br label %18
12: ; preds = %1
%13 = load i8*, i8** %4
%14 = load i64, i64* %3
%15 = add i64 %14, 1
%16 = call i32 @ft_memset(i8* %13, i32 0, i64 %15)
%17 = load i8*, i8** %4
store i8* %17, i8** %2
br label %18
18: ; preds = %12, %11
%19 = load i8*, i8** %2
ret i8* %19
}

LLVM IR (-O2):
define i8* @ft_strnew(i64 %0) {
%2 = add i64 %0, 1
%3 = tail call i64 @malloc(i64 %2)
%4 = inttoptr i64 %3 to i8*
%5 = icmp eq i64 %3, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @ft_memset(i8* %4, i32 0, i64 %2)
br label %8
8: ; preds = %1, %6
%9 = phi i8* [ %4, %6 ], [ null, %1 ]
ret i8* %9
}
/* Variables and functions */
int libcall1(int, int);
int libcall2(int, int);
int /*<<< orphan*/ printf(char *, int, int, int, int);
int main(int argc, char *argv[]) {
  int r1 = libcall1(1, 2);
  int r2 = libcall2(3, 4);
  int r3 = libcall1(5, 6);
  int r4 = libcall1(7, 8);
  printf("%d %d %d %d\n", r1, r2, r3, r4);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x14(%rbp)
mov    $0x3,%edi
mov    $0x4,%esi
call   1030 <libcall2@plt>
mov    %eax,-0x18(%rbp)
mov    $0x5,%edi
mov    $0x6,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x7,%edi
mov    $0x8,%esi
call   1050 <libcall1@plt>
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
lea    0xe5e(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0x1,%edi
mov    $0x2,%esi
call   1050 <libcall1@plt>
mov    %eax,%r14d
mov    $0x3,%edi
mov    $0x4,%esi
call   1030 <libcall2@plt>
mov    %eax,%ebp
mov    $0x5,%edi
mov    $0x6,%esi
call   1050 <libcall1@plt>
mov    %eax,%ebx
mov    $0x7,%edi
mov    $0x8,%esi
call   1050 <libcall1@plt>
lea    0xe82(%rip),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %eax,%r8d
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%d %d %d %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i32 @libcall1(i32 1, i32 2)
store i32 %10, i32* %6
%11 = call i32 @libcall2(i32 3, i32 4)
store i32 %11, i32* %7
%12 = call i32 @libcall1(i32 5, i32 6)
store i32 %12, i32* %8
%13 = call i32 @libcall1(i32 7, i32 8)
store i32 %13, i32* %9
%14 = load i32, i32* %6
%15 = load i32, i32* %7
%16 = load i32, i32* %8
%17 = load i32, i32* %9
%18 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %15, i32 %16, i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%d %d %d %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @libcall1(i32 1, i32 2)
%4 = tail call i32 @libcall2(i32 3, i32 4)
%5 = tail call i32 @libcall1(i32 5, i32 6)
%6 = tail call i32 @libcall1(i32 7, i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4, i32 %5, i32 %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void sig_int(int signo) { printf("sn:%d,interrupt\n%% ", signo); }


x86 assembly (clang, -O0):
<sig_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig_int>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"sn:%d,interrupt\0A%% \00"
define void @sig_int(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"sn:%d,interrupt\0A%% \00"
define void @sig_int(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}