xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ converse(int, int);
int main() {
  int N = 1025, r = 2;
  converse(N, r);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x401,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <converse@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x401,%edi
mov    $0x2,%esi
call   1030 <converse@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1025, i32* %2
store i32 2, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = call i32 @converse(i32 %4, i32 %5)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @converse(i32 1025, i32 2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
void int_handler(int s) { write(1, "!", 1); }


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

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

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

LLVM IR (-O2):
@.str = [2 x i8] c"!\00"
define void @int_handler(i32 %0) {
%2 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ *strchr(char const *, char const);
char caractere_dans_chaine(const char *chaine, const char caractere) {
  if (strchr(chaine, caractere) == NULL) {
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<caractere_dans_chaine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rdi
movsbl -0x11(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
jne    1142 <caractere_dans_chaine+0x32>
movb   $0x0,-0x1(%rbp)
jmp    1146 <caractere_dans_chaine+0x36>
movb   $0x1,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<caractere_dans_chaine>:
push   %rax
call   1030 <strchr@plt>
test   %rax,%rax
setne  %al
pop    %rcx
ret

LLVM IR (-O0):
define signext i8 @caractere_dans_chaine(i8* %0, i8 signext %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 i32* @strchr(i8* %6, i8 signext %7)
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store i8 0, i8* %3
br label %12
11: ; preds = %2
store i8 1, i8* %3
br label %12
12: ; preds = %11, %10
%13 = load i8, i8* %3
ret i8 %13
}

LLVM IR (-O2):
define signext i8 @caractere_dans_chaine(i8* %0, i8 signext %1) {
%3 = tail call i32* @strchr(i8* %0, i8 signext %1)
%4 = icmp ne i32* %3, null
%5 = zext i1 %4 to i8
ret i8 %5
}
/* Variables and functions */
int /*<<< orphan*/ glPopAttrib();
void PopAttrib(void) { glPopAttrib(); }


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

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

LLVM IR (-O0):
define void @PopAttrib() {
%1 = call i32 (...) @glPopAttrib()
ret void
}

LLVM IR (-O2):
define void @PopAttrib() {
%1 = tail call i32 (...) @glPopAttrib()
ret void
}
int f() {
  const int *ppp;
  int *const qqq;
  return 1;
}


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

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

LLVM IR (-O0):
define i32 @f() {
%1 = alloca i32*
%2 = alloca i32*
ret i32 1
}

LLVM IR (-O2):
define i32 @f() {
ret i32 1
}
int main() { printf('c'); }


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (i8*, ...) @printf(i8* inttoptr (i64 99 to i8*))
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* inttoptr (i64 99 to i8*))
ret i32 0
}
int compareThruSlash(const char *string1, const char *string2) {
  while (1) {
    if (*string1 != *string2)
      return 0;
    if (*string1 == '\0' || *string1 == '/')
      return 1;
    string1++;
    string2++;
  }
}


x86 assembly (clang, -O0):
<compareThruSlash>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x18(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     112e <compareThruSlash+0x2e>
movl   $0x0,-0x4(%rbp)
jmp    1177 <compareThruSlash+0x77>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     114e <compareThruSlash+0x4e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    115a <compareThruSlash+0x5a>
movl   $0x1,-0x4(%rbp)
jmp    1177 <compareThruSlash+0x77>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    110c <compareThruSlash+0xc>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compareThruSlash>:
mov    (%rdi),%cl
cmp    (%rsi),%cl
jne    112e <compareThruSlash+0x2e>
mov    $0x1,%edx
nopl   0x0(%rax,%rax,1)
mov    $0x1,%eax
test   %cl,%cl
je     1130 <compareThruSlash+0x30>
cmp    $0x2f,%cl
je     1130 <compareThruSlash+0x30>
movzbl (%rdi,%rdx,1),%ecx
lea    0x1(%rdx),%rax
cmp    (%rsi,%rdx,1),%cl
mov    %rax,%rdx
je     1110 <compareThruSlash+0x10>
xor    %eax,%eax
ret

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

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

/* Variables and functions */
scalar_t__ strlen(char const *);
ssize_t m_strlen(const char *s) { return s ? (ssize_t)strlen(s) : 0; }


x86 assembly (clang, -O0):
<m_strlen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1138 <m_strlen+0x28>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xc(%rbp)
jmp    1142 <m_strlen+0x32>
xor    %eax,%eax
mov    %eax,-0xc(%rbp)
jmp    1142 <m_strlen+0x32>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_strlen>:
test   %rdi,%rdi
je     1120 <m_strlen+0x10>
push   %rax
call   1030 <strlen@plt>
add    $0x8,%rsp
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @m_strlen(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 %9
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i64 @strlen(i8* %6)
%8 = trunc i64 %7 to i32
br label %10
9: ; preds = %1
br label %10
10: ; preds = %9, %5
%11 = phi i32 [ %8, %5 ], [ 0, %9 ]
ret i32 %11
}

LLVM IR (-O2):
define i32 @m_strlen(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = tail call i64 @strlen(i8* %0)
%5 = trunc i64 %4 to i32
br label %6
6: ; preds = %1, %3
%7 = phi i32 [ %5, %3 ], [ 0, %1 ]
ret i32 %7
}
/* Variables and functions */
int atoi(char *);
int strlen(char *);
int toNum(char token[]) {
  int num = 0;
  int sum = 0;
  int len = strlen(token);
  int i;
  sum = atoi(token);
  return sum;
}


x86 assembly (clang, -O0):
<toNum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toNum>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <atoi@plt>

LLVM IR (-O0):
define i32 @toNum(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
store i32 0, i32* %4
%7 = load i8*, i8** %2
%8 = call i32 @strlen(i8* %7)
store i32 %8, i32* %5
%9 = load i8*, i8** %2
%10 = call i32 @atoi(i8* %9)
store i32 %10, i32* %4
%11 = load i32, i32* %4
ret i32 %11
}

LLVM IR (-O2):
define i32 @toNum(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i32 @atoi(i8* %0)
ret i32 %3
}
/* Variables and functions */
unsigned char CFV2PrefixExtractorInRange(void *state, const char *key,
                                         size_t length) {
  return 1;
}


x86 assembly (clang, -O0):
<CFV2PrefixExtractorInRange>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define zeroext i8 @CFV2PrefixExtractorInRange(i8* nocapture readnone %0, i8* nocapture readnone %1, i64 %2) {
ret i8 1
}
int ntlibc_toupper(int c) {
  if (('a' <= c) && (c <= 'z')) {
    int diff = 'a' - 'A';
    return c - diff;
  }
  return c;
}


x86 assembly (clang, -O0):
<ntlibc_toupper>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    $0x61,%eax
cmp    -0x8(%rbp),%eax
jg     1134 <ntlibc_toupper+0x34>
cmpl   $0x7a,-0x8(%rbp)
jg     1134 <ntlibc_toupper+0x34>
movl   $0x20,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    113a <ntlibc_toupper+0x3a>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ntlibc_toupper>:
lea    -0x61(%rdi),%ecx
lea    -0x20(%rdi),%eax
cmp    $0x1a,%ecx
cmovae %edi,%eax
ret

LLVM IR (-O0):
define i32 @ntlibc_toupper(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = icmp sle i32 97, %5
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp sle i32 %8, 122
br i1 %9, label %10, label %14
10: ; preds = %7
store i32 32, i32* %4
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = sub nsw i32 %11, %12
store i32 %13, i32* %2
br label %16
14: ; preds = %7, %1
%15 = load i32, i32* %3
store i32 %15, i32* %2
br label %16
16: ; preds = %14, %10
%17 = load i32, i32* %2
ret i32 %17
}

LLVM IR (-O2):
define i32 @ntlibc_toupper(i32 %0) {
%2 = add i32 %0, -97
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, -32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
INI_String_TYPE() {}


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

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

LLVM IR (-O0):
define i32 @INI_String_TYPE() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @INI_String_TYPE() {
ret i32 undef
}
int main() {
  int a;
  int *p;
  scanf("%d", &a);
  p = &a;
  fun(p);
  printf("%d\n", p);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
lea    0xc(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fun@plt>
lea    0xea7(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = call i32 (i32*, ...) bitcast (i32 (...)* @fun to i32 (i32*, ...)*)(i32* %1)
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %1)
ret i32 0
}
void yy_1_HeadingTransient(char *yytext, int yyleng) {
  ;
  ;
}


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

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

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

LLVM IR (-O2):
define void @yy_1_HeadingTransient(i8* nocapture %0, i32 %1) {
ret void
}
int test_imm_BBuint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0xBB << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_BBuint64_highword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
shr    $0x20,%rdx
and    $0xbb,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_BBuint64_highword_mem>:
testb  $0xbb,0x4(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_BBuint64_highword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = lshr i64 %4, 32
%6 = and i64 %5, 187
%7 = icmp ne i64 %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_BBuint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 803158884352
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
double mc_rand_gauss();
double mc_rand_normal(double mean, double std_dev) {
  return mean + std_dev * mc_rand_gauss();
}


x86 assembly (clang, -O0):
<mc_rand_normal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    $0x0,%al
call   1030 <mc_rand_gauss@plt>
movsd  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mc_rand_normal>:
sub    $0x18,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1030 <mc_rand_gauss@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @mc_rand_normal(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = call double (...) @mc_rand_gauss()
%8 = call double @llvm.fmuladd.f64(double %6, double %7, double %5)
ret double %8
}

LLVM IR (-O2):
define double @mc_rand_normal(double %0, double %1) {
%3 = tail call double (...) @mc_rand_gauss()
%4 = tail call double @llvm.fmuladd.f64(double %1, double %3, double %0)
ret double %4
}
int ffsu(unsigned x) {
  int result;
  asm("bsf %[x], %[result]" : [result] "=r"(result) : [x] "mr"(x) : "cc");
  return result;
}


x86 assembly (clang, -O0):
<ffsu>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
bsf    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffsu>:
mov    %edi,-0x4(%rsp)
bsf    -0x4(%rsp),%eax
ret

LLVM IR (-O0):
define i32 @ffsu(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 asm "bsf $1, $0", "=r,mr,~{cc},~{dirflag},~{fpsr},~{flags}"(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @ffsu(i32 %0) {
%2 = tail call i32 asm "bsf $1, $0", "=r,mr,~{cc},~{dirflag},~{fpsr},~{flags}"(i32 %0)
ret i32 %2
}
void foo476(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo476(i32 %0) {
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int _rand_u8();
int _rand() {
  uint32_t ret = 0;
  ret += _rand_u8() << 0;
  ret += _rand_u8() << 8;
  ret += _rand_u8() << 16;
  ret += _rand_u8() << 24;
  return (int)(ret & 0x7FFFFFFF);
}


x86 assembly (clang, -O0):
<_rand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <_rand_u8@plt>
shl    $0x0,%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <_rand_u8@plt>
shl    $0x8,%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <_rand_u8@plt>
shl    $0x10,%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <_rand_u8@plt>
shl    $0x18,%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7fffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_rand>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <_rand_u8@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <_rand_u8@plt>
mov    %eax,%ebp
shl    $0x8,%ebp
add    %ebx,%ebp
xor    %eax,%eax
call   1030 <_rand_u8@plt>
mov    %eax,%ebx
shl    $0x10,%ebx
add    %ebp,%ebx
xor    %eax,%eax
call   1030 <_rand_u8@plt>
shl    $0x18,%eax
add    %ebx,%eax
and    $0x7fffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @_rand() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @_rand_u8()
%3 = shl i32 %2, 0
%4 = load i32, i32* %1
%5 = add nsw i32 %4, %3
store i32 %5, i32* %1
%6 = call i32 (...) @_rand_u8()
%7 = shl i32 %6, 8
%8 = load i32, i32* %1
%9 = add nsw i32 %8, %7
store i32 %9, i32* %1
%10 = call i32 (...) @_rand_u8()
%11 = shl i32 %10, 16
%12 = load i32, i32* %1
%13 = add nsw i32 %12, %11
store i32 %13, i32* %1
%14 = call i32 (...) @_rand_u8()
%15 = shl i32 %14, 24
%16 = load i32, i32* %1
%17 = add nsw i32 %16, %15
store i32 %17, i32* %1
%18 = load i32, i32* %1
%19 = and i32 %18, 2147483647
ret i32 %19
}

LLVM IR (-O2):
define i32 @_rand() {
%1 = tail call i32 (...) @_rand_u8()
%2 = tail call i32 (...) @_rand_u8()
%3 = shl i32 %2, 8
%4 = add nsw i32 %3, %1
%5 = tail call i32 (...) @_rand_u8()
%6 = shl i32 %5, 16
%7 = add nsw i32 %4, %6
%8 = tail call i32 (...) @_rand_u8()
%9 = shl i32 %8, 24
%10 = add nsw i32 %7, %9
%11 = and i32 %10, 2147483647
ret i32 %11
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
void I2CSlaveAddressSet(uint32_t ui32Base, uint8_t ui8AddrNum,
                        uint8_t ui8SlaveAddr) {
  ;
  ;
  ;
  switch (ui8AddrNum) {
  case 0: {
    (*((volatile unsigned long *)(ui32Base + 0x00000800))) = ui8SlaveAddr;
    break;
  }
  case 1: {
    (*((volatile unsigned long *)(ui32Base + 0x0000081C))) =
        0x00000080 | ui8SlaveAddr;
    break;
  }
  }
}


x86 assembly (clang, -O0):
<I2CSlaveAddressSet>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
test   %eax,%eax
je     1131 <I2CSlaveAddressSet+0x31>
jmp    1120 <I2CSlaveAddressSet+0x20>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
je     1147 <I2CSlaveAddressSet+0x47>
jmp    115f <I2CSlaveAddressSet+0x5f>
movslq -0xc(%rbp),%rcx
mov    -0x4(%rbp),%eax
add    $0x800,%eax
cltq
mov    %rcx,(%rax)
jmp    115f <I2CSlaveAddressSet+0x5f>
mov    -0xc(%rbp),%eax
or     $0x80,%eax
movslq %eax,%rcx
mov    -0x4(%rbp),%eax
add    $0x81c,%eax
cltq
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2CSlaveAddressSet>:
test   %esi,%esi
je     1116 <I2CSlaveAddressSet+0x16>
cmp    $0x1,%esi
jne    1127 <I2CSlaveAddressSet+0x27>
or     $0x80,%edx
mov    $0x81c,%eax
jmp    111b <I2CSlaveAddressSet+0x1b>
mov    $0x800,%eax
movslq %edx,%rcx
mov    %eax,%eax
movslq %edi,%rdx
mov    %rcx,(%rax,%rdx,1)
ret

LLVM IR (-O0):
define void @I2CSlaveAddressSet(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %5
switch i32 %7, label %23 [
i32 0, label %8
i32 1, label %15
]
8: ; preds = %3
%9 = load i32, i32* %6
%10 = sext i32 %9 to i64
%11 = load i32, i32* %4
%12 = add nsw i32 %11, 2048
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i64*
store volatile i64 %10, i64* %14
br label %23
15: ; preds = %3
%16 = load i32, i32* %6
%17 = or i32 128, %16
%18 = sext i32 %17 to i64
%19 = load i32, i32* %4
%20 = add nsw i32 %19, 2076
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i64*
store volatile i64 %18, i64* %22
br label %23
23: ; preds = %3, %15, %8
ret void
}

LLVM IR (-O2):
define void @I2CSlaveAddressSet(i32 %0, i32 %1, i32 %2) {
switch i32 %1, label %13 [
i32 0, label %6
i32 1, label %4
]
4: ; preds = %3
%5 = or i32 %2, 128
br label %6
6: ; preds = %3, %4
%7 = phi i32 [ %5, %4 ], [ %2, %3 ]
%8 = phi i32 [ 2076, %4 ], [ 2048, %3 ]
%9 = sext i32 %7 to i64
%10 = add nsw i32 %8, %0
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i64*
store volatile i64 %9, i64* %12
br label %13
13: ; preds = %6, %3
ret void
}
void yy_1_InlineContentChoice(char *yytext, int yyleng) {
  ;
  ;
}


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

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

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

LLVM IR (-O2):
define void @yy_1_InlineContentChoice(i8* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
bool is_valid_filename(char value[]) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @is_valid_filename(i8* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
scalar_t__ ceil(float);
int upper_aligned(int number, int align) {
  int partial = (int)ceil(((float)number) / ((float)align));
  return (partial * align);
}


x86 assembly (clang, -O0):
<upper_aligned>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cvtsi2ssl -0x4(%rbp),%xmm0
cvtsi2ssl -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
call   1030 <ceil@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<upper_aligned>:
push   %rbx
mov    %esi,%ebx
cvtsi2ss %edi,%xmm0
cvtsi2ss %esi,%xmm1
divss  %xmm1,%xmm0
call   1030 <ceil@plt>
imul   %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @upper_aligned(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = sitofp i32 %6 to float
%8 = load i32, i32* %4
%9 = sitofp i32 %8 to float
%10 = fdiv float %7, %9
%11 = call i64 @ceil(float %10)
%12 = trunc i64 %11 to i32
store i32 %12, i32* %5
%13 = load i32, i32* %5
%14 = load i32, i32* %4
%15 = mul nsw i32 %13, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @upper_aligned(i32 %0, i32 %1) {
%3 = sitofp i32 %0 to float
%4 = sitofp i32 %1 to float
%5 = fdiv float %3, %4
%6 = tail call i64 @ceil(float %5)
%7 = trunc i64 %6 to i32
%8 = mul nsw i32 %7, %1
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ VDP_drawText(char *, int, int);
int /*<<< orphan*/ VDP_init();
void SYS_die(char *err) {
  VDP_init();
  VDP_drawText("A fatal error occured !", 2, 2);
  VDP_drawText("cannot continue...", 4, 3);
  if (err)
    VDP_drawText(err, 0, 5);
  while (1)
    ;
}


x86 assembly (clang, -O0):
<SYS_die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <VDP_init@plt>
lea    0xec6(%rip),%rdi
mov    $0x2,%edx
mov    %edx,%esi
call   1040 <VDP_drawText@plt>
lea    0xecb(%rip),%rdi
mov    $0x4,%esi
mov    $0x3,%edx
call   1040 <VDP_drawText@plt>
cmpq   $0x0,-0x8(%rbp)
je     1177 <SYS_die+0x57>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1040 <VDP_drawText@plt>
jmp    117c <SYS_die+0x5c>
jmp    117c <SYS_die+0x5c>

x86 assembly (clang, -O2):
<SYS_die>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <VDP_init@plt>
lea    0xece(%rip),%rdi
mov    $0x2,%esi
mov    $0x2,%edx
call   1040 <VDP_drawText@plt>
lea    0xed0(%rip),%rdi
mov    $0x4,%esi
mov    $0x3,%edx
call   1040 <VDP_drawText@plt>
test   %rbx,%rbx
je     1170 <SYS_die+0x50>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1040 <VDP_drawText@plt>
nopl   0x0(%rax,%rax,1)
jmp    1170 <SYS_die+0x50>

LLVM IR (-O0):
@.str = [24 x i8] c"A fatal error occured !\00"
@.str.1 = [19 x i8] c"cannot continue...\00"
define void @SYS_die(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @VDP_init()
%4 = call i32 @VDP_drawText(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 2, i32 2)
%5 = call i32 @VDP_drawText(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 3)
%6 = load i8*, i8** %2
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i32 @VDP_drawText(i8* %9, i32 0, i32 5)
br label %11
11: ; preds = %8, %1
br label %12
12: ; preds = %11, %12
br label %12
}

LLVM IR (-O2):
@.str = [24 x i8] c"A fatal error occured !\00"
@.str.1 = [19 x i8] c"cannot continue...\00"
define void @SYS_die(i8* %0) {
%2 = tail call i32 (...) @VDP_init()
%3 = tail call i32 @VDP_drawText(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 2, i32 2)
%4 = tail call i32 @VDP_drawText(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 3)
%5 = icmp eq i8* %0, null
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @VDP_drawText(i8* %0, i32 0, i32 5)
br label %8
8: ; preds = %6, %1
br label %9
9: ; preds = %8, %9
br label %9
}
/* Type definitions */
struct timeval {
  long tv_sec;
  long tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
void get_time(long *seconds, long *microseconds) {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  *seconds = tv.tv_sec;
  *microseconds = tv.tv_usec;
}


x86 assembly (clang, -O0):
<get_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
mov    -0x20(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_time>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
mov    0x8(%rsp),%rax
mov    %rax,(%rbx)
mov    0x10(%rsp),%rax
mov    %rax,(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define void @get_time(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
%5 = alloca %struct.timeval
store i64* %0, i64** %3
store i64* %1, i64** %4
%6 = call i32 @gettimeofday(%struct.timeval* %5, i32* null)
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i32 0, i32 0
%8 = load i64, i64* %7
%9 = load i64*, i64** %3
store i64 %8, i64* %9
%10 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i32 0, i32 1
%11 = load i64, i64* %10
%12 = load i64*, i64** %4
store i64 %11, i64* %12
ret void
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define void @get_time(i64* nocapture writeonly %0, i64* nocapture writeonly %1) {
%3 = alloca %struct.timeval
%4 = bitcast %struct.timeval* %3 to i8*
%5 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
%7 = load i64, i64* %6
store i64 %7, i64* %0
%8 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
%9 = load i64, i64* %8
store i64 %9, i64* %1
ret void
}
/* Variables and functions */
int NextCh();
int /*<<< orphan*/ SkipCh();
void SkipEoln(void) {
  if (NextCh() == 13) {
    SkipCh();
  }
  if (NextCh() == 10) {
    SkipCh();
  }
}


x86 assembly (clang, -O0):
<SkipEoln>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <NextCh@plt>
cmp    $0xd,%eax
jne    113b <SkipEoln+0x1b>
mov    $0x0,%al
call   1040 <SkipCh@plt>
mov    $0x0,%al
call   1030 <NextCh@plt>
cmp    $0xa,%eax
jne    1152 <SkipEoln+0x32>
mov    $0x0,%al
call   1040 <SkipCh@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<SkipEoln>:
push   %rax
xor    %eax,%eax
call   1030 <NextCh@plt>
cmp    $0xd,%eax
jne    1134 <SkipEoln+0x14>
xor    %eax,%eax
call   1040 <SkipCh@plt>
xor    %eax,%eax
call   1030 <NextCh@plt>
cmp    $0xa,%eax
jne    1148 <SkipEoln+0x28>
xor    %eax,%eax
pop    %rcx
jmp    1040 <SkipCh@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @SkipEoln() {
%1 = call i32 (...) @NextCh()
%2 = icmp eq i32 %1, 13
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 (...) @SkipCh()
br label %5
5: ; preds = %3, %0
%6 = call i32 (...) @NextCh()
%7 = icmp eq i32 %6, 10
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 (...) @SkipCh()
br label %10
10: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
define void @SkipEoln() {
%1 = tail call i32 (...) @NextCh()
%2 = icmp eq i32 %1, 13
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @SkipCh()
br label %5
5: ; preds = %3, %0
%6 = tail call i32 (...) @NextCh()
%7 = icmp eq i32 %6, 10
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 (...) @SkipCh()
br label %10
10: ; preds = %8, %5
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0xc5() {
  Assert_real((isbdigit(197) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isbdigit.c",
              990, ("isbdigit should be 0 for 0xc5"));
}


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

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

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xc5\00"
define void @t_isbdigit_0xc5() {
%1 = call i64 @isbdigit(i32 197)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 990, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xc5\00"
define void @t_isbdigit_0xc5() {
%1 = tail call i64 @isbdigit(i32 197)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 990, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned int xor128() {
  static unsigned int x = 123456789;
  static unsigned int y = 362436069;
  static unsigned int z = 521288629;
  static unsigned int w = 88675123;
  unsigned int t;
  t = x ^ (x << 11);
  x = y;
  y = z;
  z = w;
  return w = w ^ (w >> 19) ^ (t ^ (t >> 8));
}


x86 assembly (clang, -O0):
<xor128>:
push   %rbp
mov    %rsp,%rbp
mov    0x2f16(%rip),%eax
mov    0x2f10(%rip),%ecx
shl    $0xb,%ecx
xor    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    0x2f06(%rip),%eax
mov    %eax,0x2efc(%rip)
mov    0x2efe(%rip),%eax
mov    %eax,0x2ef4(%rip)
mov    0x2ef6(%rip),%eax
mov    %eax,0x2eec(%rip)
mov    0x2eea(%rip),%eax
mov    0x2ee4(%rip),%ecx
shr    $0x13,%ecx
xor    %ecx,%eax
mov    -0x4(%rbp),%ecx
mov    -0x4(%rbp),%edx
shr    $0x8,%edx
xor    %edx,%ecx
xor    %ecx,%eax
mov    %eax,0x2ecc(%rip)
pop    %rbp
ret

x86 assembly (clang, -O2):
<xor128>:
mov    0x2f1a(%rip),%ecx
mov    %ecx,%eax
shl    $0xb,%eax
xor    %ecx,%eax
mov    0x2f11(%rip),%ecx
mov    %ecx,0x2f07(%rip)
mov    0x2f09(%rip),%ecx
mov    %ecx,0x2eff(%rip)
mov    0x2f01(%rip),%ecx
mov    %ecx,0x2ef7(%rip)
mov    %eax,%edx
shr    $0x8,%edx
xor    %ecx,%eax
shr    $0x13,%ecx
xor    %edx,%eax
xor    %ecx,%eax
mov    %eax,0x2ee7(%rip)
ret

LLVM IR (-O0):
@xor128.x = internal global i32 123456789
@xor128.y = internal global i32 362436069
@xor128.z = internal global i32 521288629
@xor128.w = internal global i32 88675123
define i32 @xor128() {
%1 = alloca i32
%2 = load i32, i32* @xor128.x
%3 = load i32, i32* @xor128.x
%4 = shl i32 %3, 11
%5 = xor i32 %2, %4
store i32 %5, i32* %1
%6 = load i32, i32* @xor128.y
store i32 %6, i32* @xor128.x
%7 = load i32, i32* @xor128.z
store i32 %7, i32* @xor128.y
%8 = load i32, i32* @xor128.w
store i32 %8, i32* @xor128.z
%9 = load i32, i32* @xor128.w
%10 = load i32, i32* @xor128.w
%11 = lshr i32 %10, 19
%12 = xor i32 %9, %11
%13 = load i32, i32* %1
%14 = load i32, i32* %1
%15 = lshr i32 %14, 8
%16 = xor i32 %13, %15
%17 = xor i32 %12, %16
store i32 %17, i32* @xor128.w
ret i32 %17
}

LLVM IR (-O2):
@xor128.x = internal unnamed_addr global i32 123456789
@xor128.y = internal unnamed_addr global i32 362436069
@xor128.z = internal unnamed_addr global i32 521288629
@xor128.w = internal unnamed_addr global i32 88675123
define i32 @xor128() {
%1 = load i32, i32* @xor128.x
%2 = shl i32 %1, 11
%3 = xor i32 %2, %1
%4 = load i32, i32* @xor128.y
store i32 %4, i32* @xor128.x
%5 = load i32, i32* @xor128.z
store i32 %5, i32* @xor128.y
%6 = load i32, i32* @xor128.w
store i32 %6, i32* @xor128.z
%7 = lshr i32 %6, 19
%8 = lshr i32 %3, 8
%9 = xor i32 %8, %3
%10 = xor i32 %9, %6
%11 = xor i32 %10, %7
store i32 %11, i32* @xor128.w
ret i32 %11
}
int nop(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @nop() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ IsSorted(int *, int);
int /*<<< orphan*/ Shuffle(int *, int);
void BogoSort(int *data, int count) {
  while (!IsSorted(data, count))
    Shuffle(data, count);
}


x86 assembly (clang, -O0):
<BogoSort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <IsSorted@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1150 <BogoSort+0x30>
jmp    1161 <BogoSort+0x41>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1040 <Shuffle@plt>
jmp    112f <BogoSort+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BogoSort>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
nopl   0x0(%rax,%rax,1)
call   1030 <IsSorted@plt>
test   %eax,%eax
jne    114a <BogoSort+0x2a>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1040 <Shuffle@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
jmp    1130 <BogoSort+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @BogoSort(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %11, %2
%6 = load i32*, i32** %3
%7 = load i32, i32* %4
%8 = call i32 @IsSorted(i32* %6, i32 %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br i1 %10, label %11, label %15
11: ; preds = %5
%12 = load i32*, i32** %3
%13 = load i32, i32* %4
%14 = call i32 @Shuffle(i32* %12, i32 %13)
br label %5
15: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @BogoSort(i32* %0, i32 %1) {
%3 = tail call i32 @IsSorted(i32* %0, i32 %1)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2, %5
%6 = tail call i32 @Shuffle(i32* %0, i32 %1)
%7 = tail call i32 @IsSorted(i32* %0, i32 %1)
%8 = icmp eq i32 %7, 0
br i1 %8, label %5, label %9
9: ; preds = %5, %2
ret void
}
void genlh() {}


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

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

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

LLVM IR (-O2):
define void @genlh() {
ret void
}
/* Variables and functions */
int MaxInt(int const, int const);
int MaxInt4(const int x, const int y, const int z, const int w) {
  return MaxInt(MaxInt(x, y), MaxInt(z, w));
}


x86 assembly (clang, -O0):
<MaxInt4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <MaxInt@plt>
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <MaxInt@plt>
mov    -0x14(%rbp),%edi
mov    %eax,%esi
call   1030 <MaxInt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MaxInt4>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
call   1030 <MaxInt@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r14d,%esi
call   1030 <MaxInt@plt>
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <MaxInt@plt>

LLVM IR (-O0):
define i32 @MaxInt4(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i32 @MaxInt(i32 %9, i32 %10)
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = call i32 @MaxInt(i32 %12, i32 %13)
%15 = call i32 @MaxInt(i32 %11, i32 %14)
ret i32 %15
}

LLVM IR (-O2):
define i32 @MaxInt4(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @MaxInt(i32 %0, i32 %1)
%6 = tail call i32 @MaxInt(i32 %2, i32 %3)
%7 = tail call i32 @MaxInt(i32 %5, i32 %6)
ret i32 %7
}
/* Variables and functions */
scalar_t__ en_US_isupper(int);
int en_US_tolower(int c) {
  { return en_US_isupper(c) ? (c - 'A' + 'a') : c; }
}


x86 assembly (clang, -O0):
<en_US_tolower>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <en_US_isupper@plt>
cmp    $0x0,%rax
je     113e <en_US_tolower+0x2e>
mov    -0x4(%rbp),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %eax,-0x8(%rbp)
jmp    1144 <en_US_tolower+0x34>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @en_US_tolower(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @en_US_isupper(i32 %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* %2
%8 = sub nsw i32 %7, 65
%9 = add nsw i32 %8, 97
br label %12
10: ; preds = %1
%11 = load i32, i32* %2
br label %12
12: ; preds = %10, %6
%13 = phi i32 [ %9, %6 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @en_US_tolower(i32 %0) {
%2 = tail call i64 @en_US_isupper(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = add nsw i32 %0, 32
%5 = select i1 %3, i32 %0, i32 %4
ret i32 %5
}
int is_list_start(int c) { return c == '('; }


x86 assembly (clang, -O0):
<is_list_start>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x28,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_list_start>:
xor    %eax,%eax
cmp    $0x28,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @is_list_start(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 40
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @is_list_start(i32 %0) {
%2 = icmp eq i32 %0, 40
%3 = zext i1 %2 to i32
ret i32 %3
}
void proc_remove(struct proc_dir_entry *de) {}


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

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

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

LLVM IR (-O2):
%struct.proc_dir_entry = type opaque
define void @proc_remove(%struct.proc_dir_entry* nocapture %0) {
ret void
}
/* Variables and functions */
int getint(char *, int);
int cantJugadores(void) {
  int jugadores;
  do
    jugadores = getint("Cuantos jugadores? ...(Maximo %d)... ", 20);
  while (jugadores <= 0 || jugadores > 20);
  return jugadores;
}


x86 assembly (clang, -O0):
<cantJugadores>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
mov    $0x14,%esi
call   1030 <getint@plt>
mov    %eax,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1145 <cantJugadores+0x35>
cmpl   $0x14,-0x4(%rbp)
setg   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
test   $0x1,%al
jne    1118 <cantJugadores+0x8>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cantJugadores>:
push   %rbx
lea    0xee8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x14,%esi
call   1030 <getint@plt>
lea    -0x15(%rax),%ecx
cmp    $0xffffffec,%ecx
jb     1120 <cantJugadores+0x10>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"Cuantos jugadores? ...(Maximo %d)... \00"
define i32 @cantJugadores() {
%1 = alloca i32
br label %2
2: ; preds = %10, %0
%3 = call i32 @getint(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 20)
store i32 %3, i32* %1
br label %4
4: ; preds = %2
%5 = load i32, i32* %1
%6 = icmp sle i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %4
%8 = load i32, i32* %1
%9 = icmp sgt i32 %8, 20
br label %10
10: ; preds = %7, %4
%11 = phi i1 [ true, %4 ], [ %9, %7 ]
br i1 %11, label %2, label %12
12: ; preds = %10
%13 = load i32, i32* %1
ret i32 %13
}

LLVM IR (-O2):
@.str = [38 x i8] c"Cuantos jugadores? ...(Maximo %d)... \00"
define i32 @cantJugadores() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 @getint(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 20)
%3 = add i32 %2, -21
%4 = icmp ult i32 %3, -20
br i1 %4, label %1, label %5
5: ; preds = %1
ret i32 %2
}
void cmain() { int sum = 1 + 1; }


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

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

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

LLVM IR (-O2):
define void @cmain() {
ret void
}
void unrom_reset() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ isal_deflate_icf_body_hash_hist_base(struct isal_zstream *);
void isal_deflate_icf_body_lvl2(struct isal_zstream *stream) {
  isal_deflate_icf_body_hash_hist_base(stream);
}


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

x86 assembly (clang, -O2):
<isal_deflate_icf_body_lvl2>:
jmp    1030 <isal_deflate_icf_body_hash_hist_base@plt>

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

LLVM IR (-O2):
%struct.isal_zstream = type { i32 }
define void @isal_deflate_icf_body_lvl2(%struct.isal_zstream* %0) {
%2 = tail call i32 @isal_deflate_icf_body_hash_hist_base(%struct.isal_zstream* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ e_lsr();
int /*<<< orphan*/ e_writeback();
int /*<<< orphan*/ e_zpx();
void e_lsr_zpx() {
  e_zpx();
  e_lsr();
  e_writeback();
}


x86 assembly (clang, -O0):
<e_lsr_zpx>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <e_zpx@plt>
mov    $0x0,%al
call   1040 <e_lsr@plt>
mov    $0x0,%al
call   1030 <e_writeback@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<e_lsr_zpx>:
push   %rax
xor    %eax,%eax
call   1050 <e_zpx@plt>
xor    %eax,%eax
call   1040 <e_lsr@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <e_writeback@plt>

LLVM IR (-O0):
define void @e_lsr_zpx() {
%1 = call i32 (...) @e_zpx()
%2 = call i32 (...) @e_lsr()
%3 = call i32 (...) @e_writeback()
ret void
}

LLVM IR (-O2):
define void @e_lsr_zpx() {
%1 = tail call i32 (...) @e_zpx()
%2 = tail call i32 (...) @e_lsr()
%3 = tail call i32 (...) @e_writeback()
ret void
}