xunge/DecIR huggingface dataset:
int test_imm_B4int8_reg(signed char val) {
  return ((val) & (0xB4 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_B4int8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edx
and    $0xb4,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_B4int8_reg>:
test   $0xb4,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_B4int8_reg(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = and i32 %4, 180
%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_B4int8_reg(i8 signext %0) {
%2 = and i8 %0, -76
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ cpu_isset(int /*<<< orphan*/ *, int);
bool cpu_allset(uint64_t *cpu_mask, int max_cpus) {
  int cpu;
  for (cpu = 0; cpu < max_cpus; cpu++) {
    if (!cpu_isset(cpu_mask, cpu))
      return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<cpu_allset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1166 <cpu_allset+0x56>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%esi
call   1030 <cpu_isset@plt>
cmp    $0x0,%eax
jne    1153 <cpu_allset+0x43>
movl   $0x0,-0x4(%rbp)
jmp    116d <cpu_allset+0x5d>
jmp    1158 <cpu_allset+0x48>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1126 <cpu_allset+0x16>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpu_allset>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0x1,%r14d
test   %esi,%esi
jle    114a <cpu_allset+0x3a>
mov    %esi,%ebp
mov    %rdi,%r15
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %ebx,%esi
call   1030 <cpu_isset@plt>
test   %eax,%eax
je     1147 <cpu_allset+0x37>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    1130 <cpu_allset+0x20>
jmp    114a <cpu_allset+0x3a>
xor    %r14d,%r14d
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @cpu_allset(i32* %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %6, label %11
4: ; preds = %6
%5 = icmp eq i32 %10, %1
br i1 %5, label %11, label %6
6: ; preds = %2, %4
%7 = phi i32 [ %10, %4 ], [ 0, %2 ]
%8 = tail call i32 @cpu_isset(i32* %0, i32 %7)
%9 = icmp eq i32 %8, 0
%10 = add nuw nsw i32 %7, 1
br i1 %9, label %11, label %4
11: ; preds = %6, %4, %2
%12 = phi i32 [ 1, %2 ], [ 1, %4 ], [ 0, %6 ]
ret i32 %12
}
/* Type definitions */
struct tms {
  scalar_t__ tms_stime;
  scalar_t__ tms_utime;
};
typedef scalar_t__ clock_t;

/* Variables and functions */
int /*<<< orphan*/ times(struct tms *);
clock_t Time(void) {
  struct tms rrr;
  (void)times(&rrr);
  return rrr.tms_utime + rrr.tms_stime;
}


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

x86 assembly (clang, -O2):
<Time>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
call   1030 <times@plt>
mov    0x8(%rsp),%rax
add    0x10(%rsp),%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.tms = type { i64, i64 }
define i64 @Time() {
%1 = alloca %struct.tms
%2 = call i32 @times(%struct.tms* %1)
%3 = getelementptr inbounds %struct.tms, %struct.tms* %1, i32 0, i32 1
%4 = load i64, i64* %3
%5 = getelementptr inbounds %struct.tms, %struct.tms* %1, i32 0, i32 0
%6 = load i64, i64* %5
%7 = add nsw i64 %4, %6
ret i64 %7
}

LLVM IR (-O2):
%struct.tms = type { i64, i64 }
define i64 @Time() {
%1 = alloca %struct.tms
%2 = bitcast %struct.tms* %1 to i8*
%3 = call i32 @times(%struct.tms* %1)
%4 = getelementptr inbounds %struct.tms, %struct.tms* %1, i64 0, i32 1
%5 = load i64, i64* %4
%6 = getelementptr inbounds %struct.tms, %struct.tms* %1, i64 0, i32 0
%7 = load i64, i64* %6
%8 = add nsw i64 %7, %5
ret i64 %8
}
/* Variables and functions */
int /*<<< orphan*/ *getcwd(char *, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int mysh_pwd(char **args) {
  char path_buf[1024];
  if (getcwd(path_buf, 1024) == NULL) {
    perror("Failed to get current working directory: ");
  } else {
    printf("%s\n", path_buf);
  }
  return 1;
}


x86 assembly (clang, -O0):
<mysh_pwd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x410(%rbp),%rdi
mov    $0x400,%esi
call   1040 <getcwd@plt>
cmp    $0x0,%rax
jne    116b <mysh_pwd+0x3b>
lea    0xe9f(%rip),%rdi
call   1050 <perror@plt>
jmp    117e <mysh_pwd+0x4e>
lea    -0x410(%rbp),%rsi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mysh_pwd>:
sub    $0x408,%rsp
mov    %rsp,%rdi
mov    $0x400,%esi
call   1040 <getcwd@plt>
test   %rax,%rax
je     1165 <mysh_pwd+0x35>
lea    0xeda(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x408,%rsp
ret
lea    0xe94(%rip),%rdi
call   1050 <perror@plt>
jmp    1158 <mysh_pwd+0x28>

LLVM IR (-O0):
@.str = [42 x i8] c"Failed to get current working directory: \00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @mysh_pwd(i8** %0) {
%2 = alloca i8**
%3 = alloca [1024 x i8]
store i8** %0, i8*** %2
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = call i32* @getcwd(i8* %4, i32 1024)
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @perror(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
br label %12
9: ; preds = %1
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %10)
br label %12
12: ; preds = %9, %7
ret i32 1
}

LLVM IR (-O2):
@.str = [42 x i8] c"Failed to get current working directory: \00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @mysh_pwd(i8** nocapture readnone %0) {
%2 = alloca [1024 x i8]
%3 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%4 = call i32* @getcwd(i8* %3, i32 1024)
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @perror(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
br label %10
10: ; preds = %8, %6
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ audio_configure(int);
int /*<<< orphan*/ menu_numeric_toggle(void *, int, int /*<<< orphan*/, int);
void override_audio_toggle(void *priv, int delta) {
  menu_numeric_toggle(priv, 1, 0, 1);
  audio_configure(2);
}


x86 assembly (clang, -O0):
<override_audio_toggle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1,%ecx
xor    %edx,%edx
mov    %ecx,%esi
call   1040 <menu_numeric_toggle@plt>
mov    $0x2,%edi
call   1030 <audio_configure@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<override_audio_toggle>:
push   %rax
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x1,%ecx
call   1040 <menu_numeric_toggle@plt>
mov    $0x2,%edi
pop    %rax
jmp    1030 <audio_configure@plt>

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

LLVM IR (-O2):
define void @override_audio_toggle(i8* %0, i32 %1) {
%3 = tail call i32 @menu_numeric_toggle(i8* %0, i32 1, i32 0, i32 1)
%4 = tail call i32 @audio_configure(i32 2)
ret void
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ memset(void *, int /*<<< orphan*/, size_t);
int /*<<< orphan*/ perror(char *);
void *xmalloc(size_t size) {
  void *p;
  if (!(p = malloc(size)))
    perror("42sh: malloc() : ");
  else
    memset(p, 0, size);
  return (p);
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1164 <xmalloc+0x34>
lea    0xea6(%rip),%rdi
call   1050 <perror@plt>
jmp    1173 <xmalloc+0x43>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     115c <xmalloc+0x2c>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1030 <memset@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe9d(%rip),%rdi
call   1050 <perror@plt>
jmp    1151 <xmalloc+0x21>

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

LLVM IR (-O2):
@.str = [18 x i8] c"42sh: malloc() : \00"
define i8* @xmalloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %8
6: ; preds = %1
%7 = tail call i32 @memset(i8* %2, i32 0, i64 %0)
br label %8
8: ; preds = %6, %4
ret i8* %2
}
/* Variables and functions */
double GPTLerror(char *, char const *);
double utr_read_real_time() {
  static const char *thisfunc = "utr_read_real_time";
  return GPTLerror("%s: not enabled\n", thisfunc);
}


x86 assembly (clang, -O0):
<utr_read_real_time>:
push   %rbp
mov    %rsp,%rbp
mov    0x2f0d(%rip),%rsi
lea    0xef1(%rip),%rdi
call   1030 <GPTLerror@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<utr_read_real_time>:
lea    0xefc(%rip),%rdi
lea    0xee2(%rip),%rsi
jmp    1030 <GPTLerror@plt>

LLVM IR (-O0):
@utr_read_real_time.thisfunc = internal global i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i32 0, i32 0)
@.str = [19 x i8] c"utr_read_real_time\00"
@.str.1 = [17 x i8] c"%s: not enabled\0A\00"
define double @utr_read_real_time() {
%1 = load i8*, i8** @utr_read_real_time.thisfunc
%2 = call double @GPTLerror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %1)
ret double %2
}

LLVM IR (-O2):
@.str = [19 x i8] c"utr_read_real_time\00"
@.str.1 = [17 x i8] c"%s: not enabled\0A\00"
define double @utr_read_real_time() {
%1 = tail call double @GPTLerror(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
ret double %1
}
int test_imm_FAint16_mem(short *val) {
  return ((*val) & (-0xFA << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_FAint16_mem>:
movzwl (%rdi),%eax
test   $0xff06,%eax
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_FAint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, -250
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
struct list_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ INIT_LIST_HEAD(struct list_head *);
int /*<<< orphan*/ list_replace(struct list_head *, struct list_head *);
void list_replace_init(struct list_head *old, struct list_head *newl) {
  list_replace(old, newl);
  INIT_LIST_HEAD(old);
}


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

x86 assembly (clang, -O2):
<list_replace_init>:
push   %rbx
mov    %rdi,%rbx
call   1040 <list_replace@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <INIT_LIST_HEAD@plt>

LLVM IR (-O0):
%struct.list_head = type { i32 }
define void @list_replace_init(%struct.list_head* %0, %struct.list_head* %1) {
%3 = alloca %struct.list_head*
%4 = alloca %struct.list_head*
store %struct.list_head* %0, %struct.list_head** %3
store %struct.list_head* %1, %struct.list_head** %4
%5 = load %struct.list_head*, %struct.list_head** %3
%6 = load %struct.list_head*, %struct.list_head** %4
%7 = call i32 @list_replace(%struct.list_head* %5, %struct.list_head* %6)
%8 = load %struct.list_head*, %struct.list_head** %3
%9 = call i32 @INIT_LIST_HEAD(%struct.list_head* %8)
ret void
}

LLVM IR (-O2):
%struct.list_head = type { i32 }
define void @list_replace_init(%struct.list_head* %0, %struct.list_head* %1) {
%3 = tail call i32 @list_replace(%struct.list_head* %0, %struct.list_head* %1)
%4 = tail call i32 @INIT_LIST_HEAD(%struct.list_head* %0)
ret void
}
/* Variables and functions */
scalar_t__ isupper(int);
int tolower(int c) {
  if (isupper(c))
    c |= 0x20;
  return c;
}


x86 assembly (clang, -O0):
<tolower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <isupper@plt>
cmp    $0x0,%rax
je     1136 <tolower+0x26>
mov    -0x4(%rbp),%eax
or     $0x20,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tolower>:
push   %rbx
mov    %edi,%ebx
call   1030 <isupper@plt>
mov    %ebx,%ecx
or     $0x20,%ecx
test   %rax,%rax
cmove  %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @tolower(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @isupper(i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %2
%8 = or i32 %7, 32
store i32 %8, i32* %2
br label %9
9: ; preds = %6, %1
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @tolower(i32 %0) {
%2 = tail call i64 @isupper(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = or i32 %0, 32
%5 = select i1 %3, i32 %0, i32 %4
ret i32 %5
}
double LSKeyframeAnimationFunctionEaseInQuint(double t, double b, double c,
                                              double d) {
  return c * (t /= d) * t * t * t * t + b;
}


x86 assembly (clang, -O0):
<LSKeyframeAnimationFunctionEaseInQuint>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
divsd  %xmm2,%xmm1
movsd  %xmm1,-0x8(%rbp)
mulsd  %xmm1,%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<LSKeyframeAnimationFunctionEaseInQuint>:
divsd  %xmm3,%xmm0
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @LSKeyframeAnimationFunctionEaseInQuint(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %7
%10 = load double, double* %8
%11 = load double, double* %5
%12 = fdiv double %11, %10
store double %12, double* %5
%13 = fmul double %9, %12
%14 = load double, double* %5
%15 = fmul double %13, %14
%16 = load double, double* %5
%17 = fmul double %15, %16
%18 = load double, double* %5
%19 = fmul double %17, %18
%20 = load double, double* %5
%21 = load double, double* %6
%22 = call double @llvm.fmuladd.f64(double %19, double %20, double %21)
ret double %22
}

LLVM IR (-O2):
define double @LSKeyframeAnimationFunctionEaseInQuint(double %0, double %1, double %2, double %3) {
%5 = fdiv double %0, %3
%6 = fmul double %5, %2
%7 = fmul double %5, %6
%8 = fmul double %5, %7
%9 = fmul double %5, %8
%10 = tail call double @llvm.fmuladd.f64(double %9, double %5, double %1)
ret double %10
}
int scard_gsm_auth(struct scard_data *scard, unsigned char *rand,
                   unsigned char *sres, unsigned char *kc) {
  return -1;
}


x86 assembly (clang, -O0):
<scard_gsm_auth>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.scard_data = type opaque
define i32 @scard_gsm_auth(%struct.scard_data* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca %struct.scard_data*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store %struct.scard_data* %0, %struct.scard_data** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
ret i32 -1
}

LLVM IR (-O2):
%struct.scard_data = type opaque
define i32 @scard_gsm_auth(%struct.scard_data* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x69() {
  Assert_real((ispunct(105) == 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_ispunct.c",
              530, ("ispunct should be 0 for i"));
}


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

x86 assembly (clang, -O2):
<t_ispunct_0x69>:
push   %rax
mov    $0x69,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x212,%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_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for i\00"
define void @t_ispunct_0x69() {
%1 = call i64 @ispunct(i32 105)
%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 530, i8* getelementptr inbounds ([26 x i8], [26 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_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for i\00"
define void @t_ispunct_0x69() {
%1 = tail call i64 @ispunct(i32 105)
%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 530, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int isPowerOfTwo(int x) {
  printf("\n - %d - \n", x & (x - 1));
  return x && (!(x & (x - 1)));
}


x86 assembly (clang, -O0):
<isPowerOfTwo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
and    %eax,%esi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1157 <isPowerOfTwo+0x47>
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%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):
<isPowerOfTwo>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%esi
add    $0xffffffff,%esi
setb   %bpl
lea    0xedd(%rip),%rax
and    %edi,%esi
sete   %bl
mov    %rax,%rdi
call   1030 <printf@plt>
and    %bpl,%bl
movzbl %bl,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"\0A - %d - \0A\00"
define i32 @isPowerOfTwo(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = sub nsw i32 %4, 1
%6 = and i32 %3, %5
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %2
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %17
10: ; preds = %1
%11 = load i32, i32* %2
%12 = load i32, i32* %2
%13 = sub nsw i32 %12, 1
%14 = and i32 %11, %13
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
br label %17
17: ; preds = %10, %1
%18 = phi i1 [ false, %1 ], [ %16, %10 ]
%19 = zext i1 %18 to i32
ret i32 %19
}

LLVM IR (-O2):
@.str = [11 x i8] c"\0A - %d - \0A\00"
define i32 @isPowerOfTwo(i32 %0) {
%2 = add nsw i32 %0, -1
%3 = and i32 %2, %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = icmp ne i32 %0, 0
%6 = icmp eq i32 %3, 0
%7 = and i1 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void protobuf_c_system_free(void *allocator_data __attribute__((unused)),
                            void *data) {
  free(data);
}


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

x86 assembly (clang, -O2):
<protobuf_c_system_free>:
mov    %rsi,%rdi
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @protobuf_c_system_free(i8* nocapture readnone %0, i8* nocapture %1) {
%3 = tail call i32 @free(i8* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dlclose(void *);
scalar_t__ dlsym(void *, char const *);
void *check_symbol(void *handle, char const *symbol) {
  if (dlsym(handle, symbol))
    return handle;
  dlclose(handle);
  return NULL;
}


x86 assembly (clang, -O0):
<check_symbol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <dlsym@plt>
cmp    $0x0,%rax
je     1154 <check_symbol+0x34>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1165 <check_symbol+0x45>
mov    -0x10(%rbp),%rdi
call   1040 <dlclose@plt>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_symbol>:
push   %rbx
mov    %rdi,%rbx
call   1030 <dlsym@plt>
test   %rax,%rax
jne    1138 <check_symbol+0x18>
mov    %rbx,%rdi
call   1040 <dlclose@plt>
xor    %ebx,%ebx
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @check_symbol(i8* %0, i8* %1) {
%3 = tail call i64 @dlsym(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @dlclose(i8* %0)
br label %7
7: ; preds = %2, %5
%8 = phi i8* [ null, %5 ], [ %0, %2 ]
ret i8* %8
}
/* Variables and functions */
char *cstring_basename(char const *);
char *strchr(char *, int /*<<< orphan*/);
char *strrchr(char *, char);
char *cstring_extension(const char *path) {
  char *b = cstring_basename(path);
  char *s = strrchr(b, '.');
  return (s != 0) ? s : strchr(b, 0);
}


x86 assembly (clang, -O0):
<cstring_extension>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <cstring_basename@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1173 <cstring_extension+0x43>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    1182 <cstring_extension+0x52>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1030 <strchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cstring_extension>:
push   %rbx
call   1050 <cstring_basename@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
test   %rax,%rax
je     114d <cstring_extension+0x1d>
pop    %rbx
ret
mov    %rbx,%rdi
call   1030 <strlen@plt>
add    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @cstring_extension(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i8* @cstring_basename(i8* %5)
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = call i8* @strrchr(i8* %7, i8 signext 46)
store i8* %8, i8** %4
%9 = load i8*, i8** %4
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = load i8*, i8** %4
br label %16
13: ; preds = %1
%14 = load i8*, i8** %3
%15 = call i8* @strchr(i8* %14, i32 0)
br label %16
16: ; preds = %13, %11
%17 = phi i8* [ %12, %11 ], [ %15, %13 ]
ret i8* %17
}

LLVM IR (-O2):
define i8* @cstring_extension(i8* %0) {
%2 = tail call i8* @cstring_basename(i8* %0)
%3 = tail call i8* @strrchr(i8* dereferenceable(1) %2, i8 signext 46)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i64 @strlen(i8* dereferenceable(1) %2)
%7 = getelementptr i8, i8* %2, i64 %6
br label %8
8: ; preds = %1, %5
%9 = phi i8* [ %7, %5 ], [ %3, %1 ]
ret i8* %9
}
int calculate_schar_max() {
  signed char i = 0;
  while (i >= 0) {
    ++i;
  }
  --i;
  return i;
}


x86 assembly (clang, -O0):
<calculate_schar_max>:
push   %rbp
mov    %rsp,%rbp
movb   $0x0,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x0,%eax
jl     1122 <calculate_schar_max+0x22>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    1108 <calculate_schar_max+0x8>
mov    -0x1(%rbp),%al
add    $0xff,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @calculate_schar_max() {
%1 = alloca i8
store i8 0, i8* %1
br label %2
2: ; preds = %6, %0
%3 = load i8, i8* %1
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i8, i8* %1
%8 = add i8 %7, 1
store i8 %8, i8* %1
br label %2
9: ; preds = %2
%10 = load i8, i8* %1
%11 = add i8 %10, -1
store i8 %11, i8* %1
%12 = load i8, i8* %1
%13 = sext i8 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @calculate_schar_max() {
ret i32 127
}
/* Type definitions */
struct gpio {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ gpio_mode(struct gpio *, int, int);
void gpio_i2c1_alt(void) {
  gpio_mode((struct gpio *)0x40010C00, 6, 3 | 8);
  gpio_mode((struct gpio *)0x40010C00, 7, 3 | 8);
}


x86 assembly (clang, -O0):
<gpio_i2c1_alt>:
push   %rbp
mov    %rsp,%rbp
mov    $0x40010c00,%edi
mov    $0x6,%esi
mov    $0xb,%edx
call   1030 <gpio_mode@plt>
mov    $0x40010c00,%edi
mov    $0x7,%esi
mov    $0xb,%edx
call   1030 <gpio_mode@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gpio_i2c1_alt>:
push   %rax
mov    $0x40010c00,%edi
mov    $0x6,%esi
mov    $0xb,%edx
call   1030 <gpio_mode@plt>
mov    $0x40010c00,%edi
mov    $0x7,%esi
mov    $0xb,%edx
pop    %rax
jmp    1030 <gpio_mode@plt>

LLVM IR (-O0):
%struct.gpio = type { i32 }
define void @gpio_i2c1_alt() {
%1 = call i32 @gpio_mode(%struct.gpio* inttoptr (i64 1073810432 to %struct.gpio*), i32 6, i32 11)
%2 = call i32 @gpio_mode(%struct.gpio* inttoptr (i64 1073810432 to %struct.gpio*), i32 7, i32 11)
ret void
}

LLVM IR (-O2):
%struct.gpio = type { i32 }
define void @gpio_i2c1_alt() {
%1 = tail call i32 @gpio_mode(%struct.gpio* inttoptr (i64 1073810432 to %struct.gpio*), i32 6, i32 11)
%2 = tail call i32 @gpio_mode(%struct.gpio* inttoptr (i64 1073810432 to %struct.gpio*), i32 7, i32 11)
ret void
}
int centerFree(char *playground) {
  if (playground[4] == ' ')
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<centerFree>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x20,%eax
jne    1125 <centerFree+0x25>
movl   $0x1,-0x4(%rbp)
jmp    112c <centerFree+0x2c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<centerFree>:
xor    %eax,%eax
cmpb   $0x20,0x4(%rdi)
sete   %al
ret

LLVM IR (-O0):
define i32 @centerFree(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 4
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 32
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 1, i32* %2
br label %11
10: ; preds = %1
store i32 0, i32* %2
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @centerFree(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 4
%3 = load i8, i8* %2
%4 = icmp eq i8 %3, 32
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ bfree(void *);
void *bmalloc(int);
int /*<<< orphan*/ print_buddy();
void test003() {
  void *p1, *p2, *p3;
  p1 = bmalloc(25);
  p2 = bmalloc(9);
  p3 = bmalloc(7);
  bfree(p2);
  bfree(p3);
  bfree(p1);
  print_buddy();
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x19,%edi
call   1030 <bmalloc@plt>
mov    %rax,-0x8(%rbp)
mov    $0x9,%edi
call   1030 <bmalloc@plt>
mov    %rax,-0x10(%rbp)
mov    $0x7,%edi
call   1030 <bmalloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <bfree@plt>
mov    -0x18(%rbp),%rdi
call   1040 <bfree@plt>
mov    -0x8(%rbp),%rdi
call   1040 <bfree@plt>
mov    $0x0,%al
call   1050 <print_buddy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %r15
push   %r14
push   %rbx
mov    $0x19,%edi
call   1030 <bmalloc@plt>
mov    %rax,%r14
mov    $0x9,%edi
call   1030 <bmalloc@plt>
mov    %rax,%r15
mov    $0x7,%edi
call   1030 <bmalloc@plt>
mov    %rax,%rbx
mov    %r15,%rdi
call   1040 <bfree@plt>
mov    %rbx,%rdi
call   1040 <bfree@plt>
mov    %r14,%rdi
call   1040 <bfree@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <print_buddy@plt>

LLVM IR (-O0):
define void @test003() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = call i8* @bmalloc(i32 25)
store i8* %4, i8** %1
%5 = call i8* @bmalloc(i32 9)
store i8* %5, i8** %2
%6 = call i8* @bmalloc(i32 7)
store i8* %6, i8** %3
%7 = load i8*, i8** %2
%8 = call i32 @bfree(i8* %7)
%9 = load i8*, i8** %3
%10 = call i32 @bfree(i8* %9)
%11 = load i8*, i8** %1
%12 = call i32 @bfree(i8* %11)
%13 = call i32 (...) @print_buddy()
ret void
}

LLVM IR (-O2):
define void @test003() {
%1 = tail call i8* @bmalloc(i32 25)
%2 = tail call i8* @bmalloc(i32 9)
%3 = tail call i8* @bmalloc(i32 7)
%4 = tail call i32 @bfree(i8* %2)
%5 = tail call i32 @bfree(i8* %3)
%6 = tail call i32 @bfree(i8* %1)
%7 = tail call i32 (...) @print_buddy()
ret void
}
/* Variables and functions */
int modelDef(int, int /*<<< orphan*/, char *);
int defineModel(int instID) {
  int modelID = -1;
  modelID = modelDef(instID, 0, "resource_copy");
  return modelID;
}


x86 assembly (clang, -O0):
<defineModel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
lea    0xed2(%rip),%rdx
call   1030 <modelDef@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<defineModel>:
lea    0xee9(%rip),%rdx
xor    %esi,%esi
jmp    1030 <modelDef@plt>

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

LLVM IR (-O2):
@.str = [14 x i8] c"resource_copy\00"
define i32 @defineModel(i32 %0) {
%2 = tail call i32 @modelDef(i32 %0, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ tmpl(char *);
void main() {
  int i, k, n, l;
  tmpl("(le(n,i,k),le(n,i,k))");
  for (k = 1; k < n; k++) {
    for (i = 1; i < n; i++) {
    }
  }
  assert(1 <= k);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <tmpl@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1180 <main+0x60>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    116d <main+0x4d>
jmp    115f <main+0x3f>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    114e <main+0x2e>
jmp    1172 <main+0x52>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113b <main+0x1b>
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <tmpl@plt>
mov    $0x1,%edi
pop    %rax
jmp    1040 <assert@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"(le(n,i,k),le(n,i,k))\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 @tmpl(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %2
br label %6
6: ; preds = %20, %0
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %23
10: ; preds = %6
store i32 1, i32* %1
br label %11
11: ; preds = %16, %10
%12 = load i32, i32* %1
%13 = load i32, i32* %3
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %11
br label %16
16: ; preds = %15
%17 = load i32, i32* %1
%18 = add nsw i32 %17, 1
store i32 %18, i32* %1
br label %11
19: ; preds = %11
br label %20
20: ; preds = %19
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
br label %6
23: ; preds = %6
%24 = load i32, i32* %2
%25 = icmp sle i32 1, %24
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"(le(n,i,k),le(n,i,k))\00"
define void @main() {
%1 = tail call i32 @tmpl(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @assert(i32 1)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int quaddobl_scale_system(int mode, double *cff) {
  int fail, *b;
  fail = _ada_use_c2phc4c(592, &mode, b, cff, 0);
  return fail;
}


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

x86 assembly (clang, -O2):
<quaddobl_scale_system>:
push   %rax
mov    %rsi,%rcx
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x250,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @quaddobl_scale_system(i32 %0, double* %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 @_ada_use_c2phc4c(i32 592, i32* %3, i32* undef, double* %1, i32 0)
ret i32 %4
}
void setRegs(int *context, int *regs) { *(context + 4) = (int)regs; }


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

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

LLVM IR (-O0):
define void @setRegs(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 = ptrtoint i32* %5 to i32
%7 = load i32*, i32** %3
%8 = getelementptr inbounds i32, i32* %7, i64 4
store i32 %6, i32* %8
ret void
}

LLVM IR (-O2):
define void @setRegs(i32* nocapture writeonly %0, i32* %1) {
%3 = ptrtoint i32* %1 to i64
%4 = trunc i64 %3 to i32
%5 = getelementptr inbounds i32, i32* %0, i64 4
store i32 %4, i32* %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ four_branch();
int /*<<< orphan*/ three_branch();
int /*<<< orphan*/ two_branch();
void sequence() {
  two_branch();
  three_branch();
  four_branch();
}


x86 assembly (clang, -O0):
<sequence>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <two_branch@plt>
mov    $0x0,%al
call   1030 <three_branch@plt>
mov    $0x0,%al
call   1050 <four_branch@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sequence>:
push   %rax
xor    %eax,%eax
call   1040 <two_branch@plt>
xor    %eax,%eax
call   1030 <three_branch@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <four_branch@plt>

LLVM IR (-O0):
define void @sequence() {
%1 = call i32 (...) @two_branch()
%2 = call i32 (...) @three_branch()
%3 = call i32 (...) @four_branch()
ret void
}

LLVM IR (-O2):
define void @sequence() {
%1 = tail call i32 (...) @two_branch()
%2 = tail call i32 (...) @three_branch()
%3 = tail call i32 (...) @four_branch()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TPM0_DriverIRQHandler();
__attribute__((weak, section(".after_vectors"))) void TPM0_IRQHandler(void) {
  TPM0_DriverIRQHandler();
}


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

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

LLVM IR (-O0):
define weak void @TPM0_IRQHandler() section ".after_vectors" {
%1 = call i32 (...) @TPM0_DriverIRQHandler()
ret void
}

LLVM IR (-O2):
define weak void @TPM0_IRQHandler() section ".after_vectors" {
%1 = tail call i32 (...) @TPM0_DriverIRQHandler()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void my_signal_handler(int x) { exit(x); }


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

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

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

LLVM IR (-O2):
define void @my_signal_handler(i32 %0) {
%2 = tail call i32 @exit(i32 %0)
unreachable
}
long long longlong_ignoring_longint(long long x, long int y) { return x; }


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

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

LLVM IR (-O0):
define i64 @longlong_ignoring_longint(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
ret i64 %5
}

LLVM IR (-O2):
define i64 @longlong_ignoring_longint(i64 returned %0, i64 %1) {
ret i64 %0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int foo(int);
int /*<<< orphan*/ printf(char *);
int bar() {
  if (foo(5) != 5)
    abort();
  printf("PASS\n");
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x5,%edi
call   1050 <foo@plt>
cmp    $0x5,%eax
je     1152 <bar+0x22>
mov    $0x0,%al
call   1030 <abort@plt>
lea    0xea7(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
push   %rax
mov    $0x5,%edi
call   1050 <foo@plt>
cmp    $0x5,%eax
jne    114d <bar+0x1d>
lea    0xeb9(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>
xor    %eax,%eax
call   1030 <abort@plt>

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

LLVM IR (-O2):
@str = [5 x i8] c"PASS\00"
define i32 @bar() {
%1 = tail call i32 @foo(i32 5)
%2 = icmp eq i32 %1, 5
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ strcpy(char *, char *);
int Barcode_Version(char *vptr) {
  if (vptr)
    strcpy(vptr, "0.95");
  return 9500;
}


x86 assembly (clang, -O0):
<Barcode_Version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1137 <Barcode_Version+0x27>
mov    -0x8(%rbp),%rdi
lea    0xece(%rip),%rsi
call   1030 <strcpy@plt>
mov    $0x251c,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Barcode_Version>:
test   %rdi,%rdi
je     1126 <Barcode_Version+0x16>
push   %rax
lea    0xee3(%rip),%rsi
call   1030 <strcpy@plt>
add    $0x8,%rsp
mov    $0x251c,%eax
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"0.95\00"
define i32 @Barcode_Version(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %3, %1
ret i32 9500
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_help() {
  printf("Controls:\n"
         "    hjkl, ARROW_KEYS    Movement\n"
         "    p                   Pause menu\n"
         "    q                   Quit session\n"
         "\n");
  printf("Usage:\n"
         "    snake [options]\n"
         "\n");
  printf("Options:\n"
         "    -h, --help          Display help information\n"
         "    -b, --borders       Enable borders\n"
         "    -r, --reset         Reset all saved scores\n"
         "\n");
}


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

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf50(%rip),%rdi
call   1030 <puts@plt>
lea    0xf60(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [117 x i8] c"Controls:\0A hjkl, ARROW_KEYS Movement\0A p Pause menu\0A q Quit session\0A\0A\00"
@.str.1 = [29 x i8] c"Usage:\0A snake [options]\0A\0A\00"
@.str.2 = [146 x i8] c"Options:\0A -h, --help Display help information\0A -b, --borders Enable borders\0A -r, --reset Reset all saved scores\0A\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [116 x i8] c"Controls:\0A hjkl, ARROW_KEYS Movement\0A p Pause menu\0A q Quit session\0A\00"
@str.3 = [28 x i8] c"Usage:\0A snake [options]\0A\00"
@str.4 = [145 x i8] c"Options:\0A -h, --help Display help information\0A -b, --borders Enable borders\0A -r, --reset Reset all saved scores\0A\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([116 x i8], [116 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([145 x i8], [145 x i8]* @str.4, i64 0, i64 0))
ret void
}