#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 */
struct Cyc_List_List {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ Cyc_Tcutil_sub_rgnpo(struct Cyc_List_List *,
                                        struct Cyc_List_List *);
int Cyc_Tcutil_same_rgn_po(struct Cyc_List_List *rpo1,
                           struct Cyc_List_List *rpo2) {
  return ({ Cyc_Tcutil_sub_rgnpo(rpo1, rpo2); }) &&
         ({ Cyc_Tcutil_sub_rgnpo(rpo2, rpo1); });
}


x86 assembly (clang, -O0):
<Cyc_Tcutil_same_rgn_po>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <Cyc_Tcutil_sub_rgnpo@plt>
mov    %eax,-0x14(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x19(%rbp)
je     1159 <Cyc_Tcutil_same_rgn_po+0x49>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <Cyc_Tcutil_sub_rgnpo@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Tcutil_same_rgn_po>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <Cyc_Tcutil_sub_rgnpo@plt>
test   %eax,%eax
je     1139 <Cyc_Tcutil_same_rgn_po+0x29>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <Cyc_Tcutil_sub_rgnpo@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
jmp    113b <Cyc_Tcutil_same_rgn_po+0x2b>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.Cyc_List_List = type { i32 }
define i32 @Cyc_Tcutil_same_rgn_po(%struct.Cyc_List_List* %0, %struct.Cyc_List_List* %1) {
%3 = alloca %struct.Cyc_List_List*
%4 = alloca %struct.Cyc_List_List*
%5 = alloca i32
%6 = alloca i32
store %struct.Cyc_List_List* %0, %struct.Cyc_List_List** %3
store %struct.Cyc_List_List* %1, %struct.Cyc_List_List** %4
%7 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %3
%8 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%9 = call i32 @Cyc_Tcutil_sub_rgnpo(%struct.Cyc_List_List* %7, %struct.Cyc_List_List* %8)
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%14 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %3
%15 = call i32 @Cyc_Tcutil_sub_rgnpo(%struct.Cyc_List_List* %13, %struct.Cyc_List_List* %14)
store i32 %15, i32* %6
%16 = load i32, i32* %6
%17 = icmp ne i32 %16, 0
br label %18
18: ; preds = %12, %2
%19 = phi i1 [ false, %2 ], [ %17, %12 ]
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
%struct.Cyc_List_List = type { i32 }
define i32 @Cyc_Tcutil_same_rgn_po(%struct.Cyc_List_List* %0, %struct.Cyc_List_List* %1) {
%3 = tail call i32 @Cyc_Tcutil_sub_rgnpo(%struct.Cyc_List_List* %0, %struct.Cyc_List_List* %1)
%4 = icmp eq i32 %3, 0
br i1 %4, label %9, label %5
5: ; preds = %2
%6 = tail call i32 @Cyc_Tcutil_sub_rgnpo(%struct.Cyc_List_List* %1, %struct.Cyc_List_List* %0)
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %5, %2
%10 = phi i32 [ 0, %2 ], [ %8, %5 ]
ret i32 %10
}