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

/* Variables and functions */
int Cyc_Evexp_same_uint_const_exp(struct Cyc_Absyn_Exp *,
                                  struct Cyc_Absyn_Exp *);
int Cyc_Unify_unify_const_exp_opt(struct Cyc_Absyn_Exp *e1,
                                  struct Cyc_Absyn_Exp *e2) {
  int _T0;
  if (e1 != 0)
    goto _TL80;
  if (e2 != 0)
    goto _TL80;
  return 1;
_TL80:
  if (e1 == 0)
    goto _TL84;
  else {
    goto _TL85;
  }
_TL85:
  if (e2 == 0)
    goto _TL84;
  else {
    goto _TL82;
  }
_TL84:
  return 0;
_TL82:
  _T0 = Cyc_Evexp_same_uint_const_exp(e1, e2);
  return _T0;
}


x86 assembly (clang, -O0):
<Cyc_Unify_unify_const_exp_opt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1130 <Cyc_Unify_unify_const_exp_opt+0x20>
jmp    114c <Cyc_Unify_unify_const_exp_opt+0x3c>
cmpq   $0x0,-0x18(%rbp)
je     1140 <Cyc_Unify_unify_const_exp_opt+0x30>
jmp    114c <Cyc_Unify_unify_const_exp_opt+0x3c>
movl   $0x1,-0x4(%rbp)
jmp    1198 <Cyc_Unify_unify_const_exp_opt+0x88>
cmpq   $0x0,-0x10(%rbp)
jne    115c <Cyc_Unify_unify_const_exp_opt+0x4c>
jmp    1176 <Cyc_Unify_unify_const_exp_opt+0x66>
jmp    1161 <Cyc_Unify_unify_const_exp_opt+0x51>
cmpq   $0x0,-0x18(%rbp)
jne    1171 <Cyc_Unify_unify_const_exp_opt+0x61>
jmp    1176 <Cyc_Unify_unify_const_exp_opt+0x66>
jmp    1182 <Cyc_Unify_unify_const_exp_opt+0x72>
movl   $0x0,-0x4(%rbp)
jmp    1198 <Cyc_Unify_unify_const_exp_opt+0x88>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <Cyc_Evexp_same_uint_const_exp@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Unify_unify_const_exp_opt>:
mov    $0x1,%eax
mov    %rdi,%rcx
or     %rsi,%rcx
je     112e <Cyc_Unify_unify_const_exp_opt+0x1e>
xor    %eax,%eax
test   %rdi,%rdi
je     112e <Cyc_Unify_unify_const_exp_opt+0x1e>
test   %rsi,%rsi
je     112e <Cyc_Unify_unify_const_exp_opt+0x1e>
jmp    1030 <Cyc_Evexp_same_uint_const_exp@plt>
ret

LLVM IR (-O0):
%struct.Cyc_Absyn_Exp = type { i32 }
define i32 @Cyc_Unify_unify_const_exp_opt(%struct.Cyc_Absyn_Exp* %0, %struct.Cyc_Absyn_Exp* %1) {
%3 = alloca i32
%4 = alloca %struct.Cyc_Absyn_Exp*
%5 = alloca %struct.Cyc_Absyn_Exp*
%6 = alloca i32
store %struct.Cyc_Absyn_Exp* %0, %struct.Cyc_Absyn_Exp** %4
store %struct.Cyc_Absyn_Exp* %1, %struct.Cyc_Absyn_Exp** %5
%7 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %4
%8 = icmp ne %struct.Cyc_Absyn_Exp* %7, null
br i1 %8, label %9, label %10
9: ; preds = %2
br label %15
10: ; preds = %2
%11 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %5
%12 = icmp ne %struct.Cyc_Absyn_Exp* %11, null
br i1 %12, label %13, label %14
13: ; preds = %10
br label %15
14: ; preds = %10
store i32 1, i32* %3
br label %31
15: ; preds = %13, %9
%16 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %4
%17 = icmp eq %struct.Cyc_Absyn_Exp* %16, null
br i1 %17, label %18, label %19
18: ; preds = %15
br label %25
19: ; preds = %15
br label %20
20: ; preds = %19
%21 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %5
%22 = icmp eq %struct.Cyc_Absyn_Exp* %21, null
br i1 %22, label %23, label %24
23: ; preds = %20
br label %25
24: ; preds = %20
br label %26
25: ; preds = %23, %18
store i32 0, i32* %3
br label %31
26: ; preds = %24
%27 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %4
%28 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %5
%29 = call i32 @Cyc_Evexp_same_uint_const_exp(%struct.Cyc_Absyn_Exp* %27, %struct.Cyc_Absyn_Exp* %28)
store i32 %29, i32* %6
%30 = load i32, i32* %6
store i32 %30, i32* %3
br label %31
31: ; preds = %26, %25, %14
%32 = load i32, i32* %3
ret i32 %32
}

LLVM IR (-O2):
%struct.Cyc_Absyn_Exp = type { i32 }
define i32 @Cyc_Unify_unify_const_exp_opt(%struct.Cyc_Absyn_Exp* %0, %struct.Cyc_Absyn_Exp* %1) {
%3 = icmp ne %struct.Cyc_Absyn_Exp* %0, null
%4 = icmp ne %struct.Cyc_Absyn_Exp* %1, null
%5 = or i1 %3, %4
br i1 %5, label %6, label %12
6: ; preds = %2
%7 = icmp eq %struct.Cyc_Absyn_Exp* %0, null
%8 = icmp eq %struct.Cyc_Absyn_Exp* %1, null
%9 = or i1 %7, %8
br i1 %9, label %12, label %10
10: ; preds = %6
%11 = tail call i32 @Cyc_Evexp_same_uint_const_exp(%struct.Cyc_Absyn_Exp* %0, %struct.Cyc_Absyn_Exp* %1)
br label %12
12: ; preds = %6, %2, %10
%13 = phi i32 [ %11, %10 ], [ 1, %2 ], [ 0, %6 ]
ret i32 %13
}