#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*/ getch();
int /*<<< orphan*/ puts0(char *);
void off(void) {
  int i;
  for (i = 0; i < 25; i++)
    puts0("\r\n");
  getch();
}


x86 assembly (clang, -O0):
<off>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x19,-0x4(%rbp)
jge    1153 <off+0x33>
lea    0xec0(%rip),%rdi
call   1040 <puts0@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <off+0xf>
mov    $0x0,%al
call   1030 <getch@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<off>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
mov    %rbx,%rdi
call   1040 <puts0@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <getch@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\0D\0A\00"
define void @off() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %7, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 25
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
br label %2
10: ; preds = %2
%11 = call i32 (...) @getch()
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"\0D\0A\00"
define void @off() {
%1 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%20 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%21 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%22 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%24 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%25 = tail call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%26 = tail call i32 (...) @getch()
ret void
}