#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 my_struct {
  int dummy;
};
struct jslex {
  int dummy;
};

/* Variables and functions */
scalar_t__ my_junk_value(struct jslex *);
scalar_t__ my_root__x__y(struct my_struct *, struct jslex *);
scalar_t__ my_root__x__z(struct my_struct *, struct jslex *);
int my_root__x_members(struct my_struct *dest, struct jslex *lexer) {
  return my_root__x__y(dest, lexer) || my_root__x__z(dest, lexer) ||
         my_junk_value(lexer);
}


x86 assembly (clang, -O0):
<my_root__x_members>:
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   1040 <my_root__x__y@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    1191 <my_root__x_members+0x61>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <my_root__x__z@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    1191 <my_root__x_members+0x61>
mov    -0x10(%rbp),%rdi
call   1030 <my_junk_value@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_root__x_members>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rbp
call   1040 <my_root__x__y@plt>
mov    $0x1,%r14d
test   %rax,%rax
jne    116c <my_root__x_members+0x3c>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <my_root__x__z@plt>
test   %rax,%rax
jne    116c <my_root__x_members+0x3c>
mov    %rbx,%rdi
call   1030 <my_junk_value@plt>
xor    %r14d,%r14d
test   %rax,%rax
setne  %r14b
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
%struct.my_struct = type { i32 }
%struct.jslex = type { i32 }
define i32 @my_root__x_members(%struct.my_struct* %0, %struct.jslex* %1) {
%3 = tail call i64 @my_root__x__y(%struct.my_struct* %0, %struct.jslex* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %2
%6 = tail call i64 @my_root__x__z(%struct.my_struct* %0, %struct.jslex* %1)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = tail call i64 @my_junk_value(%struct.jslex* %1)
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %8, %5, %2
%13 = phi i32 [ 1, %5 ], [ 1, %2 ], [ %11, %8 ]
ret i32 %13
}