xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int uint64_t;
struct pcg_state_128 {
  int dummy;
};

/* Variables and functions */
int pcg_unique_128_xsh_rs_64_random_r(struct pcg_state_128 *);
uint64_t pcg_unique_128_xsh_rs_64_boundedrand_r(struct pcg_state_128 *rng,
                                                uint64_t bound) {
  uint64_t threshold = -bound % bound;
  for (;;) {
    uint64_t r = pcg_unique_128_xsh_rs_64_random_r(rng);
    if (r >= threshold)
      return r % bound;
  }
}


x86 assembly (clang, -O0):
<pcg_unique_128_xsh_rs_64_boundedrand_r>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
xor    %eax,%eax
sub    -0xc(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <pcg_unique_128_xsh_rs_64_random_r@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     1152 <pcg_unique_128_xsh_rs_64_boundedrand_r+0x42>
mov    -0x14(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %edx,%eax
add    $0x20,%rsp
pop    %rbp
ret
jmp    112b <pcg_unique_128_xsh_rs_64_boundedrand_r+0x1b>

x86 assembly (clang, -O2):
<pcg_unique_128_xsh_rs_64_boundedrand_r>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1030 <pcg_unique_128_xsh_rs_64_random_r@plt>
test   %eax,%eax
js     1120 <pcg_unique_128_xsh_rs_64_boundedrand_r+0x10>
cltd
idiv   %ebp
mov    %edx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.pcg_state_128 = type { i32 }
define i32 @pcg_unique_128_xsh_rs_64_boundedrand_r(%struct.pcg_state_128* %0, i32 %1) {
%3 = alloca %struct.pcg_state_128*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store %struct.pcg_state_128* %0, %struct.pcg_state_128** %3
store i32 %1, i32* %4
%7 = load i32, i32* %4
%8 = sub nsw i32 0, %7
%9 = load i32, i32* %4
%10 = srem i32 %8, %9
store i32 %10, i32* %5
br label %11
11: ; preds = %21, %2
%12 = load %struct.pcg_state_128*, %struct.pcg_state_128** %3
%13 = call i32 @pcg_unique_128_xsh_rs_64_random_r(%struct.pcg_state_128* %12)
store i32 %13, i32* %6
%14 = load i32, i32* %6
%15 = load i32, i32* %5
%16 = icmp sge i32 %14, %15
br i1 %16, label %17, label %21
17: ; preds = %11
%18 = load i32, i32* %6
%19 = load i32, i32* %4
%20 = srem i32 %18, %19
ret i32 %20
21: ; preds = %11
br label %11
}

LLVM IR (-O2):
%struct.pcg_state_128 = type { i32 }
define i32 @pcg_unique_128_xsh_rs_64_boundedrand_r(%struct.pcg_state_128* %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 @pcg_unique_128_xsh_rs_64_random_r(%struct.pcg_state_128* %0)
%5 = icmp sgt i32 %4, -1
br i1 %5, label %6, label %3
6: ; preds = %3
%7 = srem i32 %4, %1
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int ac, char **av) {
  if ((av[1])) {
    printf("Valeur de av[1] : [%s]\n", av[1]);
    return (0);
  }
  printf("pas de av ... :(\n");
  return (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
je     1157 <main+0x47>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    116c <main+0x5c>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x8(%rsi),%rsi
test   %rsi,%rsi
je     113c <main+0x1c>
lea    0xecf(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    114d <main+0x2d>
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Valeur de av[1] : [%s]\0A\00"
@.str.1 = [18 x i8] c"pas de av ... :(\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 1
%8 = load i8*, i8** %7
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %13)
store i32 0, i32* %3
br label %17
15: ; preds = %2
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %17
17: ; preds = %15, %10
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
@.str = [24 x i8] c"Valeur de av[1] : [%s]\0A\00"
@str = [17 x i8] c"pas de av ... :(\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %4)
br label %10
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ 0, %6 ], [ 1, %8 ]
ret i32 %11
}
unsigned long synchsafe_int_to_ulong(unsigned char *buf) {
  return (unsigned long)(((buf[0] & 0x7f) << 21) | ((buf[1] & 0x7f) << 14) |
                         ((buf[2] & 0x7f) << 7) | (buf[3] & 0x7f));
}


x86 assembly (clang, -O0):
<synchsafe_int_to_ulong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
and    $0x7f,%eax
shl    $0x15,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
and    $0x7f,%ecx
shl    $0xe,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x2(%rcx),%ecx
and    $0x7f,%ecx
shl    $0x7,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl 0x3(%rcx),%ecx
and    $0x7f,%ecx
or     %ecx,%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<synchsafe_int_to_ulong>:
movzbl (%rdi),%eax
and    $0x7f,%eax
shl    $0x15,%rax
movzbl 0x1(%rdi),%ecx
and    $0x7f,%ecx
shl    $0xe,%rcx
or     %rax,%rcx
movzbl 0x2(%rdi),%edx
and    $0x7f,%edx
shl    $0x7,%rdx
or     %rcx,%rdx
movzbl 0x3(%rdi),%eax
and    $0x7f,%eax
or     %rdx,%rax
ret

LLVM IR (-O0):
define i64 @synchsafe_int_to_ulong(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = and i32 %6, 127
%8 = shl i32 %7, 21
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 1
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = and i32 %12, 127
%14 = shl i32 %13, 14
%15 = or i32 %8, %14
%16 = load i8*, i8** %2
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = and i32 %19, 127
%21 = shl i32 %20, 7
%22 = or i32 %15, %21
%23 = load i8*, i8** %2
%24 = getelementptr inbounds i8, i8* %23, i64 3
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = and i32 %26, 127
%28 = or i32 %22, %27
%29 = sext i32 %28 to i64
ret i64 %29
}

LLVM IR (-O2):
define i64 @synchsafe_int_to_ulong(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, 127
%4 = zext i8 %3 to i64
%5 = shl nuw nsw i64 %4, 21
%6 = getelementptr inbounds i8, i8* %0, i64 1
%7 = load i8, i8* %6
%8 = and i8 %7, 127
%9 = zext i8 %8 to i64
%10 = shl nuw nsw i64 %9, 14
%11 = or i64 %10, %5
%12 = getelementptr inbounds i8, i8* %0, i64 2
%13 = load i8, i8* %12
%14 = and i8 %13, 127
%15 = zext i8 %14 to i64
%16 = shl nuw nsw i64 %15, 7
%17 = or i64 %11, %16
%18 = getelementptr inbounds i8, i8* %0, i64 3
%19 = load i8, i8* %18
%20 = and i8 %19, 127
%21 = zext i8 %20 to i64
%22 = or i64 %17, %21
ret i64 %22
}
/* Variables and functions */
int /*<<< orphan*/ BNCIO(int);
int BNCMHz() {
  int ii, stat = 99;
  char com1, data;
  BNCIO(10);
  return (stat);
}


x86 assembly (clang, -O0):
<BNCMHz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x63,-0x8(%rbp)
mov    $0xa,%edi
call   1030 <BNCIO@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BNCMHz>:
push   %rax
mov    $0xa,%edi
call   1030 <BNCIO@plt>
mov    $0x63,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @BNCMHz() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
store i32 99, i32* %2
%5 = call i32 @BNCIO(i32 10)
%6 = load i32, i32* %2
ret i32 %6
}

LLVM IR (-O2):
define i32 @BNCMHz() {
%1 = tail call i32 @BNCIO(i32 10)
ret i32 99
}
/* Variables and functions */
unsigned char i2c_ReadDataREG(int /*<<< orphan*/);
unsigned char i2c0_ReadDataREG(void) { return i2c_ReadDataREG(0); }


x86 assembly (clang, -O0):
<i2c0_ReadDataREG>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <i2c_ReadDataREG@plt>
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<i2c0_ReadDataREG>:
xor    %edi,%edi
jmp    1030 <i2c_ReadDataREG@plt>

LLVM IR (-O0):
define zeroext i8 @i2c0_ReadDataREG() {
%1 = call zeroext i8 @i2c_ReadDataREG(i32 0)
ret i8 %1
}

LLVM IR (-O2):
define zeroext i8 @i2c0_ReadDataREG() {
%1 = tail call zeroext i8 @i2c_ReadDataREG(i32 0)
ret i8 %1
}
char *strcat(char *restrict dest, const char *restrict src) {
  while (*dest++ != '\0')
    dest++;
  do {
    *dest++ = *src++;
  } while (*src != '\0');
  return dest;
}


x86 assembly (clang, -O0):
<strcat>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1138 <strcat+0x38>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110c <strcat+0xc>
jmp    113d <strcat+0x3d>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%cl
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    113d <strcat+0x3d>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcat>:
mov    %rdi,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpb   $0x0,(%rax)
lea    0x2(%rax),%rax
jne    1110 <strcat+0x10>
mov    (%rsi),%dl
mov    $0xffffffffffffffff,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %dl,(%rax,%rcx,1)
movzbl 0x2(%rsi,%rcx,1),%edx
add    $0x1,%rcx
test   %dl,%dl
jne    1130 <strcat+0x30>
add    %rcx,%rax
ret

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

LLVM IR (-O2):
define i8* @strcat(i8* noalias %0, i8* noalias nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = getelementptr inbounds i8, i8* %4, i64 2
br i1 %6, label %8, label %3
8: ; preds = %3
%9 = getelementptr inbounds i8, i8* %4, i64 1
%10 = load i8, i8* %1
br label %11
11: ; preds = %8, %11
%12 = phi i8 [ %17, %11 ], [ %10, %8 ]
%13 = phi i8* [ %16, %11 ], [ %9, %8 ]
%14 = phi i8* [ %15, %11 ], [ %1, %8 ]
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = getelementptr inbounds i8, i8* %13, i64 1
store i8 %12, i8* %13
%17 = load i8, i8* %15
%18 = icmp eq i8 %17, 0
br i1 %18, label %19, label %11
19: ; preds = %11
ret i8* %16
}
/* Type definitions */
typedef int /*<<< orphan*/ __u16;
typedef int /*<<< orphan*/ __le16;

/* Variables and functions */
int /*<<< orphan*/ __swab16p(int /*<<< orphan*/ *);
__u16 __le16_to_cpup(const __le16 *p) { return __swab16p((__u16 *)p); }


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

x86 assembly (clang, -O2):
<__le16_to_cpup>:
jmp    1030 <__swab16p@plt>

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

LLVM IR (-O2):
define i32 @__le16_to_cpup(i32* %0) {
%2 = tail call i32 @__swab16p(i32* %0)
ret i32 %2
}
/* Variables and functions */
char getchar();
void my_gets(char *a) {
  char c;
  int i = 0;
  while ((c = getchar()), c != '#' && c != '\n')
    a[i++] = c;
  a[i] = '\0';
}


x86 assembly (clang, -O0):
<my_gets>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
mov    $0x0,%al
call   1030 <getchar@plt>
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%ecx
xor    %eax,%eax
cmp    $0x23,%ecx
mov    %al,-0x11(%rbp)
je     114c <my_gets+0x3c>
movsbl -0x9(%rbp),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    115c <my_gets+0x4c>
jmp    1179 <my_gets+0x69>
mov    -0x9(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x10(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1123 <my_gets+0x13>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_gets>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
xor    %ebx,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    $0xa,%al
je     1139 <my_gets+0x29>
cmp    $0x23,%al
je     1139 <my_gets+0x29>
mov    %al,(%r14,%rbx,1)
add    $0x1,%rbx
jmp    1120 <my_gets+0x10>
mov    %ebx,%eax
movb   $0x0,(%r14,%rax,1)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @my_gets(i8* %0) {
%2 = alloca i8*
%3 = alloca i8
%4 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %4
br label %5
5: ; preds = %16, %1
%6 = call signext i8 (...) @getchar()
store i8 %6, i8* %3
%7 = load i8, i8* %3
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 35
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = load i8, i8* %3
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 10
br label %14
14: ; preds = %10, %5
%15 = phi i1 [ false, %5 ], [ %13, %10 ]
br i1 %15, label %16, label %23
16: ; preds = %14
%17 = load i8, i8* %3
%18 = load i8*, i8** %2
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 1
store i32 %20, i32* %4
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, i8* %18, i64 %21
store i8 %17, i8* %22
br label %5
23: ; preds = %14
%24 = load i8*, i8** %2
%25 = load i32, i32* %4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %24, i64 %26
store i8 0, i8* %27
ret void
}

LLVM IR (-O2):
define void @my_gets(i8* nocapture writeonly %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i64 [ %6, %5 ], [ 0, %1 ]
%4 = tail call signext i8 (...) @getchar()
switch i8 %4, label %5 [
i8 35, label %8
i8 10, label %8
]
5: ; preds = %2
%6 = add nuw i64 %3, 1
%7 = getelementptr inbounds i8, i8* %0, i64 %3
store i8 %4, i8* %7
br label %2
8: ; preds = %2, %2
%9 = and i64 %3, 4294967295
%10 = getelementptr inbounds i8, i8* %0, i64 %9
store i8 0, i8* %10
ret void
}
void vspltish(char *v, int val) {
  int i;
  for (i = 0; i < 16; i += 2)
    v[i] = val >> 7, v[i + 1] = val;
}


x86 assembly (clang, -O0):
<vspltish>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x10,-0x10(%rbp)
jge    1152 <vspltish+0x52>
mov    -0xc(%rbp),%eax
sar    $0x7,%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <vspltish+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<vspltish>:
mov    %esi,%eax
shr    $0x7,%eax
mov    %al,(%rdi)
mov    %sil,0x1(%rdi)
mov    %al,0x2(%rdi)
mov    %sil,0x3(%rdi)
mov    %al,0x4(%rdi)
mov    %sil,0x5(%rdi)
mov    %al,0x6(%rdi)
mov    %sil,0x7(%rdi)
mov    %al,0x8(%rdi)
mov    %sil,0x9(%rdi)
mov    %al,0xa(%rdi)
mov    %sil,0xb(%rdi)
mov    %al,0xc(%rdi)
mov    %sil,0xd(%rdi)
mov    %al,0xe(%rdi)
mov    %sil,0xf(%rdi)
ret

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

LLVM IR (-O2):
define void @vspltish(i8* nocapture writeonly %0, i32 %1) {
%3 = lshr i32 %1, 7
%4 = trunc i32 %3 to i8
%5 = trunc i32 %1 to i8
store i8 %4, i8* %0
%6 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %5, i8* %6
%7 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %4, i8* %7
%8 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %5, i8* %8
%9 = getelementptr inbounds i8, i8* %0, i64 4
store i8 %4, i8* %9
%10 = getelementptr inbounds i8, i8* %0, i64 5
store i8 %5, i8* %10
%11 = getelementptr inbounds i8, i8* %0, i64 6
store i8 %4, i8* %11
%12 = getelementptr inbounds i8, i8* %0, i64 7
store i8 %5, i8* %12
%13 = getelementptr inbounds i8, i8* %0, i64 8
store i8 %4, i8* %13
%14 = getelementptr inbounds i8, i8* %0, i64 9
store i8 %5, i8* %14
%15 = getelementptr inbounds i8, i8* %0, i64 10
store i8 %4, i8* %15
%16 = getelementptr inbounds i8, i8* %0, i64 11
store i8 %5, i8* %16
%17 = getelementptr inbounds i8, i8* %0, i64 12
store i8 %4, i8* %17
%18 = getelementptr inbounds i8, i8* %0, i64 13
store i8 %5, i8* %18
%19 = getelementptr inbounds i8, i8* %0, i64 14
store i8 %4, i8* %19
%20 = getelementptr inbounds i8, i8* %0, i64 15
store i8 %5, i8* %20
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CoderRot13();
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char mode;
  while (mode != 'q') {
    scanf("%c", &mode);
    if (mode == 'd' || mode == 'c') {
      CoderRot13();
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x71,%eax
je     1172 <main+0x52>
lea    0xebd(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
je     1166 <main+0x46>
movsbl -0x5(%rbp),%eax
cmp    $0x63,%eax
jne    116d <main+0x4d>
mov    $0x0,%al
call   1030 <CoderRot13@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%r14
lea    0x7(%rsp),%rbx
jmp    1144 <main+0x24>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x71,%al
je     116a <main+0x4a>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
movzbl 0x7(%rsp),%eax
lea    -0x63(%rax),%ecx
cmp    $0x1,%cl
ja     1140 <main+0x20>
xor    %eax,%eax
call   1030 <CoderRot13@plt>
movzbl 0x7(%rsp),%eax
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i8
br label %2
2: ; preds = %0, %10
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = load i8, i8* %1
%5 = add i8 %4, -99
%6 = icmp ult i8 %5, 2
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = call i32 (...) @CoderRot13()
%9 = load i8, i8* %1
br label %10
10: ; preds = %2, %7
%11 = phi i8 [ %4, %2 ], [ %9, %7 ]
%12 = icmp eq i8 %11, 113
br i1 %12, label %13, label %2
13: ; preds = %10
ret i32 0
}
void nodebug(void) {}


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

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

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

LLVM IR (-O2):
define void @nodebug() {
ret void
}
/* Type definitions */
struct utsname {
  int /*<<< orphan*/ machine;
};

/* Variables and functions */
int audit_name_to_machine(int /*<<< orphan*/);
scalar_t__ uname(struct utsname *);
int audit_detect_machine(void) {
  struct utsname uts;
  if (uname(&uts) == 0)
    return audit_name_to_machine(uts.machine);
  return -1;
}


x86 assembly (clang, -O0):
<audit_detect_machine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x8(%rbp),%rdi
call   1040 <uname@plt>
cmp    $0x0,%rax
jne    114b <audit_detect_machine+0x2b>
mov    -0x8(%rbp),%edi
call   1030 <audit_name_to_machine@plt>
mov    %eax,-0x4(%rbp)
jmp    1152 <audit_detect_machine+0x32>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<audit_detect_machine>:
push   %rax
mov    %rsp,%rdi
call   1040 <uname@plt>
test   %rax,%rax
je     1135 <audit_detect_machine+0x15>
mov    $0xffffffff,%eax
pop    %rcx
ret
mov    (%rsp),%edi
pop    %rax
jmp    1030 <audit_name_to_machine@plt>

LLVM IR (-O0):
%struct.utsname = type { i32 }
define i32 @audit_detect_machine() {
%1 = alloca i32
%2 = alloca %struct.utsname
%3 = call i64 @uname(%struct.utsname* %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %0
%6 = getelementptr inbounds %struct.utsname, %struct.utsname* %2, i32 0, i32 0
%7 = load i32, i32* %6
%8 = call i32 @audit_name_to_machine(i32 %7)
store i32 %8, i32* %1
br label %10
9: ; preds = %0
store i32 -1, i32* %1
br label %10
10: ; preds = %9, %5
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
%struct.utsname = type { i32 }
define i32 @audit_detect_machine() {
%1 = alloca %struct.utsname
%2 = bitcast %struct.utsname* %1 to i8*
%3 = call i64 @uname(%struct.utsname* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %0
%6 = getelementptr inbounds %struct.utsname, %struct.utsname* %1, i64 0, i32 0
%7 = load i32, i32* %6
%8 = tail call i32 @audit_name_to_machine(i32 %7)
br label %9
9: ; preds = %0, %5
%10 = phi i32 [ %8, %5 ], [ -1, %0 ]
ret i32 %10
}
/* Variables and functions */
int printf(char *, int, char, int, char);
int add(int x, int y) { return printf("%*c%*c", x, '\r', y, '\r'); }


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

x86 assembly (clang, -O2):
<add>:
mov    %esi,%ecx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
mov    $0xd,%edx
mov    $0xd,%r8d
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%*c%*c\00"
define i32 @add(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 = load i32, i32* %4
%7 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %5, i8 signext 13, i32 %6, i8 signext 13)
ret i32 %7
}

LLVM IR (-O2):
@.str = [7 x i8] c"%*c%*c\00"
define i32 @add(i32 %0, i32 %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %0, i8 signext 13, i32 %1, i8 signext 13)
ret i32 %3
}
/* Variables and functions */
int foo(int);
int foo2(int);
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  printf("foo(%d)=%d\n", 2, foo(2));
  printf("foo2(%d)=%d\n", 2, foo2(2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x2,%edi
call   1050 <foo@plt>
mov    %eax,%edx
lea    0xeae(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <foo2@plt>
mov    %eax,%edx
lea    0xe9d(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2,%edi
call   1050 <foo@plt>
lea    0xebe(%rip),%rdi
mov    $0x2,%esi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <foo2@plt>
lea    0xead(%rip),%rdi
mov    $0x2,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"foo(%d)=%d\0A\00"
@.str.1 = [13 x i8] c"foo2(%d)=%d\0A\00"
define i32 @main() {
%1 = tail call i32 @foo(i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 2, i32 %1)
%3 = tail call i32 @foo2(i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 %3)
ret i32 0
}
long tell(f) {
  long lseek();
  return lseek(f, 0L, 1);
}


x86 assembly (clang, -O0):
<tell>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <lseek@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tell>:
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
jmp    1030 <lseek@plt>

LLVM IR (-O0):
define i64 @tell(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 (i32, i64, i32, ...) bitcast (i64 (...)* @lseek to i64 (i32, i64, i32, ...)*)(i32 %3, i64 0, i32 1)
ret i64 %4
}

LLVM IR (-O2):
define i64 @tell(i32 %0) {
%2 = tail call i64 (i32, i64, i32, ...) bitcast (i64 (...)* @lseek to i64 (i32, i64, i32, ...)*)(i32 %0, i64 0, i32 1)
ret i64 %2
}
/* Variables and functions */
int putchar(char);
int puts(const char *s) {
  int a;
  while ((a = *s++))
    putchar(a);
  return putchar('\n');
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
je     114a <puts+0x3a>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
jmp    111c <puts+0xc>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <puts+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <putchar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <puts+0x10>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
define i32 @puts(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = tail call i32 @putchar(i8 signext %5)
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = tail call i32 @putchar(i8 signext 10)
ret i32 %12
}
/* Type definitions */
struct ocfs2_super {
  int dummy;
};
struct ocfs2_node_map {
  int dummy;
};

/* Variables and functions */
int ocfs2_node_map_iterate(struct ocfs2_super *, struct ocfs2_node_map *,
                           int /*<<< orphan*/);
int ocfs2_node_map_first_set_bit(struct ocfs2_super *osb,
                                 struct ocfs2_node_map *map) {
  return ocfs2_node_map_iterate(osb, map, 0);
}


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

x86 assembly (clang, -O2):
<ocfs2_node_map_first_set_bit>:
xor    %edx,%edx
jmp    1030 <ocfs2_node_map_iterate@plt>

LLVM IR (-O0):
%struct.ocfs2_super = type { i32 }
%struct.ocfs2_node_map = type { i32 }
define i32 @ocfs2_node_map_first_set_bit(%struct.ocfs2_super* %0, %struct.ocfs2_node_map* %1) {
%3 = alloca %struct.ocfs2_super*
%4 = alloca %struct.ocfs2_node_map*
store %struct.ocfs2_super* %0, %struct.ocfs2_super** %3
store %struct.ocfs2_node_map* %1, %struct.ocfs2_node_map** %4
%5 = load %struct.ocfs2_super*, %struct.ocfs2_super** %3
%6 = load %struct.ocfs2_node_map*, %struct.ocfs2_node_map** %4
%7 = call i32 @ocfs2_node_map_iterate(%struct.ocfs2_super* %5, %struct.ocfs2_node_map* %6, i32 0)
ret i32 %7
}

LLVM IR (-O2):
%struct.ocfs2_super = type { i32 }
%struct.ocfs2_node_map = type { i32 }
define i32 @ocfs2_node_map_first_set_bit(%struct.ocfs2_super* %0, %struct.ocfs2_node_map* %1) {
%3 = tail call i32 @ocfs2_node_map_iterate(%struct.ocfs2_super* %0, %struct.ocfs2_node_map* %1, i32 0)
ret i32 %3
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int solcon_write_multprec_solutions(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(451, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<solcon_write_multprec_solutions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1c3,%edi
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):
<solcon_write_multprec_solutions>:
mov    $0x1c3,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @solcon_write_multprec_solutions() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 451, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
float adaptivereleasecurve(float x, float a, float b, float c, float d) {
  float x2 = x * x;
  return a * x2 * x + b * x2 + c * x + d;
}


x86 assembly (clang, -O0):
<adaptivereleasecurve>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm1
mulss  -0x18(%rbp),%xmm1
movss  -0x4(%rbp),%xmm2
movss  -0xc(%rbp),%xmm0
mulss  -0x18(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
movss  -0x4(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
addss  -0x14(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<adaptivereleasecurve>:
movaps %xmm0,%xmm5
mulss  %xmm0,%xmm5
mulss  %xmm5,%xmm1
mulss  %xmm2,%xmm5
mulss  %xmm0,%xmm1
addss  %xmm1,%xmm5
mulss  %xmm3,%xmm0
addss  %xmm5,%xmm0
addss  %xmm4,%xmm0
ret

LLVM IR (-O0):
define float @adaptivereleasecurve(float %0, float %1, float %2, float %3, float %4) {
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store float %0, float* %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store float %4, float* %10
%12 = load float, float* %6
%13 = load float, float* %6
%14 = fmul float %12, %13
store float %14, float* %11
%15 = load float, float* %7
%16 = load float, float* %11
%17 = fmul float %15, %16
%18 = load float, float* %6
%19 = load float, float* %8
%20 = load float, float* %11
%21 = fmul float %19, %20
%22 = call float @llvm.fmuladd.f32(float %17, float %18, float %21)
%23 = load float, float* %9
%24 = load float, float* %6
%25 = call float @llvm.fmuladd.f32(float %23, float %24, float %22)
%26 = load float, float* %10
%27 = fadd float %25, %26
ret float %27
}

LLVM IR (-O2):
define float @adaptivereleasecurve(float %0, float %1, float %2, float %3, float %4) {
%6 = fmul float %0, %0
%7 = fmul float %6, %1
%8 = fmul float %6, %2
%9 = tail call float @llvm.fmuladd.f32(float %7, float %0, float %8)
%10 = tail call float @llvm.fmuladd.f32(float %3, float %0, float %9)
%11 = fadd float %10, %4
ret float %11
}
/* Variables and functions */
bool nrf51_errata_13(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @nrf51_errata_13() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
usage() {
  fprintf(stderr, "Usage: turnin assignmt@class files-and-directories ...\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [56 x i8] c"Usage: turnin assignmt@class files-and-directories ...\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [56 x i8] c"Usage: turnin assignmt@class files-and-directories ...\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
void foo608(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo608(i32 %0) {
ret void
}
int brk(void *addr) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @brk(i8* nocapture readnone %0) {
ret i32 0
}
int operation_add(int left, int right) { return left + right; }


x86 assembly (clang, -O0):
<operation_add>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<operation_add>:
lea    (%rdi,%rsi,1),%eax
ret

LLVM IR (-O0):
define i32 @operation_add(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 = load i32, i32* %4
%7 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @operation_add(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
void OpenMP_status(void) {}


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

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

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

LLVM IR (-O2):
define void @OpenMP_status() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalnum(int);
void t_isalnum_0x3c() {
  Assert_real((isalnum(60) == 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_isalnum.c",
              305, ("isalnum should be 0 for <"));
}


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

x86 assembly (clang, -O2):
<t_isalnum_0x3c>:
push   %rax
mov    $0x3c,%edi
call   1030 <isalnum@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x131,%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_isalnum.c\00"
@.str.1 = [26 x i8] c"isalnum should be 0 for <\00"
define void @t_isalnum_0x3c() {
%1 = call i64 @isalnum(i32 60)
%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 305, 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_isalnum.c\00"
@.str.1 = [26 x i8] c"isalnum should be 0 for <\00"
define void @t_isalnum_0x3c() {
%1 = tail call i64 @isalnum(i32 60)
%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 305, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void cw1200_debug_tx_align(struct cw1200_common *priv) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
%struct.cw1200_common = type opaque
define void @cw1200_debug_tx_align(%struct.cw1200_common* nocapture %0) {
ret void
}
int fun1039() { return 1039; }


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

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

LLVM IR (-O0):
define i32 @fun1039() {
ret i32 1039
}

LLVM IR (-O2):
define i32 @fun1039() {
ret i32 1039
}
/* Variables and functions */
void *malloc(int);
void *realloc(void *, int);
void *xrealloc(void *v, int n) {
  if (v)
    return realloc(v, n);
  return malloc(n);
}


x86 assembly (clang, -O0):
<xrealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     114f <xrealloc+0x2f>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <realloc@plt>
mov    %rax,-0x8(%rbp)
jmp    115b <xrealloc+0x3b>
mov    -0x14(%rbp),%edi
call   1030 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrealloc>:
test   %rdi,%rdi
je     112a <xrealloc+0xa>
jmp    1040 <realloc@plt>
mov    %esi,%edi
jmp    1030 <malloc@plt>

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

LLVM IR (-O2):
define i8* @xrealloc(i8* %0, i32 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i8* @realloc(i8* %0, i32 %1)
br label %8
6: ; preds = %2
%7 = tail call i8* @malloc(i32 %1)
br label %8
8: ; preds = %6, %4
%9 = phi i8* [ %5, %4 ], [ %7, %6 ]
ret i8* %9
}
/* Variables and functions */
int tuner_i2c_write(void *, unsigned char, int, unsigned char *, int);
int fc8150_write(void *hDevice, unsigned char addr, unsigned char data) {
  int res;
  unsigned char tmp;
  tmp = data;
  res = tuner_i2c_write(hDevice, addr, 1, &tmp, 1);
  return res;
}


x86 assembly (clang, -O0):
<fc8150_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
mov    %al,-0x11(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1,%r8d
lea    -0x11(%rbp),%rcx
movzbl -0x9(%rbp),%esi
mov    %r8d,%edx
call   1030 <tuner_i2c_write@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fc8150_write>:
push   %rax
mov    %dl,0x7(%rsp)
lea    0x7(%rsp),%rcx
mov    $0x1,%edx
mov    $0x1,%r8d
call   1030 <tuner_i2c_write@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @fc8150_write(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8
store i8 %2, i8* %4
%5 = call i32 @tuner_i2c_write(i8* %0, i8 zeroext %1, i32 1, i8* %4, i32 1)
ret i32 %5
}
void gtk_notebook_get_nth_page() {}


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

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

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

LLVM IR (-O2):
define void @gtk_notebook_get_nth_page() {
ret void
}
const char *deviceI2cCommonDebugGetName(void) { return "i2cCommonDebug"; }


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

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

LLVM IR (-O0):
@.str = [15 x i8] c"i2cCommonDebug\00"
define i8* @deviceI2cCommonDebugGetName() {
ret i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [15 x i8] c"i2cCommonDebug\00"
define i8* @deviceI2cCommonDebugGetName() {
ret i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ vo_draw_alpha_rgb24_C(int, int, unsigned char *,
                                         unsigned char *, int, unsigned char *,
                                         int);
void vo_draw_alpha_rgb24(int w, int h, unsigned char *src, unsigned char *srca,
                         int srcstride, unsigned char *dstbase, int dststride) {
  vo_draw_alpha_rgb24_C(w, h, src, srca, srcstride, dstbase, dststride);
}


x86 assembly (clang, -O0):
<vo_draw_alpha_rgb24>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    0x10(%rbp),%eax
mov    %eax,(%rsp)
call   1030 <vo_draw_alpha_rgb24_C@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vo_draw_alpha_rgb24>:
jmp    1030 <vo_draw_alpha_rgb24_C@plt>

LLVM IR (-O0):
define void @vo_draw_alpha_rgb24(i32 %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i32
store i32 %0, i32* %8
store i32 %1, i32* %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i8* %5, i8** %13
store i32 %6, i32* %14
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load i8*, i8** %10
%18 = load i8*, i8** %11
%19 = load i32, i32* %12
%20 = load i8*, i8** %13
%21 = load i32, i32* %14
%22 = call i32 @vo_draw_alpha_rgb24_C(i32 %15, i32 %16, i8* %17, i8* %18, i32 %19, i8* %20, i32 %21)
ret void
}

LLVM IR (-O2):
define void @vo_draw_alpha_rgb24(i32 %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, i32 %6) {
%8 = tail call i32 @vo_draw_alpha_rgb24_C(i32 %0, i32 %1, i8* %2, i8* %3, i32 %4, i8* %5, i32 %6)
ret void
}
int xtensa_tp7(v)
int v;
{
  switch (v) {
  case 7:
  case 8:
  case 9:
  case 10:
  case 11:
  case 12:
  case 13:
  case 14:
  case 15:
  case 16:
  case 17:
  case 18:
  case 19:
  case 20:
  case 21:
  case 22: {
    return 1;
  } break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<xtensa_tp7>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xfffffff9,%eax
sub    $0xf,%eax
ja     1127 <xtensa_tp7+0x27>
jmp    111b <xtensa_tp7+0x1b>
movl   $0x1,-0x4(%rbp)
jmp    112e <xtensa_tp7+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xtensa_tp7>:
add    $0xfffffff9,%edi
xor    %eax,%eax
cmp    $0x10,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @xtensa_tp7(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %6 [
i32 7, label %5
i32 8, label %5
i32 9, label %5
i32 10, label %5
i32 11, label %5
i32 12, label %5
i32 13, label %5
i32 14, label %5
i32 15, label %5
i32 16, label %5
i32 17, label %5
i32 18, label %5
i32 19, label %5
i32 20, label %5
i32 21, label %5
i32 22, label %5
]
5: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %7
6: ; preds = %1
store i32 0, i32* %2
br label %7
7: ; preds = %6, %5
%8 = load i32, i32* %2
ret i32 %8
}

LLVM IR (-O2):
define i32 @xtensa_tp7(i32 %0) {
%2 = add i32 %0, -7
%3 = icmp ult i32 %2, 16
%4 = zext i1 %3 to i32
ret i32 %4
}