xunge/DecIR huggingface dataset:
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int create_homotopy(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(152, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<create_homotopy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x98,%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):
<create_homotopy>:
mov    $0x98,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

LLVM IR (-O0):
define i32 @create_homotopy() {
%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 152, 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 @create_homotopy() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 152, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
scalar_t__ Available();
int Eof() { return Available() == 0; }


x86 assembly (clang, -O0):
<Eof>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <Available@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Eof>:
push   %rax
xor    %eax,%eax
call   1030 <Available@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @Eof() {
%1 = call i64 (...) @Available()
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
ret i32 %3
}

LLVM IR (-O2):
define i32 @Eof() {
%1 = tail call i64 (...) @Available()
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
void foo042() {}


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

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

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

LLVM IR (-O2):
define void @foo042() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ LCD_command_2D(int, int);
void LCD_set_address_pointer(int address) { LCD_command_2D(0x24, address); }


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

x86 assembly (clang, -O2):
<LCD_set_address_pointer>:
mov    %edi,%esi
mov    $0x24,%edi
jmp    1030 <LCD_command_2D@plt>

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

LLVM IR (-O2):
define void @LCD_set_address_pointer(i32 %0) {
%2 = tail call i32 @LCD_command_2D(i32 36, i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stdout;
void _erase_n_cols(int n) { fprintf(stdout, "\x1B[%dX", n); }


x86 assembly (clang, -O0):
<_erase_n_cols>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ebe(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xed2(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_erase_n_cols>:
mov    %edi,%edx
mov    0x2ec7(%rip),%rax
mov    (%rax),%edi
lea    0xede(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [6 x i8] c"\1B[%dX\00"
define void @_erase_n_cols(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stdout
%4 = load i32, i32* %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [6 x i8] c"\1B[%dX\00"
define void @_erase_n_cols(i32 %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
void init_sub_pixel_span_funcs_c(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ __put_unaligned_4(unsigned long long const,
                                     int /*<<< orphan*/ *);
void __put_unaligned_8(const unsigned long long __v, register __u8 *__p) {
  __put_unaligned_4(__v >> 32, __p + 4);
  __put_unaligned_4(__v, __p);
}


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

x86 assembly (clang, -O2):
<__put_unaligned_8>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
shr    $0x20,%rdi
add    $0x10,%rsi
call   1030 <__put_unaligned_4@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <__put_unaligned_4@plt>

LLVM IR (-O0):
define void @__put_unaligned_8(i64 %0, i32* %1) {
%3 = alloca i64
%4 = alloca i32*
store i64 %0, i64* %3
store i32* %1, i32** %4
%5 = load i64, i64* %3
%6 = lshr i64 %5, 32
%7 = load i32*, i32** %4
%8 = getelementptr inbounds i32, i32* %7, i64 4
%9 = call i32 @__put_unaligned_4(i64 %6, i32* %8)
%10 = load i64, i64* %3
%11 = load i32*, i32** %4
%12 = call i32 @__put_unaligned_4(i64 %10, i32* %11)
ret void
}

LLVM IR (-O2):
define void @__put_unaligned_8(i64 %0, i32* %1) {
%3 = lshr i64 %0, 32
%4 = getelementptr inbounds i32, i32* %1, i64 4
%5 = tail call i32 @__put_unaligned_4(i64 %3, i32* %4)
%6 = tail call i32 @__put_unaligned_4(i64 %0, i32* %1)
ret void
}
int sum(int n1) { return n1; }


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

x86 assembly (clang, -O2):
<sum>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @sum(i32 returned %0) {
ret i32 %0
}
/* Variables and functions */
int /*<<< orphan*/ vecNd_scalarMult_new(double *, double *, double const,
                                        int const);
void vecNd_scalarMult(double v[], const double scalar, const int n) {
  vecNd_scalarMult_new(v, v, scalar, n);
}


x86 assembly (clang, -O0):
<vecNd_scalarMult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
movsd  -0x10(%rbp),%xmm0
mov    -0x14(%rbp),%edx
call   1030 <vecNd_scalarMult_new@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vecNd_scalarMult>:
mov    %esi,%edx
mov    %rdi,%rsi
jmp    1030 <vecNd_scalarMult_new@plt>

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

LLVM IR (-O2):
define void @vecNd_scalarMult(double* %0, double %1, i32 %2) {
%4 = tail call i32 @vecNd_scalarMult_new(double* %0, double* %0, double %1, i32 %2)
ret void
}
void RandomFunc(unsigned short input[1], unsigned short output[1]) {
  unsigned short state[1];
  unsigned short local1;
  {
    state[0UL] = input[0UL] + (unsigned short)11483;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      local1++;
    }
    output[0UL] = ((state[0UL] >> (unsigned short)13) |
                   (state[0UL] << (unsigned short)3)) *
                  (unsigned short)4365;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzwl (%rax),%eax
add    $0x2cdb,%eax
mov    %ax,-0x12(%rbp)
movw   $0x0,-0x14(%rbp)
movzwl -0x14(%rbp),%eax
mov    -0x8(%rbp),%rcx
movzwl 0x2(%rcx),%ecx
cmp    %ecx,%eax
jge    1147 <RandomFunc+0x47>
mov    -0x14(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x14(%rbp)
jmp    1122 <RandomFunc+0x22>
movzwl -0x12(%rbp),%eax
sar    $0xd,%eax
movzwl -0x12(%rbp),%ecx
shl    $0x3,%ecx
or     %ecx,%eax
imul   $0x110d,%eax,%eax
mov    %ax,%cx
mov    -0x10(%rbp),%rax
mov    %cx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
movzwl (%rdi),%eax
add    $0x2cdb,%eax
rol    $0x3,%ax
imul   $0x110d,%eax,%eax
mov    %ax,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i16* %0, i16* %1) {
%3 = alloca i16*
%4 = alloca i16*
%5 = alloca [1 x i16]
%6 = alloca i16
store i16* %0, i16** %3
store i16* %1, i16** %4
%7 = load i16*, i16** %3
%8 = getelementptr inbounds i16, i16* %7, i64 0
%9 = load i16, i16* %8
%10 = zext i16 %9 to i32
%11 = add nsw i32 %10, 11483
%12 = trunc i32 %11 to i16
%13 = getelementptr inbounds [1 x i16], [1 x i16]* %5, i64 0, i64 0
store i16 %12, i16* %13
store i16 0, i16* %6
br label %14
14: ; preds = %22, %2
%15 = load i16, i16* %6
%16 = zext i16 %15 to i32
%17 = load i16*, i16** %3
%18 = getelementptr inbounds i16, i16* %17, i64 1
%19 = load i16, i16* %18
%20 = zext i16 %19 to i32
%21 = icmp slt i32 %16, %20
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load i16, i16* %6
%24 = add i16 %23, 1
store i16 %24, i16* %6
br label %14
25: ; preds = %14
%26 = getelementptr inbounds [1 x i16], [1 x i16]* %5, i64 0, i64 0
%27 = load i16, i16* %26
%28 = zext i16 %27 to i32
%29 = ashr i32 %28, 13
%30 = getelementptr inbounds [1 x i16], [1 x i16]* %5, i64 0, i64 0
%31 = load i16, i16* %30
%32 = zext i16 %31 to i32
%33 = shl i32 %32, 3
%34 = or i32 %29, %33
%35 = mul nsw i32 %34, 4365
%36 = trunc i32 %35 to i16
%37 = load i16*, i16** %4
%38 = getelementptr inbounds i16, i16* %37, i64 0
store i16 %36, i16* %38
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i16* nocapture %0, i16* nocapture writeonly %1) {
%3 = load i16, i16* %0
%4 = add i16 %3, 11483
%5 = tail call i16 @llvm.fshl.i16(i16 %4, i16 %4, i16 3)
%6 = mul i16 %5, 4365
store i16 %6, i16* %1
ret void
}
void wsp_setup_phb_msi(struct pci_controller *phb) {}


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

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

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

LLVM IR (-O2):
%struct.pci_controller = type opaque
define void @wsp_setup_phb_msi(%struct.pci_controller* nocapture %0) {
ret void
}
/* Type definitions */
struct s_img {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ create_img(struct s_img *);
int /*<<< orphan*/ destroy_img(struct s_img *);
void resize_img(struct s_img *img) {
  destroy_img(img);
  create_img(img);
}


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

x86 assembly (clang, -O2):
<resize_img>:
push   %rbx
mov    %rdi,%rbx
call   1040 <destroy_img@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <create_img@plt>

LLVM IR (-O0):
%struct.s_img = type { i32 }
define void @resize_img(%struct.s_img* %0) {
%2 = alloca %struct.s_img*
store %struct.s_img* %0, %struct.s_img** %2
%3 = load %struct.s_img*, %struct.s_img** %2
%4 = call i32 @destroy_img(%struct.s_img* %3)
%5 = load %struct.s_img*, %struct.s_img** %2
%6 = call i32 @create_img(%struct.s_img* %5)
ret void
}

LLVM IR (-O2):
%struct.s_img = type { i32 }
define void @resize_img(%struct.s_img* %0) {
%2 = tail call i32 @destroy_img(%struct.s_img* %0)
%3 = tail call i32 @create_img(%struct.s_img* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int crlfbuffer_write(int /*<<< orphan*/ *, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
int crlfbuffer_puts(BIO *b, const char *str) {
  return (crlfbuffer_write(b, str, strlen(str)));
}


x86 assembly (clang, -O0):
<crlfbuffer_puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <crlfbuffer_write@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crlfbuffer_puts>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <crlfbuffer_write@plt>

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

LLVM IR (-O2):
define i32 @crlfbuffer_puts(i32* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @crlfbuffer_write(i32* %0, i8* %1, i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ DisplayGameControlValues();
void DrawGameDoorValues() { DisplayGameControlValues(); }


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

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

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

LLVM IR (-O2):
define void @DrawGameDoorValues() {
%1 = tail call i32 (...) @DisplayGameControlValues()
ret void
}
int ft_isprint(int c) {
  if ((c >= 040) && (c <= 0176))
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<ft_isprint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
jl     1127 <ft_isprint+0x27>
cmpl   $0x7e,-0x8(%rbp)
jg     1127 <ft_isprint+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <ft_isprint+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_isprint>:
add    $0xffffffe0,%edi
xor    %eax,%eax
cmp    $0x5f,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @ft_isprint(i32 %0) {
%2 = add i32 %0, -32
%3 = icmp ult i32 %2, 95
%4 = zext i1 %3 to i32
ret i32 %4
}
__attribute__((no, noclone)) unsigned __int128 t158_5add(signed __int128 x) {
  unsigned __int128 r;
  if (__builtin_add_overflow(x, (signed __int128)(-4), &r))
    bar();
  return r;
}


x86 assembly (clang, -O0):
<t158_5add>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    %rcx,%r9
sar    $0x3f,%r9
add    $0xfffffffffffffffc,%rdx
adc    $0xffffffffffffffff,%rcx
mov    %r9,%r8
adc    $0xffffffffffffffff,%r8
adc    $0xffffffffffffffff,%r9
mov    %r8d,%eax
and    $0x1,%eax
mov    %eax,%esi
mov    %rsi,%rax
neg    %rax
mov    %rax,%rdi
xor    %r9,%rdi
xor    %r8,%rax
or     %rdi,%rax
or     %rsi,%rax
setne  %al
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x38(%rbp)
test   $0x1,%al
jne    1187 <t158_5add+0x77>
jmp    118e <t158_5add+0x7e>
mov    $0x0,%al
call   1030 <bar@plt>
mov    -0x40(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t158_5add>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
mov    %rdi,%r14
add    $0xfffffffffffffffc,%r14
mov    %rsi,%rbx
adc    $0xffffffffffffffff,%rbx
mov    $0x3,%ecx
cmp    %rdi,%rcx
sbb    %rsi,%rax
jl     1138 <t158_5add+0x28>
xor    %eax,%eax
call   1030 <bar@plt>
mov    %r14,%rax
mov    %rbx,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define { i64, i64 } @t158_5add(i64 %0, i64 %1) {
%3 = alloca i128
%4 = alloca i128
%5 = alloca i128
%6 = alloca i128
%7 = bitcast i128* %4 to { i64, i64 }*
%8 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 0
store i64 %0, i64* %8
%9 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 1
store i64 %1, i64* %9
%10 = load i128, i128* %4
store i128 %10, i128* %5
%11 = load i128, i128* %5
%12 = sext i128 %11 to i129
%13 = call { i129, i1 } @llvm.sadd.with.overflow.i129(i129 %12, i129 -4)
%14 = extractvalue { i129, i1 } %13, 1
%15 = extractvalue { i129, i1 } %13, 0
%16 = trunc i129 %15 to i128
%17 = zext i128 %16 to i129
%18 = icmp ne i129 %15, %17
%19 = or i1 %14, %18
store i128 %16, i128* %6
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (...) @bar()
br label %22
22: ; preds = %20, %2
%23 = load i128, i128* %6
store i128 %23, i128* %3
%24 = bitcast i128* %3 to { i64, i64 }*
%25 = load { i64, i64 }, { i64, i64 }* %24
ret { i64, i64 } %25
}

LLVM IR (-O2):
define { i64, i64 } @t158_5add(i64 %0, i64 %1) {
%3 = zext i64 %1 to i128
%4 = shl nuw i128 %3, 64
%5 = zext i64 %0 to i128
%6 = or i128 %4, %5
%7 = zext i128 %6 to i129
%8 = add nsw i129 %7, -4
%9 = icmp slt i128 %6, 4
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = tail call i32 (...) @bar()
br label %12
12: ; preds = %10, %2
%13 = trunc i129 %8 to i64
%14 = lshr i129 %8, 64
%15 = trunc i129 %14 to i64
%16 = insertvalue { i64, i64 } poison, i64 %13, 0
%17 = insertvalue { i64, i64 } %16, i64 %15, 1
ret { i64, i64 } %17
}
void perf_counters_destroy(void) {}


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

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

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

LLVM IR (-O2):
define void @perf_counters_destroy() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ WNOHANG;
scalar_t__ waitpid(int, int *, int /*<<< orphan*/);
void sig_hand(int sig) {
  int status;
  while (waitpid(-1, &status, WNOHANG) > 0)
    ;
}


x86 assembly (clang, -O0):
<sig_hand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ec6(%rip),%rax
mov    (%rax),%edx
mov    $0xffffffff,%edi
lea    -0x8(%rbp),%rsi
call   1030 <waitpid@plt>
cmp    $0x0,%rax
jle    1141 <sig_hand+0x31>
jmp    111b <sig_hand+0xb>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig_hand>:
push   %r14
push   %rbx
push   %rax
mov    0x2ecd(%rip),%r14
lea    0x4(%rsp),%rbx
mov    (%r14),%edx
mov    $0xffffffff,%edi
mov    %rbx,%rsi
call   1030 <waitpid@plt>
test   %rax,%rax
jg     1120 <sig_hand+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@WNOHANG = global i32 0
define void @sig_hand(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
br label %4
4: ; preds = %8, %1
%5 = load i32, i32* @WNOHANG
%6 = call i64 @waitpid(i32 -1, i32* %3, i32 %5)
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %4
br label %4
9: ; preds = %4
ret void
}

LLVM IR (-O2):
@WNOHANG = global i32 0
define void @sig_hand(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
br label %4
4: ; preds = %4, %1
%5 = load i32, i32* @WNOHANG
%6 = call i64 @waitpid(i32 -1, i32* %2, i32 %5)
%7 = icmp sgt i64 %6, 0
br i1 %7, label %4, label %8
8: ; preds = %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ e_bmi();
int /*<<< orphan*/ e_branch();
void e_bmi_branch() {
  e_branch();
  e_bmi();
}


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

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

LLVM IR (-O0):
define void @e_bmi_branch() {
%1 = call i32 (...) @e_branch()
%2 = call i32 (...) @e_bmi()
ret void
}

LLVM IR (-O2):
define void @e_bmi_branch() {
%1 = tail call i32 (...) @e_branch()
%2 = tail call i32 (...) @e_bmi()
ret void
}
/* Type definitions */
struct cec_msg {
  int /*<<< orphan*/ *msg;
};
typedef int /*<<< orphan*/ __u8;

/* Variables and functions */
void cec_ops_cec_version(const struct cec_msg *msg, __u8 *cec_version) {
  *cec_version = msg->msg[2];
}


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

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

LLVM IR (-O0):
%struct.cec_msg = type { i32* }
define void @cec_ops_cec_version(%struct.cec_msg* %0, i32* %1) {
%3 = alloca %struct.cec_msg*
%4 = alloca i32*
store %struct.cec_msg* %0, %struct.cec_msg** %3
store i32* %1, i32** %4
%5 = load %struct.cec_msg*, %struct.cec_msg** %3
%6 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %5, i32 0, i32 0
%7 = load i32*, i32** %6
%8 = getelementptr inbounds i32, i32* %7, i64 2
%9 = load i32, i32* %8
%10 = load i32*, i32** %4
store i32 %9, i32* %10
ret void
}

LLVM IR (-O2):
%struct.cec_msg = type { i32* }
define void @cec_ops_cec_version(%struct.cec_msg* nocapture %0, i32* nocapture writeonly %1) {
%3 = getelementptr inbounds %struct.cec_msg, %struct.cec_msg* %0, i64 0, i32 0
%4 = load i32*, i32** %3
%5 = getelementptr inbounds i32, i32* %4, i64 2
%6 = load i32, i32* %5
store i32 %6, i32* %1
ret void
}
/* Variables and functions */
int printf(char *, char *);
int myprint(char *str, ...) { return printf("Parse error: %s\n", str); }


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

x86 assembly (clang, -O2):
<myprint>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"Parse error: %s\0A\00"
define i32 @myprint(i8* %0, ...) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i32 %4
}

LLVM IR (-O2):
@.str = [17 x i8] c"Parse error: %s\0A\00"
define i32 @myprint(i8* %0, ...) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ subroutine(int);
void handler(int sig) { subroutine(sig); }


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

x86 assembly (clang, -O2):
<handler>:
jmp    1030 <subroutine@plt>

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

LLVM IR (-O2):
define void @handler(i32 %0) {
%2 = tail call i32 @subroutine(i32 %0)
ret void
}
/* Variables and functions */
scalar_t__ putchar(int);
void out_char(int c) { (int)putchar(c); }


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

x86 assembly (clang, -O2):
<out_char>:
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @out_char(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i64 @putchar(i32 %3)
%5 = trunc i64 %4 to i32
ret void
}

LLVM IR (-O2):
define void @out_char(i32 %0) {
%2 = tail call i64 @putchar(i32 %0)
ret void
}
/* Type definitions */
struct sock {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ sk_release_kernel(struct sock *);
void inet_ctl_sock_destroy(struct sock *sk) {
  if (sk)
    sk_release_kernel(sk);
}


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

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

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

LLVM IR (-O2):
%struct.sock = type { i32 }
define void @inet_ctl_sock_destroy(%struct.sock* %0) {
%2 = icmp eq %struct.sock* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @sk_release_kernel(%struct.sock* %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Type definitions */
typedef scalar_t__ uint64_t;
struct timespec {
  int tv_sec;
  scalar_t__ tv_nsec;
};

/* Variables and functions */
uint64_t timespec_to_long(const struct timespec *t) {
  return t->tv_sec * 1000000000 + t->tv_nsec;
}


x86 assembly (clang, -O0):
<timespec_to_long>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x3b9aca00,(%rax),%eax
cltq
mov    -0x8(%rbp),%rcx
add    0x8(%rcx),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<timespec_to_long>:
movslq (%rdi),%rax
imul   $0x3b9aca00,%rax,%rax
add    0x8(%rdi),%rax
ret

LLVM IR (-O0):
%struct.timespec = type { i32, i64 }
define i64 @timespec_to_long(%struct.timespec* %0) {
%2 = alloca %struct.timespec*
store %struct.timespec* %0, %struct.timespec** %2
%3 = load %struct.timespec*, %struct.timespec** %2
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000000000
%7 = sext i32 %6 to i64
%8 = load %struct.timespec*, %struct.timespec** %2
%9 = getelementptr inbounds %struct.timespec, %struct.timespec* %8, i32 0, i32 1
%10 = load i64, i64* %9
%11 = add nsw i64 %7, %10
ret i64 %11
}

LLVM IR (-O2):
%struct.timespec = type { i32, i64 }
define i64 @timespec_to_long(%struct.timespec* nocapture %0) {
%2 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 0
%3 = load i32, i32* %2
%4 = mul nsw i32 %3, 1000000000
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 1
%7 = load i64, i64* %6
%8 = add nsw i64 %7, %5
ret i64 %8
}
int builtin_bg(int argc, char *argv[]) { return 0; }


x86 assembly (clang, -O0):
<builtin_bg>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @builtin_bg(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
void POLICYINFO_free(void) {}


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

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

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

LLVM IR (-O2):
define void @POLICYINFO_free() {
ret void
}
int bint12(void) { return 2; }


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

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

LLVM IR (-O0):
define i32 @bint12() {
ret i32 2
}

LLVM IR (-O2):
define i32 @bint12() {
ret i32 2
}
int validate(char *buffer, int size, char value) {
  register int i;
  register char *cp;
  register char v1;
  v1 = value;
  cp = buffer;
  for (i = 0; i < size; i++) {
    if (*cp++ != v1)
      return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<validate>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
mov    %al,-0x29(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    116e <validate+0x6e>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x28(%rbp)
movsbl (%rax),%eax
movsbl -0x29(%rbp),%ecx
cmp    %ecx,%eax
je     115b <validate+0x5b>
movl   $0x1,-0x4(%rbp)
jmp    1175 <validate+0x75>
jmp    1160 <validate+0x60>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1125 <validate+0x25>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<validate>:
test   %esi,%esi
jle    111d <validate+0x1d>
mov    %esi,%eax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
cmp    %dl,(%rdi,%rcx,1)
jne    1120 <validate+0x20>
add    $0x1,%rcx
cmp    %ecx,%eax
jne    1110 <validate+0x10>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @validate(i8* nocapture %0, i32 %1, i8 signext %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %14
5: ; preds = %3, %10
%6 = phi i8* [ %11, %10 ], [ %0, %3 ]
%7 = phi i32 [ %12, %10 ], [ 0, %3 ]
%8 = load i8, i8* %6
%9 = icmp eq i8 %8, %2
br i1 %9, label %10, label %14
10: ; preds = %5
%11 = getelementptr inbounds i8, i8* %6, i64 1
%12 = add nuw nsw i32 %7, 1
%13 = icmp eq i32 %12, %1
br i1 %13, label %14, label %5
14: ; preds = %5, %10, %3
%15 = phi i32 [ 0, %3 ], [ 0, %10 ], [ 1, %5 ]
ret i32 %15
}
/* Variables and functions */
char *get_data_str();
int /*<<< orphan*/ send_int_to_srv(int);
char *get_curr_file() {
  send_int_to_srv(0x0f);
  return get_data_str();
}


x86 assembly (clang, -O0):
<get_curr_file>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf,%edi
call   1030 <send_int_to_srv@plt>
mov    $0x0,%al
call   1040 <get_data_str@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_curr_file>:
push   %rax
mov    $0xf,%edi
call   1030 <send_int_to_srv@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <get_data_str@plt>

LLVM IR (-O0):
define i8* @get_curr_file() {
%1 = call i32 @send_int_to_srv(i32 15)
%2 = call i8* (...) @get_data_str()
ret i8* %2
}

LLVM IR (-O2):
define i8* @get_curr_file() {
%1 = tail call i32 @send_int_to_srv(i32 15)
%2 = tail call i8* (...) @get_data_str()
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x75() {
  Assert_real((ispunct(117) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_ispunct.c",
              590, ("ispunct should be 0 for u"));
}


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

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

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for u\00"
define void @t_ispunct_0x75() {
%1 = tail call i64 @ispunct(i32 117)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 590, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ i2c_write_reg(int, int);
void i2c_write_command(int d) { i2c_write_reg(4, d); }


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

x86 assembly (clang, -O2):
<i2c_write_command>:
mov    %edi,%esi
mov    $0x4,%edi
jmp    1030 <i2c_write_reg@plt>

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

LLVM IR (-O2):
define void @i2c_write_command(i32 %0) {
%2 = tail call i32 @i2c_write_reg(i32 4, i32 %0)
ret void
}
unsigned int eruConfigureOGU3(unsigned int exocon) {
  (*((volatile unsigned int *const)(0x40010600 + 0x2c))) = exocon;
  return 0;
}


x86 assembly (clang, -O0):
<eruConfigureOGU3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x4001062c,%eax
mov    %ecx,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<eruConfigureOGU3>:
mov    %edi,0x4001062c
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @eruConfigureOGU3(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
store volatile i32 %3, i32* inttoptr (i64 1073808940 to i32*)
ret i32 0
}

LLVM IR (-O2):
define i32 @eruConfigureOGU3(i32 %0) {
store volatile i32 %0, i32* inttoptr (i64 1073808940 to i32*)
ret i32 0
}
/* Type definitions */
struct fs_file {
  int dummy;
};
typedef int /*<<< orphan*/ ssize_t;

/* Variables and functions */
int /*<<< orphan*/ fs_posix_write_to(struct fs_file *, void const *, size_t,
                                     int);
ssize_t fs_posix_write(struct fs_file *f, const void *buf, size_t count) {
  return fs_posix_write_to(f, buf, count, -1);
}


x86 assembly (clang, -O0):
<fs_posix_write>:
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),%rsi
mov    -0x18(%rbp),%rdx
mov    $0xffffffff,%ecx
call   1030 <fs_posix_write_to@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fs_posix_write>:
mov    $0xffffffff,%ecx
jmp    1030 <fs_posix_write_to@plt>

LLVM IR (-O0):
%struct.fs_file = type { i32 }
define i32 @fs_posix_write(%struct.fs_file* %0, i8* %1, i64 %2) {
%4 = alloca %struct.fs_file*
%5 = alloca i8*
%6 = alloca i64
store %struct.fs_file* %0, %struct.fs_file** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load %struct.fs_file*, %struct.fs_file** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i32 @fs_posix_write_to(%struct.fs_file* %7, i8* %8, i64 %9, i32 -1)
ret i32 %10
}

LLVM IR (-O2):
%struct.fs_file = type { i32 }
define i32 @fs_posix_write(%struct.fs_file* %0, i8* %1, i64 %2) {
%4 = tail call i32 @fs_posix_write_to(%struct.fs_file* %0, i8* %1, i64 %2, i32 -1)
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ jmp_buf;

/* Variables and functions */
int /*<<< orphan*/ longjmp(int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *);
void second(jmp_buf *b) {
  printf("second\n");
  longjmp(*b, 1);
}


x86 assembly (clang, -O0):
<second>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1040 <longjmp@plt>

x86 assembly (clang, -O2):
<second>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%edi
mov    $0x1,%esi
call   1040 <longjmp@plt>

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

LLVM IR (-O2):
@str = [7 x i8] c"second\00"
define void @second(i32* nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%3 = load i32, i32* %0
%4 = tail call i32 @longjmp(i32 %3, i32 1)
unreachable
}
double square(double __x) { return __x * __x; }


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

x86 assembly (clang, -O2):
<square>:
mulsd  %xmm0,%xmm0
ret

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

LLVM IR (-O2):
define double @square(double %0) {
%2 = fmul double %0, %0
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ lemon_strcpy(char *, char const *);
void lemon_strcat(char *dest, const char *src) {
  while (*dest)
    dest++;
  lemon_strcpy(dest, src);
}


x86 assembly (clang, -O0):
<lemon_strcat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     113e <lemon_strcat+0x2e>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1120 <lemon_strcat+0x10>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <lemon_strcpy@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lemon_strcat>:
add    $0xffffffffffffffff,%rdi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmpb   $0x0,0x1(%rdi)
lea    0x1(%rdi),%rdi
jne    1120 <lemon_strcat+0x10>
jmp    1030 <lemon_strcpy@plt>

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

LLVM IR (-O2):
define void @lemon_strcat(i8* %0, i8* %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %6, label %8, label %3
8: ; preds = %3
%9 = tail call i32 @lemon_strcpy(i8* %4, i8* %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
bool px4_arch_gpioread(uint32_t pinset) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @px4_arch_gpioread(i32 %0) {
ret i32 0
}
void foo151(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo151(i32 %0) {
ret void
}
void soft_right_2(void) {}


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

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

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

LLVM IR (-O2):
define void @soft_right_2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ write(int /*<<< orphan*/, char *, int);
int main(int argc, char *argv[]) {
  int one = 1;
  char goldstr[6];
  while (one) {
    sprintf(goldstr, "%d", one);
    write(atoi(argv[1]), goldstr, 2);
  }
  return (one);
  sleep(2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     118c <main+0x5c>
lea    -0x1a(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xe9b(%rip),%rsi
call   1050 <sprintf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,%edi
lea    -0x1a(%rbp),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
jmp    114d <main+0x1d>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r15
lea    0xebd(%rip),%r14
lea    0xa(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
call   1050 <sprintf@plt>
mov    0x8(%r15),%rdi
call   1040 <atoi@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1030 <write@plt>
jmp    1150 <main+0x20>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [6 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %8
8: ; preds = %11, %2
%9 = load i32, i32* %6
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 0
%13 = load i32, i32* %6
%14 = call i32 @sprintf(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
%19 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 0
%20 = call i32 @write(i32 %18, i8* %19, i32 2)
br label %8
21: ; preds = %8
%22 = load i32, i32* %6
ret i32 %22
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [6 x i8]
%4 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds i8*, i8** %1, i64 1
br label %6
6: ; preds = %6, %2
%7 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%8 = load i8*, i8** %5
%9 = tail call i32 @atoi(i8* %8)
%10 = call i32 @write(i32 %9, i8* %4, i32 2)
br label %6
}
void penrose_count_tiles(int depth, int *nlarge, int *nsmall) {}


x86 assembly (clang, -O0):
<penrose_count_tiles>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @penrose_count_tiles(i32 %0, i32* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
store i32 %0, i32* %4
store i32* %1, i32** %5
store i32* %2, i32** %6
ret void
}

LLVM IR (-O2):
define void @penrose_count_tiles(i32 %0, i32* nocapture %1, i32* nocapture %2) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           char *);
int /*<<< orphan*/ stderr;
void showIntro() {
  fprintf(stderr, "%s\t(GPL)\tversion %s  %s\t%s\n",
          "lowerBound (compute lowerBound for disjunctive emerging patterns)",
          "0.99", "2012-03-09", "Renato Vimieiro");
}


x86 assembly (clang, -O0):
<showIntro>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
lea    0xef1(%rip),%rdx
lea    0xf2c(%rip),%rcx
lea    0xf2a(%rip),%r8
lea    0xf2e(%rip),%r9
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showIntro>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
lea    0xef5(%rip),%rdx
lea    0xf30(%rip),%rcx
lea    0xf2e(%rip),%r8
lea    0xf32(%rip),%r9
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [28 x i8] c"%s\09(GPL)\09version %s %s\09%s\0A\00"
@.str.1 = [66 x i8] c"lowerBound (compute lowerBound for disjunctive emerging patterns)\00"
@.str.2 = [5 x i8] c"0.99\00"
@.str.3 = [11 x i8] c"2012-03-09\00"
@.str.4 = [16 x i8] c"Renato Vimieiro\00"
define void @showIntro() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [28 x i8] c"%s\09(GPL)\09version %s %s\09%s\0A\00"
@.str.1 = [66 x i8] c"lowerBound (compute lowerBound for disjunctive emerging patterns)\00"
@.str.2 = [5 x i8] c"0.99\00"
@.str.3 = [11 x i8] c"2012-03-09\00"
@.str.4 = [16 x i8] c"Renato Vimieiro\00"
define void @showIntro() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
ret void
}