#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*/ clear();
int /*<<< orphan*/ ptsleeping_1();
int /*<<< orphan*/ ptsleeping_2();
int /*<<< orphan*/ ptsleeping_3();
int /*<<< orphan*/ usleep(int);
void tsleep() {
  clear();
  for (int i = 0; i < 11; i++) {
    ptsleeping_1();
    usleep(750000);
    clear();
    ptsleeping_2();
    usleep(750000);
    clear();
    ptsleeping_3();
    usleep(750000);
    clear();
  }
}


x86 assembly (clang, -O0):
<tsleep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <clear@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0xb,-0x4(%rbp)
jge    11c6 <tsleep+0x76>
mov    $0x0,%al
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
mov    $0x0,%al
call   1060 <clear@plt>
mov    $0x0,%al
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
mov    $0x0,%al
call   1060 <clear@plt>
mov    $0x0,%al
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
mov    $0x0,%al
call   1060 <clear@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1166 <tsleep+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tsleep>:
push   %rax
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1040 <ptsleeping_1@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1050 <ptsleeping_2@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
call   1060 <clear@plt>
xor    %eax,%eax
call   1030 <ptsleeping_3@plt>
mov    $0xb71b0,%edi
call   1070 <usleep@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <clear@plt>

LLVM IR (-O0):
define void @tsleep() {
%1 = alloca i32
%2 = call i32 (...) @clear()
store i32 0, i32* %1
br label %3
3: ; preds = %16, %0
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 11
br i1 %5, label %6, label %19
6: ; preds = %3
%7 = call i32 (...) @ptsleeping_1()
%8 = call i32 @usleep(i32 750000)
%9 = call i32 (...) @clear()
%10 = call i32 (...) @ptsleeping_2()
%11 = call i32 @usleep(i32 750000)
%12 = call i32 (...) @clear()
%13 = call i32 (...) @ptsleeping_3()
%14 = call i32 @usleep(i32 750000)
%15 = call i32 (...) @clear()
br label %16
16: ; preds = %6
%17 = load i32, i32* %1
%18 = add nsw i32 %17, 1
store i32 %18, i32* %1
br label %3
19: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @tsleep() {
%1 = tail call i32 (...) @clear()
%2 = tail call i32 (...) @ptsleeping_1()
%3 = tail call i32 @usleep(i32 750000)
%4 = tail call i32 (...) @clear()
%5 = tail call i32 (...) @ptsleeping_2()
%6 = tail call i32 @usleep(i32 750000)
%7 = tail call i32 (...) @clear()
%8 = tail call i32 (...) @ptsleeping_3()
%9 = tail call i32 @usleep(i32 750000)
%10 = tail call i32 (...) @clear()
%11 = tail call i32 (...) @ptsleeping_1()
%12 = tail call i32 @usleep(i32 750000)
%13 = tail call i32 (...) @clear()
%14 = tail call i32 (...) @ptsleeping_2()
%15 = tail call i32 @usleep(i32 750000)
%16 = tail call i32 (...) @clear()
%17 = tail call i32 (...) @ptsleeping_3()
%18 = tail call i32 @usleep(i32 750000)
%19 = tail call i32 (...) @clear()
%20 = tail call i32 (...) @ptsleeping_1()
%21 = tail call i32 @usleep(i32 750000)
%22 = tail call i32 (...) @clear()
%23 = tail call i32 (...) @ptsleeping_2()
%24 = tail call i32 @usleep(i32 750000)
%25 = tail call i32 (...) @clear()
%26 = tail call i32 (...) @ptsleeping_3()
%27 = tail call i32 @usleep(i32 750000)
%28 = tail call i32 (...) @clear()
%29 = tail call i32 (...) @ptsleeping_1()
%30 = tail call i32 @usleep(i32 750000)
%31 = tail call i32 (...) @clear()
%32 = tail call i32 (...) @ptsleeping_2()
%33 = tail call i32 @usleep(i32 750000)
%34 = tail call i32 (...) @clear()
%35 = tail call i32 (...) @ptsleeping_3()
%36 = tail call i32 @usleep(i32 750000)
%37 = tail call i32 (...) @clear()
%38 = tail call i32 (...) @ptsleeping_1()
%39 = tail call i32 @usleep(i32 750000)
%40 = tail call i32 (...) @clear()
%41 = tail call i32 (...) @ptsleeping_2()
%42 = tail call i32 @usleep(i32 750000)
%43 = tail call i32 (...) @clear()
%44 = tail call i32 (...) @ptsleeping_3()
%45 = tail call i32 @usleep(i32 750000)
%46 = tail call i32 (...) @clear()
%47 = tail call i32 (...) @ptsleeping_1()
%48 = tail call i32 @usleep(i32 750000)
%49 = tail call i32 (...) @clear()
%50 = tail call i32 (...) @ptsleeping_2()
%51 = tail call i32 @usleep(i32 750000)
%52 = tail call i32 (...) @clear()
%53 = tail call i32 (...) @ptsleeping_3()
%54 = tail call i32 @usleep(i32 750000)
%55 = tail call i32 (...) @clear()
%56 = tail call i32 (...) @ptsleeping_1()
%57 = tail call i32 @usleep(i32 750000)
%58 = tail call i32 (...) @clear()
%59 = tail call i32 (...) @ptsleeping_2()
%60 = tail call i32 @usleep(i32 750000)
%61 = tail call i32 (...) @clear()
%62 = tail call i32 (...) @ptsleeping_3()
%63 = tail call i32 @usleep(i32 750000)
%64 = tail call i32 (...) @clear()
%65 = tail call i32 (...) @ptsleeping_1()
%66 = tail call i32 @usleep(i32 750000)
%67 = tail call i32 (...) @clear()
%68 = tail call i32 (...) @ptsleeping_2()
%69 = tail call i32 @usleep(i32 750000)
%70 = tail call i32 (...) @clear()
%71 = tail call i32 (...) @ptsleeping_3()
%72 = tail call i32 @usleep(i32 750000)
%73 = tail call i32 (...) @clear()
%74 = tail call i32 (...) @ptsleeping_1()
%75 = tail call i32 @usleep(i32 750000)
%76 = tail call i32 (...) @clear()
%77 = tail call i32 (...) @ptsleeping_2()
%78 = tail call i32 @usleep(i32 750000)
%79 = tail call i32 (...) @clear()
%80 = tail call i32 (...) @ptsleeping_3()
%81 = tail call i32 @usleep(i32 750000)
%82 = tail call i32 (...) @clear()
%83 = tail call i32 (...) @ptsleeping_1()
%84 = tail call i32 @usleep(i32 750000)
%85 = tail call i32 (...) @clear()
%86 = tail call i32 (...) @ptsleeping_2()
%87 = tail call i32 @usleep(i32 750000)
%88 = tail call i32 (...) @clear()
%89 = tail call i32 (...) @ptsleeping_3()
%90 = tail call i32 @usleep(i32 750000)
%91 = tail call i32 (...) @clear()
%92 = tail call i32 (...) @ptsleeping_1()
%93 = tail call i32 @usleep(i32 750000)
%94 = tail call i32 (...) @clear()
%95 = tail call i32 (...) @ptsleeping_2()
%96 = tail call i32 @usleep(i32 750000)
%97 = tail call i32 (...) @clear()
%98 = tail call i32 (...) @ptsleeping_3()
%99 = tail call i32 @usleep(i32 750000)
%100 = tail call i32 (...) @clear()
ret void
}