#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*/ httptestNew(char *, int, unsigned int);
int /*<<< orphan*/ oosmos_DelayMS(int);
int /*<<< orphan*/ oosmos_RunStateMachines();
int /*<<< orphan*/ printf(char *);
extern int main(int argc, char *argv[]) {
  printf("\nTest does not end on its own. Press CNTL-C to terminate.\n\n");
  for (unsigned Count = 1; Count <= 5; Count++) {
    httptestNew("www.example.com", 80, Count);
  }
  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)
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
ja     1195 <main+0x55>
mov    -0x14(%rbp),%edx
lea    0xebf(%rip),%rdi
mov    $0x50,%esi
call   1040 <httptestNew@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1169 <main+0x29>
jmp    119a <main+0x5a>
mov    $0x0,%al
call   1060 <oosmos_RunStateMachines@plt>
mov    $0x1,%edi
call   1050 <oosmos_DelayMS@plt>
jmp    119a <main+0x5a>

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeac(%rip),%rbx
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x1,%edx
call   1040 <httptestNew@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x2,%edx
call   1040 <httptestNew@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x3,%edx
call   1040 <httptestNew@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x4,%edx
call   1040 <httptestNew@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x5,%edx
call   1040 <httptestNew@plt>
xchg   %ax,%ax
xor    %eax,%eax
call   1060 <oosmos_RunStateMachines@plt>
mov    $0x1,%edi
call   1050 <oosmos_DelayMS@plt>
jmp    11b0 <main+0x70>

LLVM IR (-O0):
@.str = [60 x i8] c"\0ATest does not end on its own. Press CNTL-C to terminate.\0A\0A\00"
@.str.1 = [16 x i8] c"www.example.com\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
%7 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %6
br label %8
8: ; preds = %14, %2
%9 = load i32, i32* %6
%10 = icmp ule i32 %9, 5
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, i32* %6
%13 = call i32 @httptestNew(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 80, i32 %12)
br label %14
14: ; preds = %11
%15 = load i32, i32* %6
%16 = add i32 %15, 1
store i32 %16, i32* %6
br label %8
17: ; preds = %8
br label %18
18: ; preds = %18, %17
%19 = call i32 (...) @oosmos_RunStateMachines()
%20 = call i32 @oosmos_DelayMS(i32 1)
br label %18
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"www.example.com\00"
@str = [59 x i8] c"\0ATest does not end on its own. Press CNTL-C to terminate.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @httptestNew(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 80, i32 1)
%5 = tail call i32 @httptestNew(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 80, i32 2)
%6 = tail call i32 @httptestNew(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 80, i32 3)
%7 = tail call i32 @httptestNew(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 80, i32 4)
%8 = tail call i32 @httptestNew(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 80, i32 5)
br label %9
9: ; preds = %2, %9
%10 = tail call i32 (...) @oosmos_RunStateMachines()
%11 = tail call i32 @oosmos_DelayMS(i32 1)
br label %9
}