#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_PrattProver_Node {
  int dummy;
};

/* Variables and functions */
int Cyc_PrattProver_eq_nodes(struct Cyc_PrattProver_Node *,
                             struct Cyc_PrattProver_Node *, int);
int Cyc_PrattProver_equal_nodes(struct Cyc_PrattProver_Node *s,
                                struct Cyc_PrattProver_Node *r) {
  int _T0;
  int _T1;
  _T1 = Cyc_PrattProver_eq_nodes(s, r, 0);
  if (!_T1)
    goto _TL5A;
  _T0 = 1;
  goto _TL5B;
_TL5A:
  _T0 = Cyc_PrattProver_eq_nodes(s, r, 1);
_TL5B:
  return _T0;
}


x86 assembly (clang, -O0):
<Cyc_PrattProver_equal_nodes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %edx,%edx
call   1030 <Cyc_PrattProver_eq_nodes@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jne    1141 <Cyc_PrattProver_equal_nodes+0x31>
jmp    114d <Cyc_PrattProver_equal_nodes+0x3d>
movl   $0x1,-0x14(%rbp)
jmp    1162 <Cyc_PrattProver_equal_nodes+0x52>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1,%edx
call   1030 <Cyc_PrattProver_eq_nodes@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_PrattProver_equal_nodes>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %edx,%edx
call   1030 <Cyc_PrattProver_eq_nodes@plt>
test   %eax,%eax
je     1132 <Cyc_PrattProver_equal_nodes+0x22>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <Cyc_PrattProver_eq_nodes@plt>

LLVM IR (-O0):
%struct.Cyc_PrattProver_Node = type { i32 }
define i32 @Cyc_PrattProver_equal_nodes(%struct.Cyc_PrattProver_Node* %0, %struct.Cyc_PrattProver_Node* %1) {
%3 = alloca %struct.Cyc_PrattProver_Node*
%4 = alloca %struct.Cyc_PrattProver_Node*
%5 = alloca i32
%6 = alloca i32
store %struct.Cyc_PrattProver_Node* %0, %struct.Cyc_PrattProver_Node** %3
store %struct.Cyc_PrattProver_Node* %1, %struct.Cyc_PrattProver_Node** %4
%7 = load %struct.Cyc_PrattProver_Node*, %struct.Cyc_PrattProver_Node** %3
%8 = load %struct.Cyc_PrattProver_Node*, %struct.Cyc_PrattProver_Node** %4
%9 = call i32 @Cyc_PrattProver_eq_nodes(%struct.Cyc_PrattProver_Node* %7, %struct.Cyc_PrattProver_Node* %8, i32 0)
store i32 %9, i32* %6
%10 = load i32, i32* %6
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %2
br label %14
13: ; preds = %2
store i32 1, i32* %5
br label %18
14: ; preds = %12
%15 = load %struct.Cyc_PrattProver_Node*, %struct.Cyc_PrattProver_Node** %3
%16 = load %struct.Cyc_PrattProver_Node*, %struct.Cyc_PrattProver_Node** %4
%17 = call i32 @Cyc_PrattProver_eq_nodes(%struct.Cyc_PrattProver_Node* %15, %struct.Cyc_PrattProver_Node* %16, i32 1)
store i32 %17, i32* %5
br label %18
18: ; preds = %14, %13
%19 = load i32, i32* %5
ret i32 %19
}

LLVM IR (-O2):
%struct.Cyc_PrattProver_Node = type { i32 }
define i32 @Cyc_PrattProver_equal_nodes(%struct.Cyc_PrattProver_Node* %0, %struct.Cyc_PrattProver_Node* %1) {
%3 = tail call i32 @Cyc_PrattProver_eq_nodes(%struct.Cyc_PrattProver_Node* %0, %struct.Cyc_PrattProver_Node* %1, i32 0)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @Cyc_PrattProver_eq_nodes(%struct.Cyc_PrattProver_Node* %0, %struct.Cyc_PrattProver_Node* %1, i32 1)
br label %7
7: ; preds = %2, %5
%8 = phi i32 [ %6, %5 ], [ 1, %2 ]
ret i32 %8
}