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

/* Variables and functions */
int /*<<< orphan*/ Cyc_Absyn_seq_stmt(struct Cyc_Absyn_Stmt *,
                                      struct Cyc_Absyn_Stmt *, unsigned int);
struct Cyc_Absyn_Stmt *Cyc_Toc_seq_stmt_opt(struct Cyc_Absyn_Stmt *s1,
                                            struct Cyc_Absyn_Stmt *s2) {
  if (s1 == 0)
    return s2;
  if (s2 == 0)
    return s1;
  return ({ Cyc_Absyn_seq_stmt(s1, s2, 0U); });
}


x86 assembly (clang, -O0):
<Cyc_Toc_seq_stmt_opt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1138 <Cyc_Toc_seq_stmt_opt+0x28>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    116a <Cyc_Toc_seq_stmt_opt+0x5a>
cmpq   $0x0,-0x18(%rbp)
jne    1150 <Cyc_Toc_seq_stmt_opt+0x40>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    116a <Cyc_Toc_seq_stmt_opt+0x5a>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
xor    %edx,%edx
call   1030 <Cyc_Absyn_seq_stmt@plt>
mov    %eax,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Toc_seq_stmt_opt>:
test   %rdi,%rdi
je     1129 <Cyc_Toc_seq_stmt_opt+0x19>
test   %rsi,%rsi
je     112d <Cyc_Toc_seq_stmt_opt+0x1d>
push   %rax
xor    %edx,%edx
call   1030 <Cyc_Absyn_seq_stmt@plt>
movslq %eax,%rsi
add    $0x8,%rsp
mov    %rsi,%rax
ret
mov    %rdi,%rax
ret

LLVM IR (-O0):
%struct.Cyc_Absyn_Stmt = type { i32 }
define %struct.Cyc_Absyn_Stmt* @Cyc_Toc_seq_stmt_opt(%struct.Cyc_Absyn_Stmt* %0, %struct.Cyc_Absyn_Stmt* %1) {
%3 = alloca %struct.Cyc_Absyn_Stmt*
%4 = alloca %struct.Cyc_Absyn_Stmt*
%5 = alloca %struct.Cyc_Absyn_Stmt*
%6 = alloca i32
store %struct.Cyc_Absyn_Stmt* %0, %struct.Cyc_Absyn_Stmt** %4
store %struct.Cyc_Absyn_Stmt* %1, %struct.Cyc_Absyn_Stmt** %5
%7 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %4
%8 = icmp eq %struct.Cyc_Absyn_Stmt* %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %5
store %struct.Cyc_Absyn_Stmt* %10, %struct.Cyc_Absyn_Stmt** %3
br label %23
11: ; preds = %2
%12 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %5
%13 = icmp eq %struct.Cyc_Absyn_Stmt* %12, null
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %4
store %struct.Cyc_Absyn_Stmt* %15, %struct.Cyc_Absyn_Stmt** %3
br label %23
16: ; preds = %11
%17 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %4
%18 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %5
%19 = call i32 @Cyc_Absyn_seq_stmt(%struct.Cyc_Absyn_Stmt* %17, %struct.Cyc_Absyn_Stmt* %18, i32 0)
store i32 %19, i32* %6
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to %struct.Cyc_Absyn_Stmt*
store %struct.Cyc_Absyn_Stmt* %22, %struct.Cyc_Absyn_Stmt** %3
br label %23
23: ; preds = %16, %14, %9
%24 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %3
ret %struct.Cyc_Absyn_Stmt* %24
}

LLVM IR (-O2):
%struct.Cyc_Absyn_Stmt = type { i32 }
define %struct.Cyc_Absyn_Stmt* @Cyc_Toc_seq_stmt_opt(%struct.Cyc_Absyn_Stmt* %0, %struct.Cyc_Absyn_Stmt* %1) {
%3 = icmp eq %struct.Cyc_Absyn_Stmt* %0, null
br i1 %3, label %10, label %4
4: ; preds = %2
%5 = icmp eq %struct.Cyc_Absyn_Stmt* %1, null
br i1 %5, label %10, label %6
6: ; preds = %4
%7 = tail call i32 @Cyc_Absyn_seq_stmt(%struct.Cyc_Absyn_Stmt* %0, %struct.Cyc_Absyn_Stmt* %1, i32 0)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to %struct.Cyc_Absyn_Stmt*
br label %10
10: ; preds = %4, %2, %6
%11 = phi %struct.Cyc_Absyn_Stmt* [ %9, %6 ], [ %1, %2 ], [ %0, %4 ]
ret %struct.Cyc_Absyn_Stmt* %11
}