#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 */
int /*<<< orphan*/ define_real(char *, double);
scalar_t__ error();
int /*<<< orphan*/ memory_init(int);
void init_mol() {
  define_real("atom_ratio", 0.2);
  if (error())
    return;
  define_real("bond_ratio", 0.1);
  if (error())
    return;
  memory_init(6);
  if (error()) {
    return;
  }
  memory_init(40);
  if (error()) {
    return;
  }
}


x86 assembly (clang, -O0):
<init_mol>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
movsd  0xebd(%rip),%xmm0
call   1050 <define_real@plt>
mov    $0x0,%al
call   1040 <error@plt>
cmp    $0x0,%rax
je     115e <init_mol+0x2e>
jmp    11c8 <init_mol+0x98>
lea    0xeb6(%rip),%rdi
movsd  0xe9b(%rip),%xmm0
call   1050 <define_real@plt>
mov    $0x0,%al
call   1040 <error@plt>
cmp    $0x0,%rax
je     1188 <init_mol+0x58>
jmp    11c8 <init_mol+0x98>
mov    $0x6,%edi
call   1030 <memory_init@plt>
mov    $0x0,%al
call   1040 <error@plt>
cmp    $0x0,%rax
je     11a8 <init_mol+0x78>
jmp    11c8 <init_mol+0x98>
mov    $0x28,%edi
call   1030 <memory_init@plt>
mov    $0x0,%al
call   1040 <error@plt>
cmp    $0x0,%rax
je     11c8 <init_mol+0x98>
jmp    11c8 <init_mol+0x98>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_mol>:
push   %rax
lea    0xed8(%rip),%rdi
movsd  0xec0(%rip),%xmm0
call   1050 <define_real@plt>
xor    %eax,%eax
call   1040 <error@plt>
test   %rax,%rax
jne    1187 <init_mol+0x57>
lea    0xec3(%rip),%rdi
movsd  0xea8(%rip),%xmm0
call   1050 <define_real@plt>
xor    %eax,%eax
call   1040 <error@plt>
test   %rax,%rax
jne    1187 <init_mol+0x57>
mov    $0x6,%edi
call   1030 <memory_init@plt>
xor    %eax,%eax
call   1040 <error@plt>
test   %rax,%rax
je     1189 <init_mol+0x59>
pop    %rax
ret
mov    $0x28,%edi
call   1030 <memory_init@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <error@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"atom_ratio\00"
@.str.1 = [11 x i8] c"bond_ratio\00"
define void @init_mol() {
%1 = call i32 @define_real(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double 2.000000e-01)
%2 = call i64 (...) @error()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %20
5: ; preds = %0
%6 = call i32 @define_real(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-01)
%7 = call i64 (...) @error()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %5
br label %20
10: ; preds = %5
%11 = call i32 @memory_init(i32 6)
%12 = call i64 (...) @error()
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %10
br label %20
15: ; preds = %10
%16 = call i32 @memory_init(i32 40)
%17 = call i64 (...) @error()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
br label %20
20: ; preds = %4, %9, %14, %19, %15
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"atom_ratio\00"
@.str.1 = [11 x i8] c"bond_ratio\00"
define void @init_mol() {
%1 = tail call i32 @define_real(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double 2.000000e-01)
%2 = tail call i64 (...) @error()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %15
4: ; preds = %0
%5 = tail call i32 @define_real(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), double 1.000000e-01)
%6 = tail call i64 (...) @error()
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = tail call i32 @memory_init(i32 6)
%10 = tail call i64 (...) @error()
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = tail call i32 @memory_init(i32 40)
%14 = tail call i64 (...) @error()
br label %15
15: ; preds = %12, %8, %4, %0
ret void
}