#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 */

/* Variables and functions */
scalar_t__ net_forward_module_inside_list_init();
scalar_t__ net_forward_module_inside_loop_init();
scalar_t__ net_forward_module_inside_mutex_init();
scalar_t__ net_forward_module_inside_ring_init();
scalar_t__ net_forward_module_inside_sock_init();
int /*<<< orphan*/ printf(char *);
int net_forward_module_init(void) {
  int ret = 0;
  if (net_forward_module_inside_sock_init() ||
      net_forward_module_inside_ring_init() ||
      net_forward_module_inside_list_init() ||
      net_forward_module_inside_mutex_init() ||
      net_forward_module_inside_loop_init()) {
    printf("net_forward_module_init error .\n");
    ret = -1;
  }
  return ret;
}


x86 assembly (clang, -O0):
<net_forward_module_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <net_forward_module_inside_sock_init@plt>
cmp    $0x0,%rax
jne    11c4 <net_forward_module_init+0x64>
mov    $0x0,%al
call   1080 <net_forward_module_inside_ring_init@plt>
cmp    $0x0,%rax
jne    11c4 <net_forward_module_init+0x64>
mov    $0x0,%al
call   1030 <net_forward_module_inside_list_init@plt>
cmp    $0x0,%rax
jne    11c4 <net_forward_module_init+0x64>
mov    $0x0,%al
call   1040 <net_forward_module_inside_mutex_init@plt>
cmp    $0x0,%rax
jne    11c4 <net_forward_module_init+0x64>
mov    $0x0,%al
call   1060 <net_forward_module_inside_loop_init@plt>
cmp    $0x0,%rax
je     11d7 <net_forward_module_init+0x77>
lea    0xe35(%rip),%rdi
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<net_forward_module_init>:
push   %rbx
xor    %eax,%eax
call   1070 <net_forward_module_inside_sock_init@plt>
test   %rax,%rax
jne    119f <net_forward_module_init+0x3f>
xor    %eax,%eax
call   1080 <net_forward_module_inside_ring_init@plt>
test   %rax,%rax
jne    119f <net_forward_module_init+0x3f>
xor    %eax,%eax
call   1040 <net_forward_module_inside_list_init@plt>
test   %rax,%rax
jne    119f <net_forward_module_init+0x3f>
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <net_forward_module_inside_mutex_init@plt>
test   %rax,%rax
jne    119f <net_forward_module_init+0x3f>
xor    %eax,%eax
call   1060 <net_forward_module_inside_loop_init@plt>
test   %rax,%rax
je     11b0 <net_forward_module_init+0x50>
lea    0xe5a(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"net_forward_module_init error .\0A\00"
define i32 @net_forward_module_init() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i64 (...) @net_forward_module_inside_sock_init()
%3 = icmp ne i64 %2, 0
br i1 %3, label %16, label %4
4: ; preds = %0
%5 = call i64 (...) @net_forward_module_inside_ring_init()
%6 = icmp ne i64 %5, 0
br i1 %6, label %16, label %7
7: ; preds = %4
%8 = call i64 (...) @net_forward_module_inside_list_init()
%9 = icmp ne i64 %8, 0
br i1 %9, label %16, label %10
10: ; preds = %7
%11 = call i64 (...) @net_forward_module_inside_mutex_init()
%12 = icmp ne i64 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %10
%14 = call i64 (...) @net_forward_module_inside_loop_init()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13, %10, %7, %4, %0
%17 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %1
br label %18
18: ; preds = %16, %13
%19 = load i32, i32* %1
ret i32 %19
}

LLVM IR (-O2):
@str = [32 x i8] c"net_forward_module_init error .\00"
define i32 @net_forward_module_init() {
%1 = tail call i64 (...) @net_forward_module_inside_sock_init()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %15
3: ; preds = %0
%4 = tail call i64 (...) @net_forward_module_inside_ring_init()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %15
6: ; preds = %3
%7 = tail call i64 (...) @net_forward_module_inside_list_init()
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %6
%10 = tail call i64 (...) @net_forward_module_inside_mutex_init()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = tail call i64 (...) @net_forward_module_inside_loop_init()
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %12, %9, %6, %3, %0
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
br label %17
17: ; preds = %15, %12
%18 = phi i32 [ -1, %15 ], [ 0, %12 ]
ret i32 %18
}