xunge/DecIR huggingface dataset:
int nPossiblesMoviments(char tauler[6][7]) {
  int i, j = 0;
  for (i = 0; i < 7; i++) {
    if (tauler[6 - 1][i] == '-')
      j++;
  }
  return j;
}


x86 assembly (clang, -O0):
<nPossiblesMoviments>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jge    1152 <nPossiblesMoviments+0x52>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl 0x23(%rax,%rcx,1),%eax
cmp    $0x2d,%eax
jne    113f <nPossiblesMoviments+0x3f>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <nPossiblesMoviments+0x44>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <nPossiblesMoviments+0x16>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nPossiblesMoviments>:
movd   0x23(%rdi),%xmm0
xor    %r8d,%r8d
cmpb   $0x2d,0x27(%rdi)
sete   %r8b
xor    %edx,%edx
cmpb   $0x2d,0x28(%rdi)
sete   %dl
xor    %esi,%esi
cmpb   $0x2d,0x29(%rdi)
sete   %sil
pcmpeqb 0xed5(%rip),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
movmskps %xmm0,%eax
mov    %eax,%ecx
shr    %cl
and    $0x5,%cl
sub    %cl,%al
mov    %eax,%ecx
and    $0x33,%cl
shr    $0x2,%al
and    $0x33,%al
add    %cl,%al
mov    %eax,%ecx
shr    $0x4,%cl
add    %al,%cl
and    $0xf,%cl
movzbl %cl,%eax
add    %r8d,%eax
add    %edx,%eax
add    %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @nPossiblesMoviments([7 x i8]* nocapture %0) {
%2 = getelementptr inbounds [7 x i8], [7 x i8]* %0, i64 5, i64 0
%3 = bitcast i8* %2 to <4 x i8>*
%4 = load <4 x i8>, <4 x i8>* %3
%5 = icmp eq <4 x i8> %4, <i8 45, i8 45, i8 45, i8 45>
%6 = getelementptr inbounds [7 x i8], [7 x i8]* %0, i64 5, i64 4
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 45
%9 = zext i1 %8 to i32
%10 = getelementptr inbounds [7 x i8], [7 x i8]* %0, i64 5, i64 5
%11 = load i8, i8* %10
%12 = icmp eq i8 %11, 45
%13 = zext i1 %12 to i32
%14 = getelementptr inbounds [7 x i8], [7 x i8]* %0, i64 5, i64 6
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 45
%17 = zext i1 %16 to i32
%18 = bitcast <4 x i1> %5 to i4
%19 = call i4 @llvm.ctpop.i4(i4 %18)
%20 = zext i4 %19 to i32
%21 = add nuw nsw i32 %20, %9
%22 = add nuw nsw i32 %21, %13
%23 = add nuw nsw i32 %22, %17
ret i32 %23
}
void reshLock() { ; }


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

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

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

LLVM IR (-O2):
define void @reshLock() {
ret void
}
int adds_si_test3(int a, int b, int c) {
  int d = a + (b << 3);
  if (d == 0)
    return a + c;
  else
    return d;
}


x86 assembly (clang, -O0):
<adds_si_test3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    $0x3,%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1133 <adds_si_test3+0x33>
mov    -0x8(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1139 <adds_si_test3+0x39>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adds_si_test3>:
lea    (%rdi,%rsi,8),%ecx
lea    (%rdx,%rdi,1),%eax
test   %ecx,%ecx
cmovne %ecx,%eax
ret

LLVM IR (-O0):
define i32 @adds_si_test3(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
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = shl i32 %10, 3
%12 = add nsw i32 %9, %11
store i32 %12, i32* %8
%13 = load i32, i32* %8
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = load i32, i32* %5
%17 = load i32, i32* %7
%18 = add nsw i32 %16, %17
store i32 %18, i32* %4
br label %21
19: ; preds = %3
%20 = load i32, i32* %8
store i32 %20, i32* %4
br label %21
21: ; preds = %19, %15
%22 = load i32, i32* %4
ret i32 %22
}

LLVM IR (-O2):
define i32 @adds_si_test3(i32 %0, i32 %1, i32 %2) {
%4 = shl i32 %1, 3
%5 = add nsw i32 %4, %0
%6 = icmp eq i32 %5, 0
%7 = add nsw i32 %2, %0
%8 = select i1 %6, i32 %7, i32 %5
ret i32 %8
}
int iscntrl(int c) { return (c >= 0 && c <= 31) || (c == 127); }


x86 assembly (clang, -O0):
<iscntrl>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     1120 <iscntrl+0x20>
mov    $0x1,%al
cmpl   $0x1f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    112a <iscntrl+0x2a>
cmpl   $0x7f,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscntrl>:
cmp    $0x20,%edi
setb   %al
cmp    $0x7f,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @iscntrl(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 31
br i1 %7, label %11, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 127
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ true, %5 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @iscntrl(i32 %0) {
%2 = icmp ult i32 %0, 32
%3 = icmp eq i32 %0, 127
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
void *_wmo_read_any_from_file_malloc(int /*<<< orphan*/ *, int *, int, int);
void *wmo_read_any_from_file_malloc(FILE *f, int *err) {
  return _wmo_read_any_from_file_malloc(f, err, 1, 1);
}


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

x86 assembly (clang, -O2):
<wmo_read_any_from_file_malloc>:
mov    $0x1,%edx
mov    $0x1,%ecx
jmp    1030 <_wmo_read_any_from_file_malloc@plt>

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

LLVM IR (-O2):
define i8* @wmo_read_any_from_file_malloc(i32* %0, i32* %1) {
%3 = tail call i8* @_wmo_read_any_from_file_malloc(i32* %0, i32* %1, i32 1, i32 1)
ret i8* %3
}
/* Type definitions */
struct UPnPService {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, char *, char *);
void RNDResponseSink_ContentDirectory_CreateObject(struct UPnPService *Service,
                                                   int ErrorCode, void *User,
                                                   char *ObjectID,
                                                   char *Result) {
  printf("RND Invoke Response: "
         "ContentDirectory/CreateObject[ErrorCode:%d](%s,%s)\r\n",
         ErrorCode, ObjectID, Result);
}


x86 assembly (clang, -O0):
<RNDResponseSink_ContentDirectory_CreateObject>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RNDResponseSink_ContentDirectory_CreateObject>:
lea    0xee9(%rip),%rdi
mov    %rcx,%rdx
mov    %r8,%rcx
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.UPnPService = type { i32 }
@.str = [74 x i8] c"RND Invoke Response: ContentDirectory/CreateObject[ErrorCode:%d](%s,%s)\0D\0A\00"
define void @RNDResponseSink_ContentDirectory_CreateObject(%struct.UPnPService* %0, i32 %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca %struct.UPnPService*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store %struct.UPnPService* %0, %struct.UPnPService** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i32, i32* %7
%12 = load i8*, i8** %9
%13 = load i8*, i8** %10
%14 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0), i32 %11, i8* %12, i8* %13)
ret void
}

LLVM IR (-O2):
%struct.UPnPService = type { i32 }
@.str = [74 x i8] c"RND Invoke Response: ContentDirectory/CreateObject[ErrorCode:%d](%s,%s)\0D\0A\00"
define void @RNDResponseSink_ContentDirectory_CreateObject(%struct.UPnPService* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i8* %3, i8* %4) {
%6 = tail call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0), i32 %1, i8* %3, i8* %4)
ret void
}
/* Variables and functions */
void(Memento_info)(void *addr) {}


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

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

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

LLVM IR (-O2):
define void @Memento_info(i8* nocapture %0) {
ret void
}
/* Variables and functions */
size_t isakmp_situation_size(void) { return 0; }


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

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

LLVM IR (-O0):
define i64 @isakmp_situation_size() {
ret i64 0
}

LLVM IR (-O2):
define i64 @isakmp_situation_size() {
ret i64 0
}
/* Type definitions */
struct timespec {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ AT_FDCWD;
int utimensat(int /*<<< orphan*/, char const *, struct timespec const *,
              int /*<<< orphan*/);
int utimens(const char *path, const struct timespec times[2]) {
  return utimensat(AT_FDCWD, path, times, 0);
}


x86 assembly (clang, -O0):
<utimens>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb1(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
xor    %ecx,%ecx
call   1030 <utimensat@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<utimens>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2ebb(%rip),%rax
mov    (%rax),%edi
xor    %ecx,%ecx
jmp    1030 <utimensat@plt>

LLVM IR (-O0):
%struct.timespec = type { i32 }
@AT_FDCWD = global i32 0
define i32 @utimens(i8* %0, %struct.timespec* %1) {
%3 = alloca i8*
%4 = alloca %struct.timespec*
store i8* %0, i8** %3
store %struct.timespec* %1, %struct.timespec** %4
%5 = load i32, i32* @AT_FDCWD
%6 = load i8*, i8** %3
%7 = load %struct.timespec*, %struct.timespec** %4
%8 = call i32 @utimensat(i32 %5, i8* %6, %struct.timespec* %7, i32 0)
ret i32 %8
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@AT_FDCWD = global i32 0
define i32 @utimens(i8* %0, %struct.timespec* %1) {
%3 = load i32, i32* @AT_FDCWD
%4 = tail call i32 @utimensat(i32 %3, i8* %0, %struct.timespec* %1, i32 0)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void die(const char *error) {
  fprintf(stderr, "Error: %s\n", error);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [11 x i8] c"Error: %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @die(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @EXIT_FAILURE
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [11 x i8] c"Error: %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @die(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
float INFINITY;
scalar_t__ halfp2singles(float *, int /*<<< orphan*/ *, int);
float fd_ieee754_uint16_to_float(uint16_t value) {
  float fv;
  if (halfp2singles(&fv, &value, 1)) {
    fv = INFINITY;
  }
  return fv;
}


x86 assembly (clang, -O0):
<fd_ieee754_uint16_to_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x1,%edx
call   1030 <halfp2singles@plt>
cmp    $0x0,%rax
je     1147 <fd_ieee754_uint16_to_float+0x37>
mov    0x2eaa(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fd_ieee754_uint16_to_float>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,0x8(%rsp)
lea    0xc(%rsp),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <halfp2singles@plt>
test   %rax,%rax
je     113c <fd_ieee754_uint16_to_float+0x2c>
mov    0x2eac(%rip),%rbx
movss  (%rbx),%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@INFINITY = global float 0.000000e+00
define float @fd_ieee754_uint16_to_float(i32 %0) {
%2 = alloca i32
%3 = alloca float
store i32 %0, i32* %2
%4 = call i64 @halfp2singles(float* %3, i32* %2, i32 1)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load float, float* @INFINITY
store float %7, float* %3
br label %8
8: ; preds = %6, %1
%9 = load float, float* %3
ret float %9
}

LLVM IR (-O2):
@INFINITY = global float 0.000000e+00
define float @fd_ieee754_uint16_to_float(i32 %0) {
%2 = alloca i32
%3 = alloca float
store i32 %0, i32* %2
%4 = bitcast float* %3 to i8*
%5 = call i64 @halfp2singles(float* %3, i32* %2, i32 1)
%6 = icmp eq i64 %5, 0
%7 = load float, float* %3
%8 = load float, float* @INFINITY
%9 = select i1 %6, float %7, float %8
ret float %9
}
/* Variables and functions */
int /*<<< orphan*/ getch();
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ printf(char *, ...);
int strlen(char *);
void main() {
  char string[50];
  int length;
  printf("\nPlease input string:");
  gets(string);
  length = strlen(string);
  printf("\nThe input string length is %d", length);
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <gets@plt>
lea    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%esi
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getch@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xeb4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
lea    0xea9(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <getch@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"\0APlease input string:\00"
@.str.1 = [31 x i8] c"\0AThe input string length is %d\00"
define void @main() {
%1 = alloca [50 x i8]
%2 = alloca i32
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%5 = call i32 @gets(i8* %4)
%6 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%7 = call i32 @strlen(i8* %6)
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = call i32 (...) @getch()
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"\0APlease input string:\00"
@.str.1 = [31 x i8] c"\0AThe input string length is %d\00"
define void @main() {
%1 = alloca [50 x i8]
%2 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @gets(i8* %2)
%5 = call i32 @strlen(i8* %2)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = call i32 (...) @getch()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ rdns_process_timer(void *);
void rdns_libevent_timer_event(int fd, short what, void *ud) {
  rdns_process_timer(ud);
}


x86 assembly (clang, -O0):
<rdns_libevent_timer_event>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %edi,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <rdns_process_timer@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rdns_libevent_timer_event>:
mov    %rdx,%rdi
jmp    1030 <rdns_process_timer@plt>

LLVM IR (-O0):
define void @rdns_libevent_timer_event(i32 %0, i16 signext %1, i8* %2) {
%4 = alloca i32
%5 = alloca i16
%6 = alloca i8*
store i32 %0, i32* %4
store i16 %1, i16* %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = call i32 @rdns_process_timer(i8* %7)
ret void
}

LLVM IR (-O2):
define void @rdns_libevent_timer_event(i32 %0, i16 signext %1, i8* %2) {
%4 = tail call i32 @rdns_process_timer(i8* %2)
ret void
}
void __dummy2005102101() {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define void @__dummy2005102101() {
ret void
}
int tegra_drm_fb_init(struct drm_device *drm) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.drm_device = type opaque
define i32 @tegra_drm_fb_init(%struct.drm_device* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int shmdt(void *);
int /*<<< orphan*/ throw(char *);
void detach_segment(void *shared_memory) {
  if (shmdt(shared_memory) == -1) {
    throw("Error detaching shared memory segment");
  }
}


x86 assembly (clang, -O0):
<detach_segment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <shmdt@plt>
cmp    $0xffffffff,%eax
jne    114a <detach_segment+0x2a>
lea    0xebb(%rip),%rdi
call   1040 <throw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<detach_segment>:
push   %rax
call   1030 <shmdt@plt>
cmp    $0xffffffff,%eax
je     112d <detach_segment+0xd>
pop    %rax
ret
lea    0xecc(%rip),%rdi
pop    %rax
jmp    1040 <throw@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Error detaching shared memory segment\00"
define void @detach_segment(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @shmdt(i8* %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @throw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"Error detaching shared memory segment\00"
define void @detach_segment(i8* %0) {
%2 = tail call i32 @shmdt(i8* %0)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @throw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
void test6() {
  const char ch = 'a';
  switch (ch) {
  case 1234:
    break;
  }
}


x86 assembly (clang, -O0):
<test6>:
push   %rbp
mov    %rsp,%rbp
movb   $0x61,-0x1(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @test6() {
%1 = alloca i8
store i8 97, i8* %1
ret void
}

LLVM IR (-O2):
define void @test6() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int XAllowEvents() {
  printf("XAllowEvents called\n");
  return 0;
}


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

x86 assembly (clang, -O2):
<XAllowEvents>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [20 x i8] c"XAllowEvents called\00"
define i32 @XAllowEvents() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret i32 0
}
int scene_get_num_spheres(void) { return 3; }


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

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

LLVM IR (-O0):
define i32 @scene_get_num_spheres() {
ret i32 3
}

LLVM IR (-O2):
define i32 @scene_get_num_spheres() {
ret i32 3
}
/* Variables and functions */
double exp(double);
double betaN(double v) { return 0.125 * exp(-v / 80.0); }


x86 assembly (clang, -O0):
<betaN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xec7(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xeab(%rip),%xmm0
mulsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<betaN>:
push   %rax
divsd  0xee7(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xee2(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @betaN(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fneg double %3
%5 = fdiv double %4, 8.000000e+01
%6 = call double @exp(double %5)
%7 = fmul double 1.250000e-01, %6
ret double %7
}

LLVM IR (-O2):
define double @betaN(double %0) {
%2 = fdiv double %0, -8.000000e+01
%3 = tail call double @exp(double %2)
%4 = fmul double %3, 1.250000e-01
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_client_conf_new() {
  printf("NOT IMPLEMENTED:"
         "pa_client_conf_new"
         "\n");
}


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

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

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

LLVM IR (-O2):
@str = [35 x i8] c"NOT IMPLEMENTED:pa_client_conf_new\00"
define i32 @pa_client_conf_new() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
__attribute__((always_)) unsigned long long rdtsc(void) {
  unsigned long low, high;
  asm volatile("rdtsc" : "=a"(low), "=d"(high));
  return ((low) | (high) << 32);
}


x86 assembly (clang, -O0):
<rdtsc>:
push   %rbp
mov    %rsp,%rbp
rdtsc
mov    %rax,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
shl    $0x20,%rcx
or     %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rdtsc>:
rdtsc
shl    $0x20,%rdx
or     %rdx,%rax
ret

LLVM IR (-O0):
define i64 @rdtsc() {
%1 = alloca i64
%2 = alloca i64
%3 = call { i64, i64 } asm sideeffect "rdtsc", "={ax},={dx},~{dirflag},~{fpsr},~{flags}"()
%4 = extractvalue { i64, i64 } %3, 0
%5 = extractvalue { i64, i64 } %3, 1
store i64 %4, i64* %1
store i64 %5, i64* %2
%6 = load i64, i64* %1
%7 = load i64, i64* %2
%8 = shl i64 %7, 32
%9 = or i64 %6, %8
ret i64 %9
}

LLVM IR (-O2):
define i64 @rdtsc() {
%1 = tail call { i64, i64 } asm sideeffect "rdtsc", "={ax},={dx},~{dirflag},~{fpsr},~{flags}"()
%2 = extractvalue { i64, i64 } %1, 0
%3 = extractvalue { i64, i64 } %1, 1
%4 = shl i64 %3, 32
%5 = or i64 %4, %2
ret i64 %5
}
/* Variables and functions */
int /*<<< orphan*/ propagate_latent_3_latent(int);
void make_latent_manifest() { propagate_latent_3_latent(4); }


x86 assembly (clang, -O0):
<make_latent_manifest>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4,%edi
call   1030 <propagate_latent_3_latent@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @make_latent_manifest() {
%1 = call i32 @propagate_latent_3_latent(i32 4)
ret void
}

LLVM IR (-O2):
define void @make_latent_manifest() {
%1 = tail call i32 @propagate_latent_3_latent(i32 4)
ret void
}
void daily_log_event(void) {}


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

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

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

LLVM IR (-O2):
define void @daily_log_event() {
ret void
}
void ComputeHammingDistance() {}


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

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

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

LLVM IR (-O2):
define void @ComputeHammingDistance() {
ret void
}
/* Variables and functions */
int is_def(char *);
int operator_num(char *in) { return is_def(in); }


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

x86 assembly (clang, -O2):
<operator_num>:
jmp    1030 <is_def@plt>

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

LLVM IR (-O2):
define i32 @operator_num(i8* %0) {
%2 = tail call i32 @is_def(i8* %0)
ret i32 %2
}
/* Variables and functions */
scalar_t__ pow(int, int);
int parseXYeZ(char digits[]) {
  int asciiOffset = 48;
  int x = (digits[0] - asciiOffset) * 10;
  int y = digits[1] - asciiOffset;
  int z = (int)pow(10, (int)(digits[3] - asciiOffset));
  return (x + y) * z;
}


x86 assembly (clang, -O0):
<parseXYeZ>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x30,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
sub    -0xc(%rbp),%eax
imul   $0xa,%eax,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x3(%rax),%esi
sub    -0xc(%rbp),%esi
mov    $0xa,%edi
call   1030 <pow@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseXYeZ>:
push   %r14
push   %rbx
push   %rax
movsbl (%rdi),%eax
lea    (%rax,%rax,4),%r14d
movsbl 0x1(%rdi),%ebx
movsbl 0x3(%rdi),%esi
add    $0xffffffd0,%esi
mov    $0xa,%edi
call   1030 <pow@plt>
lea    (%rbx,%r14,2),%ecx
add    $0xfffffdf0,%ecx
imul   %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @parseXYeZ(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %2
store i32 48, i32* %3
%7 = load i8*, i8** %2
%8 = getelementptr inbounds i8, i8* %7, i64 0
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = load i32, i32* %3
%12 = sub nsw i32 %10, %11
%13 = mul nsw i32 %12, 10
store i32 %13, i32* %4
%14 = load i8*, i8** %2
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = load i32, i32* %3
%19 = sub nsw i32 %17, %18
store i32 %19, i32* %5
%20 = load i8*, i8** %2
%21 = getelementptr inbounds i8, i8* %20, i64 3
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = load i32, i32* %3
%25 = sub nsw i32 %23, %24
%26 = call i64 @pow(i32 10, i32 %25)
%27 = trunc i64 %26 to i32
store i32 %27, i32* %6
%28 = load i32, i32* %4
%29 = load i32, i32* %5
%30 = add nsw i32 %28, %29
%31 = load i32, i32* %6
%32 = mul nsw i32 %30, %31
ret i32 %32
}

LLVM IR (-O2):
define i32 @parseXYeZ(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
%4 = mul nsw i32 %3, 10
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = getelementptr inbounds i8, i8* %0, i64 3
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, -48
%12 = tail call i64 @pow(i32 10, i32 %11)
%13 = trunc i64 %12 to i32
%14 = add nsw i32 %7, -528
%15 = add nsw i32 %14, %4
%16 = mul nsw i32 %15, %13
ret i32 %16
}
/* Variables and functions */
int /*<<< orphan*/ dotlock_remove_lockfiles(int);
void dotlock_remove_lockfiles_reclaim(void) { dotlock_remove_lockfiles(1); }


x86 assembly (clang, -O0):
<dotlock_remove_lockfiles_reclaim>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <dotlock_remove_lockfiles@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<dotlock_remove_lockfiles_reclaim>:
mov    $0x1,%edi
jmp    1030 <dotlock_remove_lockfiles@plt>

LLVM IR (-O0):
define void @dotlock_remove_lockfiles_reclaim() {
%1 = call i32 @dotlock_remove_lockfiles(i32 1)
ret void
}

LLVM IR (-O2):
define void @dotlock_remove_lockfiles_reclaim() {
%1 = tail call i32 @dotlock_remove_lockfiles(i32 1)
ret void
}
struct vertex_set *vs_empty() {
  return 0;
}


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

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

LLVM IR (-O0):
%struct.vertex_set = type opaque
define %struct.vertex_set* @vs_empty() {
ret %struct.vertex_set* null
}

LLVM IR (-O2):
%struct.vertex_set = type opaque
define noalias %struct.vertex_set* @vs_empty() {
ret %struct.vertex_set* null
}
/* Variables and functions */
int /*<<< orphan*/ test(unsigned int);
int main() {
  for (unsigned variant = 0; variant < 64; ++variant)
    test(variant);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x40,-0x8(%rbp)
jae    1146 <main+0x36>
mov    -0x8(%rbp),%edi
call   1030 <test@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
br label %2
1: ; preds = %2
ret i32 0
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %5, %2 ]
%4 = tail call i32 @test(i32 %3)
%5 = add nuw nsw i32 %3, 1
%6 = icmp eq i32 %5, 64
br i1 %6, label %1, label %2
}
/* Variables and functions */
int isPalindrome(int);
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  printf("Is palindrome number %d: %d\n", -2147447412,
         isPalindrome(-2147447412));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x80008d8c,%edi
call   1040 <isPalindrome@plt>
mov    %eax,%edx
lea    0xebe(%rip),%rdi
mov    $0x80008d8c,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [29 x i8] c"Is palindrome number %d: %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @isPalindrome(i32 -2147447412)
%3 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 -2147447412, i32 %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"Is palindrome number %d: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @isPalindrome(i32 -2147447412)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 -2147447412, i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i;
  i = 1;
  while (i <= 50) {
    printf("Merhaba Dunya  i=%d\n", i);
    i++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jg     114d <main+0x3d>
mov    -0x8(%rbp),%esi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xee0(%rip),%r14
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x33,%ebx
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Merhaba Dunya i=%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %3
3: ; preds = %6, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 50
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
br label %3
11: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Merhaba Dunya i=%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %4, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 51
br i1 %5, label %6, label %1
6: ; preds = %1
ret i32 0
}
void RTTimeMilliTS(void) {}


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

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

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

LLVM IR (-O2):
define void @RTTimeMilliTS() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ endxlate();
double hypot(double, double);
int /*<<< orphan*/ keep_foundation(double, double, double);
int /*<<< orphan*/ keep_topper(double, double, double);
int /*<<< orphan*/ xlate(int /*<<< orphan*/, int /*<<< orphan*/, double);
void keep(double width, double length) {
  double fheight = hypot(width, length) * 0.7;
  keep_foundation(width, length, fheight);
  xlate(0, 0, fheight);
  keep_topper(width, length, fheight);
  endxlate();
}


x86 assembly (clang, -O0):
<keep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1060 <hypot@plt>
movsd  0xe87(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1040 <keep_foundation@plt>
movsd  -0x18(%rbp),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1030 <xlate@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1050 <keep_topper@plt>
mov    $0x0,%al
call   1070 <endxlate@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<keep>:
sub    $0x18,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
call   1060 <hypot@plt>
movapd %xmm0,%xmm2
mulsd  0xe8f(%rip),%xmm2
movsd  %xmm2,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1040 <keep_foundation@plt>
xor    %edi,%edi
xor    %esi,%esi
movsd  (%rsp),%xmm0
call   1030 <xlate@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  (%rsp),%xmm2
call   1050 <keep_topper@plt>
xor    %eax,%eax
add    $0x18,%rsp
jmp    1070 <endxlate@plt>

LLVM IR (-O0):
define void @keep(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %3
%7 = load double, double* %4
%8 = call double @hypot(double %6, double %7)
%9 = fmul double %8, 0x3FE6666666666666
store double %9, double* %5
%10 = load double, double* %3
%11 = load double, double* %4
%12 = load double, double* %5
%13 = call i32 @keep_foundation(double %10, double %11, double %12)
%14 = load double, double* %5
%15 = call i32 @xlate(i32 0, i32 0, double %14)
%16 = load double, double* %3
%17 = load double, double* %4
%18 = load double, double* %5
%19 = call i32 @keep_topper(double %16, double %17, double %18)
%20 = call i32 (...) @endxlate()
ret void
}

LLVM IR (-O2):
define void @keep(double %0, double %1) {
%3 = tail call double @hypot(double %0, double %1)
%4 = fmul double %3, 0x3FE6666666666666
%5 = tail call i32 @keep_foundation(double %0, double %1, double %4)
%6 = tail call i32 @xlate(i32 0, i32 0, double %4)
%7 = tail call i32 @keep_topper(double %0, double %1, double %4)
%8 = tail call i32 (...) @endxlate()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
void file_print(char *s, FILE *f) {
  while (0 != s[0]) {
    fputc(s[0], f);
    s = s + 1;
  }
}


x86 assembly (clang, -O0):
<file_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     1154 <file_print+0x44>
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    -0x10(%rbp),%rsi
movsbl %al,%edi
call   1030 <fputc@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1120 <file_print+0x10>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @file_print(i8* nocapture %0, i32* nocapture %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %12, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %10, %5 ], [ %3, %2 ]
%7 = phi i8* [ %9, %5 ], [ %0, %2 ]
%8 = tail call i32 @fputc(i8 signext %6, i32* %1)
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %5
12: ; preds = %5, %2
ret void
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x, y, z;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  z = __VERIFIER_nondet_int();
  while (x + y >= 0 && x <= z) {
    x = 2 * x + y;
    y = y + 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
jl     115d <main+0x4d>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setle  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    116d <main+0x5d>
jmp    1187 <main+0x77>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <main+0x2d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
int isqrt(int);
void t_sqrt_125() {
  Assert_real((isqrt(125) == 11),
              "/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/stdlib/isqrt.c",
              630, ("Integer square root of 125 should be 11"));
}


x86 assembly (clang, -O0):
<t_sqrt_125>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7d,%edi
call   1030 <isqrt@plt>
cmp    $0xb,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xec0(%rip),%rsi
mov    $0x276,%edx
lea    0xf56(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_sqrt_125>:
push   %rax
mov    $0x7d,%edi
call   1030 <isqrt@plt>
xor    %edi,%edi
cmp    $0xb,%eax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf60(%rip),%rcx
mov    $0x276,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 125 should be 11\00"
define void @t_sqrt_125() {
%1 = call i32 @isqrt(i32 125)
%2 = icmp eq i32 %1, 11
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 630, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [40 x i8] c"Integer square root of 125 should be 11\00"
define void @t_sqrt_125() {
%1 = tail call i32 @isqrt(i32 125)
%2 = icmp eq i32 %1, 11
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 630, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned char f79(unsigned char x, unsigned int y) {
  return (x << y) + (x >> ((-y) & (8 * sizeof(unsigned char) - 1)));
}


x86 assembly (clang, -O0):
<f79>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
movzbl -0x1(%rbp),%edx
xor    %ecx,%ecx
sub    -0x8(%rbp),%ecx
mov    %ecx,%ecx
and    $0x7,%rcx
sar    %cl,%edx
mov    %edx,%ecx
add    %ecx,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f79>:
mov    %esi,%ecx
mov    %edi,%eax
shl    %cl,%eax
neg    %cl
and    $0x7,%cl
shr    %cl,%edi
add    %edi,%eax
ret

LLVM IR (-O0):
define zeroext i8 @f79(i8 zeroext %0, i32 %1) {
%3 = alloca i8
%4 = alloca i32
store i8 %0, i8* %3
store i32 %1, i32* %4
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
%7 = load i32, i32* %4
%8 = shl i32 %6, %7
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = load i32, i32* %4
%12 = sub i32 0, %11
%13 = zext i32 %12 to i64
%14 = and i64 %13, 7
%15 = trunc i64 %14 to i32
%16 = ashr i32 %10, %15
%17 = add nsw i32 %8, %16
%18 = trunc i32 %17 to i8
ret i8 %18
}

LLVM IR (-O2):
define zeroext i8 @f79(i8 zeroext %0, i32 %1) {
%3 = zext i8 %0 to i32
%4 = shl i32 %3, %1
%5 = sub i32 0, %1
%6 = and i32 %5, 7
%7 = lshr i32 %3, %6
%8 = add nsw i32 %7, %4
%9 = trunc i32 %8 to i8
ret i8 %9
}