xunge/DecIR huggingface dataset:
/* Variables and functions */
int crc16_add(unsigned char, int);
unsigned short crc16(unsigned char *p, int size) {
  int result = 0;
  int i;
  for (i = 0; i < size; i++)
    result = crc16_add(p[i], result);
  return result;
}


x86 assembly (clang, -O0):
<crc16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1160 <crc16+0x50>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x10(%rbp),%esi
movzbl %al,%edi
call   1030 <crc16_add@plt>
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <crc16+0x1d>
mov    -0x10(%rbp),%eax
movzwl %ax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crc16>:
xor    %eax,%eax
test   %esi,%esi
jle    114a <crc16+0x3a>
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
mov    %esi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%r14,%rbx,1),%edi
mov    %eax,%esi
call   1030 <crc16_add@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <crc16+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define zeroext i16 @crc16(i8* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %16
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %12, %6 ]
%8 = phi i32 [ 0, %4 ], [ %11, %6 ]
%9 = getelementptr inbounds i8, i8* %0, i64 %7
%10 = load i8, i8* %9
%11 = tail call i32 @crc16_add(i8 zeroext %10, i32 %8)
%12 = add nuw nsw i64 %7, 1
%13 = icmp eq i64 %12, %5
br i1 %13, label %14, label %6
14: ; preds = %6
%15 = trunc i32 %11 to i16
br label %16
16: ; preds = %14, %2
%17 = phi i16 [ 0, %2 ], [ %15, %14 ]
ret i16 %17
}
int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
                const char name) {
  return 0;
}


x86 assembly (clang, -O0):
<bgscan_init>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.wpa_supplicant = type opaque
%struct.wpa_ssid = type opaque
define i32 @bgscan_init(%struct.wpa_supplicant* %0, %struct.wpa_ssid* %1, i8 signext %2) {
%4 = alloca %struct.wpa_supplicant*
%5 = alloca %struct.wpa_ssid*
%6 = alloca i8
store %struct.wpa_supplicant* %0, %struct.wpa_supplicant** %4
store %struct.wpa_ssid* %1, %struct.wpa_ssid** %5
store i8 %2, i8* %6
ret i32 0
}

LLVM IR (-O2):
%struct.wpa_supplicant = type opaque
%struct.wpa_ssid = type opaque
define i32 @bgscan_init(%struct.wpa_supplicant* nocapture readnone %0, %struct.wpa_ssid* nocapture readnone %1, i8 signext %2) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ ft_putchar(char);
void ft_print_numbers(void) {
  char c;
  c = '0';
  while (c <= '9') {
    ft_putchar(c);
    c++;
  }
}


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
}
/* Type definitions */
typedef int /*<<< orphan*/ fpos_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ ESPIPE;
int /*<<< orphan*/ errno;
int fgetpos(FILE *stream, fpos_t *pos) {
  errno = ESPIPE;
  return -1;
}


x86 assembly (clang, -O0):
<fgetpos>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ed5(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebc(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fgetpos>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@ESPIPE = global i32 0
@errno = global i32 0
define i32 @fgetpos(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32, i32* @ESPIPE
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@ESPIPE = global i32 0
@errno = global i32 0
define i32 @fgetpos(i32* nocapture readnone %0, i32* nocapture readnone %1) {
%3 = load i32, i32* @ESPIPE
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char, int);
int main() {
  char *a = "abid.";
  int k = a[4] == '.' ? 0 : 1;
  printf("%c %d\n", a[4], k);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x4(%rax),%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x2e,%edx
cmove  %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%al
mov    -0xc(%rbp),%edx
lea    0xeba(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x2e,%esi
xor    %edx,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"abid.\00"
@.str.1 = [7 x i8] c"%c %d\0A\00"
define i32 @main() {
%1 = alloca i8*
%2 = alloca i32
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %1
%3 = load i8*, i8** %1
%4 = getelementptr inbounds i8, i8* %3, i64 4
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 46
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 0, i32 1
store i32 %9, i32* %2
%10 = load i8*, i8** %1
%11 = getelementptr inbounds i8, i8* %10, i64 4
%12 = load i8, i8* %11
%13 = load i32, i32* %2
%14 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8 signext %12, i32 %13)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"%c %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8 signext 46, i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ is_prime(int);
int calc_next_prime(int num) {
  while (!is_prime(num)) {
    num++;
  }
  return num;
}


x86 assembly (clang, -O0):
<calc_next_prime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <is_prime@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1138 <calc_next_prime+0x28>
jmp    1146 <calc_next_prime+0x36>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111b <calc_next_prime+0xb>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_next_prime>:
push   %rbx
mov    %edi,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
call   1030 <is_prime@plt>
add    $0x1,%ebx
test   %eax,%eax
je     1120 <calc_next_prime+0x10>
add    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @calc_next_prime(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %8, %1
%4 = load i32, i32* %2
%5 = call i32 @is_prime(i32 %4)
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
br label %3
11: ; preds = %3
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @calc_next_prime(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ %0, %1 ], [ %6, %2 ]
%4 = tail call i32 @is_prime(i32 %3)
%5 = icmp eq i32 %4, 0
%6 = add nsw i32 %3, 1
br i1 %5, label %2, label %7
7: ; preds = %2
ret i32 %3
}
/* Variables and functions */
int strcmp(char const *, char const *);
int string_compare(void const *item1, void const *item2) {
  return strcmp((char const *)item1, (char const *)item2);
}


x86 assembly (clang, -O0):
<string_compare>:
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):
<string_compare>:
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
define i32 @string_compare(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 @string_compare(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printFibSum(int);
int /*<<< orphan*/ system(char *);
int main(void) {
  printFibSum(32);
  system("PAUSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x20,%edi
call   1040 <printFibSum@plt>
lea    0xec0(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x20,%edi
call   1040 <printFibSum@plt>
lea    0xece(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printFibSum(i32 32)
%3 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = tail call i32 @printFibSum(i32 32)
%2 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
int __kfree_skb(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @__kfree_skb() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ SIGABRT;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ kill(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int main(void) {
  kill(getpid(), SIGABRT);
  printf("undead\n");
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%edi
mov    0x2e81(%rip),%rax
mov    (%rax),%esi
call   1050 <kill@plt>
lea    0xe93(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <getpid@plt>
mov    0x2e91(%rip),%rcx
mov    (%rcx),%esi
mov    %eax,%edi
call   1050 <kill@plt>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@SIGABRT = global i32 0
@.str = [8 x i8] c"undead\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @getpid()
%3 = load i32, i32* @SIGABRT
%4 = call i32 @kill(i32 %2, i32 %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@SIGABRT = global i32 0
@str = [7 x i8] c"undead\00"
define i32 @main() {
%1 = tail call i32 (...) @getpid()
%2 = load i32, i32* @SIGABRT
%3 = tail call i32 @kill(i32 %1, i32 %2)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}
void uint8_char(unsigned long int i, unsigned char *p) {
  int j;
  for (j = 0; j < 8; j++) {
    p[7 - j] = i & 255;
    i = i >> 8;
  }
}


x86 assembly (clang, -O0):
<uint8_char>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    1155 <uint8_char+0x55>
mov    -0x8(%rbp),%rax
and    $0xff,%rax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    $0x7,%ecx
sub    -0x14(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
shr    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <uint8_char+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<uint8_char>:
bswap  %rdi
mov    %rdi,(%rsi)
ret

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

LLVM IR (-O2):
define void @uint8_char(i64 %0, i8* nocapture writeonly %1) {
%3 = trunc i64 %0 to i8
%4 = getelementptr inbounds i8, i8* %1, i64 7
store i8 %3, i8* %4
%5 = lshr i64 %0, 8
%6 = trunc i64 %5 to i8
%7 = getelementptr inbounds i8, i8* %1, i64 6
store i8 %6, i8* %7
%8 = lshr i64 %0, 16
%9 = trunc i64 %8 to i8
%10 = getelementptr inbounds i8, i8* %1, i64 5
store i8 %9, i8* %10
%11 = lshr i64 %0, 24
%12 = trunc i64 %11 to i8
%13 = getelementptr inbounds i8, i8* %1, i64 4
store i8 %12, i8* %13
%14 = lshr i64 %0, 32
%15 = trunc i64 %14 to i8
%16 = getelementptr inbounds i8, i8* %1, i64 3
store i8 %15, i8* %16
%17 = lshr i64 %0, 40
%18 = trunc i64 %17 to i8
%19 = getelementptr inbounds i8, i8* %1, i64 2
store i8 %18, i8* %19
%20 = lshr i64 %0, 48
%21 = trunc i64 %20 to i8
%22 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %21, i8* %22
%23 = lshr i64 %0, 56
%24 = trunc i64 %23 to i8
store i8 %24, i8* %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ ehrpwm_reg_config(int /*<<< orphan*/, int, unsigned char,
                                     int);
int ehrpwm_aq_set_csfrc_load_mode(uint8_t module, unsigned char loadmode) {
  if (loadmode > 0x3)
    return -1;
  ehrpwm_reg_config(module, 0x1A, loadmode << 0x6, ((1 << 7) | (1 << 6)));
  return 0;
}


x86 assembly (clang, -O0):
<ehrpwm_aq_set_csfrc_load_mode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %edi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movzbl -0x9(%rbp),%eax
cmp    $0x3,%eax
jle    113a <ehrpwm_aq_set_csfrc_load_mode+0x2a>
movl   $0xffffffff,-0x4(%rbp)
jmp    115d <ehrpwm_aq_set_csfrc_load_mode+0x4d>
mov    -0x8(%rbp),%edi
movzbl -0x9(%rbp),%eax
shl    $0x6,%eax
mov    $0x1a,%esi
mov    $0xc0,%ecx
movzbl %al,%edx
call   1030 <ehrpwm_reg_config@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ehrpwm_aq_set_csfrc_load_mode>:
mov    $0xffffffff,%eax
cmp    $0x3,%sil
ja     1139 <ehrpwm_aq_set_csfrc_load_mode+0x29>
push   %rax
shl    $0x6,%sil
movzbl %sil,%edx
mov    $0x1a,%esi
mov    $0xc0,%ecx
call   1030 <ehrpwm_reg_config@plt>
xor    %eax,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i32 @ehrpwm_aq_set_csfrc_load_mode(i32 %0, i8 zeroext %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
store i32 %0, i32* %4
store i8 %1, i8* %5
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
%8 = icmp sgt i32 %7, 3
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, i32* %3
br label %17
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i8, i8* %5
%13 = zext i8 %12 to i32
%14 = shl i32 %13, 6
%15 = trunc i32 %14 to i8
%16 = call i32 @ehrpwm_reg_config(i32 %11, i32 26, i8 zeroext %15, i32 192)
store i32 0, i32* %3
br label %17
17: ; preds = %10, %9
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
define i32 @ehrpwm_aq_set_csfrc_load_mode(i32 %0, i8 zeroext %1) {
%3 = icmp ugt i8 %1, 3
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = shl nuw i8 %1, 6
%6 = tail call i32 @ehrpwm_reg_config(i32 %0, i32 26, i8 zeroext %5, i32 192)
br label %7
7: ; preds = %2, %4
%8 = phi i32 [ 0, %4 ], [ -1, %2 ]
ret i32 %8
}
int request_module(const char *name, ...) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @request_module(i8* nocapture readnone %0, ...) {
ret i32 0
}
/* Variables and functions */
float _asinf(float);
float asinf(float x) { return _asinf(x); }


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

x86 assembly (clang, -O2):
<asinf>:
jmp    1030 <_asinf@plt>

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

LLVM IR (-O2):
define float @asinf(float %0) {
%2 = tail call float @_asinf(float %0)
ret float %2
}
rdebu(len) int len;
{
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
  {};
}


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

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

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

LLVM IR (-O2):
define i32 @rdebu(i32 %0) {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
void put(int c) {
  switch (c) {
  case '\\':
  case '"':
    putchar('\\');
    break;
  case '\n':
    printf("\\n\\");
    break;
  default:
    break;
  }
  printf("%c", c);
}


x86 assembly (clang, -O0):
<put>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0xa,%eax
je     1170 <put+0x50>
jmp    113f <put+0x1f>
mov    -0x8(%rbp),%eax
sub    $0x22,%eax
je     1161 <put+0x41>
jmp    1150 <put+0x30>
mov    -0x8(%rbp),%eax
sub    $0x5c,%eax
jne    1183 <put+0x63>
jmp    1161 <put+0x41>
mov    $0x5c,%edi
call   1030 <putchar@plt>
jmp    1188 <put+0x68>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1188 <put+0x68>
jmp    1188 <put+0x68>
mov    -0x4(%rbp),%esi
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<put>:
push   %rbx
mov    %edi,%ebx
cmp    $0xa,%edi
je     113e <put+0x1e>
cmp    $0x5c,%ebx
je     1132 <put+0x12>
cmp    $0x22,%ebx
jne    114c <put+0x2c>
mov    $0x5c,%edi
call   1030 <putchar@plt>
jmp    114c <put+0x2c>
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"\\n\\\00"
@.str.1 = [3 x i8] c"%c\00"
define void @put(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %8 [
i32 92, label %4
i32 34, label %4
i32 10, label %6
]
4: ; preds = %1, %1
%5 = call i32 @putchar(i8 signext 92)
br label %9
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %9
8: ; preds = %1
br label %9
9: ; preds = %8, %6, %4
%10 = load i32, i32* %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"\\n\\\00"
define void @put(i32 %0) {
switch i32 %0, label %6 [
i32 92, label %2
i32 34, label %2
i32 10, label %4
]
2: ; preds = %1, %1
%3 = tail call i32 @putchar(i8 signext 92)
br label %6
4: ; preds = %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %1, %4, %2
%7 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 %0)
ret void
}
/* Variables and functions */
int sscanf(char *, char *, long *);
int scan_int(char *attr_str, long *majorp, long *minorp) {
  return sscanf(attr_str, "%ld", majorp);
}


x86 assembly (clang, -O0):
<scan_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xecd(%rip),%rsi
call   1030 <sscanf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scan_int>:
mov    %rsi,%rdx
lea    0xee6(%rip),%rsi
jmp    1030 <sscanf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%ld\00"
define i32 @scan_int(i8* %0, i64* %1, i64* %2) {
%4 = alloca i8*
%5 = alloca i64*
%6 = alloca i64*
store i8* %0, i8** %4
store i64* %1, i64** %5
store i64* %2, i64** %6
%7 = load i8*, i8** %4
%8 = load i64*, i64** %5
%9 = call i32 @sscanf(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %8)
ret i32 %9
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ld\00"
define i32 @scan_int(i8* nocapture %0, i64* %1, i64* nocapture readnone %2) {
%4 = tail call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64* %1)
ret i32 %4
}
char *maliasof(source)
char *source;
{ return (aliasof(source)); }


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

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

LLVM IR (-O0):
define i8* @maliasof(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @aliasof to i32 (i8*, ...)*)(i8* %3)
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}

LLVM IR (-O2):
define i8* @maliasof(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @aliasof to i32 (i8*, ...)*)(i8* %0)
%3 = sext i32 %2 to i64
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
void XcmsCIELuvClipL() {}


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

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

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

LLVM IR (-O2):
define void @XcmsCIELuvClipL() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ code;

/* Variables and functions */
int /*<<< orphan*/ __console_write(char const *, int);
void console_brown() {
  static const char code[] = {0x1b, '[', '3', '3', ';', '0', '6', 'm'};
  __console_write(code, sizeof(code));
}


x86 assembly (clang, -O0):
<console_brown>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x8,%esi
call   1030 <__console_write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<console_brown>:
lea    0xee9(%rip),%rdi
mov    $0x8,%esi
jmp    1030 <__console_write@plt>

LLVM IR (-O0):
@console_brown.code = internal constant [8 x i8] c"\1B[33;06m"
define void @console_brown() {
%1 = call i32 @__console_write(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @console_brown.code, i64 0, i64 0), i32 8)
ret void
}

LLVM IR (-O2):
@console_brown.code = internal constant [8 x i8] c"\1B[33;06m"
define void @console_brown() {
%1 = tail call i32 @__console_write(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @console_brown.code, i64 0, i64 0), i32 8)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PrintErrorCode();
int dxl_read_word(int, int);
int getCurrentLoad(int Id) {
  int CurrentLoad;
  CurrentLoad = dxl_read_word(Id, 40);
  PrintErrorCode();
  return CurrentLoad;
}


x86 assembly (clang, -O0):
<getCurrentLoad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x28,%esi
call   1030 <dxl_read_word@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <PrintErrorCode@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getCurrentLoad>:
push   %rbx
mov    $0x28,%esi
call   1030 <dxl_read_word@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <PrintErrorCode@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @getCurrentLoad(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @dxl_read_word(i32 %4, i32 40)
store i32 %5, i32* %3
%6 = call i32 (...) @PrintErrorCode()
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
define i32 @getCurrentLoad(i32 %0) {
%2 = tail call i32 @dxl_read_word(i32 %0, i32 40)
%3 = tail call i32 (...) @PrintErrorCode()
ret i32 %2
}
void set_esramc(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ colprintLineAppendColumnCString(struct colprintLine *,
                                                   char *);
int /*<<< orphan*/ snprintf(char *, int, char *, unsigned int);
void colprintLineAppendColumnInt(struct colprintLine *line,
                                 unsigned int column) {
  char buf[12];
  snprintf(buf, 12, "%u", column);
  colprintLineAppendColumnCString(line, buf);
}


x86 assembly (clang, -O0):
<colprintLineAppendColumnInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%ecx
mov    $0xc,%esi
lea    0xebe(%rip),%rdx
call   1030 <snprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <colprintLineAppendColumnCString@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<colprintLineAppendColumnInt>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %esi,%ecx
mov    %rdi,%rbx
lea    0xecd(%rip),%rdx
lea    0xc(%rsp),%r14
mov    %r14,%rdi
mov    $0xc,%esi
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <colprintLineAppendColumnCString@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.colprintLine = type { i32 }
@.str = [3 x i8] c"%u\00"
define void @colprintLineAppendColumnInt(%struct.colprintLine* %0, i32 %1) {
%3 = alloca %struct.colprintLine*
%4 = alloca i32
%5 = alloca [12 x i8]
store %struct.colprintLine* %0, %struct.colprintLine** %3
store i32 %1, i32* %4
%6 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%7 = load i32, i32* %4
%8 = call i32 @snprintf(i8* %6, i32 12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load %struct.colprintLine*, %struct.colprintLine** %3
%10 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%11 = call i32 @colprintLineAppendColumnCString(%struct.colprintLine* %9, i8* %10)
ret void
}

LLVM IR (-O2):
%struct.colprintLine = type { i32 }
@.str = [3 x i8] c"%u\00"
define void @colprintLineAppendColumnInt(%struct.colprintLine* %0, i32 %1) {
%3 = alloca [12 x i8]
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%5 = call i32 @snprintf(i8* %4, i32 12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %1)
%6 = call i32 @colprintLineAppendColumnCString(%struct.colprintLine* %0, i8* %4)
ret void
}
_Complex long long dfn_rcll(void) {
  return ({
    _Complex long long x;
    __real__(x) = (7), __imag__(x) == (8);
    x;
  });
}


x86 assembly (clang, -O0):
<dfn_rcll>:
push   %rbp
mov    %rsp,%rbp
movq   $0x7,-0x20(%rbp)
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,-0x10(%rbp)
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
pop    %rbp
ret

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

LLVM IR (-O0):
define { i64, i64 } @dfn_rcll() {
%1 = alloca { i64, i64 }
%2 = alloca { i64, i64 }
%3 = alloca { i64, i64 }
%4 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %2, i32 0, i32 0
store i64 7, i64* %4
%5 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %2, i32 0, i32 1
%6 = load i64, i64* %5
%7 = icmp eq i64 %6, 8
%8 = zext i1 %7 to i32
%9 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %2, i32 0, i32 0
%10 = load i64, i64* %9
%11 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %2, i32 0, i32 1
%12 = load i64, i64* %11
%13 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 0
%14 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 1
store i64 %10, i64* %13
store i64 %12, i64* %14
%15 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 0
%16 = load i64, i64* %15
%17 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 1
%18 = load i64, i64* %17
%19 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %1, i32 0, i32 0
%20 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %1, i32 0, i32 1
store i64 %16, i64* %19
store i64 %18, i64* %20
%21 = load { i64, i64 }, { i64, i64 }* %1
ret { i64, i64 } %21
}

LLVM IR (-O2):
define { i64, i64 } @dfn_rcll() {
ret { i64, i64 } { i64 7, i64 undef }
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void report_test(const char *name, int result) {
  if (result == 1) {
    printf("%s: pass\n", name);
  } else {
    printf("%s: fail\n", name);
  }
}


x86 assembly (clang, -O0):
<report_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jne    113e <report_test+0x2e>
mov    -0x8(%rbp),%rsi
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
jmp    114e <report_test+0x3e>
mov    -0x8(%rbp),%rsi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<report_test>:
mov    %rdi,%rax
cmp    $0x1,%esi
lea    0xee3(%rip),%rcx
lea    0xee6(%rip),%rdi
cmove  %rcx,%rdi
mov    %rax,%rsi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"%s: pass\0A\00"
@.str.1 = [10 x i8] c"%s: fail\0A\00"
define void @report_test(i8* %0, i32 %1) {
%3 = icmp eq i32 %1, 1
%4 = select i1 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%5 = tail call i32 @printf(i8* %4, i8* %0)
ret void
}
/* Variables and functions */
int fdt_cells(void const *, int, char *);
int fdt_size_cells(const void *fdt, int nodeoffset) {
  int val;
  val = fdt_cells(fdt, nodeoffset, "#size-cells");
  if (val == -1)
    return 1;
  return val;
}


x86 assembly (clang, -O0):
<fdt_size_cells>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    0xed3(%rip),%rdx
call   1030 <fdt_cells@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    114b <fdt_size_cells+0x3b>
movl   $0x1,-0x4(%rbp)
jmp    1151 <fdt_size_cells+0x41>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fdt_size_cells>:
push   %rax
lea    0xee8(%rip),%rdx
call   1030 <fdt_cells@plt>
cmp    $0xffffffff,%eax
mov    $0x1,%ecx
cmove  %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [12 x i8] c"#size-cells\00"
define i32 @fdt_size_cells(i8* %0, i32 %1) {
%3 = tail call i32 @fdt_cells(i8* %0, i32 %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, -1
%5 = select i1 %4, i32 1, i32 %3
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ Copy();
int main(void) {
  Copy();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @Copy()
ret i32 0
}
/* Variables and functions */
int pigpio_command(int, int, unsigned int, unsigned int, int);
int set_pad_strength(int pi, unsigned pad, unsigned padStrength) {
  return pigpio_command(pi, 102, pad, padStrength, 1);
}


x86 assembly (clang, -O0):
<set_pad_strength>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    $0x66,%esi
mov    $0x1,%r8d
call   1030 <pigpio_command@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pad_strength>:
mov    %edx,%ecx
mov    %esi,%edx
mov    $0x66,%esi
mov    $0x1,%r8d
jmp    1030 <pigpio_command@plt>

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

LLVM IR (-O2):
define i32 @set_pad_strength(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @pigpio_command(i32 %0, i32 102, i32 %1, i32 %2, i32 1)
ret i32 %4
}
int frequency_scale(float ratio, int clock) {
  int int_part = (int)ratio;
  float frac_part = ratio - int_part;
  int result = int_part;
  if ((int)(clock * frac_part) != (int)((clock + 1) * frac_part)) {
    result += 1;
  }
  return result;
}


x86 assembly (clang, -O0):
<frequency_scale>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
cvttss2si -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
cvttss2si %xmm0,%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cvtsi2ss %ecx,%xmm0
mulss  -0x10(%rbp),%xmm0
cvttss2si %xmm0,%ecx
cmp    %ecx,%eax
je     115f <frequency_scale+0x5f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<frequency_scale>:
cvttss2si %xmm0,%eax
cvttps2dq %xmm0,%xmm1
cvtdq2ps %xmm1,%xmm1
subss  %xmm1,%xmm0
movd   %edi,%xmm1
add    $0x1,%edi
movd   %edi,%xmm2
punpckldq %xmm2,%xmm1
cvtdq2ps %xmm1,%xmm1
shufps $0x0,%xmm0,%xmm0
mulps  %xmm1,%xmm0
cvttps2dq %xmm0,%xmm0
pshufd $0x55,%xmm0,%xmm1
pcmpeqd %xmm0,%xmm1
movd   %xmm1,%ecx
add    %ecx,%eax
add    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @frequency_scale(float %0, i32 %1) {
%3 = alloca float
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
%7 = alloca i32
store float %0, float* %3
store i32 %1, i32* %4
%8 = load float, float* %3
%9 = fptosi float %8 to i32
store i32 %9, i32* %5
%10 = load float, float* %3
%11 = load i32, i32* %5
%12 = sitofp i32 %11 to float
%13 = fsub float %10, %12
store float %13, float* %6
%14 = load i32, i32* %5
store i32 %14, i32* %7
%15 = load i32, i32* %4
%16 = sitofp i32 %15 to float
%17 = load float, float* %6
%18 = fmul float %16, %17
%19 = fptosi float %18 to i32
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 1
%22 = sitofp i32 %21 to float
%23 = load float, float* %6
%24 = fmul float %22, %23
%25 = fptosi float %24 to i32
%26 = icmp ne i32 %19, %25
br i1 %26, label %27, label %30
27: ; preds = %2
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %30
30: ; preds = %27, %2
%31 = load i32, i32* %7
ret i32 %31
}

LLVM IR (-O2):
define i32 @frequency_scale(float %0, i32 %1) {
%3 = fptosi float %0 to i32
%4 = sitofp i32 %3 to float
%5 = fsub float %0, %4
%6 = add nsw i32 %1, 1
%7 = insertelement <2 x i32> poison, i32 %1, i64 0
%8 = insertelement <2 x i32> %7, i32 %6, i64 1
%9 = sitofp <2 x i32> %8 to <2 x float>
%10 = insertelement <2 x float> poison, float %5, i64 0
%11 = shufflevector <2 x float> %10, <2 x float> poison, <2 x i32> zeroinitializer
%12 = fmul <2 x float> %11, %9
%13 = fptosi <2 x float> %12 to <2 x i32>
%14 = shufflevector <2 x i32> %13, <2 x i32> poison, <2 x i32> <i32 1, i32 undef>
%15 = icmp ne <2 x i32> %14, %13
%16 = extractelement <2 x i1> %15, i64 0
%17 = zext i1 %16 to i32
%18 = add nsw i32 %17, %3
ret i32 %18
}
unsigned long nsec_to_msec(unsigned long nsec) { return nsec / 1000000; }


x86 assembly (clang, -O0):
<nsec_to_msec>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0xf4240,%ecx
xor    %edx,%edx
div    %rcx
pop    %rbp
ret

x86 assembly (clang, -O2):
<nsec_to_msec>:
mov    %rdi,%rax
movabs $0x431bde82d7b634db,%rcx
de 1b 43
mul    %rcx
mov    %rdx,%rax
shr    $0x12,%rax
ret

LLVM IR (-O0):
define i64 @nsec_to_msec(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = udiv i64 %3, 1000000
ret i64 %4
}

LLVM IR (-O2):
define i64 @nsec_to_msec(i64 %0) {
%2 = udiv i64 %0, 1000000
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ atan2kf(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fabsf(float);
float mulsignf(int /*<<< orphan*/, float);
int /*<<< orphan*/ sqrtf(float);
float xasinf(float d) {
  return mulsignf(atan2kf(fabsf(d), sqrtf((1.0f + d) * (1.0f - d))), d);
}


x86 assembly (clang, -O0):
<xasinf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <fabsf@plt>
mov    %eax,-0x8(%rbp)
movss  0xe9e(%rip),%xmm0
addss  -0x4(%rbp),%xmm0
movss  0xe91(%rip),%xmm1
subss  -0x4(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1040 <atan2kf@plt>
mov    %eax,%edi
movss  -0x4(%rbp),%xmm0
call   1060 <mulsignf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xasinf>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0xc(%rsp)
call   1030 <fabsf@plt>
mov    %eax,%ebx
movss  0xea6(%rip),%xmm0
movss  0xc(%rsp),%xmm2
movaps %xmm2,%xmm1
addss  %xmm0,%xmm1
subss  %xmm2,%xmm0
mulss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1040 <atan2kf@plt>
mov    %eax,%edi
movss  0xc(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
jmp    1060 <mulsignf@plt>

LLVM IR (-O0):
define float @xasinf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i32 @fabsf(float %3)
%5 = load float, float* %2
%6 = fadd float 1.000000e+00, %5
%7 = load float, float* %2
%8 = fsub float 1.000000e+00, %7
%9 = fmul float %6, %8
%10 = call i32 @sqrtf(float %9)
%11 = call i32 @atan2kf(i32 %4, i32 %10)
%12 = load float, float* %2
%13 = call float @mulsignf(i32 %11, float %12)
ret float %13
}

LLVM IR (-O2):
define float @xasinf(float %0) {
%2 = tail call i32 @fabsf(float %0)
%3 = fadd float %0, 1.000000e+00
%4 = fsub float 1.000000e+00, %0
%5 = fmul float %3, %4
%6 = tail call i32 @sqrtf(float %5)
%7 = tail call i32 @atan2kf(i32 %2, i32 %6)
%8 = tail call float @mulsignf(i32 %7, float %0)
ret float %8
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int celcon_copy_from_quaddobl_systems_container(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(474, a, b, c, 0);
  return fail;
}


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

x86 assembly (clang, -O2):
<celcon_copy_from_quaddobl_systems_container>:
mov    $0x1da,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @celcon_copy_from_quaddobl_systems_container() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 474, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
void Initialize(uint64_t *s) {
  s[0] = 0x6a09e667f3bcc908ull;
  s[1] = 0xbb67ae8584caa73bull;
  s[2] = 0x3c6ef372fe94f82bull;
  s[3] = 0xa54ff53a5f1d36f1ull;
  s[4] = 0x510e527fade682d1ull;
  s[5] = 0x9b05688c2b3e6c1full;
  s[6] = 0x1f83d9abfb41bd6bull;
  s[7] = 0x5be0cd19137e2179ull;
}


x86 assembly (clang, -O0):
<Initialize>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movl   $0xf3bcc908,(%rax)
mov    -0x8(%rbp),%rax
movl   $0x84caa73b,0x4(%rax)
mov    -0x8(%rbp),%rax
movl   $0xfe94f82b,0x8(%rax)
mov    -0x8(%rbp),%rax
movl   $0x5f1d36f1,0xc(%rax)
mov    -0x8(%rbp),%rax
movl   $0xade682d1,0x10(%rax)
mov    -0x8(%rbp),%rax
movl   $0x2b3e6c1f,0x14(%rax)
mov    -0x8(%rbp),%rax
movl   $0xfb41bd6b,0x18(%rax)
mov    -0x8(%rbp),%rax
movl   $0x137e2179,0x1c(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Initialize>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0x10(%rdi)
ret

LLVM IR (-O0):
define void @Initialize(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
store i32 -205731576, i32* %4
%5 = load i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i64 1
store i32 -2067093701, i32* %6
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 2
store i32 -23791573, i32* %8
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 3
store i32 1595750129, i32* %10
%11 = load i32*, i32** %2
%12 = getelementptr inbounds i32, i32* %11, i64 4
store i32 -1377402159, i32* %12
%13 = load i32*, i32** %2
%14 = getelementptr inbounds i32, i32* %13, i64 5
store i32 725511199, i32* %14
%15 = load i32*, i32** %2
%16 = getelementptr inbounds i32, i32* %15, i64 6
store i32 -79577749, i32* %16
%17 = load i32*, i32** %2
%18 = getelementptr inbounds i32, i32* %17, i64 7
store i32 327033209, i32* %18
ret void
}

LLVM IR (-O2):
define void @Initialize(i32* nocapture writeonly %0) {
%2 = bitcast i32* %0 to <4 x i32>*
store <4 x i32> <i32 -205731576, i32 -2067093701, i32 -23791573, i32 1595750129>, <4 x i32>* %2
%3 = getelementptr inbounds i32, i32* %0, i64 4
%4 = bitcast i32* %3 to <4 x i32>*
store <4 x i32> <i32 -1377402159, i32 725511199, i32 -79577749, i32 327033209>, <4 x i32>* %4
ret void
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMRAA_set(void) { return U_WMRCORENONE_set("U_WMRAA"); }


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

x86 assembly (clang, -O2):
<U_WMRAA_set>:
lea    0xee9(%rip),%rdi
jmp    1030 <U_WMRCORENONE_set@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMRAA\00"
define i8* @U_WMRAA_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMRAA\00"
define i8* @U_WMRAA_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ findSolution(unsigned int const);
int /*<<< orphan*/ print(unsigned int const);
int main(void) {
  const unsigned n = 8;
  findSolution(n);
  print(n);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @findSolution(i32 8)
%2 = tail call i32 @print(i32 8)
ret i32 0
}
int func13() {
#pragma critTer : 50 :../../ test / resources / functionNumber.c:
  return 0;
#pragma critTer : 51 :../../ test / resources / functionNumber.c:
}


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

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

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

LLVM IR (-O2):
define i32 @func13() {
ret i32 0
}