xunge/DecIR huggingface dataset:
/* Type definitions */
struct bufferevent {
  int dummy;
};

/* Variables and functions */
int bufferevent_remove_from_rate_limit_group_internal(struct bufferevent *,
                                                      int);
int bufferevent_remove_from_rate_limit_group(struct bufferevent *bev) {
  return bufferevent_remove_from_rate_limit_group_internal(bev, 1);
}


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

x86 assembly (clang, -O2):
<bufferevent_remove_from_rate_limit_group>:
mov    $0x1,%esi
jmp    1030 <bufferevent_remove_from_rate_limit_group_internal@plt>

LLVM IR (-O0):
%struct.bufferevent = type { i32 }
define i32 @bufferevent_remove_from_rate_limit_group(%struct.bufferevent* %0) {
%2 = alloca %struct.bufferevent*
store %struct.bufferevent* %0, %struct.bufferevent** %2
%3 = load %struct.bufferevent*, %struct.bufferevent** %2
%4 = call i32 @bufferevent_remove_from_rate_limit_group_internal(%struct.bufferevent* %3, i32 1)
ret i32 %4
}

LLVM IR (-O2):
%struct.bufferevent = type { i32 }
define i32 @bufferevent_remove_from_rate_limit_group(%struct.bufferevent* %0) {
%2 = tail call i32 @bufferevent_remove_from_rate_limit_group_internal(%struct.bufferevent* %0, i32 1)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  fprintf(stdout, "Hello\n");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ea3(%rip),%rax
mov    (%rax),%edi
lea    0xeba(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@stdout = global i32 0
@.str = [7 x i8] c"Hello\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @exit(i32 0)
unreachable
}
char *ft_stpcpy(char *s1, const char *s2) {
  while (*s2 != 0x00)
    *s1++ = *s2++;
  *s1 = 0x00;
  return (s1);
}


x86 assembly (clang, -O0):
<ft_stpcpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1143 <ft_stpcpy+0x43>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%cl
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %cl,(%rax)
jmp    110c <ft_stpcpy+0xc>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_stpcpy>:
mov    %rdi,%rax
mov    (%rsi),%cl
test   %cl,%cl
je     1121 <ft_stpcpy+0x21>
add    $0x1,%rsi
nopl   (%rax)
mov    %cl,(%rax)
add    $0x1,%rax
movzbl (%rsi),%ecx
add    $0x1,%rsi
test   %cl,%cl
jne    1110 <ft_stpcpy+0x10>
movb   $0x0,(%rax)
ret

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

LLVM IR (-O2):
define i8* @ft_stpcpy(i8* writeonly %0, i8* nocapture %1) {
%3 = load i8, i8* %1
%4 = icmp eq i8 %3, 0
br i1 %4, label %13, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %11, %5 ], [ %3, %2 ]
%7 = phi i8* [ %9, %5 ], [ %1, %2 ]
%8 = phi i8* [ %10, %5 ], [ %0, %2 ]
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = getelementptr inbounds i8, i8* %8, i64 1
store i8 %6, i8* %8
%11 = load i8, i8* %9
%12 = icmp eq i8 %11, 0
br i1 %12, label %13, label %5
13: ; preds = %5, %2
%14 = phi i8* [ %0, %2 ], [ %10, %5 ]
store i8 0, i8* %14
ret i8* %14
}
/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ chmod(char *, int);
int main(void) {
  if (0 > chmod("arnold.layne", 0000))
    return EXIT_FAILURE;
  else
    return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
xor    %esi,%esi
call   1030 <chmod@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jle    114c <main+0x3c>
mov    0x2e9e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1158 <main+0x48>
mov    0x2e85(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <chmod@plt>
test   %rax,%rax
jns    112d <main+0x1d>
mov    0x2eb5(%rip),%rax
jmp    1134 <main+0x24>
mov    0x2ea4(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"arnold.layne\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 @chmod(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = icmp sgt i64 0, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = load i32, i32* @EXIT_FAILURE
store i32 %5, i32* %1
br label %8
6: ; preds = %0
%7 = load i32, i32* @EXIT_SUCCESS
store i32 %7, i32* %1
br label %8
8: ; preds = %6, %4
%9 = load i32, i32* %1
ret i32 %9
}

LLVM IR (-O2):
@.str = [13 x i8] c"arnold.layne\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i64 @chmod(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = icmp slt i64 %1, 0
%3 = load i32, i32* @EXIT_FAILURE
%4 = load i32, i32* @EXIT_SUCCESS
%5 = select i1 %2, i32 %3, i32 %4
ret i32 %5
}
void test_safelen_simdlen() {
  int i;
#pragma omp simd simdlen(6) safelen(5)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp simd safelen(5) simdlen(6)
  for (i = 0; i < 16; ++i)
    ;
}


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

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

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

LLVM IR (-O2):
define void @test_safelen_simdlen() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void monitor() { fprintf(stderr, "No monitor"); }


x86 assembly (clang, -O0):
<monitor>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<monitor>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [11 x i8] c"No monitor\00"
define void @monitor() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [11 x i8] c"No monitor\00"
define void @monitor() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ vadd();
void test_add(void) { vadd(); }


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

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

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

LLVM IR (-O2):
define void @test_add() {
%1 = tail call i32 (...) @vadd()
ret void
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t _sl(uint8_t *data, uint8_t i) { return ((*data << (i << 1)) & 0x3f); }


x86 assembly (clang, -O0):
<_sl>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0xc(%rbp),%ecx
shl    $0x1,%ecx
shl    %cl,%eax
and    $0x3f,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_sl>:
mov    (%rdi),%eax
lea    (%rsi,%rsi,1),%ecx
shl    %cl,%eax
and    $0x3f,%eax
ret

LLVM IR (-O0):
define i32 @_sl(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* %5
%7 = load i32, i32* %4
%8 = shl i32 %7, 1
%9 = shl i32 %6, %8
%10 = and i32 %9, 63
ret i32 %10
}

LLVM IR (-O2):
define i32 @_sl(i32* nocapture %0, i32 %1) {
%3 = load i32, i32* %0
%4 = shl i32 %1, 1
%5 = shl i32 %3, %4
%6 = and i32 %5, 63
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int _NSIG;
int syscall(int, int /*<<< orphan*/ *, int);
int sigpending(sigset_t *set) { return syscall(176, set, _NSIG / 8); }


x86 assembly (clang, -O0):
<sigpending>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    0x2ec9(%rip),%rax
mov    (%rax),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
mov    $0xb0,%edi
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sigpending>:
mov    %rdi,%rsi
mov    0x2ed6(%rip),%rax
mov    (%rax),%eax
lea    0x7(%rax),%edx
test   %eax,%eax
cmovns %eax,%edx
sar    $0x3,%edx
mov    $0xb0,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@_NSIG = global i32 0
define i32 @sigpending(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* @_NSIG
%5 = sdiv i32 %4, 8
%6 = call i32 @syscall(i32 176, i32* %3, i32 %5)
ret i32 %6
}

LLVM IR (-O2):
@_NSIG = global i32 0
define i32 @sigpending(i32* %0) {
%2 = load i32, i32* @_NSIG
%3 = sdiv i32 %2, 8
%4 = tail call i32 @syscall(i32 176, i32* %0, i32 %3)
ret i32 %4
}
__attribute__((no)) void func_2(void) {}


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

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

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

LLVM IR (-O2):
define void @func_2() {
ret void
}
unsigned extract_4in6(unsigned char ipv6[16]) {
  return (((unsigned *)ipv6)[3]);
}


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

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

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

LLVM IR (-O2):
define i32 @extract_4in6(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 12
%3 = bitcast i8* %2 to i32*
%4 = load i32, i32* %3
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128Timer1P__CompareA__reset();
void Atm128AlarmC__0__HplAtm128Compare__reset(void) {
  HplAtm128Timer1P__CompareA__reset();
}


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

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

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

LLVM IR (-O2):
define void @Atm128AlarmC__0__HplAtm128Compare__reset() {
%1 = tail call i32 (...) @HplAtm128Timer1P__CompareA__reset()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isspace(int);
void t_isspace_0x69() {
  Assert_real((isspace(105) == 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_isspace.c",
              530, ("isspace should be 0 for i"));
}


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

x86 assembly (clang, -O2):
<t_isspace_0x69>:
push   %rax
mov    $0x69,%edi
call   1030 <isspace@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x212,%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_isspace.c\00"
@.str.1 = [26 x i8] c"isspace should be 0 for i\00"
define void @t_isspace_0x69() {
%1 = call i64 @isspace(i32 105)
%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 530, 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_isspace.c\00"
@.str.1 = [26 x i8] c"isspace should be 0 for i\00"
define void @t_isspace_0x69() {
%1 = tail call i64 @isspace(i32 105)
%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 530, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
long double _U_Qfcnvxf_usgl_to_quad(unsigned int a) {
  extern long double _U_Qfcnvxf_dbl_to_quad(long long);
  return _U_Qfcnvxf_dbl_to_quad((long long)a);
}


x86 assembly (clang, -O0):
<_U_Qfcnvxf_usgl_to_quad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,%edi
call   1030 <_U_Qfcnvxf_dbl_to_quad@plt>
fld    %st(0)
fstp   %st(0)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_U_Qfcnvxf_usgl_to_quad>:
mov    %edi,%edi
jmp    1030 <_U_Qfcnvxf_dbl_to_quad@plt>

LLVM IR (-O0):
define x86_fp80 @_U_Qfcnvxf_usgl_to_quad(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = zext i32 %3 to i64
%5 = call x86_fp80 @_U_Qfcnvxf_dbl_to_quad(i64 %4)
ret x86_fp80 %5
}

LLVM IR (-O2):
define x86_fp80 @_U_Qfcnvxf_usgl_to_quad(i32 %0) {
%2 = zext i32 %0 to i64
%3 = tail call x86_fp80 @_U_Qfcnvxf_dbl_to_quad(i64 %2)
ret x86_fp80 %3
}
void rop3_194_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = *D | S;
  stk3 = ~stk3;
  stk2 = T | stk3;
  stk1 = S ^ stk2;
  stk1 = ~stk1;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_194_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x9(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0xd(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xd(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xd(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_194_0_0>:
mov    (%rdi),%al
or     %sil,%al
not    %al
or     %dl,%al
xor    %sil,%al
not    %al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_194_0_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8*, i8** %4
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = load i8, i8* %5
%14 = zext i8 %13 to i32
%15 = or i32 %12, %14
%16 = trunc i32 %15 to i8
store i8 %16, i8* %9
%17 = load i8, i8* %9
%18 = zext i8 %17 to i32
%19 = xor i32 %18, -1
%20 = trunc i32 %19 to i8
store i8 %20, i8* %9
%21 = load i8, i8* %6
%22 = zext i8 %21 to i32
%23 = load i8, i8* %9
%24 = zext i8 %23 to i32
%25 = or i32 %22, %24
%26 = trunc i32 %25 to i8
store i8 %26, i8* %8
%27 = load i8, i8* %5
%28 = zext i8 %27 to i32
%29 = load i8, i8* %8
%30 = zext i8 %29 to i32
%31 = xor i32 %28, %30
%32 = trunc i32 %31 to i8
store i8 %32, i8* %7
%33 = load i8, i8* %7
%34 = zext i8 %33 to i32
%35 = xor i32 %34, -1
%36 = trunc i32 %35 to i8
store i8 %36, i8* %7
%37 = load i8, i8* %7
%38 = load i8*, i8** %4
store i8 %37, i8* %38
ret void
}

LLVM IR (-O2):
define void @rop3_194_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = or i8 %4, %1
%6 = xor i8 %5, -1
%7 = or i8 %6, %2
%8 = xor i8 %7, %1
%9 = xor i8 %8, -1
store i8 %9, i8* %0
ret void
}
void gtk_paned_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_paned_get_type() {
ret void
}
/* Variables and functions */
int find_sqrt(int /*<<< orphan*/, int);
int _sqrt_recursion(int n) {
  if (n < 0)
    return (-1);
  return (find_sqrt(0, n));
}


x86 assembly (clang, -O0):
<_sqrt_recursion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1131 <_sqrt_recursion+0x21>
movl   $0xffffffff,-0x4(%rbp)
jmp    113e <_sqrt_recursion+0x2e>
mov    -0x8(%rbp),%esi
xor    %edi,%edi
call   1030 <find_sqrt@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_sqrt_recursion>:
test   %edi,%edi
js     111d <_sqrt_recursion+0xd>
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <find_sqrt@plt>
mov    $0xffffffff,%eax
ret

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

LLVM IR (-O2):
define i32 @_sqrt_recursion(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @find_sqrt(i32 0, i32 %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ -1, %1 ]
ret i32 %6
}
testjump(label) int label;
{
  ol("CMP  AX,0");
  ol("JNE  $+5");
  ot("JMP  ");
  printlabel(label);
  nl();
}


x86 assembly (clang, -O0):
<testjump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1050 <ol@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1050 <ol@plt>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1040 <ot@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1060 <printlabel@plt>
mov    $0x0,%al
call   1030 <nl@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testjump>:
push   %rbx
mov    %edi,%ebx
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1050 <ol@plt>
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1050 <ol@plt>
lea    0xead(%rip),%rdi
xor    %eax,%eax
call   1040 <ot@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1060 <printlabel@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <nl@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"CMP AX,0\00"
@.str.1 = [9 x i8] c"JNE $+5\00"
@.str.2 = [6 x i8] c"JMP \00"
define i32 @testjump(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @ol to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @ol to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @ot to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* %3
%8 = call i32 (i32, ...) bitcast (i32 (...)* @printlabel to i32 (i32, ...)*)(i32 %7)
%9 = call i32 (...) @nl()
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
@.str = [10 x i8] c"CMP AX,0\00"
@.str.1 = [9 x i8] c"JNE $+5\00"
@.str.2 = [6 x i8] c"JMP \00"
define i32 @testjump(i32 %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ol to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ol to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @ot to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @printlabel to i32 (i32, ...)*)(i32 %0)
%6 = tail call i32 (...) @nl()
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ make_manual(int /*<<< orphan*/);
void plain_manual_() { make_manual(0); }


x86 assembly (clang, -O0):
<plain_manual_>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <make_manual@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<plain_manual_>:
xor    %edi,%edi
jmp    1030 <make_manual@plt>

LLVM IR (-O0):
define void @plain_manual_() {
%1 = call i32 @make_manual(i32 0)
ret void
}

LLVM IR (-O2):
define void @plain_manual_() {
%1 = tail call i32 @make_manual(i32 0)
ret void
}
/* Variables and functions */
double M_PI_2;
double M_PI_4;
double fmod2(double, double);
double sqr_angle(double a) {
  a = fmod2(a, M_PI_2);
  return a < M_PI_4 ? a : M_PI_2 - a;
}


x86 assembly (clang, -O0):
<sqr_angle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2eb7(%rip),%rax
movsd  (%rax),%xmm1
call   1030 <fmod2@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm1
mov    0x2ea5(%rip),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    1160 <sqr_angle+0x50>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1175 <sqr_angle+0x65>
mov    0x2e79(%rip),%rax
movsd  (%rax),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sqr_angle>:
push   %rbx
mov    0x2ec8(%rip),%rbx
movsd  (%rbx),%xmm1
call   1030 <fmod2@plt>
mov    0x2ec0(%rip),%rax
movsd  (%rbx),%xmm1
movapd %xmm0,%xmm2
cmpltsd (%rax),%xmm2
subsd  %xmm0,%xmm1
andpd  %xmm2,%xmm0
andnpd %xmm1,%xmm2
orpd   %xmm2,%xmm0
pop    %rbx
ret

LLVM IR (-O0):
@M_PI_2 = global double 0.000000e+00
@M_PI_4 = global double 0.000000e+00
define double @sqr_angle(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* @M_PI_2
%5 = call double @fmod2(double %3, double %4)
store double %5, double* %2
%6 = load double, double* %2
%7 = load double, double* @M_PI_4
%8 = fcmp olt double %6, %7
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = load double, double* %2
br label %15
11: ; preds = %1
%12 = load double, double* @M_PI_2
%13 = load double, double* %2
%14 = fsub double %12, %13
br label %15
15: ; preds = %11, %9
%16 = phi double [ %10, %9 ], [ %14, %11 ]
ret double %16
}

LLVM IR (-O2):
@M_PI_2 = global double 0.000000e+00
@M_PI_4 = global double 0.000000e+00
define double @sqr_angle(double %0) {
%2 = load double, double* @M_PI_2
%3 = tail call double @fmod2(double %0, double %2)
%4 = load double, double* @M_PI_4
%5 = fcmp olt double %3, %4
%6 = load double, double* @M_PI_2
%7 = fsub double %6, %3
%8 = select i1 %5, double %3, double %7
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ OutputDAchannel(int, int);
void SetDAchannel(int channel_no) { OutputDAchannel(channel_no, 255); }


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

x86 assembly (clang, -O2):
<SetDAchannel>:
mov    $0xff,%esi
jmp    1030 <OutputDAchannel@plt>

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

LLVM IR (-O2):
define void @SetDAchannel(i32 %0) {
%2 = tail call i32 @OutputDAchannel(i32 %0, i32 255)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ _readint(int *);
int /*<<< orphan*/ _setchan(int);
int /*<<< orphan*/ _setrand(int);
int /*<<< orphan*/ printf(char *);
_randomi() {
  int i;
  _setchan(-1);
  printf("Random number seed (-32768 to 32767) ? ");
  _readint(&i);
  _setrand(i);
}


x86 assembly (clang, -O0):
<_randomi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xffffffff,%edi
call   1060 <_setchan@plt>
lea    0xea7(%rip),%rdi
call   1050 <printf@plt>
lea    -0x8(%rbp),%rdi
call   1040 <_readint@plt>
mov    -0x8(%rbp),%edi
call   1030 <_setrand@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_randomi>:
push   %rax
mov    $0xffffffff,%edi
call   1060 <_setchan@plt>
lea    0xeae(%rip),%rdi
call   1050 <printf@plt>
lea    0x4(%rsp),%rdi
call   1040 <_readint@plt>
mov    0x4(%rsp),%edi
call   1030 <_setrand@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [40 x i8] c"Random number seed (-32768 to 32767) ? \00"
define i32 @_randomi() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @_setchan(i32 -1)
%4 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @_readint(i32* %2)
%6 = load i32, i32* %2
%7 = call i32 @_setrand(i32 %6)
%8 = load i32, i32* %1
ret i32 %8
}

LLVM IR (-O2):
@.str = [40 x i8] c"Random number seed (-32768 to 32767) ? \00"
define i32 @_randomi() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @_setchan(i32 -1)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @_readint(i32* %1)
%6 = load i32, i32* %1
%7 = call i32 @_setrand(i32 %6)
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ uint_fast8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ IntDisable(int /*<<< orphan*/);
int /*<<< orphan*/ IntUnregister(int /*<<< orphan*/);
int /*<<< orphan*/ _ADCIntNumberGet(int /*<<< orphan*/, int /*<<< orphan*/);
void ADCIntUnregister(uint32_t ui32Base, uint32_t ui32SequenceNum) {
  uint_fast8_t ui8Int;
  ;
  ;
  ui8Int = _ADCIntNumberGet(ui32Base, ui32SequenceNum);
  ;
  IntDisable(ui8Int);
  IntUnregister(ui8Int);
}


x86 assembly (clang, -O0):
<ADCIntUnregister>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <_ADCIntNumberGet@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <IntDisable@plt>
mov    -0xc(%rbp),%edi
call   1040 <IntUnregister@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ADCIntUnregister>:
push   %rbx
call   1050 <_ADCIntNumberGet@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1030 <IntDisable@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1040 <IntUnregister@plt>

LLVM IR (-O0):
define void @ADCIntUnregister(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = call i32 @_ADCIntNumberGet(i32 %6, i32 %7)
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = call i32 @IntDisable(i32 %9)
%11 = load i32, i32* %5
%12 = call i32 @IntUnregister(i32 %11)
ret void
}

LLVM IR (-O2):
define void @ADCIntUnregister(i32 %0, i32 %1) {
%3 = tail call i32 @_ADCIntNumberGet(i32 %0, i32 %1)
%4 = tail call i32 @IntDisable(i32 %3)
%5 = tail call i32 @IntUnregister(i32 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_RAW;
int /*<<< orphan*/ socket(int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/);
void test_inetraw() { socket(AF_INET, SOCK_RAW, 0); }


x86 assembly (clang, -O0):
<test_inetraw>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
mov    0x2ebc(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1030 <socket@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_inetraw>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
jmp    1030 <socket@plt>

LLVM IR (-O0):
@AF_INET = global i32 0
@SOCK_RAW = global i32 0
define void @test_inetraw() {
%1 = load i32, i32* @AF_INET
%2 = load i32, i32* @SOCK_RAW
%3 = call i32 @socket(i32 %1, i32 %2, i32 0)
ret void
}

LLVM IR (-O2):
@AF_INET = global i32 0
@SOCK_RAW = global i32 0
define void @test_inetraw() {
%1 = load i32, i32* @AF_INET
%2 = load i32, i32* @SOCK_RAW
%3 = tail call i32 @socket(i32 %1, i32 %2, i32 0)
ret void
}
int start(int a, int max_div) {
  return max_div < 0   ? a + 1
         : a < max_div ? max_div
                       : (a + 1) + (max_div - (a + 1) % max_div);
}


x86 assembly (clang, -O0):
<start>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1122 <start+0x22>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    115f <start+0x5f>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1139 <start+0x39>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1159 <start+0x59>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%ecx
mov    -0x4(%rbp),%eax
add    $0x1,%eax
cltd
idivl  -0x8(%rbp)
mov    -0x14(%rbp),%eax
sub    %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<start>:
test   %esi,%esi
js     1118 <start+0x18>
cmp    %esi,%edi
jl     1115 <start+0x15>
lea    0x1(%rdi),%eax
cltd
idiv   %esi
add    %edi,%esi
add    $0x1,%esi
sub    %edx,%esi
mov    %esi,%eax
ret
add    $0x1,%edi
mov    %edi,%esi
mov    %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @start(i32 %0, i32 %1) {
%3 = icmp slt i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = add nsw i32 %0, 1
br label %13
6: ; preds = %2
%7 = icmp slt i32 %0, %1
br i1 %7, label %13, label %8
8: ; preds = %6
%9 = add nsw i32 %0, 1
%10 = srem i32 %9, %1
%11 = add i32 %9, %1
%12 = sub i32 %11, %10
br label %13
13: ; preds = %6, %8, %4
%14 = phi i32 [ %5, %4 ], [ %12, %8 ], [ %1, %6 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x4b() {
  Assert_real((ispunct(75) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_ispunct.c",
              380, ("ispunct should be 0 for K"));
}


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

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

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for K\00"
define void @t_ispunct_0x4b() {
%1 = call i64 @ispunct(i32 75)
%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 380, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for K\00"
define void @t_ispunct_0x4b() {
%1 = tail call i64 @ispunct(i32 75)
%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 380, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
unsigned getval_398() { return 3381972617U; }


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

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

LLVM IR (-O0):
define i32 @getval_398() {
ret i32 -912994679
}

LLVM IR (-O2):
define i32 @getval_398() {
ret i32 -912994679
}
/* Variables and functions */
int fun(int);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, const char *argv[]) {
  int ret = 0;
  long nr_of_reductions = 1;
  ret = fun(1);
  printf("RETURNED %d\n", ret);
  if (ret != 9) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movq   $0x1,-0x20(%rbp)
mov    $0x1,%edi
call   1030 <fun@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x9,-0x14(%rbp)
je     1177 <main+0x57>
movl   $0x1,-0x4(%rbp)
jmp    117e <main+0x5e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1,%edi
call   1030 <fun@plt>
mov    %eax,%ebx
lea    0xecc(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
cmp    $0x9,%ebx
setne  %al
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"RETURNED %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @fun(i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = icmp ne i32 %3, 9
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Type definitions */
typedef int int64_t;
typedef scalar_t__ int32_t;

/* Variables and functions */
int32_t aeron_logbuffer_term_offset(int64_t raw_tail, int32_t term_length) {
  int32_t offset = (int32_t)(raw_tail & 0xFFFFFFFFL);
  return (offset < term_length) ? offset : term_length;
}


x86 assembly (clang, -O0):
<aeron_logbuffer_term_offset>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movslq -0x4(%rbp),%rax
movabs $0xffffffff,%rcx
and    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    113b <aeron_logbuffer_term_offset+0x3b>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    1143 <aeron_logbuffer_term_offset+0x43>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<aeron_logbuffer_term_offset>:
mov    %edi,%eax
cmp    %rsi,%rax
cmovge %rsi,%rax
ret

LLVM IR (-O0):
define i64 @aeron_logbuffer_term_offset(i32 %0, i64 %1) {
%3 = alloca i32
%4 = alloca i64
%5 = alloca i64
store i32 %0, i32* %3
store i64 %1, i64* %4
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = and i64 %7, 4294967295
store i64 %8, i64* %5
%9 = load i64, i64* %5
%10 = load i64, i64* %4
%11 = icmp slt i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i64, i64* %5
br label %16
14: ; preds = %2
%15 = load i64, i64* %4
br label %16
16: ; preds = %14, %12
%17 = phi i64 [ %13, %12 ], [ %15, %14 ]
ret i64 %17
}

LLVM IR (-O2):
define i64 @aeron_logbuffer_term_offset(i32 %0, i64 %1) {
%3 = zext i32 %0 to i64
%4 = icmp slt i64 %3, %1
%5 = select i1 %4, i64 %3, i64 %1
ret i64 %5
}
/* Variables and functions */
int /*<<< orphan*/ foo(int);
int main() {
  foo(1);
  foo(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 <foo@plt>
mov    $0x1,%edi
call   1030 <foo@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @foo(i32 1)
%2 = tail call i32 @foo(i32 1)
ret i32 0
}
/* Variables and functions */
int getnpar(int, char *, char *, unsigned int *);
int getnparuint(int n, char *name, unsigned int *ptr) {
  return getnpar(n, name, "p", ptr);
}


x86 assembly (clang, -O0):
<getnparuint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
lea    0xecb(%rip),%rdx
call   1030 <getnpar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getnparuint>:
mov    %rdx,%rcx
lea    0xee6(%rip),%rdx
jmp    1030 <getnpar@plt>

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

LLVM IR (-O2):
@.str = [2 x i8] c"p\00"
define i32 @getnparuint(i32 %0, i8* %1, i32* %2) {
%4 = tail call i32 @getnpar(i32 %0, i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %2)
ret i32 %4
}
/* Type definitions */
struct kms_device {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ kms_device_probe_crtcs(struct kms_device *);
int /*<<< orphan*/ kms_device_probe_planes(struct kms_device *);
int /*<<< orphan*/ kms_device_probe_screens(struct kms_device *);
void kms_device_probe(struct kms_device *device) {
  kms_device_probe_screens(device);
  kms_device_probe_crtcs(device);
  kms_device_probe_planes(device);
}


x86 assembly (clang, -O0):
<kms_device_probe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <kms_device_probe_screens@plt>
mov    -0x8(%rbp),%rdi
call   1050 <kms_device_probe_crtcs@plt>
mov    -0x8(%rbp),%rdi
call   1030 <kms_device_probe_planes@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kms_device_probe>:
push   %rbx
mov    %rdi,%rbx
call   1040 <kms_device_probe_screens@plt>
mov    %rbx,%rdi
call   1050 <kms_device_probe_crtcs@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <kms_device_probe_planes@plt>

LLVM IR (-O0):
%struct.kms_device = type { i32 }
define void @kms_device_probe(%struct.kms_device* %0) {
%2 = alloca %struct.kms_device*
store %struct.kms_device* %0, %struct.kms_device** %2
%3 = load %struct.kms_device*, %struct.kms_device** %2
%4 = call i32 @kms_device_probe_screens(%struct.kms_device* %3)
%5 = load %struct.kms_device*, %struct.kms_device** %2
%6 = call i32 @kms_device_probe_crtcs(%struct.kms_device* %5)
%7 = load %struct.kms_device*, %struct.kms_device** %2
%8 = call i32 @kms_device_probe_planes(%struct.kms_device* %7)
ret void
}

LLVM IR (-O2):
%struct.kms_device = type { i32 }
define void @kms_device_probe(%struct.kms_device* %0) {
%2 = tail call i32 @kms_device_probe_screens(%struct.kms_device* %0)
%3 = tail call i32 @kms_device_probe_crtcs(%struct.kms_device* %0)
%4 = tail call i32 @kms_device_probe_planes(%struct.kms_device* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ getcwd(char *, int);
char *malloc(int);
char *getLocalIfNull(char *s) {
  static char *localDirectory = 0;
  if (s == 0) {
    if (localDirectory == 0) {
      localDirectory = malloc(1024);
      getcwd(localDirectory, 1024);
    }
    return localDirectory;
  } else {
    return s;
  }
}


x86 assembly (clang, -O0):
<getLocalIfNull>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1177 <getLocalIfNull+0x57>
cmpq   $0x0,0x2ef9(%rip)
jne    1167 <getLocalIfNull+0x47>
mov    $0x400,%edi
call   1040 <malloc@plt>
mov    %rax,0x2ee2(%rip)
mov    0x2edb(%rip),%rdi
mov    $0x400,%esi
call   1030 <getcwd@plt>
mov    0x2eca(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117f <getLocalIfNull+0x5f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getLocalIfNull>:
push   %rax
mov    %rdi,%rax
test   %rdi,%rdi
je     112b <getLocalIfNull+0xb>
pop    %rcx
ret
mov    0x2f06(%rip),%rax
test   %rax,%rax
jne    1129 <getLocalIfNull+0x9>
mov    $0x400,%edi
call   1040 <malloc@plt>
mov    %rax,0x2ef0(%rip)
mov    %rax,%rdi
mov    $0x400,%esi
call   1030 <getcwd@plt>
mov    0x2edc(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@getLocalIfNull.localDirectory = internal global i8* null
define i8* @getLocalIfNull(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = load i8*, i8** @getLocalIfNull.localDirectory
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = call i8* @malloc(i32 1024)
store i8* %10, i8** @getLocalIfNull.localDirectory
%11 = load i8*, i8** @getLocalIfNull.localDirectory
%12 = call i32 @getcwd(i8* %11, i32 1024)
br label %13
13: ; preds = %9, %6
%14 = load i8*, i8** @getLocalIfNull.localDirectory
store i8* %14, i8** %2
br label %17
15: ; preds = %1
%16 = load i8*, i8** %3
store i8* %16, i8** %2
br label %17
17: ; preds = %15, %13
%18 = load i8*, i8** %2
ret i8* %18
}

LLVM IR (-O2):
@getLocalIfNull.localDirectory = internal unnamed_addr global i8* null
define i8* @getLocalIfNull(i8* readnone %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %3, label %10
3: ; preds = %1
%4 = load i8*, i8** @getLocalIfNull.localDirectory
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = tail call dereferenceable_or_null(1024) i8* @malloc(i32 1024)
store i8* %7, i8** @getLocalIfNull.localDirectory
%8 = tail call i32 @getcwd(i8* %7, i32 1024)
%9 = load i8*, i8** @getLocalIfNull.localDirectory
br label %10
10: ; preds = %3, %6, %1
%11 = phi i8* [ %0, %1 ], [ %9, %6 ], [ %4, %3 ]
ret i8* %11
}
void js_handle_input(void) {}


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

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

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

LLVM IR (-O2):
define void @js_handle_input() {
ret void
}
unsigned int _get_highest_priority(void) {
  unsigned int val;
  unsigned int cmd;
  cmd = ((0x12000000) | (((0x0) & 0x00000003) << 16) |
         (((0x00) & 0x000000FF) << 8) | (((0x58) & 0x000000FF) << 0));
  val = (*(volatile unsigned int *)(cmd));
  return val;
}


x86 assembly (clang, -O0):
<_get_highest_priority>:
push   %rbp
mov    %rsp,%rbp
movl   $0x12000058,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_get_highest_priority>:
mov    0x12000058,%eax
ret

LLVM IR (-O0):
define i32 @_get_highest_priority() {
%1 = alloca i32
%2 = alloca i32
store i32 301989976, i32* %2
%3 = load i32, i32* %2
%4 = zext i32 %3 to i64
%5 = inttoptr i64 %4 to i32*
%6 = load volatile i32, i32* %5
store i32 %6, i32* %1
%7 = load i32, i32* %1
ret i32 %7
}

LLVM IR (-O2):
define i32 @_get_highest_priority() {
%1 = load volatile i32, i32* inttoptr (i64 301989976 to i32*)
ret i32 %1
}
int get_kth_bit(unsigned int v, int k) { return ((v & (1 << k)) >> k); }


x86 assembly (clang, -O0):
<get_kth_bit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
shr    %cl,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @get_kth_bit(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 = shl i32 1, %6
%8 = and i32 %5, %7
%9 = load i32, i32* %4
%10 = lshr i32 %8, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @get_kth_bit(i32 %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = and i32 %3, %0
%5 = lshr i32 %4, %1
ret i32 %5
}