#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__bar(struct my_struct *, struct jslex *);
scalar_t__ my_root__foo(struct my_struct *, struct jslex *);
scalar_t__ my_root__puff(struct my_struct *, struct jslex *);
scalar_t__ my_root__x(struct my_struct *, struct jslex *);
int my_root_member(struct my_struct *dest, struct jslex *lexer) {
  return my_root__foo(dest, lexer) || my_root__bar(dest, lexer) ||
         my_root__x(dest, lexer) || my_root__puff(dest, lexer) ||
         my_junk_value(lexer);
}


x86 assembly (clang, -O0):
<my_root_member>:
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   1060 <my_root__foo@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    11ef <my_root_member+0x9f>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <my_root__bar@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    11ef <my_root_member+0x9f>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <my_root__x@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    11ef <my_root_member+0x9f>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1070 <my_root__puff@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x11(%rbp)
jne    11ef <my_root_member+0x9f>
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_member>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rbp
call   1060 <my_root__foo@plt>
mov    $0x1,%r14d
test   %rax,%rax
jne    11ac <my_root_member+0x5c>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1040 <my_root__bar@plt>
test   %rax,%rax
jne    11ac <my_root_member+0x5c>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1050 <my_root__x@plt>
test   %rax,%rax
jne    11ac <my_root_member+0x5c>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1070 <my_root__puff@plt>
test   %rax,%rax
jne    11ac <my_root_member+0x5c>
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_member(%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__foo(%struct.my_struct* %5, %struct.jslex* %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %28, 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__bar(%struct.my_struct* %10, %struct.jslex* %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %28, label %14
14: ; preds = %9
%15 = load %struct.my_struct*, %struct.my_struct** %3
%16 = load %struct.jslex*, %struct.jslex** %4
%17 = call i64 @my_root__x(%struct.my_struct* %15, %struct.jslex* %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %28, label %19
19: ; preds = %14
%20 = load %struct.my_struct*, %struct.my_struct** %3
%21 = load %struct.jslex*, %struct.jslex** %4
%22 = call i64 @my_root__puff(%struct.my_struct* %20, %struct.jslex* %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %19
%25 = load %struct.jslex*, %struct.jslex** %4
%26 = call i64 @my_junk_value(%struct.jslex* %25)
%27 = icmp ne i64 %26, 0
br label %28
28: ; preds = %24, %19, %14, %9, %2
%29 = phi i1 [ true, %19 ], [ true, %14 ], [ true, %9 ], [ true, %2 ], [ %27, %24 ]
%30 = zext i1 %29 to i32
ret i32 %30
}

LLVM IR (-O2):
%struct.my_struct = type { i32 }
%struct.jslex = type { i32 }
define i32 @my_root_member(%struct.my_struct* %0, %struct.jslex* %1) {
%3 = tail call i64 @my_root__foo(%struct.my_struct* %0, %struct.jslex* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %18
5: ; preds = %2
%6 = tail call i64 @my_root__bar(%struct.my_struct* %0, %struct.jslex* %1)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = tail call i64 @my_root__x(%struct.my_struct* %0, %struct.jslex* %1)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = tail call i64 @my_root__puff(%struct.my_struct* %0, %struct.jslex* %1)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = tail call i64 @my_junk_value(%struct.jslex* %1)
%16 = icmp ne i64 %15, 0
%17 = zext i1 %16 to i32
br label %18
18: ; preds = %14, %11, %8, %5, %2
%19 = phi i32 [ 1, %11 ], [ 1, %8 ], [ 1, %5 ], [ 1, %2 ], [ %17, %14 ]
ret i32 %19
}