#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 */
struct Cyc_Absyn_Exp *Cyc_Absyn_uint_exp(unsigned int, unsigned int);
struct Cyc_Absyn_Exp *Cyc_InsertChecks_shared_zero_exp(void) {
  struct Cyc_Absyn_Exp *_T0;
  unsigned _T1;
  struct Cyc_Absyn_Exp *_T2;
  static struct Cyc_Absyn_Exp *ans = 0;
  _T0 = ans;
  _T1 = (unsigned)_T0;
  if (_T1)
    goto _TL0;
  else {
    goto _TL2;
  }
_TL2:
  ans = Cyc_Absyn_uint_exp(0U, 0U);
  goto _TL1;
_TL0:
_TL1:
  _T2 = ans;
  return _T2;
}


x86 assembly (clang, -O0):
<Cyc_InsertChecks_shared_zero_exp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x2f11(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1139 <Cyc_InsertChecks_shared_zero_exp+0x29>
jmp    1153 <Cyc_InsertChecks_shared_zero_exp+0x43>
jmp    113e <Cyc_InsertChecks_shared_zero_exp+0x2e>
xor    %esi,%esi
mov    %esi,%edi
call   1030 <Cyc_Absyn_uint_exp@plt>
mov    %rax,0x2ee2(%rip)
jmp    1158 <Cyc_InsertChecks_shared_zero_exp+0x48>
jmp    1158 <Cyc_InsertChecks_shared_zero_exp+0x48>
mov    0x2ed1(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_InsertChecks_shared_zero_exp>:
push   %rax
mov    0x2f18(%rip),%rax
test   %eax,%eax
je     111e <Cyc_InsertChecks_shared_zero_exp+0xe>
pop    %rcx
ret
xor    %edi,%edi
xor    %esi,%esi
call   1030 <Cyc_Absyn_uint_exp@plt>
mov    %rax,0x2f02(%rip)
pop    %rcx
ret

LLVM IR (-O0):
%struct.Cyc_Absyn_Exp = type { i32 }
@Cyc_InsertChecks_shared_zero_exp.ans = internal global %struct.Cyc_Absyn_Exp* null
define %struct.Cyc_Absyn_Exp* @Cyc_InsertChecks_shared_zero_exp() {
%1 = alloca %struct.Cyc_Absyn_Exp*
%2 = alloca i32
%3 = alloca %struct.Cyc_Absyn_Exp*
%4 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** @Cyc_InsertChecks_shared_zero_exp.ans
store %struct.Cyc_Absyn_Exp* %4, %struct.Cyc_Absyn_Exp** %1
%5 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %1
%6 = ptrtoint %struct.Cyc_Absyn_Exp* %5 to i32
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %0
br label %13
10: ; preds = %0
br label %11
11: ; preds = %10
%12 = call %struct.Cyc_Absyn_Exp* @Cyc_Absyn_uint_exp(i32 0, i32 0)
store %struct.Cyc_Absyn_Exp* %12, %struct.Cyc_Absyn_Exp** @Cyc_InsertChecks_shared_zero_exp.ans
br label %14
13: ; preds = %9
br label %14
14: ; preds = %13, %11
%15 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** @Cyc_InsertChecks_shared_zero_exp.ans
store %struct.Cyc_Absyn_Exp* %15, %struct.Cyc_Absyn_Exp** %3
%16 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %3
ret %struct.Cyc_Absyn_Exp* %16
}

LLVM IR (-O2):
%struct.Cyc_Absyn_Exp = type { i32 }
@Cyc_InsertChecks_shared_zero_exp.ans = internal unnamed_addr global %struct.Cyc_Absyn_Exp* null
define %struct.Cyc_Absyn_Exp* @Cyc_InsertChecks_shared_zero_exp() {
%1 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** @Cyc_InsertChecks_shared_zero_exp.ans
%2 = ptrtoint %struct.Cyc_Absyn_Exp* %1 to i64
%3 = trunc i64 %2 to i32
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call %struct.Cyc_Absyn_Exp* @Cyc_Absyn_uint_exp(i32 0, i32 0)
store %struct.Cyc_Absyn_Exp* %6, %struct.Cyc_Absyn_Exp** @Cyc_InsertChecks_shared_zero_exp.ans
br label %7
7: ; preds = %0, %5
%8 = phi %struct.Cyc_Absyn_Exp* [ %1, %0 ], [ %6, %5 ]
ret %struct.Cyc_Absyn_Exp* %8
}