xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0xc0() {
  Assert_real((ispunct(192) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_ispunct.c",
              965, ("ispunct should be 0 for 0xc0"));
}


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

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

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0xc0\00"
define void @t_ispunct_0xc0() {
%1 = call i64 @ispunct(i32 192)
%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 965, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0xc0\00"
define void @t_ispunct_0xc0() {
%1 = tail call i64 @ispunct(i32 192)
%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 965, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float tk;
  printf("Kelvin: ");
  scanf("%f", &tk);
  printf("Celsius: %.2f", tk - 273.15);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea2(%rip),%xmm1
subsd  %xmm1,%xmm0
lea    0xeab(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  0xeae(%rip),%xmm0
lea    0xebb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Kelvin: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [14 x i8] c"Celsius: %.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fsub double %6, 2.731500e+02
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"Kelvin: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [14 x i8] c"Celsius: %.2f\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fpext float %5 to double
%7 = fadd double %6, -2.731500e+02
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), double %7)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ buffer;

/* Variables and functions */
int /*<<< orphan*/ trap_Cvar_VariableStringBuffer(char const *, char *, int);
char *UI_Cvar_VariableString(const char *var_name) {
  static char buffer[1024];
  trap_Cvar_VariableStringBuffer(var_name, buffer, sizeof(buffer));
  return buffer;
}


x86 assembly (clang, -O0):
<UI_Cvar_VariableString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0x2f19(%rip),%rsi
mov    $0x400,%edx
call   1030 <trap_Cvar_VariableStringBuffer@plt>
lea    0x2f08(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UI_Cvar_VariableString>:
push   %rbx
lea    0x2f28(%rip),%rbx
mov    %rbx,%rsi
mov    $0x400,%edx
call   1030 <trap_Cvar_VariableStringBuffer@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@UI_Cvar_VariableString.buffer = internal global [1024 x i8] zeroinitializer
define i8* @UI_Cvar_VariableString(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @trap_Cvar_VariableStringBuffer(i8* %3, i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_Cvar_VariableString.buffer, i64 0, i64 0), i32 1024)
ret i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_Cvar_VariableString.buffer, i64 0, i64 0)
}

LLVM IR (-O2):
@UI_Cvar_VariableString.buffer = internal global [1024 x i8] zeroinitializer
define i8* @UI_Cvar_VariableString(i8* %0) {
%2 = tail call i32 @trap_Cvar_VariableStringBuffer(i8* %0, i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_Cvar_VariableString.buffer, i64 0, i64 0), i32 1024)
ret i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_Cvar_VariableString.buffer, i64 0, i64 0)
}
int ICP(char a) {
  switch (a) {
  case ')':
    return -2;
  case '^':
    return 4;
  case '*':
    return 2;
  case '/':
    return 2;
  case '+':
    return 1;
  case '-':
    return 1;
  case '(':
    return 4;
  case '$':
    return -1;
  }
}


x86 assembly (clang, -O0):
<ICP>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
add    $0xffffffdc,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x3a,%eax
ja     118f <ICP+0x8f>
mov    -0x10(%rbp),%rax
lea    0xed5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xfffffffe,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0x4,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0x2,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0x2,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0x1,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0x1,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0x4,-0x4(%rbp)
jmp    118f <ICP+0x8f>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ICP>:
mov    $0xfffffffe,%eax
add    $0xffffffdc,%edi
cmp    $0x3a,%edi
ja     1134 <ICP+0x34>
lea    0xeec(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
mov    $0x1,%eax
ret
mov    $0x2,%eax
ret
mov    $0x4,%eax
ret
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @ICP(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %14 [
i32 41, label %6
i32 94, label %7
i32 42, label %8
i32 47, label %9
i32 43, label %10
i32 45, label %11
i32 40, label %12
i32 36, label %13
]
6: ; preds = %1
store i32 -2, i32* %2
br label %14
7: ; preds = %1
store i32 4, i32* %2
br label %14
8: ; preds = %1
store i32 2, i32* %2
br label %14
9: ; preds = %1
store i32 2, i32* %2
br label %14
10: ; preds = %1
store i32 1, i32* %2
br label %14
11: ; preds = %1
store i32 1, i32* %2
br label %14
12: ; preds = %1
store i32 4, i32* %2
br label %14
13: ; preds = %1
store i32 -1, i32* %2
br label %14
14: ; preds = %6, %7, %8, %9, %10, %11, %12, %13, %1
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
define i32 @ICP(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %10 [
i32 36, label %9
i32 94, label %3
i32 42, label %4
i32 47, label %5
i32 43, label %6
i32 45, label %7
i32 40, label %8
]
3: ; preds = %1
br label %10
4: ; preds = %1
br label %10
5: ; preds = %1
br label %10
6: ; preds = %1
br label %10
7: ; preds = %1
br label %10
8: ; preds = %1
br label %10
9: ; preds = %1
br label %10
10: ; preds = %3, %4, %5, %6, %7, %8, %9, %1
%11 = phi i32 [ -1, %9 ], [ 4, %8 ], [ 1, %7 ], [ 1, %6 ], [ 2, %5 ], [ 2, %4 ], [ 4, %3 ], [ -2, %1 ]
ret i32 %11
}
unsigned short SIO1_readBaud16(void) { return 0; }


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

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

LLVM IR (-O0):
define zeroext i16 @SIO1_readBaud16() {
ret i16 0
}

LLVM IR (-O2):
define zeroext i16 @SIO1_readBaud16() {
ret i16 0
}
/* Variables and functions */
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ parser(char *);
int /*<<< orphan*/ printf(char *);
void main() {
  char expr[100];
  printf("\nDigite uma expressao: ");
  gets(expr);
  parser(expr);
  printf("Expressao sintaticamente correta\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
lea    -0x70(%rbp),%rdi
call   1050 <gets@plt>
lea    -0x70(%rbp),%rdi
call   1040 <parser@plt>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x70,%rsp
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <gets@plt>
mov    %rbx,%rdi
call   1050 <parser@plt>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"\0ADigite uma expressao: \00"
@.str.1 = [34 x i8] c"Expressao sintaticamente correta\0A\00"
define void @main() {
%1 = alloca [100 x i8]
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = call i32 @gets(i8* %3)
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = call i32 @parser(i8* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"\0ADigite uma expressao: \00"
@str = [33 x i8] c"Expressao sintaticamente correta\00"
define void @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @gets(i8* %2)
%5 = call i32 @parser(i8* %2)
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
double exp(double);
double coth(double x) {
  double top, bottom;
  top = exp(2.0 * x) + 1.0;
  bottom = exp(2.0 * x) - 1.0;
  return (top / bottom);
}


x86 assembly (clang, -O0):
<coth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xee3(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <exp@plt>
movsd  0xec9(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xec0(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <exp@plt>
movsd  0xea6(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coth>:
sub    $0x18,%rsp
addsd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
call   1030 <exp@plt>
addsd  0xed5(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <exp@plt>
addsd  0xec4(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @coth(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %2
%5 = load double, double* %2
%6 = fmul double 2.000000e+00, %5
%7 = call double @exp(double %6)
%8 = fadd double %7, 1.000000e+00
store double %8, double* %3
%9 = load double, double* %2
%10 = fmul double 2.000000e+00, %9
%11 = call double @exp(double %10)
%12 = fsub double %11, 1.000000e+00
store double %12, double* %4
%13 = load double, double* %3
%14 = load double, double* %4
%15 = fdiv double %13, %14
ret double %15
}

LLVM IR (-O2):
define double @coth(double %0) {
%2 = fmul double %0, 2.000000e+00
%3 = tail call double @exp(double %2)
%4 = fadd double %3, 1.000000e+00
%5 = tail call double @exp(double %2)
%6 = fadd double %5, -1.000000e+00
%7 = fdiv double %4, %6
ret double %7
}
/* Variables and functions */
int /*<<< orphan*/ SaveLineToFile();
int /*<<< orphan*/ SaveSandToFile();
int /*<<< orphan*/ printf(char *);
void PauseRun(int x, int y, int in) {
  printf("\nPaused \n");
  if (1)
    SaveLineToFile();
  if (2)
    SaveSandToFile();
  if (1)
    return;
  printf("\nend Pause\n");
}


x86 assembly (clang, -O0):
<PauseRun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <SaveLineToFile@plt>
mov    $0x0,%al
call   1050 <SaveSandToFile@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PauseRun>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <SaveLineToFile@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <SaveSandToFile@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\0APaused \0A\00"
define void @PauseRun(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 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @SaveLineToFile()
%9 = call i32 (...) @SaveSandToFile()
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"\0APaused \00"
define void @PauseRun(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 (...) @SaveLineToFile()
%6 = tail call i32 (...) @SaveSandToFile()
ret void
}
int roundup(int n) {
  int r = 1;
  while (n > r)
    r <<= 2;
  return r;
}


x86 assembly (clang, -O0):
<roundup>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1128 <roundup+0x28>
mov    -0x8(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <roundup+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<roundup>:
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ecx,%eax
lea    0x0(,%rax,4),%ecx
cmp    %edi,%eax
jl     1110 <roundup+0x10>
ret

LLVM IR (-O0):
define i32 @roundup(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %3
br label %4
4: ; preds = %8, %1
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %11
8: ; preds = %4
%9 = load i32, i32* %3
%10 = shl i32 %9, 2
store i32 %10, i32* %3
br label %4
11: ; preds = %4
%12 = load i32, i32* %3
ret i32 %12
}

LLVM IR (-O2):
define i32 @roundup(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 1, %1 ], [ %5, %2 ]
%4 = icmp slt i32 %3, %0
%5 = shl i32 %3, 2
br i1 %4, label %2, label %6
6: ; preds = %2
ret i32 %3
}
void foo636() {}


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

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

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

LLVM IR (-O2):
define void @foo636() {
ret void
}
float delay_t_faustpower2_f(float value) { return (value * value); }


x86 assembly (clang, -O0):
<delay_t_faustpower2_f>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<delay_t_faustpower2_f>:
mulss  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @delay_t_faustpower2_f(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = load float, float* %2
%5 = fmul float %3, %4
ret float %5
}

LLVM IR (-O2):
define float @delay_t_faustpower2_f(float %0) {
%2 = fmul float %0, %0
ret float %2
}
void flush_nfo_tlb() {}


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

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

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

LLVM IR (-O2):
define void @flush_nfo_tlb() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ptrcheck_fini();
void quit(void) {
  static char quitting;
  if (quitting) {
    return;
  }
  quitting = 1;
  ptrcheck_fini();
}


x86 assembly (clang, -O0):
<quit>:
push   %rbp
mov    %rsp,%rbp
cmpb   $0x0,0x2f0e(%rip)
je     1126 <quit+0x16>
jmp    1134 <quit+0x24>
movb   $0x1,0x2efc(%rip)
mov    $0x0,%al
call   1030 <ptrcheck_fini@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<quit>:
cmpb   $0x0,0x2f12(%rip)
je     111a <quit+0xa>
ret
movb   $0x1,0x2f08(%rip)
xor    %eax,%eax
jmp    1030 <ptrcheck_fini@plt>

LLVM IR (-O0):
@quit.quitting = internal global i8 0
define void @quit() {
%1 = load i8, i8* @quit.quitting
%2 = icmp ne i8 %1, 0
br i1 %2, label %3, label %4
3: ; preds = %0
br label %6
4: ; preds = %0
store i8 1, i8* @quit.quitting
%5 = call i32 (...) @ptrcheck_fini()
br label %6
6: ; preds = %4, %3
ret void
}

LLVM IR (-O2):
@quit.quitting = internal unnamed_addr global i1 false
define void @quit() {
%1 = load i1, i1* @quit.quitting
br i1 %1, label %4, label %2
2: ; preds = %0
store i1 true, i1* @quit.quitting
%3 = tail call i32 (...) @ptrcheck_fini()
br label %4
4: ; preds = %0, %2
ret void
}
int test_imm_02int8_mem(signed char *val) {
  return ((*val) & (-0x02 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_02int8_mem>:
cmpb   $0x2,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmovb  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_02int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp ult i8 %2, 2
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
char *strlwr(s)
char *s;
{
  char *t;
  for (t = s; *t; t++)
    *t = (isupper(*t) ? (*t) - 'A' + 'a' : (*t));
  return s;
}


x86 assembly (clang, -O0):
<strlwr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1181 <strlwr+0x71>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isupper@plt>
cmp    $0x0,%eax
je     115b <strlwr+0x4b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x41,%eax
add    $0x61,%eax
mov    %eax,-0x14(%rbp)
jmp    1165 <strlwr+0x55>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <strlwr+0x14>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlwr>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
mov    (%rdi),%al
test   %al,%al
je     115a <strlwr+0x4a>
lea    0x1(%r14),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl %al,%r15d
mov    %r15d,%edi
call   1030 <isupper@plt>
lea    0x20(%r15),%ecx
test   %eax,%eax
movzbl %r15b,%eax
movzbl %cl,%ecx
cmove  %eax,%ecx
mov    %cl,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <strlwr+0x20>
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i8* @strlwr(i8* returned %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %13, %4 ], [ %2, %1 ]
%6 = phi i8* [ %12, %4 ], [ %0, %1 ]
%7 = sext i8 %5 to i32
%8 = tail call i32 @isupper(i32 %7)
%9 = icmp eq i32 %8, 0
%10 = add i8 %5, 32
%11 = select i1 %9, i8 %5, i8 %10
store i8 %11, i8* %6
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %4, %1
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ fe_irc_dcc_deinit();
int /*<<< orphan*/ fe_irc_notifylist_deinit();
void fe_irc_modules_deinit(void) {
  fe_irc_notifylist_deinit();
  fe_irc_dcc_deinit();
}


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

x86 assembly (clang, -O2):
<fe_irc_modules_deinit>:
push   %rax
xor    %eax,%eax
call   1030 <fe_irc_notifylist_deinit@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <fe_irc_dcc_deinit@plt>

LLVM IR (-O0):
define void @fe_irc_modules_deinit() {
%1 = call i32 (...) @fe_irc_notifylist_deinit()
%2 = call i32 (...) @fe_irc_dcc_deinit()
ret void
}

LLVM IR (-O2):
define void @fe_irc_modules_deinit() {
%1 = tail call i32 (...) @fe_irc_notifylist_deinit()
%2 = tail call i32 (...) @fe_irc_dcc_deinit()
ret void
}
/* Type definitions */
struct RealFFT {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct RealFFT *);
void WebRtcSpl_FreeRealFFT(struct RealFFT *self) {
  if (self != NULL) {
    free(self);
  }
}


x86 assembly (clang, -O0):
<WebRtcSpl_FreeRealFFT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <WebRtcSpl_FreeRealFFT+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WebRtcSpl_FreeRealFFT>:
test   %rdi,%rdi
je     111a <WebRtcSpl_FreeRealFFT+0xa>
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.RealFFT = type { i32 }
define void @WebRtcSpl_FreeRealFFT(%struct.RealFFT* %0) {
%2 = alloca %struct.RealFFT*
store %struct.RealFFT* %0, %struct.RealFFT** %2
%3 = load %struct.RealFFT*, %struct.RealFFT** %2
%4 = icmp ne %struct.RealFFT* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load %struct.RealFFT*, %struct.RealFFT** %2
%7 = call i32 @free(%struct.RealFFT* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
%struct.RealFFT = type { i32 }
define void @WebRtcSpl_FreeRealFFT(%struct.RealFFT* %0) {
%2 = icmp eq %struct.RealFFT* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(%struct.RealFFT* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_slli_epi32(int /*<<< orphan*/, int);
__m128i __attribute__((no, unused)) testneg16(__m128i s1) {
  return _mm_slli_epi32(s1, -16);
}


x86 assembly (clang, -O0):
<testneg16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0xfffffff0,%esi
call   1030 <_mm_slli_epi32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testneg16>:
mov    $0xfffffff0,%esi
jmp    1030 <_mm_slli_epi32@plt>

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

LLVM IR (-O2):
define i32 @testneg16(i32 %0) {
%2 = tail call i32 @_mm_slli_epi32(i32 %0, i32 -16)
ret i32 %2
}
int test_imm_85uint16_reg(unsigned short val) {
  return ((val) & (0x85 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_85uint16_reg(i16 zeroext %0) {
%2 = and i16 %0, 133
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void glVertexAttrib2fv(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glVertexAttrib2fv() {
ret void
}
void nseel_asm_sin(void) { __asm__("fsin\n"); }


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

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

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

LLVM IR (-O2):
define void @nseel_asm_sin() {
tail call void asm sideeffect "fsin\0A", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  int i;
  for (i = 1; i <= 255; i++) {
    printf(" %d - %c\n", i, i);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xff,-0x8(%rbp)
jg     1153 <main+0x43>
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xee0(%rip),%r14
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x100,%ebx
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [10 x i8] c" %d - %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %3
3: ; preds = %10, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 255
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
br label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %3
13: ; preds = %3
%14 = load i32, i32* %1
ret i32 %14
}

LLVM IR (-O2):
@.str = [10 x i8] c" %d - %c\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %4, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 256
br i1 %5, label %6, label %1
6: ; preds = %1
ret i32 0
}
/* Variables and functions */
scalar_t__ rdv40_spiffs_mounted();
int rdv40_spiffs_unmount();
int rdv40_spiffs_lazy_unmount(void) {
  int changed = 0;
  if (rdv40_spiffs_mounted()) {
    changed = rdv40_spiffs_unmount();
    changed = !changed;
  }
  return changed;
}


x86 assembly (clang, -O0):
<rdv40_spiffs_lazy_unmount>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <rdv40_spiffs_mounted@plt>
cmp    $0x0,%rax
je     115b <rdv40_spiffs_lazy_unmount+0x3b>
mov    $0x0,%al
call   1040 <rdv40_spiffs_unmount@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rdv40_spiffs_lazy_unmount>:
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <rdv40_spiffs_mounted@plt>
test   %rax,%rax
je     113d <rdv40_spiffs_lazy_unmount+0x1d>
xor    %eax,%eax
call   1040 <rdv40_spiffs_unmount@plt>
xor    %ebx,%ebx
test   %eax,%eax
sete   %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @rdv40_spiffs_lazy_unmount() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @rdv40_spiffs_mounted()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %10
4: ; preds = %0
%5 = call i32 (...) @rdv40_spiffs_unmount()
store i32 %5, i32* %1
%6 = load i32, i32* %1
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
store i32 %9, i32* %1
br label %10
10: ; preds = %4, %0
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
define i32 @rdv40_spiffs_lazy_unmount() {
%1 = tail call i64 (...) @rdv40_spiffs_mounted()
%2 = icmp eq i64 %1, 0
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = tail call i32 (...) @rdv40_spiffs_unmount()
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ %6, %3 ], [ 0, %0 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ kannotate_write(char *, int);
void gator_annotate_marker(void) {
  int marker_annotation = 0x00021c;
  kannotate_write((char *)&marker_annotation, 3);
}


x86 assembly (clang, -O0):
<gator_annotate_marker>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x21c,-0x4(%rbp)
lea    -0x4(%rbp),%rdi
mov    $0x3,%esi
call   1030 <kannotate_write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gator_annotate_marker>:
push   %rax
movl   $0x21c,0x4(%rsp)
lea    0x4(%rsp),%rdi
mov    $0x3,%esi
call   1030 <kannotate_write@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @gator_annotate_marker() {
%1 = alloca i32
store i32 540, i32* %1
%2 = bitcast i32* %1 to i8*
%3 = call i32 @kannotate_write(i8* %2, i32 3)
ret void
}

LLVM IR (-O2):
define void @gator_annotate_marker() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 540, i32* %1
%3 = call i32 @kannotate_write(i8* %2, i32 3)
ret void
}
/* Variables and functions */
int open(char const *, int, int);
int fild_Open(const char *pathname, int flags, int mode) {
  return open(pathname, flags, mode);
}


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

x86 assembly (clang, -O2):
<fild_Open>:
jmp    1030 <open@plt>

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

LLVM IR (-O2):
define i32 @fild_Open(i8* nocapture %0, i32 %1, i32 %2) {
%4 = tail call i32 @open(i8* %0, i32 %1, i32 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ debug(char *, ...);
int M351_f(char *s) {
  debug("M351_f(const char *s) is not yet implemented!\n");
  debug("%s\n", s);
  return 1;
}


x86 assembly (clang, -O0):
<M351_f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <debug@plt>
mov    -0x8(%rbp),%rsi
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <debug@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<M351_f>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   1030 <debug@plt>
lea    0xf06(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <debug@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [47 x i8] c"M351_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @M351_f(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 1
}

LLVM IR (-O2):
@.str = [47 x i8] c"M351_f(const char *s) is not yet implemented!\0A\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @M351_f(i8* %0) {
%2 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @debug(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret i32 1
}
/* Variables and functions */
scalar_t__ sign_and_verify(int);
int dsa_large_digest_test(void) {
  return sign_and_verify(33) && sign_and_verify(64);
}


x86 assembly (clang, -O0):
<dsa_large_digest_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x21,%edi
call   1030 <sign_and_verify@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
je     1148 <dsa_large_digest_test+0x38>
mov    $0x40,%edi
call   1030 <sign_and_verify@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dsa_large_digest_test>:
push   %rax
mov    $0x21,%edi
call   1030 <sign_and_verify@plt>
test   %rax,%rax
je     1137 <dsa_large_digest_test+0x27>
mov    $0x40,%edi
call   1030 <sign_and_verify@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @dsa_large_digest_test() {
%1 = call i64 @sign_and_verify(i32 33)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i64 @sign_and_verify(i32 64)
%5 = icmp ne i64 %4, 0
br label %6
6: ; preds = %3, %0
%7 = phi i1 [ false, %0 ], [ %5, %3 ]
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @dsa_large_digest_test() {
%1 = tail call i64 @sign_and_verify(i32 33)
%2 = icmp eq i64 %1, 0
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = tail call i64 @sign_and_verify(i32 64)
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ 0, %0 ], [ %6, %3 ]
ret i32 %8
}
void gtk_im_context_get_preedit_string() {}


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

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

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

LLVM IR (-O2):
define void @gtk_im_context_get_preedit_string() {
ret void
}
struct edit *get_raw_edit(void *raw) {
  return raw;
}


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

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

LLVM IR (-O0):
%struct.edit = type opaque
define %struct.edit* @get_raw_edit(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.edit*
ret %struct.edit* %4
}

LLVM IR (-O2):
%struct.edit = type opaque
define %struct.edit* @get_raw_edit(i8* readnone %0) {
%2 = bitcast i8* %0 to %struct.edit*
ret %struct.edit* %2
}
double DegtoMOA(double deg) { return deg * 60; }


x86 assembly (clang, -O0):
<DegtoMOA>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<DegtoMOA>:
mulsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @DegtoMOA(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double %3, 6.000000e+01
ret double %4
}

LLVM IR (-O2):
define double @DegtoMOA(double %0) {
%2 = fmul double %0, 6.000000e+01
ret double %2
}
int test_imm_86uint8_mem(unsigned char *val) {
  return ((*val) & (-0x86 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_86uint8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, 122
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void setprogname(const char *progname) {}


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

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

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

LLVM IR (-O2):
define void @setprogname(i8* nocapture %0) {
ret void
}
/* Variables and functions */
void *malloc(size_t);
void *u(size_t n) { return malloc(n); }


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

x86 assembly (clang, -O2):
<u>:
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define i8* @u(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i8* @malloc(i64 %3)
ret i8* %4
}

LLVM IR (-O2):
define noalias i8* @u(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int const);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void error(const char *msg, const int err) {
  fprintf(stderr, "%s\n", msg);
  exit(err);
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xebd(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<error>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rdx
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
lea    0xeca(%rip),%rsi
call   1030 <fprintf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define void @error(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* %4
%9 = call i32 @exit(i32 %8)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define void @error(i8* %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i32 @exit(i32 %1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ CheckMask(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ SIGUSR1;
int /*<<< orphan*/ SIGUSR2;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ raise(int /*<<< orphan*/);
void HandleUSR1(int sig) {
  if (!CheckMask(SIGUSR1, 0))
    exit(1);
  raise(SIGUSR2);
}


x86 assembly (clang, -O0):
<HandleUSR1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <CheckMask@plt>
cmp    $0x0,%eax
jne    115e <HandleUSR1+0x2e>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
call   1030 <raise@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HandleUSR1>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <CheckMask@plt>
test   %eax,%eax
je     1154 <HandleUSR1+0x24>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1030 <raise@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
define void @HandleUSR1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @SIGUSR1
%4 = call i32 @CheckMask(i32 %3, i32 0)
%5 = icmp ne i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = call i32 @exit(i32 1)
unreachable
8: ; preds = %1
%9 = load i32, i32* @SIGUSR2
%10 = call i32 @raise(i32 %9)
ret void
}

LLVM IR (-O2):
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
define void @HandleUSR1(i32 %0) {
%2 = load i32, i32* @SIGUSR1
%3 = tail call i32 @CheckMask(i32 %2, i32 0)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %1
%8 = load i32, i32* @SIGUSR2
%9 = tail call i32 @raise(i32 %8)
ret void
}
/* Variables and functions */
long ptr2offset(void *ptr, void *shm_ptr) {
  if (ptr == NULL)
    return -1;
  return ptr - shm_ptr;
}


x86 assembly (clang, -O0):
<ptr2offset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1124 <ptr2offset+0x24>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    1133 <ptr2offset+0x33>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ptr2offset>:
mov    %rdi,%rcx
sub    %rsi,%rcx
cmp    $0x1,%rdi
sbb    %rax,%rax
or     %rcx,%rax
ret

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

LLVM IR (-O2):
define i64 @ptr2offset(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
%4 = ptrtoint i8* %0 to i64
%5 = ptrtoint i8* %1 to i64
%6 = sub i64 %4, %5
%7 = select i1 %3, i64 -1, i64 %6
ret i64 %7
}
char *ehnlc_strchrnul(const char *s, int c) {
  for (; *s && *s != c; ++s)
    ;
  return (char *)s;
}


x86 assembly (clang, -O0):
<ehnlc_strchrnul>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     1130 <ehnlc_strchrnul+0x30>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    -0xc(%rbp),%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1140 <ehnlc_strchrnul+0x40>
jmp    1156 <ehnlc_strchrnul+0x56>
jmp    1145 <ehnlc_strchrnul+0x45>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110b <ehnlc_strchrnul+0xb>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ehnlc_strchrnul>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movsbl 0x1(%rax),%ecx
add    $0x1,%rax
test   %ecx,%ecx
je     1120 <ehnlc_strchrnul+0x20>
cmp    %esi,%ecx
jne    1110 <ehnlc_strchrnul+0x10>
ret

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

LLVM IR (-O2):
define i8* @ehnlc_strchrnul(i8* %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %10, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = sext i8 %5 to i32
%8 = icmp eq i32 %7, %1
%9 = or i1 %6, %8
%10 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %9, label %11, label %3
11: ; preds = %3
ret i8* %4
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
uint8_t memGetInvalid8(uint16_t addr) {
  (void)addr;
  return 0xFF;
}


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

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

LLVM IR (-O0):
define i32 @memGetInvalid8(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
ret i32 255
}

LLVM IR (-O2):
define i32 @memGetInvalid8(i32 %0) {
ret i32 255
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ munmap(char *, int);
void close_lcd(int fd, char *fb, int fbsize) {
  munmap(fb, fbsize);
  close(fd);
}


x86 assembly (clang, -O0):
<close_lcd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1040 <munmap@plt>
mov    -0x4(%rbp),%edi
call   1030 <close@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close_lcd>:
push   %rbx
mov    %edi,%ebx
mov    %rsi,%rdi
mov    %edx,%esi
call   1040 <munmap@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <close@plt>

LLVM IR (-O0):
define void @close_lcd(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %5
%8 = load i32, i32* %6
%9 = call i32 @munmap(i8* %7, i32 %8)
%10 = load i32, i32* %4
%11 = call i32 @close(i32 %10)
ret void
}

LLVM IR (-O2):
define void @close_lcd(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 @munmap(i8* %1, i32 %2)
%5 = tail call i32 @close(i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ pollen_parts_Led_toggle__E();
void test5_BlinkMilli_toggle__I() { pollen_parts_Led_toggle__E(); }


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

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

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

LLVM IR (-O2):
define void @test5_BlinkMilli_toggle__I() {
%1 = tail call i32 (...) @pollen_parts_Led_toggle__E()
ret void
}