xunge/DecIR huggingface dataset:
void wifi_evt_system_power_saving_state(
    const struct wifi_msg_system_power_saving_state_evt_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.wifi_msg_system_power_saving_state_evt_t = type opaque
define void @wifi_evt_system_power_saving_state(%struct.wifi_msg_system_power_saving_state_evt_t* nocapture %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ GLdouble;

/* Variables and functions */
void copy3(GLdouble old[3], GLdouble new_c[3]) {
  new_c[0] = old[0], new_c[1] = old[1], new_c[2] = old[2];
}


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

x86 assembly (clang, -O2):
<copy3>:
mov    (%rdi),%eax
mov    %eax,(%rsi)
mov    0x4(%rdi),%eax
mov    %eax,0x4(%rsi)
mov    0x8(%rdi),%eax
mov    %eax,0x8(%rsi)
ret

LLVM IR (-O0):
define void @copy3(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 = getelementptr inbounds i32, i32* %5, i64 0
%7 = load i32, i32* %6
%8 = load i32*, i32** %4
%9 = getelementptr inbounds i32, i32* %8, i64 0
store i32 %7, i32* %9
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i64 1
%12 = load i32, i32* %11
%13 = load i32*, i32** %4
%14 = getelementptr inbounds i32, i32* %13, i64 1
store i32 %12, i32* %14
%15 = load i32*, i32** %3
%16 = getelementptr inbounds i32, i32* %15, i64 2
%17 = load i32, i32* %16
%18 = load i32*, i32** %4
%19 = getelementptr inbounds i32, i32* %18, i64 2
store i32 %17, i32* %19
ret void
}

LLVM IR (-O2):
define void @copy3(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
store i32 %3, i32* %1
%4 = getelementptr inbounds i32, i32* %0, i64 1
%5 = load i32, i32* %4
%6 = getelementptr inbounds i32, i32* %1, i64 1
store i32 %5, i32* %6
%7 = getelementptr inbounds i32, i32* %0, i64 2
%8 = load i32, i32* %7
%9 = getelementptr inbounds i32, i32* %1, i64 2
store i32 %8, i32* %9
ret void
}
void glLoadPaletteFromModelViewMatrixOES(void) { return; }


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

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

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

LLVM IR (-O2):
define void @glLoadPaletteFromModelViewMatrixOES() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _IO(int, int);
int ioctl(int, int /*<<< orphan*/);
int CED_KillIO1401(int fh) { return ioctl(fh, _IO(0xce, 18)); }


x86 assembly (clang, -O0):
<CED_KillIO1401>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0xce,%edi
mov    $0x12,%esi
call   1030 <_IO@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1040 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CED_KillIO1401>:
push   %rbx
mov    %edi,%ebx
mov    $0xce,%edi
mov    $0x12,%esi
call   1030 <_IO@plt>
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
jmp    1040 <ioctl@plt>

LLVM IR (-O0):
define i32 @CED_KillIO1401(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_IO(i32 206, i32 18)
%5 = call i32 @ioctl(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @CED_KillIO1401(i32 %0) {
%2 = tail call i32 @_IO(i32 206, i32 18)
%3 = tail call i32 @ioctl(i32 %0, i32 %2)
ret i32 %3
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
char nibble_to_hex(uint8_t nibble) {
  if (nibble < 10) {
    return '0' + nibble;
  } else {
    return 'a' + (nibble - 10);
  }
}


x86 assembly (clang, -O0):
<nibble_to_hex>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    111f <nibble_to_hex+0x1f>
mov    -0x8(%rbp),%eax
add    $0x30,%eax
mov    %al,-0x1(%rbp)
jmp    112b <nibble_to_hex+0x2b>
mov    -0x8(%rbp),%eax
sub    $0xa,%eax
add    $0x61,%eax
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nibble_to_hex>:
cmp    $0xa,%edi
mov    $0x30,%ecx
mov    $0x57,%eax
cmovl  %ecx,%eax
add    %dil,%al
ret

LLVM IR (-O0):
define signext i8 @nibble_to_hex(i32 %0) {
%2 = alloca i8
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 10
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* %3
%8 = add nsw i32 48, %7
%9 = trunc i32 %8 to i8
store i8 %9, i8* %2
br label %15
10: ; preds = %1
%11 = load i32, i32* %3
%12 = sub nsw i32 %11, 10
%13 = add nsw i32 97, %12
%14 = trunc i32 %13 to i8
store i8 %14, i8* %2
br label %15
15: ; preds = %10, %6
%16 = load i8, i8* %2
ret i8 %16
}

LLVM IR (-O2):
define signext i8 @nibble_to_hex(i32 %0) {
%2 = icmp slt i32 %0, 10
%3 = trunc i32 %0 to i8
%4 = select i1 %2, i8 48, i8 87
%5 = add i8 %4, %3
ret i8 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ const uint8_t;

/* Variables and functions */
uint8_t ts_get_adaptation(const uint8_t *p_ts) { return p_ts[4]; }


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

x86 assembly (clang, -O2):
<ts_get_adaptation>:
mov    0x10(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @ts_get_adaptation(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 4
%3 = load i32, i32* %2
ret i32 %3
}
int main(void) {
  int x = 5;
  int *p = &x;
  (int *)p;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x5,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%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 5, i32* %1
store i32* %1, i32** %2
%3 = load i32*, i32** %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free_2d_realnums(double **, int, int);
void am_free_2d_realnums(double **tdarr, int rows, int cols) {
  free_2d_realnums(tdarr, rows, cols);
}


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

x86 assembly (clang, -O2):
<am_free_2d_realnums>:
jmp    1030 <free_2d_realnums@plt>

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

LLVM IR (-O2):
define void @am_free_2d_realnums(double** %0, i32 %1, i32 %2) {
%4 = tail call i32 @free_2d_realnums(double** %0, i32 %1, i32 %2)
ret void
}
/* Variables and functions */
unsigned char bitmask_get(int, unsigned char);
unsigned char lnp_addressing_port(unsigned char mask, unsigned char address) {
  return (bitmask_get(0xff ^ mask, address));
}


x86 assembly (clang, -O0):
<lnp_addressing_port>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%edi
xor    $0xff,%edi
movzbl -0x2(%rbp),%esi
call   1030 <bitmask_get@plt>
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lnp_addressing_port>:
not    %dil
movzbl %dil,%edi
jmp    1030 <bitmask_get@plt>

LLVM IR (-O0):
define zeroext i8 @lnp_addressing_port(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
%7 = xor i32 255, %6
%8 = load i8, i8* %4
%9 = call zeroext i8 @bitmask_get(i32 %7, i8 zeroext %8)
ret i8 %9
}

LLVM IR (-O2):
define zeroext i8 @lnp_addressing_port(i8 zeroext %0, i8 zeroext %1) {
%3 = xor i8 %0, -1
%4 = zext i8 %3 to i32
%5 = tail call zeroext i8 @bitmask_get(i32 %4, i8 zeroext %1)
ret i8 %5
}
void foo571(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo571(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ accept_equality_expression();
int /*<<< orphan*/ parse_AND_expression();
void accept_AND_expression() {
  accept_equality_expression();
  parse_AND_expression();
}


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

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

LLVM IR (-O0):
define void @accept_AND_expression() {
%1 = call i32 (...) @accept_equality_expression()
%2 = call i32 (...) @parse_AND_expression()
ret void
}

LLVM IR (-O2):
define void @accept_AND_expression() {
%1 = tail call i32 (...) @accept_equality_expression()
%2 = tail call i32 (...) @parse_AND_expression()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EVP_CIPHER_CTX_free(void *);
void AES128_CBC_free(void *ctx) { EVP_CIPHER_CTX_free(ctx); }


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

x86 assembly (clang, -O2):
<AES128_CBC_free>:
jmp    1030 <EVP_CIPHER_CTX_free@plt>

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

LLVM IR (-O2):
define void @AES128_CBC_free(i8* %0) {
%2 = tail call i32 @EVP_CIPHER_CTX_free(i8* %0)
ret void
}
int warp_saturate(int val, int min, int max) {
  return (val < min ? min : (val > max ? max : val));
}


x86 assembly (clang, -O0):
<warp_saturate>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1124 <warp_saturate+0x24>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1147 <warp_saturate+0x47>
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    113b <warp_saturate+0x3b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1141 <warp_saturate+0x41>
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<warp_saturate>:
mov    %edx,%eax
cmp    %edx,%edi
cmovle %edi,%eax
cmp    %esi,%edi
cmovl  %esi,%eax
ret

LLVM IR (-O0):
define i32 @warp_saturate(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 = icmp slt i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = load i32, i32* %5
br label %22
12: ; preds = %3
%13 = load i32, i32* %4
%14 = load i32, i32* %6
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = load i32, i32* %6
br label %20
18: ; preds = %12
%19 = load i32, i32* %4
br label %20
20: ; preds = %18, %16
%21 = phi i32 [ %17, %16 ], [ %19, %18 ]
br label %22
22: ; preds = %20, %10
%23 = phi i32 [ %11, %10 ], [ %21, %20 ]
ret i32 %23
}

LLVM IR (-O2):
define i32 @warp_saturate(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, %1
%5 = icmp sgt i32 %0, %2
%6 = select i1 %5, i32 %2, i32 %0
%7 = select i1 %4, i32 %1, i32 %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void __tractorbeam_print_usage0(const char *prg) {
  printf("USAGE: %s {send,recv} OPTIONS...\n\n", prg);
  printf("  tip: use --help after the sub-comamnd to get a list of available "
         "options\n");
}


x86 assembly (clang, -O0):
<__tractorbeam_print_usage0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__tractorbeam_print_usage0>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"USAGE: %s {send,recv} OPTIONS...\0A\0A\00"
@.str.1 = [76 x i8] c" tip: use --help after the sub-comamnd to get a list of available options\0A\00"
define void @__tractorbeam_print_usage0(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"USAGE: %s {send,recv} OPTIONS...\0A\0A\00"
@str = [75 x i8] c" tip: use --help after the sub-comamnd to get a list of available options\00"
define void @__tractorbeam_print_usage0(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str, i64 0, i64 0))
ret void
}
int iptcb_get_number(const struct ip6t_entry *i, const struct ip6t_entry *seek,
                     unsigned int *pos) {
  if (i == seek)
    return 1;
  (*pos)++;
  return 0;
}


x86 assembly (clang, -O0):
<iptcb_get_number>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    112a <iptcb_get_number+0x2a>
movl   $0x1,-0x4(%rbp)
jmp    113c <iptcb_get_number+0x3c>
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iptcb_get_number>:
cmp    %rsi,%rdi
je     110b <iptcb_get_number+0xb>
addl   $0x1,(%rdx)
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
%struct.ip6t_entry = type opaque
define i32 @iptcb_get_number(%struct.ip6t_entry* %0, %struct.ip6t_entry* %1, i32* %2) {
%4 = alloca i32
%5 = alloca %struct.ip6t_entry*
%6 = alloca %struct.ip6t_entry*
%7 = alloca i32*
store %struct.ip6t_entry* %0, %struct.ip6t_entry** %5
store %struct.ip6t_entry* %1, %struct.ip6t_entry** %6
store i32* %2, i32** %7
%8 = load %struct.ip6t_entry*, %struct.ip6t_entry** %5
%9 = load %struct.ip6t_entry*, %struct.ip6t_entry** %6
%10 = icmp eq %struct.ip6t_entry* %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 1, i32* %4
br label %16
12: ; preds = %3
%13 = load i32*, i32** %7
%14 = load i32, i32* %13
%15 = add i32 %14, 1
store i32 %15, i32* %13
store i32 0, i32* %4
br label %16
16: ; preds = %12, %11
%17 = load i32, i32* %4
ret i32 %17
}

LLVM IR (-O2):
%struct.ip6t_entry = type opaque
define i32 @iptcb_get_number(%struct.ip6t_entry* readnone %0, %struct.ip6t_entry* readnone %1, i32* nocapture %2) {
%4 = icmp eq %struct.ip6t_entry* %0, %1
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = load i32, i32* %2
%7 = add i32 %6, 1
store i32 %7, i32* %2
br label %8
8: ; preds = %3, %5
%9 = phi i32 [ 0, %5 ], [ 1, %3 ]
ret i32 %9
}
int test_imm_1Fint16_reg(short val) {
  return ((val) & (-0x1F << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_1Fint16_reg>:
test   $0xffe1,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_1Fint16_reg(i16 signext %0) {
%2 = and i16 %0, -31
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
int qlcnic_register_dcb(struct qlcnic_adapter *adapter) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.qlcnic_adapter = type opaque
define i32 @qlcnic_register_dcb(%struct.qlcnic_adapter* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
struct Layer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free_layer_arrays(struct Layer const *);
void neural_layer_noise_free(const struct Layer *l) { free_layer_arrays(l); }


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

x86 assembly (clang, -O2):
<neural_layer_noise_free>:
jmp    1030 <free_layer_arrays@plt>

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

LLVM IR (-O2):
%struct.Layer = type { i32 }
define void @neural_layer_noise_free(%struct.Layer* %0) {
%2 = tail call i32 @free_layer_arrays(%struct.Layer* %0)
ret void
}
/* Type definitions */
struct timeval {
  double tv_sec;
  double tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double wtime() {
  double time[2];
  struct timeval time1;
  gettimeofday(&time1, NULL);
  time[0] = time1.tv_sec;
  time[1] = time1.tv_usec;
  return time[0] + time[1] * 1.0e-6;
}


x86 assembly (clang, -O0):
<wtime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x20(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xeb5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wtime>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movsd  0x10(%rsp),%xmm0
mulsd  0xed2(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
define double @wtime() {
%1 = alloca [2 x double]
%2 = alloca %struct.timeval
%3 = call i32 @gettimeofday(%struct.timeval* %2, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 0
%5 = load double, double* %4
%6 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
store double %5, double* %6
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 1
%8 = load double, double* %7
%9 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 1
store double %8, double* %9
%10 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%11 = load double, double* %10
%12 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 1
%13 = load double, double* %12
%14 = call double @llvm.fmuladd.f64(double %13, double 0x3EB0C6F7A0B5ED8D, double %11)
ret double %14
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
define double @wtime() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load double, double* %4
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%7 = load double, double* %6
%8 = tail call double @llvm.fmuladd.f64(double %7, double 0x3EB0C6F7A0B5ED8D, double %5)
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ ast_register_file_version(char *, char *);
void __attribute__((constructor)) __register_file_version(void) {
  ast_register_file_version(
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/"
      "master/jitterbuf.c",
      "$Revision: 52264 $");
}


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

x86 assembly (clang, -O2):
<__register_file_version>:
lea    0xee9(%rip),%rdi
lea    0xf78(%rip),%rsi
jmp    1030 <ast_register_file_version@plt>

LLVM IR (-O0):
@.str = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/master/jitterbuf.c\00"
@.str.1 = [19 x i8] c"$Revision: 52264 $\00"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @__register_file_version, i8* null }]
define void @__register_file_version() {
%1 = call i32 @ast_register_file_version(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tpenguin/solarisvoip-asterisk/refs/heads/master/jitterbuf.c\00"
@.str.1 = [19 x i8] c"$Revision: 52264 $\00"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @__register_file_version, i8* null }]
define void @__register_file_version() {
%1 = tail call i32 @ast_register_file_version(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int main(void) {
  char str[] = "abc";
  printf("R  >%10s<\n", str);
  printf("L  >%-10s<\n", str);
  printf("R* >%*s<\n", 10, str);
  printf("L* >%-*s<\n", 10, str);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xedb(%rip),%eax
mov    %eax,-0x8(%rbp)
lea    -0x8(%rbp),%rsi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rsi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rdx
lea    0xec4(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x8(%rbp),%rdx
lea    0xeb7(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x636261,0xc(%rsp)
lea    0xedc(%rip),%rdi
lea    0xc(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0xa,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
mov    $0xa,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.str = [4 x i8] c"abc\00"
@.str = [11 x i8] c"R >%10s<\0A\00"
@.str.1 = [12 x i8] c"L >%-10s<\0A\00"
@.str.2 = [10 x i8] c"R* >%*s<\0A\00"
@.str.3 = [11 x i8] c"L* >%-*s<\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8]
store i32 0, i32* %1
%3 = bitcast [4 x i8]* %2 to i8*
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 10, i8* %8)
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 10, i8* %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"R >%10s<\0A\00"
@.str.1 = [12 x i8] c"L >%-10s<\0A\00"
@.str.2 = [10 x i8] c"R* >%*s<\0A\00"
@.str.3 = [11 x i8] c"L* >%-*s<\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 6513249, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 10, i32* %1)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 10, i32* %1)
ret i32 0
}
int do_942() { return 942; }


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

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

LLVM IR (-O0):
define i32 @do_942() {
ret i32 942
}

LLVM IR (-O2):
define i32 @do_942() {
ret i32 942
}
/* Type definitions */
struct shuffle2_ctx {
  int dummy;
};
struct prime_current_block {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ do_early_prime_group_1_13(struct shuffle2_ctx *,
                                             struct prime_current_block *);
void do_early_prime_13(struct shuffle2_ctx *ctx,
                       struct prime_current_block *pcb) {
  do_early_prime_group_1_13(ctx, pcb);
}


x86 assembly (clang, -O0):
<do_early_prime_13>:
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 <do_early_prime_group_1_13@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_early_prime_13>:
jmp    1030 <do_early_prime_group_1_13@plt>

LLVM IR (-O0):
%struct.shuffle2_ctx = type { i32 }
%struct.prime_current_block = type { i32 }
define void @do_early_prime_13(%struct.shuffle2_ctx* %0, %struct.prime_current_block* %1) {
%3 = alloca %struct.shuffle2_ctx*
%4 = alloca %struct.prime_current_block*
store %struct.shuffle2_ctx* %0, %struct.shuffle2_ctx** %3
store %struct.prime_current_block* %1, %struct.prime_current_block** %4
%5 = load %struct.shuffle2_ctx*, %struct.shuffle2_ctx** %3
%6 = load %struct.prime_current_block*, %struct.prime_current_block** %4
%7 = call i32 @do_early_prime_group_1_13(%struct.shuffle2_ctx* %5, %struct.prime_current_block* %6)
ret void
}

LLVM IR (-O2):
%struct.shuffle2_ctx = type { i32 }
%struct.prime_current_block = type { i32 }
define void @do_early_prime_13(%struct.shuffle2_ctx* %0, %struct.prime_current_block* %1) {
%3 = tail call i32 @do_early_prime_group_1_13(%struct.shuffle2_ctx* %0, %struct.prime_current_block* %1)
ret void
}
/* Variables and functions */
double fabsf(float);
float area(float x1, float x2, float y1, float y2, float z1, float z2) {
  return (fabsf((x1 - y1) * (z2 - y2) - (x2 - y2) * (z1 - y1)) / 2.0);
}


x86 assembly (clang, -O0):
<area>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  -0x18(%rbp),%xmm2
subss  -0x10(%rbp),%xmm2
movss  -0x8(%rbp),%xmm1
subss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm3
subss  -0xc(%rbp),%xmm3
mulss  %xmm3,%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1030 <fabsf@plt>
movsd  0xe7c(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<area>:
push   %rax
subss  %xmm2,%xmm0
subss  %xmm3,%xmm5
mulss  %xmm5,%xmm0
subss  %xmm3,%xmm1
subss  %xmm2,%xmm4
mulss  %xmm1,%xmm4
subss  %xmm4,%xmm0
call   1030 <fabsf@plt>
mulsd  0xec6(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @area(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
store float %0, float* %7
store float %1, float* %8
store float %2, float* %9
store float %3, float* %10
store float %4, float* %11
store float %5, float* %12
%13 = load float, float* %7
%14 = load float, float* %9
%15 = fsub float %13, %14
%16 = load float, float* %12
%17 = load float, float* %10
%18 = fsub float %16, %17
%19 = load float, float* %8
%20 = load float, float* %10
%21 = fsub float %19, %20
%22 = load float, float* %11
%23 = load float, float* %9
%24 = fsub float %22, %23
%25 = fmul float %21, %24
%26 = fneg float %25
%27 = call float @llvm.fmuladd.f32(float %15, float %18, float %26)
%28 = call double @fabsf(float %27)
%29 = fdiv double %28, 2.000000e+00
%30 = fptrunc double %29 to float
ret float %30
}

LLVM IR (-O2):
define float @area(float %0, float %1, float %2, float %3, float %4, float %5) {
%7 = fsub float %0, %2
%8 = fsub float %5, %3
%9 = fsub float %1, %3
%10 = fsub float %4, %2
%11 = fneg float %9
%12 = fmul float %10, %11
%13 = tail call float @llvm.fmuladd.f32(float %7, float %8, float %12)
%14 = tail call double @fabsf(float %13)
%15 = fmul double %14, 5.000000e-01
%16 = fptrunc double %15 to float
ret float %16
}
/* Variables and functions */
int write_block(int, int, int /*<<< orphan*/, int /*<<< orphan*/,
                int /*<<< orphan*/, int /*<<< orphan*/);
int servoAttach(int pin) { return write_block(35, pin, 0, 0, 0, 0); }


x86 assembly (clang, -O0):
<servoAttach>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x23,%edi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1030 <write_block@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<servoAttach>:
mov    %edi,%esi
mov    $0x23,%edi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
jmp    1030 <write_block@plt>

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

LLVM IR (-O2):
define i32 @servoAttach(i32 %0) {
%2 = tail call i32 @write_block(i32 35, i32 %0, i32 0, i32 0, i32 0, i32 0)
ret i32 %2
}
/* Variables and functions */
char *malloc(scalar_t__);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
char *fb_stralloc(char *str) {
  char *newstr;
  if ((newstr = malloc(strlen(str) + 1)) == NULL)
    return (NULL);
  (void)strcpy(newstr, str);
  return (newstr);
}


x86 assembly (clang, -O0):
<fb_stralloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    116c <fb_stralloc+0x3c>
movq   $0x0,-0x8(%rbp)
jmp    1181 <fb_stralloc+0x51>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fb_stralloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1158 <fb_stralloc+0x28>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @fb_stralloc(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i8* @malloc(i64 %3)
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @strcpy(i8* %4, i8* %0)
br label %8
8: ; preds = %1, %6
ret i8* %4
}
void *test_fixture_setup() { return 0; }


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

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

LLVM IR (-O0):
define i8* @test_fixture_setup() {
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @test_fixture_setup() {
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void Dummy_isr(void) {
  printf("Dummy_isr\n\r");
  while (1)
    ;
}


x86 assembly (clang, -O0):
<Dummy_isr>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
jmp    1120 <Dummy_isr+0x10>

x86 assembly (clang, -O2):
<Dummy_isr>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
nopl   (%rax)
jmp    1120 <Dummy_isr+0x10>

LLVM IR (-O0):
@.str = [12 x i8] c"Dummy_isr\0A\0D\00"
define void @Dummy_isr() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
br label %2
}

LLVM IR (-O2):
@.str = [12 x i8] c"Dummy_isr\0A\0D\00"
define void @Dummy_isr() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ get_output_file(int *);
int /*<<< orphan*/ printf(char *, int);
void c_show_pid() {
  int pid;
  get_output_file(&pid);
  printf("%i\n", pid);
}


x86 assembly (clang, -O0):
<c_show_pid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
call   1040 <get_output_file@plt>
mov    -0x4(%rbp),%esi
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_show_pid>:
push   %rax
lea    0x4(%rsp),%rdi
call   1040 <get_output_file@plt>
mov    0x4(%rsp),%esi
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%i\0A\00"
define void @c_show_pid() {
%1 = alloca i32
%2 = call i32 @get_output_file(i32* %1)
%3 = load i32, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
define void @c_show_pid() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @get_output_file(i32* %1)
%4 = load i32, i32* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}
/* Type definitions */
typedef scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ show_user(char *);
void show_user_quick_help(pid_t target) {
  if (target == 0) {
    show_user(
        "Enter the pid of the process to search using the \"pid\" command.\n");
    show_user("Enter \"help\" for other commands.\n");
  } else {
    show_user("Please enter current value, or \"help\" for other commands.\n");
  }
}


x86 assembly (clang, -O0):
<show_user_quick_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1144 <show_user_quick_help+0x34>
lea    0xed2(%rip),%rdi
call   1030 <show_user@plt>
lea    0xf07(%rip),%rdi
call   1030 <show_user@plt>
jmp    1150 <show_user_quick_help+0x40>
lea    0xf18(%rip),%rdi
call   1030 <show_user@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_user_quick_help>:
test   %rdi,%rdi
je     1121 <show_user_quick_help+0x11>
lea    0xf47(%rip),%rdi
jmp    1030 <show_user@plt>
push   %rax
lea    0xed7(%rip),%rdi
call   1030 <show_user@plt>
lea    0xf0c(%rip),%rdi
add    $0x8,%rsp
jmp    1030 <show_user@plt>

LLVM IR (-O0):
@.str = [65 x i8] c"Enter the pid of the process to search using the \22pid\22 command.\0A\00"
@.str.1 = [34 x i8] c"Enter \22help\22 for other commands.\0A\00"
@.str.2 = [59 x i8] c"Please enter current value, or \22help\22 for other commands.\0A\00"
define void @show_user_quick_help(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = call i32 @show_user(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @show_user(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @show_user(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
@.str = [65 x i8] c"Enter the pid of the process to search using the \22pid\22 command.\0A\00"
@.str.1 = [34 x i8] c"Enter \22help\22 for other commands.\0A\00"
@.str.2 = [59 x i8] c"Please enter current value, or \22help\22 for other commands.\0A\00"
define void @show_user_quick_help(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @show_user(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %1, %3
%6 = phi i8* [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), %1 ]
%7 = tail call i32 @show_user(i8* %6)
ret void
}
int palindromic(unsigned int n) {
  unsigned int reversed = 0, original = n;
  while (n > 0) {
    reversed = reversed * 10 + n % 10;
    n /= 10;
  }
  return reversed == original;
}


x86 assembly (clang, -O0):
<palindromic>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
jbe    114d <palindromic+0x4d>
imul   $0xa,-0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
mov    -0x10(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x4(%rbp)
jmp    1114 <palindromic+0x14>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<palindromic>:
xor    %edx,%edx
test   %edi,%edi
je     1133 <palindromic+0x33>
mov    $0xcccccccd,%r8d
mov    %edi,%ecx
xchg   %ax,%ax
lea    (%rdx,%rdx,4),%r9d
mov    %ecx,%esi
imul   %r8,%rsi
shr    $0x23,%rsi
lea    (%rsi,%rsi,1),%eax
lea    (%rax,%rax,4),%eax
mov    %ecx,%edx
sub    %eax,%edx
lea    (%rdx,%r9,2),%edx
cmp    $0x9,%ecx
mov    %esi,%ecx
ja     1110 <palindromic+0x10>
xor    %eax,%eax
cmp    %edi,%edx
sete   %al
ret

LLVM IR (-O0):
define i32 @palindromic(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
%5 = load i32, i32* %2
store i32 %5, i32* %4
br label %6
6: ; preds = %9, %1
%7 = load i32, i32* %2
%8 = icmp ugt i32 %7, 0
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = load i32, i32* %3
%11 = mul i32 %10, 10
%12 = load i32, i32* %2
%13 = urem i32 %12, 10
%14 = add i32 %11, %13
store i32 %14, i32* %3
%15 = load i32, i32* %2
%16 = udiv i32 %15, 10
store i32 %16, i32* %2
br label %6
17: ; preds = %6
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = icmp eq i32 %18, %19
%21 = zext i1 %20 to i32
ret i32 %21
}

LLVM IR (-O2):
define i32 @palindromic(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %11, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %9, %3 ], [ %0, %1 ]
%5 = phi i32 [ %8, %3 ], [ 0, %1 ]
%6 = mul i32 %5, 10
%7 = urem i32 %4, 10
%8 = add i32 %7, %6
%9 = udiv i32 %4, 10
%10 = icmp ult i32 %4, 10
br i1 %10, label %11, label %3
11: ; preds = %3, %1
%12 = phi i32 [ 0, %1 ], [ %8, %3 ]
%13 = icmp eq i32 %12, %0
%14 = zext i1 %13 to i32
ret i32 %14
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
int EAST_CD_5(int in) {
  FILE *fin = fopen("func_header.h.ecov", "a");
  if (fin) {
    fprintf(fin, "CD5:%d\n", in);
  }
  fclose(fin);
  return in;
}


x86 assembly (clang, -O0):
<EAST_CD_5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xebe(%rip),%rdi
lea    0xeca(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1170 <EAST_CD_5+0x40>
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xeaa(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EAST_CD_5>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
lea    0xec4(%rip),%rdi
lea    0xed0(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1161 <EAST_CD_5+0x31>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
call   1040 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"func_header.h.ecov\00"
@.str.1 = [2 x i8] c"a\00"
@.str.2 = [8 x i8] c"CD5:%d\0A\00"
define i32 @EAST_CD_5(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
%4 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %4, i32** %3
%5 = load i32*, i32** %3
%6 = icmp ne i32* %5, null
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32*, i32** %3
%9 = load i32, i32* %2
%10 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %9)
br label %11
11: ; preds = %7, %1
%12 = load i32*, i32** %3
%13 = call i32 @fclose(i32* %12)
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@.str = [19 x i8] c"func_header.h.ecov\00"
@.str.1 = [2 x i8] c"a\00"
@.str.2 = [8 x i8] c"CD5:%d\0A\00"
define i32 @EAST_CD_5(i32 returned %0) {
%2 = tail call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @fprintf(i32* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %0)
br label %6
6: ; preds = %4, %1
%7 = tail call i32 @fclose(i32* %2)
ret i32 %0
}
void STEAM_GetLocalCopy(const char *fileName) {}


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

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

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

LLVM IR (-O2):
define void @STEAM_GetLocalCopy(i8* nocapture %0) {
ret void
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  unsigned long (*get_pixel)(TYPE_2__ *, int, int);
};
struct TYPE_4__ {
  TYPE_1__ f;
};
typedef TYPE_2__ XImage;

/* Variables and functions */
void set_XImage_f_get_pixel(void *_p, void *_v) {
  ((XImage *)_p)->f.get_pixel = (unsigned long (*)(XImage *, int, int))_v;
}


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

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

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

LLVM IR (-O2):
define void @set_XImage_f_get_pixel(i8* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %0 to i8**
store i8* %1, i8** %3
ret void
}