#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 */
unsigned long boolean_size();
scalar_t__ error();
int /*<<< orphan*/ init_object(int, unsigned long);
unsigned long integer_size();
int /*<<< orphan*/ memory_init(int);
unsigned long real_size();
unsigned long string_size();
void define_simple() {
  unsigned long size;
  size = boolean_size();
  init_object(49, size);
  if (error())
    return;
  size = integer_size();
  init_object(43, size);
  if (error())
    return;
  size = real_size();
  init_object(45, size);
  if (error())
    return;
  size = string_size();
  init_object(47, size);
  if (error())
    return;
  memory_init(49);
  if (error()) {
    return;
  }
  memory_init(43);
  if (error()) {
    return;
  }
  memory_init(45);
  if (error()) {
    return;
  }
  memory_init(47);
  if (error()) {
    return;
  }
}


x86 assembly (clang, -O0):
<define_simple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <boolean_size@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x31,%edi
call   1070 <init_object@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     11a7 <define_simple+0x37>
jmp    12b4 <define_simple+0x144>
mov    $0x0,%al
call   1040 <integer_size@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x2b,%edi
call   1070 <init_object@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     11d6 <define_simple+0x66>
jmp    12b4 <define_simple+0x144>
mov    $0x0,%al
call   1060 <real_size@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x2d,%edi
call   1070 <init_object@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     1205 <define_simple+0x95>
jmp    12b4 <define_simple+0x144>
mov    $0x0,%al
call   1090 <string_size@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x2f,%edi
call   1070 <init_object@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     1234 <define_simple+0xc4>
jmp    12b4 <define_simple+0x144>
mov    $0x31,%edi
call   1030 <memory_init@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     1254 <define_simple+0xe4>
jmp    12b4 <define_simple+0x144>
mov    $0x2b,%edi
call   1030 <memory_init@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     1274 <define_simple+0x104>
jmp    12b4 <define_simple+0x144>
mov    $0x2d,%edi
call   1030 <memory_init@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     1294 <define_simple+0x124>
jmp    12b4 <define_simple+0x144>
mov    $0x2f,%edi
call   1030 <memory_init@plt>
mov    $0x0,%al
call   1080 <error@plt>
cmp    $0x0,%rax
je     12b4 <define_simple+0x144>
jmp    12b4 <define_simple+0x144>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<define_simple>:
push   %rax
xor    %eax,%eax
call   1050 <boolean_size@plt>
mov    $0x31,%edi
mov    %rax,%rsi
call   1070 <init_object@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
jne    123b <define_simple+0xcb>
xor    %eax,%eax
call   1040 <integer_size@plt>
mov    $0x2b,%edi
mov    %rax,%rsi
call   1070 <init_object@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
jne    123b <define_simple+0xcb>
xor    %eax,%eax
call   1060 <real_size@plt>
mov    $0x2d,%edi
mov    %rax,%rsi
call   1070 <init_object@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
jne    123b <define_simple+0xcb>
xor    %eax,%eax
call   1090 <string_size@plt>
mov    $0x2f,%edi
mov    %rax,%rsi
call   1070 <init_object@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
jne    123b <define_simple+0xcb>
mov    $0x31,%edi
call   1030 <memory_init@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
jne    123b <define_simple+0xcb>
mov    $0x2b,%edi
call   1030 <memory_init@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
jne    123b <define_simple+0xcb>
mov    $0x2d,%edi
call   1030 <memory_init@plt>
xor    %eax,%eax
call   1080 <error@plt>
test   %rax,%rax
je     123d <define_simple+0xcd>
pop    %rax
ret
mov    $0x2f,%edi
call   1030 <memory_init@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <error@plt>

LLVM IR (-O0):
define void @define_simple() {
%1 = alloca i64
%2 = call i64 (...) @boolean_size()
store i64 %2, i64* %1
%3 = load i64, i64* %1
%4 = call i32 @init_object(i32 49, i64 %3)
%5 = call i64 (...) @error()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
br label %49
8: ; preds = %0
%9 = call i64 (...) @integer_size()
store i64 %9, i64* %1
%10 = load i64, i64* %1
%11 = call i32 @init_object(i32 43, i64 %10)
%12 = call i64 (...) @error()
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %8
br label %49
15: ; preds = %8
%16 = call i64 (...) @real_size()
store i64 %16, i64* %1
%17 = load i64, i64* %1
%18 = call i32 @init_object(i32 45, i64 %17)
%19 = call i64 (...) @error()
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15
br label %49
22: ; preds = %15
%23 = call i64 (...) @string_size()
store i64 %23, i64* %1
%24 = load i64, i64* %1
%25 = call i32 @init_object(i32 47, i64 %24)
%26 = call i64 (...) @error()
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %22
br label %49
29: ; preds = %22
%30 = call i32 @memory_init(i32 49)
%31 = call i64 (...) @error()
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
br label %49
34: ; preds = %29
%35 = call i32 @memory_init(i32 43)
%36 = call i64 (...) @error()
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34
br label %49
39: ; preds = %34
%40 = call i32 @memory_init(i32 45)
%41 = call i64 (...) @error()
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %39
br label %49
44: ; preds = %39
%45 = call i32 @memory_init(i32 47)
%46 = call i64 (...) @error()
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44
br label %49
49: ; preds = %7, %14, %21, %28, %33, %38, %43, %48, %44
ret void
}

LLVM IR (-O2):
define void @define_simple() {
%1 = tail call i64 (...) @boolean_size()
%2 = tail call i32 @init_object(i32 49, i64 %1)
%3 = tail call i64 (...) @error()
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %35
5: ; preds = %0
%6 = tail call i64 (...) @integer_size()
%7 = tail call i32 @init_object(i32 43, i64 %6)
%8 = tail call i64 (...) @error()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %35
10: ; preds = %5
%11 = tail call i64 (...) @real_size()
%12 = tail call i32 @init_object(i32 45, i64 %11)
%13 = tail call i64 (...) @error()
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %35
15: ; preds = %10
%16 = tail call i64 (...) @string_size()
%17 = tail call i32 @init_object(i32 47, i64 %16)
%18 = tail call i64 (...) @error()
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %35
20: ; preds = %15
%21 = tail call i32 @memory_init(i32 49)
%22 = tail call i64 (...) @error()
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %35
24: ; preds = %20
%25 = tail call i32 @memory_init(i32 43)
%26 = tail call i64 (...) @error()
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = tail call i32 @memory_init(i32 45)
%30 = tail call i64 (...) @error()
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = tail call i32 @memory_init(i32 47)
%34 = tail call i64 (...) @error()
br label %35
35: ; preds = %32, %28, %24, %20, %15, %10, %5, %0
ret void
}