#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*/ clientNew(char *, int);
int /*<<< orphan*/ oosmos_DelayMS(int);
int /*<<< orphan*/ oosmos_RunStateMachines();
extern int main(int argc, char *argv[]) {
  for (unsigned Count = 1; Count <= 5; Count += 1) {
    clientNew("127.0.0.1", 60009);
  }
  for (;;) {
    oosmos_RunStateMachines();
    oosmos_DelayMS(1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
ja     1176 <main+0x46>
lea    0xea2(%rip),%rdi
mov    $0xea69,%esi
call   1050 <clientNew@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114d <main+0x1d>
jmp    117b <main+0x4b>
mov    $0x0,%al
call   1040 <oosmos_RunStateMachines@plt>
mov    $0x1,%edi
call   1030 <oosmos_DelayMS@plt>
jmp    117b <main+0x4b>

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
mov    $0xea69,%esi
call   1050 <clientNew@plt>
mov    %rbx,%rdi
mov    $0xea69,%esi
call   1050 <clientNew@plt>
mov    %rbx,%rdi
mov    $0xea69,%esi
call   1050 <clientNew@plt>
mov    %rbx,%rdi
mov    $0xea69,%esi
call   1050 <clientNew@plt>
mov    %rbx,%rdi
mov    $0xea69,%esi
call   1050 <clientNew@plt>
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <oosmos_RunStateMachines@plt>
mov    $0x1,%edi
call   1030 <oosmos_DelayMS@plt>
jmp    1180 <main+0x50>

LLVM IR (-O0):
@.str = [10 x i8] c"127.0.0.1\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %7
7: ; preds = %12, %2
%8 = load i32, i32* %6
%9 = icmp ule i32 %8, 5
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = call i32 @clientNew(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 60009)
br label %12
12: ; preds = %10
%13 = load i32, i32* %6
%14 = add i32 %13, 1
store i32 %14, i32* %6
br label %7
15: ; preds = %7
br label %16
16: ; preds = %16, %15
%17 = call i32 (...) @oosmos_RunStateMachines()
%18 = call i32 @oosmos_DelayMS(i32 1)
br label %16
}

LLVM IR (-O2):
@.str = [10 x i8] c"127.0.0.1\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @clientNew(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 60009)
%4 = tail call i32 @clientNew(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 60009)
%5 = tail call i32 @clientNew(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 60009)
%6 = tail call i32 @clientNew(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 60009)
%7 = tail call i32 @clientNew(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 60009)
br label %8
8: ; preds = %2, %8
%9 = tail call i32 (...) @oosmos_RunStateMachines()
%10 = tail call i32 @oosmos_DelayMS(i32 1)
br label %8
}