xunge/DecIR huggingface dataset:
/* Variables and functions */
scalar_t__ isspace(int);
char *strnpc(const char *str, size_t len) {
  while (len && isspace((int)*str)) {
    str++;
    len--;
  }
  return (char *)str;
}


x86 assembly (clang, -O0):
<strnpc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x11(%rbp)
je     1146 <strnpc+0x36>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1156 <strnpc+0x46>
jmp    1173 <strnpc+0x63>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
jmp    1120 <strnpc+0x10>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strnpc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
test   %rsi,%rsi
je     1137 <strnpc+0x27>
mov    %rsi,%r14
nop
movsbl (%rbx),%edi
call   1030 <isspace@plt>
test   %rax,%rax
je     1137 <strnpc+0x27>
add    $0x1,%rbx
add    $0xffffffffffffffff,%r14
jne    1120 <strnpc+0x10>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

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


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

x86 assembly (clang, -O2):
<SetMotors>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
mov    %ebx,%esi
call   1030 <SetMotor@plt>
mov    $0x1,%edi
mov    %ebx,%esi
call   1030 <SetMotor@plt>
mov    $0x2,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <SetMotor@plt>

LLVM IR (-O0):
define void @SetMotors(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @SetMotor(i32 0, i32 %3)
%5 = load i32, i32* %2
%6 = call i32 @SetMotor(i32 1, i32 %5)
%7 = load i32, i32* %2
%8 = call i32 @SetMotor(i32 2, i32 %7)
ret void
}

LLVM IR (-O2):
define void @SetMotors(i32 %0) {
%2 = tail call i32 @SetMotor(i32 0, i32 %0)
%3 = tail call i32 @SetMotor(i32 1, i32 %0)
%4 = tail call i32 @SetMotor(i32 2, i32 %0)
ret void
}
void sendChildInfo(void) {
  _serverPanic("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/"
               "heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c",
               120, "Function '%s' is disabled.", __func__);
}


x86 assembly (clang, -O0):
<sendChildInfo>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x78,%esi
lea    0xf79(%rip),%rdx
lea    0xf8d(%rip),%rcx
mov    $0x0,%al
call   1030 <_serverPanic@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sendChildInfo>:
lea    0xee9(%rip),%rdi
lea    0xf82(%rip),%rdx
lea    0xf96(%rip),%rcx
mov    $0x78,%esi
xor    %eax,%eax
jmp    1030 <_serverPanic@plt>

LLVM IR (-O0):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.sendChildInfo = [14 x i8] c"sendChildInfo\00"
define void @sendChildInfo() {
%1 = call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 120, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.sendChildInfo, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [160 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/CodisLabs/redis-port/refs/heads/redis-4.x-cgo/pkg/rdb/cgo_glue_meow.c\00"
@.str.1 = [27 x i8] c"Function '%s' is disabled.\00"
@__func__.sendChildInfo = [14 x i8] c"sendChildInfo\00"
define void @sendChildInfo() {
%1 = tail call i32 (i8*, i32, i8*, i8*, ...) bitcast (i32 (...)* @_serverPanic to i32 (i8*, i32, i8*, i8*, ...)*)(i8* getelementptr inbounds ([160 x i8], [160 x i8]* @.str, i64 0, i64 0), i32 120, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.sendChildInfo, i64 0, i64 0))
ret void
}
/* Variables and functions */
int f(int);
int main() {
  int a = f(1);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @f(i32 1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ outbyte1(int);
col1() { outbyte1(58); }


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

x86 assembly (clang, -O2):
<col1>:
mov    $0x3a,%edi
jmp    1030 <outbyte1@plt>

LLVM IR (-O0):
define i32 @col1() {
%1 = alloca i32
%2 = call i32 @outbyte1(i32 58)
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @col1() {
%1 = tail call i32 @outbyte1(i32 58)
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ prog;

/* Variables and functions */
int /*<<< orphan*/ SOL_SOCKET;
int setsockopt(int, int /*<<< orphan*/, int, int *, int);
int bpf_attach_socket(int sock, int prog) {
  return setsockopt(sock, SOL_SOCKET, 50, &prog, sizeof(prog));
}


x86 assembly (clang, -O0):
<bpf_attach_socket>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
mov    $0x32,%edx
lea    -0x8(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bpf_attach_socket>:
push   %rax
mov    %esi,0x4(%rsp)
mov    0x2ecc(%rip),%rax
mov    (%rax),%esi
lea    0x4(%rsp),%rcx
mov    $0x32,%edx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
pop    %rcx
ret

LLVM IR (-O0):
@SOL_SOCKET = global i32 0
define i32 @bpf_attach_socket(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* @SOL_SOCKET
%7 = call i32 @setsockopt(i32 %5, i32 %6, i32 50, i32* %4, i32 4)
ret i32 %7
}

LLVM IR (-O2):
@SOL_SOCKET = global i32 0
define i32 @bpf_attach_socket(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = load i32, i32* @SOL_SOCKET
%5 = call i32 @setsockopt(i32 %0, i32 %4, i32 50, i32* %3, i32 4)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ dsymv_(char *, int *, double *, double *, int *, double *,
                          int *, double *, double *, int *);
void wcc_dsymv_(char *UPLO, int *N, char *ALPHA, char *A, int *LDA, char *X,
                int *INCX, char *BETA, char *Y, int *INCY) {
  dsymv_(UPLO, N, (double *)ALPHA, (double *)A, LDA, (double *)X, INCX,
         (double *)BETA, (double *)Y, INCY);
}


x86 assembly (clang, -O0):
<wcc_dsymv_>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%r9
mov    0x10(%rbp),%rbx
mov    0x18(%rbp),%r11
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <dsymv_@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcc_dsymv_>:
jmp    1030 <dsymv_@plt>

LLVM IR (-O0):
define void @wcc_dsymv_(i8* %0, i32* %1, i8* %2, i8* %3, i32* %4, i8* %5, i32* %6, i8* %7, i8* %8, i32* %9) {
%11 = alloca i8*
%12 = alloca i32*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32*
%16 = alloca i8*
%17 = alloca i32*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i32*
store i8* %0, i8** %11
store i32* %1, i32** %12
store i8* %2, i8** %13
store i8* %3, i8** %14
store i32* %4, i32** %15
store i8* %5, i8** %16
store i32* %6, i32** %17
store i8* %7, i8** %18
store i8* %8, i8** %19
store i32* %9, i32** %20
%21 = load i8*, i8** %11
%22 = load i32*, i32** %12
%23 = load i8*, i8** %13
%24 = bitcast i8* %23 to double*
%25 = load i8*, i8** %14
%26 = bitcast i8* %25 to double*
%27 = load i32*, i32** %15
%28 = load i8*, i8** %16
%29 = bitcast i8* %28 to double*
%30 = load i32*, i32** %17
%31 = load i8*, i8** %18
%32 = bitcast i8* %31 to double*
%33 = load i8*, i8** %19
%34 = bitcast i8* %33 to double*
%35 = load i32*, i32** %20
%36 = call i32 @dsymv_(i8* %21, i32* %22, double* %24, double* %26, i32* %27, double* %29, i32* %30, double* %32, double* %34, i32* %35)
ret void
}

LLVM IR (-O2):
define void @wcc_dsymv_(i8* %0, i32* %1, i8* %2, i8* %3, i32* %4, i8* %5, i32* %6, i8* %7, i8* %8, i32* %9) {
%11 = bitcast i8* %2 to double*
%12 = bitcast i8* %3 to double*
%13 = bitcast i8* %5 to double*
%14 = bitcast i8* %7 to double*
%15 = bitcast i8* %8 to double*
%16 = tail call i32 @dsymv_(i8* %0, i32* %1, double* %11, double* %12, i32* %4, double* %13, i32* %6, double* %14, double* %15, i32* %9)
ret void
}
/* Type definitions */
struct timeval {
  int dummy;
};

/* Variables and functions */
int gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int read_clock(struct timeval *t) { return gettimeofday(t, NULL); }


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

x86 assembly (clang, -O2):
<read_clock>:
xor    %esi,%esi
jmp    1030 <gettimeofday@plt>

LLVM IR (-O0):
%struct.timeval = type { i32 }
define i32 @read_clock(%struct.timeval* %0) {
%2 = alloca %struct.timeval*
store %struct.timeval* %0, %struct.timeval** %2
%3 = load %struct.timeval*, %struct.timeval** %2
%4 = call i32 @gettimeofday(%struct.timeval* %3, i32* null)
ret i32 %4
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
define i32 @read_clock(%struct.timeval* nocapture %0) {
%2 = tail call i32 @gettimeofday(%struct.timeval* %0, i32* null)
ret i32 %2
}
int min(int a, int b, int c) {
  int ans = 2100000000;
  if (ans > a) {
    ans = a;
  }
  if (ans > b) {
    ans = b;
  }
  if (ans > c) {
    ans = c;
  }
  if (ans == -1) {
    return 0;
  }
  return ans;
}


x86 assembly (clang, -O0):
<min>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x7d2b7500,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1126 <min+0x26>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1138 <min+0x38>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    114a <min+0x4a>
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    1160 <min+0x60>
movl   $0x0,-0x4(%rbp)
jmp    1166 <min+0x66>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<min>:
cmp    $0x7d2b7500,%edi
mov    $0x7d2b7500,%ecx
cmovl  %edi,%ecx
cmp    %esi,%ecx
cmovg  %esi,%ecx
cmp    %edx,%ecx
cmovg  %edx,%ecx
xor    %eax,%eax
cmp    $0xffffffff,%ecx
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @min(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 2100000000, i32* %8
%9 = load i32, i32* %8
%10 = load i32, i32* %5
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = load i32, i32* %5
store i32 %13, i32* %8
br label %14
14: ; preds = %12, %3
%15 = load i32, i32* %8
%16 = load i32, i32* %6
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i32, i32* %6
store i32 %19, i32* %8
br label %20
20: ; preds = %18, %14
%21 = load i32, i32* %8
%22 = load i32, i32* %7
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = load i32, i32* %7
store i32 %25, i32* %8
br label %26
26: ; preds = %24, %20
%27 = load i32, i32* %8
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %30
29: ; preds = %26
store i32 0, i32* %4
br label %32
30: ; preds = %26
%31 = load i32, i32* %8
store i32 %31, i32* %4
br label %32
32: ; preds = %30, %29
%33 = load i32, i32* %4
ret i32 %33
}

LLVM IR (-O2):
define i32 @min(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, 2100000000
%5 = select i1 %4, i32 %0, i32 2100000000
%6 = icmp sgt i32 %5, %1
%7 = select i1 %6, i32 %1, i32 %5
%8 = icmp sgt i32 %7, %2
%9 = select i1 %8, i32 %2, i32 %7
%10 = icmp eq i32 %9, -1
%11 = select i1 %10, i32 0, i32 %9
ret i32 %11
}
/* Variables and functions */
short file___NativeString_file_exists___impl(char *);
short int core__file___NativeString___file_exists(char *self) {
  short int var;
  short int var1;
  var1 = file___NativeString_file_exists___impl(self);
  var = var1;
  goto RET_LABEL;
RET_LABEL:;
  return var;
}


x86 assembly (clang, -O0):
<core__file___NativeString___file_exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <file___NativeString_file_exists___impl@plt>
mov    %ax,-0xc(%rbp)
mov    -0xc(%rbp),%ax
mov    %ax,-0xa(%rbp)
movswl -0xa(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<core__file___NativeString___file_exists>:
jmp    1030 <file___NativeString_file_exists___impl@plt>

LLVM IR (-O0):
define signext i16 @core__file___NativeString___file_exists(i8* %0) {
%2 = alloca i8*
%3 = alloca i16
%4 = alloca i16
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call signext i16 @file___NativeString_file_exists___impl(i8* %5)
store i16 %6, i16* %4
%7 = load i16, i16* %4
store i16 %7, i16* %3
br label %8
8: ; preds = %1
%9 = load i16, i16* %3
ret i16 %9
}

LLVM IR (-O2):
define signext i16 @core__file___NativeString___file_exists(i8* %0) {
%2 = tail call signext i16 @file___NativeString_file_exists___impl(i8* %0)
ret i16 %2
}
/* Variables and functions */
char *rfc1738_do_escape(char const *, int);
char *rfc1738_escape_unescaped(const char *url) {
  return rfc1738_do_escape(url, -1);
}


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

x86 assembly (clang, -O2):
<rfc1738_escape_unescaped>:
mov    $0xffffffff,%esi
jmp    1030 <rfc1738_do_escape@plt>

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

LLVM IR (-O2):
define i8* @rfc1738_escape_unescaped(i8* %0) {
%2 = tail call i8* @rfc1738_do_escape(i8* %0, i32 -1)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void dummy_sapr3() { printf("\n"); }


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

x86 assembly (clang, -O2):
<dummy_sapr3>:
mov    $0xa,%edi
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
define void @dummy_sapr3() {
%1 = tail call i32 @putchar(i32 10)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ __infer_nondet_int();
pid_t fork(void) { return __infer_nondet_int(); }


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

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

LLVM IR (-O0):
define i32 @fork() {
%1 = call i32 (...) @__infer_nondet_int()
ret i32 %1
}

LLVM IR (-O2):
define i32 @fork() {
%1 = tail call i32 (...) @__infer_nondet_int()
ret i32 %1
}
double kmToYards(double km) { return km * 1093.61; }


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

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

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

LLVM IR (-O2):
define double @kmToYards(double %0) {
%2 = fmul double %0, 1.093610e+03
ret double %2
}
void test_invalid_clause() {
  int i, a;
#pragma omp parallel master taskloop simd foo bar
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel master taskloop simd nogroup nogroup
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel master taskloop simd in_reduction(+ : a)
  for (i = 0; i < 16; ++i)
    ;
}


x86 assembly (clang, -O0):
<test_invalid_clause>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1128 <test_invalid_clause+0x28>
jmp    111a <test_invalid_clause+0x1a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <test_invalid_clause+0xb>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    114c <test_invalid_clause+0x4c>
jmp    113e <test_invalid_clause+0x3e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <test_invalid_clause+0x2f>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1170 <test_invalid_clause+0x70>
jmp    1162 <test_invalid_clause+0x62>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1153 <test_invalid_clause+0x53>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @test_invalid_clause() {
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t ini_func1(uint32_t x) { return (x ^ (x >> 27)) * (1664525U); }


x86 assembly (clang, -O0):
<ini_func1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
sar    $0x1b,%ecx
xor    %ecx,%eax
imul   $0x19660d,%eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ini_func1>:
mov    %edi,%eax
sar    $0x1b,%eax
xor    %edi,%eax
imul   $0x19660d,%eax,%eax
ret

LLVM IR (-O0):
define i32 @ini_func1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = ashr i32 %4, 27
%6 = xor i32 %3, %5
%7 = mul i32 %6, 1664525
ret i32 %7
}

LLVM IR (-O2):
define i32 @ini_func1(i32 %0) {
%2 = ashr i32 %0, 27
%3 = xor i32 %2, %0
%4 = mul i32 %3, 1664525
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
zysep() {
  write(1, "\f", 1);
  return 0;
}


x86 assembly (clang, -O0):
<zysep>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edx
lea    0xee0(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<zysep>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
mov    $0x1,%edx
call   1030 <write@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0C\00"
define i32 @zysep() {
%1 = call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0C\00"
define i32 @zysep() {
%1 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
ret i32 0
}
OP(fd, e7) {
  illegal_1();
  op_e7();
}


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

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

LLVM IR (-O0):
define i32 @OP(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (...) @illegal_1()
%7 = call i32 (...) @op_e7()
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
%3 = tail call i32 (...) @illegal_1()
%4 = tail call i32 (...) @op_e7()
ret i32 undef
}
/* Variables and functions */
int inb(unsigned short);
int serial_received(unsigned short com) { return inb((com + 5)) & 1; }


x86 assembly (clang, -O0):
<serial_received>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
add    $0x5,%eax
movzwl %ax,%edi
call   1030 <inb@plt>
and    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<serial_received>:
push   %rax
add    $0x5,%edi
movzwl %di,%edi
call   1030 <inb@plt>
and    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @serial_received(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = zext i16 %3 to i32
%5 = add nsw i32 %4, 5
%6 = trunc i32 %5 to i16
%7 = call i32 @inb(i16 zeroext %6)
%8 = and i32 %7, 1
ret i32 %8
}

LLVM IR (-O2):
define i32 @serial_received(i16 zeroext %0) {
%2 = add i16 %0, 5
%3 = tail call i32 @inb(i16 zeroext %2)
%4 = and i32 %3, 1
ret i32 %4
}
/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int /*<<< orphan*/ ptr;
};
typedef TYPE_1__ UDF_INIT;

/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/);
void jfmin_deinit(UDF_INIT *initid) {
  free(initid->ptr);
  return;
}


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

x86 assembly (clang, -O2):
<jfmin_deinit>:
mov    (%rdi),%edi
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32 }
define void @jfmin_deinit(%struct.TYPE_3__* %0) {
%2 = alloca %struct.TYPE_3__*
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %2
%3 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i32 0, i32 0
%5 = load i32, i32* %4
%6 = call i32 @free(i32 %5)
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32 }
define void @jfmin_deinit(%struct.TYPE_3__* nocapture %0) {
%2 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%3 = load i32, i32* %2
%4 = tail call i32 @free(i32 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ japi_insert(int, int, char *);
void j_insert(int arg0, int arg1, char *arg2) { japi_insert(arg0, arg1, arg2); }


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

x86 assembly (clang, -O2):
<j_insert>:
jmp    1030 <japi_insert@plt>

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

LLVM IR (-O2):
define void @j_insert(i32 %0, i32 %1, i8* %2) {
%4 = tail call i32 @japi_insert(i32 %0, i32 %1, i8* %2)
ret void
}
void g_key_file_set_locale_string() {}


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

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

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

LLVM IR (-O2):
define void @g_key_file_set_locale_string() {
ret void
}
void wifi_rsp_hardware_rtc_get_time(
    const struct wifi_msg_hardware_rtc_get_time_rsp_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.wifi_msg_hardware_rtc_get_time_rsp_t = type opaque
define void @wifi_rsp_hardware_rtc_get_time(%struct.wifi_msg_hardware_rtc_get_time_rsp_t* nocapture %0) {
ret void
}
double get_energy(double v) { return v * v * 0.5 * (2.0); }


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

x86 assembly (clang, -O2):
<get_energy>:
mulsd  %xmm0,%xmm0
mulsd  0xef4(%rip),%xmm0
addsd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @get_energy(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
%6 = fmul double %5, 5.000000e-01
%7 = fmul double %6, 2.000000e+00
ret double %7
}

LLVM IR (-O2):
define double @get_energy(double %0) {
%2 = fmul double %0, %0
%3 = fmul double %2, 5.000000e-01
%4 = fmul double %3, 2.000000e+00
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isupper(int);
void t_isupper_0x65() {
  Assert_real((isupper(101) == 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_isupper.c",
              510, ("isupper should be 0 for e"));
}


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

x86 assembly (clang, -O2):
<t_isupper_0x65>:
push   %rax
mov    $0x65,%edi
call   1030 <isupper@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x1fe,%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_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 0 for e\00"
define void @t_isupper_0x65() {
%1 = call i64 @isupper(i32 101)
%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 510, 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_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 0 for e\00"
define void @t_isupper_0x65() {
%1 = tail call i64 @isupper(i32 101)
%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 510, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int fun880() { return 880; }


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

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

LLVM IR (-O0):
define i32 @fun880() {
ret i32 880
}

LLVM IR (-O2):
define i32 @fun880() {
ret i32 880
}
/* Variables and functions */
int /*<<< orphan*/ _exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void exit_child(int code) {
  fflush(stderr);
  fflush(stdout);
  _exit(code);
}


x86 assembly (clang, -O0):
<exit_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    -0x4(%rbp),%edi
call   1030 <_exit@plt>

x86 assembly (clang, -O2):
<exit_child>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    %ebx,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@stdout = global i32 0
define void @exit_child(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = call i32 @fflush(i32 %3)
%5 = load i32, i32* @stdout
%6 = call i32 @fflush(i32 %5)
%7 = load i32, i32* %2
%8 = call i32 @_exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@stdout = global i32 0
define void @exit_child(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fflush(i32 %2)
%4 = load i32, i32* @stdout
%5 = tail call i32 @fflush(i32 %4)
%6 = tail call i32 @_exit(i32 %0)
unreachable
}
/* Variables and functions */
int task_flag_asserted(int, int);
int task_yield_asserted(int id) { return task_flag_asserted(id, (1 << 7)); }


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

x86 assembly (clang, -O2):
<task_yield_asserted>:
mov    $0x80,%esi
jmp    1030 <task_flag_asserted@plt>

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

LLVM IR (-O2):
define i32 @task_yield_asserted(i32 %0) {
%2 = tail call i32 @task_flag_asserted(i32 %0, i32 128)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ display(int *);
int main() {
  int channels[7] = {2, 4, 5, 7, 9, 11, 13};
  display(channels);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed4(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xed2(%rip),%eax
mov    %eax,-0x8(%rbp)
lea    -0x20(%rbp),%rdi
call   1030 <display@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movups 0xef1(%rip),%xmm0
movups %xmm0,0xc(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <display@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.channels = [7 x i32] [i32 2, i32 4, i32 5, i32 7, i32 9, i32 11, i32 13]
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i32]
store i32 0, i32* %1
%3 = bitcast [7 x i32]* %2 to i8*
%4 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%5 = call i32 @display(i32* %4)
ret i32 0
}

LLVM IR (-O2):
@__const.main.channels = [7 x i32] [i32 2, i32 4, i32 5, i32 7, i32 9, i32 11, i32 13]
define i32 @main() {
%1 = alloca [7 x i32]
%2 = bitcast [7 x i32]* %1 to i8*
%3 = getelementptr inbounds [7 x i32], [7 x i32]* %1, i64 0, i64 0
%4 = call i32 @display(i32* %3)
ret i32 0
}
/* Variables and functions */
scalar_t__ has_goal_on(char);
char put_sok(char ch) { return has_goal_on(ch) ? '+' : '@'; }


x86 assembly (clang, -O0):
<put_sok>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <has_goal_on@plt>
mov    %rax,%rdx
mov    $0x40,%eax
mov    $0x2b,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<put_sok>:
push   %rax
call   1030 <has_goal_on@plt>
test   %rax,%rax
mov    $0x40,%ecx
mov    $0x2b,%eax
cmove  %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define signext i8 @put_sok(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i64 @has_goal_on(i8 signext %3)
%5 = icmp ne i64 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 43, i32 64
%8 = trunc i32 %7 to i8
ret i8 %8
}

LLVM IR (-O2):
define signext i8 @put_sok(i8 signext %0) {
%2 = tail call i64 @has_goal_on(i8 signext %0)
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i8 64, i8 43
ret i8 %4
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ system(char *);
int x31_setup() {
  char cmd[256];
  sprintf(cmd,
          "iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags "
          "SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d",
          1);
  system(cmd);
  return 0;
}


x86 assembly (clang, -O0):
<x31_setup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
lea    -0x100(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x1,%edx
call   1040 <sprintf@plt>
lea    -0x100(%rbp),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x31_setup>:
push   %rbx
sub    $0x100,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x1,%edx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00"
define i32 @x31_setup() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%5 = call i32 @system(i8* %4)
ret i32 0
}

LLVM IR (-O2):
@.str = [106 x i8] c"iptables -A INPUT -p tcp -m multiport --sport 53,80 --tcp-flags SYN,ACK SYN,ACK -j NFQUEUE --queue-num %d\00"
define i32 @x31_setup() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = call i32 @system(i8* %2)
ret i32 0
}
int ceph_osd_op_mode_modify(int op) { return op & 0x2000; }


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

x86 assembly (clang, -O2):
<ceph_osd_op_mode_modify>:
mov    %edi,%eax
and    $0x2000,%eax
ret

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

LLVM IR (-O2):
define i32 @ceph_osd_op_mode_modify(i32 %0) {
%2 = and i32 %0, 8192
ret i32 %2
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMR4E_set(void) { return U_WMRCORENONE_set("U_WMR4E"); }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR4E\00"
define i8* @U_WMR4E_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
void mlx5e_ipsec_build_inverse_table(void) {}


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

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

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

LLVM IR (-O2):
define void @mlx5e_ipsec_build_inverse_table() {
ret void
}
void w12(void *x, long long y) { *(long long *)(x + 32756) = y; }


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

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

LLVM IR (-O0):
define void @w12(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i8*, i8** %3
%7 = getelementptr i8, i8* %6, i64 32756
%8 = bitcast i8* %7 to i64*
store i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @w12(i8* nocapture writeonly %0, i64 %1) {
%3 = getelementptr i8, i8* %0, i64 32756
%4 = bitcast i8* %3 to i64*
store i64 %1, i64* %4
ret void
}
/* Type definitions */
struct termios {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ TCSANOW;
int /*<<< orphan*/ tcsetattr(int /*<<< orphan*/, int /*<<< orphan*/,
                             struct termios *);
int restaure_term(struct termios *initial_term) {
  tcsetattr(0, TCSANOW, initial_term);
  return 0;
}


x86 assembly (clang, -O0):
<restaure_term>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rdx
xor    %edi,%edi
call   1030 <tcsetattr@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<restaure_term>:
push   %rax
mov    %rdi,%rdx
mov    0x2ecd(%rip),%rax
mov    (%rax),%esi
xor    %edi,%edi
call   1030 <tcsetattr@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.termios = type { i32 }
@TCSANOW = global i32 0
define i32 @restaure_term(%struct.termios* %0) {
%2 = alloca %struct.termios*
store %struct.termios* %0, %struct.termios** %2
%3 = load i32, i32* @TCSANOW
%4 = load %struct.termios*, %struct.termios** %2
%5 = call i32 @tcsetattr(i32 0, i32 %3, %struct.termios* %4)
ret i32 0
}

LLVM IR (-O2):
%struct.termios = type { i32 }
@TCSANOW = global i32 0
define i32 @restaure_term(%struct.termios* %0) {
%2 = load i32, i32* @TCSANOW
%3 = tail call i32 @tcsetattr(i32 0, i32 %2, %struct.termios* %0)
ret i32 0
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, double);
double stdlib_strided_dsumpw(int, double *, int);
int main() {
  double x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  double v = stdlib_strided_dsumpw(N, x, stride);
  printf("sum: %lf\n", v);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x40(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x40,%edx
call   1040 <memcpy@plt>
movl   $0x4,-0x44(%rbp)
movl   $0x2,-0x48(%rbp)
mov    -0x44(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%edx
call   1050 <stdlib_strided_dsumpw@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb1(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rsi
mov    $0x4,%edi
mov    $0x2,%edx
call   1040 <stdlib_strided_dsumpw@plt>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.x = [8 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00]
@.str = [10 x i8] c"sum: %lf\0A\00"
define i32 @main() {
%1 = alloca [8 x double]
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = bitcast [8 x double]* %1 to i8*
store i32 4, i32* %2
store i32 2, i32* %3
%6 = load i32, i32* %2
%7 = getelementptr inbounds [8 x double], [8 x double]* %1, i64 0, i64 0
%8 = load i32, i32* %3
%9 = call double @stdlib_strided_dsumpw(i32 %6, double* %7, i32 %8)
store double %9, double* %4
%10 = load double, double* %4
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double %10)
ret i32 0
}

LLVM IR (-O2):
@__const.main.x = [8 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00]
@.str = [10 x i8] c"sum: %lf\0A\00"
define i32 @main() {
%1 = alloca [8 x double]
%2 = bitcast [8 x double]* %1 to i8*
%3 = getelementptr inbounds [8 x double], [8 x double]* %1, i64 0, i64 0
%4 = call double @stdlib_strided_dsumpw(i32 4, double* %3, i32 2)
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double %4)
ret i32 0
}
/* Variables and functions */
int EINVAL;
__attribute__((visibility("default"))) int sd_event_source_set_enabled(void *s,
                                                                       int m) {
  return -EINVAL;
}


x86 assembly (clang, -O0):
<sd_event_source_set_enabled>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
xor    %eax,%eax
mov    0x2ecc(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sd_event_source_set_enabled>:
mov    0x2ed9(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@EINVAL = global i32 0
define i32 @sd_event_source_set_enabled(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @EINVAL
%6 = sub nsw i32 0, %5
ret i32 %6
}

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @sd_event_source_set_enabled(i8* nocapture readnone %0, i32 %1) {
%3 = load i32, i32* @EINVAL
%4 = sub nsw i32 0, %3
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printbits(int /*<<< orphan*/);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ setbits(int, int, int, int);
int main(void) {
  printbits(setbits(0xFFFF, 7, 3, 0x0000));
  (void)putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xffff,%edi
mov    $0x7,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
call   1050 <setbits@plt>
mov    %eax,%edi
call   1040 <printbits@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xffff,%edi
mov    $0x7,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
call   1050 <setbits@plt>
mov    %eax,%edi
call   1040 <printbits@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @setbits(i32 65535, i32 7, i32 3, i32 0)
%3 = call i32 @printbits(i32 %2)
%4 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @setbits(i32 65535, i32 7, i32 3, i32 0)
%2 = tail call i32 @printbits(i32 %1)
%3 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}
/* Variables and functions */
int EINVAL;
int __syscall_getcwd(char *buf, size_t size) {
  if (buf && size) {
    buf[0] = '/';
    buf[1] = 0;
    return 1;
  }
  return -EINVAL;
}


x86 assembly (clang, -O0):
<__syscall_getcwd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     113d <__syscall_getcwd+0x3d>
cmpq   $0x0,-0x18(%rbp)
je     113d <__syscall_getcwd+0x3d>
mov    -0x10(%rbp),%rax
movb   $0x2f,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x1(%rax)
movl   $0x1,-0x4(%rbp)
jmp    114b <__syscall_getcwd+0x4b>
xor    %eax,%eax
mov    0x2e9a(%rip),%rcx
sub    (%rcx),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__syscall_getcwd>:
test   %rdi,%rdi
je     1115 <__syscall_getcwd+0x15>
test   %rsi,%rsi
je     1115 <__syscall_getcwd+0x15>
movw   $0x2f,(%rdi)
mov    $0x1,%eax
ret
mov    0x2ec4(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@EINVAL = global i32 0
define i32 @__syscall_getcwd(i8* %0, i64 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
%6 = load i8*, i8** %4
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %16
8: ; preds = %2
%9 = load i64, i64* %5
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i8*, i8** %4
%13 = getelementptr inbounds i8, i8* %12, i64 0
store i8 47, i8* %13
%14 = load i8*, i8** %4
%15 = getelementptr inbounds i8, i8* %14, i64 1
store i8 0, i8* %15
store i32 1, i32* %3
br label %19
16: ; preds = %8, %2
%17 = load i32, i32* @EINVAL
%18 = sub nsw i32 0, %17
store i32 %18, i32* %3
br label %19
19: ; preds = %16, %11
%20 = load i32, i32* %3
ret i32 %20
}

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @__syscall_getcwd(i8* writeonly %0, i64 %1) {
%3 = icmp ne i8* %0, null
%4 = icmp ne i64 %1, 0
%5 = and i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
store i8 47, i8* %0
%7 = getelementptr inbounds i8, i8* %0, i64 1
store i8 0, i8* %7
br label %11
8: ; preds = %2
%9 = load i32, i32* @EINVAL
%10 = sub nsw i32 0, %9
br label %11
11: ; preds = %8, %6
%12 = phi i32 [ 1, %6 ], [ %10, %8 ]
ret i32 %12
}