#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
int bics_si_test1(int, int, int /*<<< orphan*/);
int bics_si_test2(int, int, int /*<<< orphan*/);
int main() {
  int x;
  x = bics_si_test1(0xf00d, 0xf11f, 0);
  if (x != 0)
    abort();
  x = bics_si_test1(0xf11f, 0xf00d, 0);
  if (x != 0xf11f)
    abort();
  x = bics_si_test2(0xf00d, 0xf11f, 0);
  if (x != 0xf11f)
    abort();
  x = bics_si_test2(0xf11f, 0xf00d, 0);
  if (x != 0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xf00d,%edi
mov    $0xf11f,%esi
xor    %edx,%edx
call   1030 <bics_si_test1@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1164 <main+0x34>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xf11f,%edi
mov    $0xf00d,%esi
xor    %edx,%edx
call   1030 <bics_si_test1@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xf11f,-0x8(%rbp)
je     118c <main+0x5c>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xf00d,%edi
mov    $0xf11f,%esi
xor    %edx,%edx
call   1050 <bics_si_test2@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xf11f,-0x8(%rbp)
je     11b4 <main+0x84>
mov    $0x0,%al
call   1040 <abort@plt>
mov    $0xf11f,%edi
mov    $0xf00d,%esi
xor    %edx,%edx
call   1050 <bics_si_test2@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     11d9 <main+0xa9>
mov    $0x0,%al
call   1040 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xf00d,%edi
mov    $0xf11f,%esi
xor    %edx,%edx
call   1030 <bics_si_test1@plt>
test   %eax,%eax
jne    118f <main+0x5f>
mov    $0xf11f,%edi
mov    $0xf00d,%esi
xor    %edx,%edx
call   1030 <bics_si_test1@plt>
cmp    $0xf11f,%eax
jne    118f <main+0x5f>
mov    $0xf00d,%edi
mov    $0xf11f,%esi
xor    %edx,%edx
call   1050 <bics_si_test2@plt>
cmp    $0xf11f,%eax
jne    118f <main+0x5f>
mov    $0xf11f,%edi
mov    $0xf00d,%esi
xor    %edx,%edx
call   1050 <bics_si_test2@plt>
test   %eax,%eax
jne    118f <main+0x5f>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @bics_si_test1(i32 61453, i32 61727, i32 0)
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %0
%9 = call i32 @bics_si_test1(i32 61727, i32 61453, i32 0)
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = icmp ne i32 %10, 61727
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 (...) @abort()
unreachable
14: ; preds = %8
%15 = call i32 @bics_si_test2(i32 61453, i32 61727, i32 0)
store i32 %15, i32* %2
%16 = load i32, i32* %2
%17 = icmp ne i32 %16, 61727
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (...) @abort()
unreachable
20: ; preds = %14
%21 = call i32 @bics_si_test2(i32 61727, i32 61453, i32 0)
store i32 %21, i32* %2
%22 = load i32, i32* %2
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 (...) @abort()
unreachable
26: ; preds = %20
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @bics_si_test1(i32 61453, i32 61727, i32 0)
%2 = icmp eq i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @bics_si_test1(i32 61727, i32 61453, i32 0)
%7 = icmp eq i32 %6, 61727
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %5
%11 = tail call i32 @bics_si_test2(i32 61453, i32 61727, i32 0)
%12 = icmp eq i32 %11, 61727
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 (...) @abort()
unreachable
15: ; preds = %10
%16 = tail call i32 @bics_si_test2(i32 61727, i32 61453, i32 0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 (...) @abort()
unreachable
20: ; preds = %15
ret i32 0
}