#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*/ printf(char *);
int windowcleaner(int step) {
  if (step >= 24) {
    printf("\nTime\t");
    printf("Speed\t\t");
    printf("Fuel\t\t");
    printf("Height\t\t");
    printf("Burn\n");
    printf("----\t");
    printf("-----\t\t");
    printf("----\t\t");
    printf("------\t\t");
    printf("----\n");
    step = 1;
  } else if (step < 24) {
    step++;
  }
  return step;
}


x86 assembly (clang, -O0):
<windowcleaner>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x18,-0x4(%rbp)
jl     11a9 <windowcleaner+0x99>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    11c1 <windowcleaner+0xb1>
cmpl   $0x18,-0x4(%rbp)
jge    11bc <windowcleaner+0xac>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11c1 <windowcleaner+0xb1>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<windowcleaner>:
cmp    $0x18,%edi
jl     11ac <windowcleaner+0x8c>
push   %rax
lea    0xecf(%rip),%rdi
call   1040 <printf@plt>
lea    0xeca(%rip),%rdi
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
call   1040 <printf@plt>
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
lea    0xea2(%rip),%rdi
call   1040 <printf@plt>
lea    0xe94(%rip),%rdi
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
add    $0x8,%rsp
ret
mov    %edi,%eax
add    $0x1,%eax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"\0ATime\09\00"
@.str.1 = [8 x i8] c"Speed\09\09\00"
@.str.2 = [7 x i8] c"Fuel\09\09\00"
@.str.3 = [9 x i8] c"Height\09\09\00"
@.str.4 = [6 x i8] c"Burn\0A\00"
@.str.5 = [6 x i8] c"----\09\00"
@.str.6 = [8 x i8] c"-----\09\09\00"
@.str.7 = [7 x i8] c"----\09\09\00"
@.str.8 = [9 x i8] c"------\09\09\00"
@.str.9 = [6 x i8] c"----\0A\00"
define i32 @windowcleaner(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 24
br i1 %4, label %5, label %16
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %2
br label %23
16: ; preds = %1
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 24
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %22
22: ; preds = %19, %16
br label %23
23: ; preds = %22, %5
%24 = load i32, i32* %2
ret i32 %24
}

LLVM IR (-O2):
@.str = [7 x i8] c"\0ATime\09\00"
@.str.1 = [8 x i8] c"Speed\09\09\00"
@.str.2 = [7 x i8] c"Fuel\09\09\00"
@.str.3 = [9 x i8] c"Height\09\09\00"
@.str.5 = [6 x i8] c"----\09\00"
@.str.6 = [8 x i8] c"-----\09\09\00"
@.str.7 = [7 x i8] c"----\09\09\00"
@.str.8 = [9 x i8] c"------\09\09\00"
@str = [5 x i8] c"Burn\00"
@str.10 = [5 x i8] c"----\00"
define i32 @windowcleaner(i32 %0) {
%2 = icmp sgt i32 %0, 23
br i1 %2, label %3, label %14
3: ; preds = %1
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0))
br label %16
14: ; preds = %1
%15 = add nsw i32 %0, 1
br label %16
16: ; preds = %14, %3
%17 = phi i32 [ 1, %3 ], [ %15, %14 ]
ret i32 %17
}