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

/* Variables and functions */
scalar_t__ assign_envelopes(struct DB3Module *);
scalar_t__ verify_patterns(struct DB3Module *);
scalar_t__ verify_playlists(struct DB3Module *);
scalar_t__ verify_sampled_instruments(struct DB3Module *);
scalar_t__ verify_songs(struct DB3Module *);
int verify_contents(struct DB3Module *m) {
  if (verify_sampled_instruments(m)) {
    if (verify_patterns(m)) {
      if (verify_songs(m)) {
        if (verify_playlists(m)) {
          if (assign_envelopes(m))
            return 1;
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<verify_contents>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <verify_sampled_instruments@plt>
cmp    $0x0,%rax
je     11db <verify_contents+0x8b>
mov    -0x10(%rbp),%rdi
call   1060 <verify_patterns@plt>
cmp    $0x0,%rax
je     11d6 <verify_contents+0x86>
mov    -0x10(%rbp),%rdi
call   1050 <verify_songs@plt>
cmp    $0x0,%rax
je     11d1 <verify_contents+0x81>
mov    -0x10(%rbp),%rdi
call   1030 <verify_playlists@plt>
cmp    $0x0,%rax
je     11cc <verify_contents+0x7c>
mov    -0x10(%rbp),%rdi
call   1070 <assign_envelopes@plt>
cmp    $0x0,%rax
je     11c7 <verify_contents+0x77>
movl   $0x1,-0x4(%rbp)
jmp    11e2 <verify_contents+0x92>
jmp    11cc <verify_contents+0x7c>
jmp    11d1 <verify_contents+0x81>
jmp    11d6 <verify_contents+0x86>
jmp    11db <verify_contents+0x8b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verify_contents>:
push   %rbx
mov    %rdi,%rbx
call   1040 <verify_sampled_instruments@plt>
test   %rax,%rax
je     119c <verify_contents+0x4c>
mov    %rbx,%rdi
call   1060 <verify_patterns@plt>
test   %rax,%rax
je     119c <verify_contents+0x4c>
mov    %rbx,%rdi
call   1050 <verify_songs@plt>
test   %rax,%rax
je     119c <verify_contents+0x4c>
mov    %rbx,%rdi
call   1030 <verify_playlists@plt>
test   %rax,%rax
je     119c <verify_contents+0x4c>
mov    %rbx,%rdi
call   1070 <assign_envelopes@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     119c <verify_contents+0x4c>
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
%struct.DB3Module = type { i32 }
define i32 @verify_contents(%struct.DB3Module* %0) {
%2 = tail call i64 @verify_sampled_instruments(%struct.DB3Module* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %1
%5 = tail call i64 @verify_patterns(%struct.DB3Module* %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %16, label %7
7: ; preds = %4
%8 = tail call i64 @verify_songs(%struct.DB3Module* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %16, label %10
10: ; preds = %7
%11 = tail call i64 @verify_playlists(%struct.DB3Module* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = tail call i64 @assign_envelopes(%struct.DB3Module* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %4, %10, %13, %7, %1
br label %17
17: ; preds = %13, %16
%18 = phi i32 [ 0, %16 ], [ 1, %13 ]
ret i32 %18
}