xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fclose(int /*<<< orphan*/ *);
int close_log_file(FILE *log_file) { return fclose(log_file); }


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

x86 assembly (clang, -O2):
<close_log_file>:
jmp    1030 <fclose@plt>

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

LLVM IR (-O2):
define i32 @close_log_file(i32* nocapture %0) {
%2 = tail call i32 @fclose(i32* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void _usage(void) {
  fprintf(stderr,
          "Usage: icsconfig DEVICE [CMD] [OPTIONS]\n"
          "  where CMD is:\n"
          "  list             - display config\n"
          "  get NAME         - display value of config attribute NAME\n"
          "  set NAME=VALUE   - set config attribute NAME to VALUE\n"
          "  reload           - reload config from flash\n"
          "  factory          - reload flash with factory defaults\n"
          "  commit           - save config to flash for next reboot\n"
          "  errlog           - display device error log\n"
          "  reboot           - reboot device\n");
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [450 x i8] c"Usage: icsconfig DEVICE [CMD] [OPTIONS]\0A where CMD is:\0A list - display config\0A get NAME - display value of config attribute NAME\0A set NAME=VALUE - set config attribute NAME to VALUE\0A reload - reload config from flash\0A factory - reload flash with factory defaults\0A commit - save config to flash for next reboot\0A errlog - display device error log\0A reboot - reboot device\0A\00"
define void @_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([450 x i8], [450 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [450 x i8] c"Usage: icsconfig DEVICE [CMD] [OPTIONS]\0A where CMD is:\0A list - display config\0A get NAME - display value of config attribute NAME\0A set NAME=VALUE - set config attribute NAME to VALUE\0A reload - reload config from flash\0A factory - reload flash with factory defaults\0A commit - save config to flash for next reboot\0A errlog - display device error log\0A reboot - reboot device\0A\00"
define void @_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([450 x i8], [450 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
int main(int argc, char **argv) {
  if (0xFFFFFFFFFFFFFFFF == 18446744073709551615)
    return 42;
  else
    return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x2a,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 42
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ test(double, int *);
int main(void) {
  int eval;
  test(3.0, &eval);
  test(3.5, &eval);
  test(4.0, &eval);
  test(5.0, &eval);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xee1(%rip),%xmm0
lea    -0x8(%rbp),%rdi
call   1040 <test@plt>
movsd  0xec8(%rip),%xmm0
lea    -0x8(%rbp),%rdi
call   1040 <test@plt>
movsd  0xeaf(%rip),%xmm0
lea    -0x8(%rbp),%rdi
call   1040 <test@plt>
movsd  0xe96(%rip),%xmm0
lea    -0x8(%rbp),%rdi
call   1040 <test@plt>
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movsd  0xed3(%rip),%xmm0
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <test@plt>
movsd  0xec6(%rip),%xmm0
mov    %rbx,%rdi
call   1040 <test@plt>
movsd  0xebe(%rip),%xmm0
mov    %rbx,%rdi
call   1040 <test@plt>
movsd  0xeb6(%rip),%xmm0
mov    %rbx,%rdi
call   1040 <test@plt>
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @test(double 3.000000e+00, i32* %2)
%4 = call i32 @test(double 3.500000e+00, i32* %2)
%5 = call i32 @test(double 4.000000e+00, i32* %2)
%6 = call i32 @test(double 5.000000e+00, i32* %2)
%7 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @test(double 3.000000e+00, i32* %1)
%4 = call i32 @test(double 3.500000e+00, i32* %1)
%5 = call i32 @test(double 4.000000e+00, i32* %1)
%6 = call i32 @test(double 5.000000e+00, i32* %1)
%7 = call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ strcat(char *, char *);
char *SIM_power_strcat(char *dest, char *src) {
  if (dest) {
    strcat(dest, "/");
    strcat(dest, src);
  }
  return dest;
}


x86 assembly (clang, -O0):
<SIM_power_strcat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1148 <SIM_power_strcat+0x38>
mov    -0x8(%rbp),%rdi
lea    0xeca(%rip),%rsi
call   1030 <strcat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcat@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SIM_power_strcat>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
test   %rdi,%rdi
je     1139 <SIM_power_strcat+0x29>
mov    %rsi,%r14
lea    0xeda(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcat@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"/\00"
define i8* @SIM_power_strcat(i8* returned %0, i8* %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @strcat(i8* %0, i8* %1)
br label %7
7: ; preds = %4, %2
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ ft_putchar(char);
void ft_print_numbers(void) {
  char i;
  i = '0';
  while (i <= '9') {
    ft_putchar(i);
    i++;
  }
}


x86 assembly (clang, -O0):
<ft_print_numbers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x30,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
jg     113f <ft_print_numbers+0x2f>
movsbl -0x1(%rbp),%edi
call   1030 <ft_putchar@plt>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    111c <ft_print_numbers+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_print_numbers>:
push   %rax
mov    $0x30,%edi
call   1030 <ft_putchar@plt>
mov    $0x31,%edi
call   1030 <ft_putchar@plt>
mov    $0x32,%edi
call   1030 <ft_putchar@plt>
mov    $0x33,%edi
call   1030 <ft_putchar@plt>
mov    $0x34,%edi
call   1030 <ft_putchar@plt>
mov    $0x35,%edi
call   1030 <ft_putchar@plt>
mov    $0x36,%edi
call   1030 <ft_putchar@plt>
mov    $0x37,%edi
call   1030 <ft_putchar@plt>
mov    $0x38,%edi
call   1030 <ft_putchar@plt>
mov    $0x39,%edi
pop    %rax
jmp    1030 <ft_putchar@plt>

LLVM IR (-O0):
define void @ft_print_numbers() {
%1 = alloca i8
store i8 48, i8* %1
br label %2
2: ; preds = %6, %0
%3 = load i8, i8* %1
%4 = sext i8 %3 to i32
%5 = icmp sle i32 %4, 57
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load i8, i8* %1
%8 = call i32 @ft_putchar(i8 signext %7)
%9 = load i8, i8* %1
%10 = add i8 %9, 1
store i8 %10, i8* %1
br label %2
11: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @ft_print_numbers() {
%1 = tail call i32 @ft_putchar(i8 signext 48)
%2 = tail call i32 @ft_putchar(i8 signext 49)
%3 = tail call i32 @ft_putchar(i8 signext 50)
%4 = tail call i32 @ft_putchar(i8 signext 51)
%5 = tail call i32 @ft_putchar(i8 signext 52)
%6 = tail call i32 @ft_putchar(i8 signext 53)
%7 = tail call i32 @ft_putchar(i8 signext 54)
%8 = tail call i32 @ft_putchar(i8 signext 55)
%9 = tail call i32 @ft_putchar(i8 signext 56)
%10 = tail call i32 @ft_putchar(i8 signext 57)
ret void
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  scalar_t__ display;
};
struct TYPE_4__ {
  TYPE_1__ xmaprequest;
};
typedef TYPE_2__ XEvent;

/* Variables and functions */
void *get_XEvent_xmaprequest_display(void *_p) {
  return (void *)((XEvent *)_p)->xmaprequest.display;
}


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

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

LLVM IR (-O0):
%struct.TYPE_4__ = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i64 }
define i8* @get_XEvent_xmaprequest_display(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_4__*
%5 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %4, i32 0, i32 0
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %5, i32 0, i32 0
%7 = load i64, i64* %6
%8 = inttoptr i64 %7 to i8*
ret i8* %8
}

LLVM IR (-O2):
define i8* @get_XEvent_xmaprequest_display(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0x8a() {
  Assert_real((isxdigit(138) == 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_isxdigit.c",
              695, ("isxdigit should be 0 for 0x8a"));
}


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

x86 assembly (clang, -O2):
<t_isxdigit_0x8a>:
push   %rax
mov    $0x8a,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x2b7,%edx
pop    %rax
jmp    1040 <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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0x8a\00"
define void @t_isxdigit_0x8a() {
%1 = call i64 @isxdigit(i32 138)
%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 695, 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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0x8a\00"
define void @t_isxdigit_0x8a() {
%1 = tail call i64 @isxdigit(i32 138)
%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 695, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int strcoll(scan1, scan2) const char *scan1;
const char *scan2;
{ return strcmp(scan1, scan2); }


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

x86 assembly (clang, -O2):
<strcoll>:
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @strcoll(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
void foo117() {}


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

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

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

LLVM IR (-O2):
define void @foo117() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(int *);
int *malloc(int);
int /*<<< orphan*/ myalloc2(int **);
int /*<<< orphan*/ myfoo(int *);
void mallocEscapeFreeCustomAlloc2() {
  int *p = malloc(12);
  myfoo(p);
  free(p);
  myalloc2(&p);
  free(p);
}


x86 assembly (clang, -O0):
<mallocEscapeFreeCustomAlloc2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xc,%edi
call   1050 <malloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <myfoo@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
lea    -0x8(%rbp),%rdi
call   1060 <myalloc2@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mallocEscapeFreeCustomAlloc2>:
push   %rbx
sub    $0x10,%rsp
mov    $0xc,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
call   1040 <myfoo@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0x8(%rsp),%rdi
call   1060 <myalloc2@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @mallocEscapeFreeCustomAlloc2() {
%1 = alloca i32*
%2 = call i32* @malloc(i32 12)
store i32* %2, i32** %1
%3 = load i32*, i32** %1
%4 = call i32 @myfoo(i32* %3)
%5 = load i32*, i32** %1
%6 = call i32 @free(i32* %5)
%7 = call i32 @myalloc2(i32** %1)
%8 = load i32*, i32** %1
%9 = call i32 @free(i32* %8)
ret void
}

LLVM IR (-O2):
define void @mallocEscapeFreeCustomAlloc2() {
%1 = alloca i32*
%2 = bitcast i32** %1 to i8*
%3 = tail call i32* @malloc(i32 12)
store i32* %3, i32** %1
%4 = tail call i32 @myfoo(i32* %3)
%5 = tail call i32 @free(i32* %3)
%6 = call i32 @myalloc2(i32** %1)
%7 = load i32*, i32** %1
%8 = call i32 @free(i32* %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, int, int);
int assert_eq(int a, int b) {
  if (a != b) {
    printf("Assertion: %d != %d\n", a, b);
    exit(1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<assert_eq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     1156 <assert_eq+0x36>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<assert_eq>:
mov    %esi,%edx
cmp    %esi,%edi
jne    1129 <assert_eq+0x9>
xor    %eax,%eax
ret
push   %rax
mov    %edi,%esi
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@.str = [21 x i8] c"Assertion: %d != %d\0A\00"
define i32 @assert_eq(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %2
ret i32 0
}
/* Variables and functions */
scalar_t__ is_upalpha(char const);
int __upalpha_len(const char *s) {
  int l;
  for (l = 0; is_upalpha(*s); l++)
    s++;
  return l;
}


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

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

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

LLVM IR (-O2):
define i32 @__upalpha_len(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = tail call i64 @is_upalpha(i8 signext %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %13, label %5
5: ; preds = %1, %5
%6 = phi i32 [ %9, %5 ], [ 0, %1 ]
%7 = phi i8* [ %8, %5 ], [ %0, %1 ]
%8 = getelementptr inbounds i8, i8* %7, i64 1
%9 = add nuw nsw i32 %6, 1
%10 = load i8, i8* %8
%11 = tail call i64 @is_upalpha(i8 signext %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %5, %1
%14 = phi i32 [ 0, %1 ], [ %9, %5 ]
ret i32 %14
}
void TOSH_rfm_rx_mode(void) {}


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

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

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

LLVM IR (-O2):
define void @TOSH_rfm_rx_mode() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ outb(int, int);
void curs_set(int visibility) {
  outb(0x3d4, 0x0a);
  outb(0x3d5, visibility ? 0x1f : 0x20);
}


x86 assembly (clang, -O0):
<curs_set>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x3d4,%edi
mov    $0xa,%esi
call   1030 <outb@plt>
mov    -0x4(%rbp),%ecx
mov    $0x20,%esi
mov    $0x1f,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
mov    $0x3d5,%edi
call   1030 <outb@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<curs_set>:
push   %rbx
mov    %edi,%ebx
mov    $0x3d4,%edi
mov    $0xa,%esi
call   1030 <outb@plt>
cmp    $0x1,%ebx
mov    $0x1f,%esi
adc    $0x0,%esi
mov    $0x3d5,%edi
pop    %rbx
jmp    1030 <outb@plt>

LLVM IR (-O0):
define void @curs_set(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @outb(i32 980, i32 10)
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 31, i32 32
%8 = call i32 @outb(i32 981, i32 %7)
ret void
}

LLVM IR (-O2):
define void @curs_set(i32 %0) {
%2 = tail call i32 @outb(i32 980, i32 10)
%3 = icmp eq i32 %0, 0
%4 = select i1 %3, i32 32, i32 31
%5 = tail call i32 @outb(i32 981, i32 %4)
ret void
}
/* Variables and functions */
scalar_t__ sin(double);
float sinf(float _X) { return ((float)sin((double)_X)); }


x86 assembly (clang, -O0):
<sinf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
call   1030 <sin@plt>
cvtsi2ss %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sinf>:
push   %rax
cvtss2sd %xmm0,%xmm0
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @sinf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = call i64 @sin(double %4)
%6 = sitofp i64 %5 to float
ret float %6
}

LLVM IR (-O2):
define float @sinf(float %0) {
%2 = fpext float %0 to double
%3 = tail call i64 @sin(double %2)
%4 = sitofp i64 %3 to float
ret float %4
}
/* Variables and functions */
scalar_t__ _mktemp(char *);
char *mktemp(char *template) { return (char *)_mktemp(template); }


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

x86 assembly (clang, -O2):
<mktemp>:
jmp    1030 <_mktemp@plt>

LLVM IR (-O0):
define i8* @mktemp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @_mktemp(i8* %3)
%5 = inttoptr i64 %4 to i8*
ret i8* %5
}

LLVM IR (-O2):
define i8* @mktemp(i8* %0) {
%2 = tail call i64 @_mktemp(i8* %0)
%3 = inttoptr i64 %2 to i8*
ret i8* %3
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ set_led_8_8_12(scalar_t__, scalar_t__, scalar_t__,
                                  int /*<<< orphan*/);
void set_row(uint8_t x, uint8_t z, uint8_t y1, uint8_t y2, uint16_t intensity) {
  for (uint8_t i = y1; i <= y2; i++) {
    set_led_8_8_12(x, i, z, intensity);
  }
}


x86 assembly (clang, -O0):
<set_row>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
cmp    -0x20(%rbp),%rax
jg     1167 <set_row+0x57>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x24(%rbp),%ecx
call   1030 <set_led_8_8_12@plt>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1134 <set_row+0x24>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_row>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
cmp    %rcx,%rdx
jg     114a <set_row+0x3a>
mov    %r8d,%r14d
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %rsi,%r15
mov    %rdi,%r12
add    $0x1,%rbx
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1030 <set_led_8_8_12@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1130 <set_row+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @set_row(i64 %0, i64 %1, i64 %2, i64 %3, i32 %4) {
%6 = icmp sgt i64 %2, %3
br i1 %6, label %7, label %8
7: ; preds = %8, %5
ret void
8: ; preds = %5, %8
%9 = phi i64 [ %11, %8 ], [ %2, %5 ]
%10 = tail call i32 @set_led_8_8_12(i64 %0, i64 %9, i64 %1, i32 %4)
%11 = add i64 %9, 1
%12 = icmp eq i64 %9, %3
br i1 %12, label %7, label %8
}
int main() {
  int n, i;
  for (scanf("%d", &n), i = 2; i <= n; i += 2)
    printf("%d ", i);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1173 <main+0x53>
mov    -0xc(%rbp),%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    1148 <main+0x28>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x2,0x4(%rsp)
jl     1165 <main+0x45>
mov    $0x2,%ebx
lea    0xeb9(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x2,%ebx
cmp    0x4(%rsp),%ebx
jle    1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d \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 = load i32, i32* %1
%5 = icmp slt i32 %4, 2
br i1 %5, label %12, label %6
6: ; preds = %0, %6
%7 = phi i32 [ %9, %6 ], [ 2, %0 ]
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = add nuw nsw i32 %7, 2
%10 = load i32, i32* %1
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %6
12: ; preds = %6, %0
ret i32 0
}
/* Type definitions */
struct obus_node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ obus_list_init(struct obus_node *);
int /*<<< orphan*/ obus_list_replace(struct obus_node *, struct obus_node *);
void obus_list_replace_init(struct obus_node *old, struct obus_node *novel) {
  obus_list_replace(old, novel);
  obus_list_init(old);
}


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

x86 assembly (clang, -O2):
<obus_list_replace_init>:
push   %rbx
mov    %rdi,%rbx
call   1030 <obus_list_replace@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <obus_list_init@plt>

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

LLVM IR (-O2):
%struct.obus_node = type { i32 }
define void @obus_list_replace_init(%struct.obus_node* %0, %struct.obus_node* %1) {
%3 = tail call i32 @obus_list_replace(%struct.obus_node* %0, %struct.obus_node* %1)
%4 = tail call i32 @obus_list_init(%struct.obus_node* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ getenergy_(double *, double *);
void GetEnergy(double *geom, double *energy) { getenergy_(geom, energy); }


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

x86 assembly (clang, -O2):
<GetEnergy>:
jmp    1030 <getenergy_@plt>

LLVM IR (-O0):
define void @GetEnergy(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 i32 @getenergy_(double* %5, double* %6)
ret void
}

LLVM IR (-O2):
define void @GetEnergy(double* %0, double* %1) {
%3 = tail call i32 @getenergy_(double* %0, double* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ isalnum(int);
void skip(const char **date) {
  while (**date && !(isalnum((int)((unsigned char)**date))))
    (*date)++;
}


x86 assembly (clang, -O0):
<skip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     114e <skip+0x3e>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movzbl (%rax),%edi
call   1030 <isalnum@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    115e <skip+0x4e>
jmp    1171 <skip+0x61>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    111c <skip+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip>:
push   %r14
push   %rbx
push   %rax
mov    (%rdi),%rbx
mov    (%rbx),%al
test   %al,%al
je     114a <skip+0x3a>
mov    %rdi,%r14
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl %al,%edi
call   1030 <isalnum@plt>
test   %eax,%eax
jne    114a <skip+0x3a>
mov    %rbx,(%r14)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <skip+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @skip(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = load i8, i8* %2
%4 = icmp eq i8 %3, 0
br i1 %4, label %15, label %5
5: ; preds = %1, %11
%6 = phi i8 [ %13, %11 ], [ %3, %1 ]
%7 = phi i8* [ %12, %11 ], [ %2, %1 ]
%8 = zext i8 %6 to i32
%9 = tail call i32 @isalnum(i32 %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %5
%12 = getelementptr inbounds i8, i8* %7, i64 1
store i8* %12, i8** %0
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %5
15: ; preds = %5, %11, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo();
int main() {
#pragma omp task
  {
#pragma omp taskgroup
    {
#pragma omp task
      foo();
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <foo@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @foo()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @foo()
ret i32 0
}
void gtk_target_list_add_text_targets() {}


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

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

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

LLVM IR (-O2):
define void @gtk_target_list_add_text_targets() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ hrt(double, double, char *);
int /*<<< orphan*/ printf(char *, double, double);
void print_three(double x, double y) {
  printf("        <rect x=\"%.2fin\" y=\"%.2fin\" width=\"5.75in\" "
         "height=\"0.5in\" fill=\"#ef0000\" />\n",
         x, y + 0.5);
  hrt(x, y, "3");
}


x86 assembly (clang, -O0):
<print_three>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xec1(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    0xefc(%rip),%rdi
call   1030 <hrt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_three>:
sub    $0x18,%rsp
movapd %xmm1,%xmm2
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  0xec4(%rip),%xmm1
addsd  %xmm2,%xmm1
lea    0xec1(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0a(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
add    $0x18,%rsp
jmp    1030 <hrt@plt>

LLVM IR (-O0):
@.str = [85 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\225.75in\22 height=\220.5in\22 fill=\22#ef0000\22 />\0A\00"
@.str.1 = [2 x i8] c"3\00"
define void @print_three(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 = fadd double %6, 5.000000e-01
%8 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0), double %5, double %7)
%9 = load double, double* %3
%10 = load double, double* %4
%11 = call i32 @hrt(double %9, double %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [85 x i8] c" <rect x=\22%.2fin\22 y=\22%.2fin\22 width=\225.75in\22 height=\220.5in\22 fill=\22#ef0000\22 />\0A\00"
@.str.1 = [2 x i8] c"3\00"
define void @print_three(double %0, double %1) {
%3 = fadd double %1, 5.000000e-01
%4 = tail call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0), double %0, double %3)
%5 = tail call i32 @hrt(double %0, double %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int main(void) {
  int *p;
  p;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int strcmp(char const *, char const *);
int _thash_strcmp_wrapper(const void *key1, const void *key2) {
  return strcmp((const char *)key1, (const char *)key2);
}


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

x86 assembly (clang, -O2):
<_thash_strcmp_wrapper>:
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @_thash_strcmp_wrapper(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
inio() {}


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

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

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

LLVM IR (-O2):
define i32 @inio() {
ret i32 undef
}
/* Type definitions */
struct t_list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ delete_at(struct t_list *, int);
void pop(struct t_list *plist) { delete_at(plist, 1); }


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

x86 assembly (clang, -O2):
<pop>:
mov    $0x1,%esi
jmp    1030 <delete_at@plt>

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

LLVM IR (-O2):
%struct.t_list = type { i32 }
define void @pop(%struct.t_list* %0) {
%2 = tail call i32 @delete_at(%struct.t_list* %0, i32 1)
ret void
}
/* Type definitions */
struct SN_env {
  int dummy;
};

/* Variables and functions */
struct SN_env *SN_create_env(int /*<<< orphan*/, int, int /*<<< orphan*/);
extern struct SN_env *french_UTF_8_create_env(void) {
  return SN_create_env(0, 3, 0);
}


x86 assembly (clang, -O0):
<french_UTF_8_create_env>:
push   %rbp
mov    %rsp,%rbp
xor    %edx,%edx
mov    $0x3,%esi
mov    %edx,%edi
call   1030 <SN_create_env@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<french_UTF_8_create_env>:
xor    %edi,%edi
mov    $0x3,%esi
xor    %edx,%edx
jmp    1030 <SN_create_env@plt>

LLVM IR (-O0):
%struct.SN_env = type { i32 }
define %struct.SN_env* @french_UTF_8_create_env() {
%1 = call %struct.SN_env* @SN_create_env(i32 0, i32 3, i32 0)
ret %struct.SN_env* %1
}

LLVM IR (-O2):
%struct.SN_env = type { i32 }
define %struct.SN_env* @french_UTF_8_create_env() {
%1 = tail call %struct.SN_env* @SN_create_env(i32 0, i32 3, i32 0)
ret %struct.SN_env* %1
}
int fifo_isEmpty(int *actuel, int nbValeurs) {
  int i;
  for (i = 0; i < nbValeurs; i++)
    if (actuel[i] != -1)
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<fifo_isEmpty>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    114f <fifo_isEmpty+0x4f>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
je     113c <fifo_isEmpty+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    1156 <fifo_isEmpty+0x56>
jmp    1141 <fifo_isEmpty+0x41>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1112 <fifo_isEmpty+0x12>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fifo_isEmpty>:
mov    $0x1,%eax
test   %esi,%esi
jle    111f <fifo_isEmpty+0x1f>
mov    %esi,%ecx
xor    %edx,%edx
nopl   (%rax)
cmpl   $0xffffffff,(%rdi,%rdx,4)
jne    1120 <fifo_isEmpty+0x20>
add    $0x1,%rdx
cmp    %rdx,%rcx
jne    1110 <fifo_isEmpty+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @fifo_isEmpty(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %14
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %8
6: ; preds = %8
%7 = icmp eq i64 %13, %5
br i1 %7, label %14, label %8
8: ; preds = %4, %6
%9 = phi i64 [ 0, %4 ], [ %13, %6 ]
%10 = getelementptr inbounds i32, i32* %0, i64 %9
%11 = load i32, i32* %10
%12 = icmp eq i32 %11, -1
%13 = add nuw nsw i64 %9, 1
br i1 %12, label %6, label %14
14: ; preds = %8, %6, %2
%15 = phi i32 [ 1, %2 ], [ 1, %6 ], [ 0, %8 ]
ret i32 %15
}
extern unsigned int omap_get_mux_reg(const char *mux_name) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @omap_get_mux_reg(i8* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
struct task_struct {
  int dummy;
};
struct pt_regs {
  long r12;
};

/* Variables and functions */
long syscall_get_nr(struct task_struct *task, struct pt_regs *regs) {
  return regs->r12;
}


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

x86 assembly (clang, -O2):
<syscall_get_nr>:
mov    (%rsi),%rax
ret

LLVM IR (-O0):
%struct.task_struct = type { i32 }
%struct.pt_regs = type { i64 }
define i64 @syscall_get_nr(%struct.task_struct* %0, %struct.pt_regs* %1) {
%3 = alloca %struct.task_struct*
%4 = alloca %struct.pt_regs*
store %struct.task_struct* %0, %struct.task_struct** %3
store %struct.pt_regs* %1, %struct.pt_regs** %4
%5 = load %struct.pt_regs*, %struct.pt_regs** %4
%6 = getelementptr inbounds %struct.pt_regs, %struct.pt_regs* %5, i32 0, i32 0
%7 = load i64, i64* %6
ret i64 %7
}

LLVM IR (-O2):
%struct.task_struct = type { i32 }
%struct.pt_regs = type { i64 }
define i64 @syscall_get_nr(%struct.task_struct* nocapture readnone %0, %struct.pt_regs* nocapture %1) {
%3 = getelementptr inbounds %struct.pt_regs, %struct.pt_regs* %1, i64 0, i32 0
%4 = load i64, i64* %3
ret i64 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
void Dump(bool b_outgoing, uint8_t *p_data, int i_size) {}


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

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

LLVM IR (-O0):
define void @Dump(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
ret void
}

LLVM IR (-O2):
define void @Dump(i32 %0, i32* nocapture %1, i32 %2) {
ret void
}
/* Variables and functions */
float UI_ClampCvar(float min, float max, float value) {
  if (value < min)
    return min;
  if (value > max)
    return max;
  return value;
}


x86 assembly (clang, -O0):
<UI_ClampCvar>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1135 <UI_ClampCvar+0x35>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    115d <UI_ClampCvar+0x5d>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1153 <UI_ClampCvar+0x53>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    115d <UI_ClampCvar+0x5d>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<UI_ClampCvar>:
minss  %xmm2,%xmm1
cmpltss %xmm0,%xmm2
andps  %xmm2,%xmm0
andnps %xmm1,%xmm2
orps   %xmm2,%xmm0
ret

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

LLVM IR (-O2):
define float @UI_ClampCvar(float %0, float %1, float %2) {
%4 = fcmp olt float %2, %0
%5 = fcmp ogt float %2, %1
%6 = select i1 %5, float %1, float %2
%7 = select i1 %4, float %0, float %6
ret float %7
}
void stop_device() {}


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

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

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

LLVM IR (-O2):
define void @stop_device() {
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ feedback;
};
typedef TYPE_1__ XIMText;

/* Variables and functions */
void *get_XIMText_feedback(void *_p) {
  return (void *)((XIMText *)_p)->feedback;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i8* @get_XIMText_feedback(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = inttoptr i64 %6 to i8*
ret i8* %7
}

LLVM IR (-O2):
define i8* @get_XIMText_feedback(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}