#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*/ write(int, char *, int);
int main(int argc, char **argv) {
  int sz;
  char *fred = "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz"
               "abcdefghijklmnopqrstuvwxyz";
  for (sz = 1; sz <= 300; sz++) {
    write(1, &fred[0], sz);
    write(1, "\n", 1);
    write(1, &fred[1], sz);
    write(1, "\n", 1);
    write(1, &fred[2], sz);
    write(1, "\n", 1);
    write(1, &fred[3], sz);
    write(1, "\n", 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    0xed3(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x12c,-0x14(%rbp)
jg     11ef <main+0xdf>
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xfd7(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xfaf(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x20(%rbp),%rsi
add    $0x2,%rsi
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xf87(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x20(%rbp),%rsi
add    $0x3,%rsi
mov    -0x14(%rbp),%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xf5f(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1138 <main+0x28>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xed9(%rip),%r14
lea    0x100b(%rip),%r15
lea    0xecc(%rip),%r12
lea    0xec6(%rip),%r13
lea    0xec0(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x1,%edi
mov    %r14,%rsi
mov    %ebx,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %r15,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %r12,%rsi
mov    %ebx,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %r15,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %r13,%rsi
mov    %ebx,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %r15,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %rbp,%rsi
mov    %ebx,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %r15,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x1,%ebx
cmp    $0x12d,%ebx
jne    1150 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [313 x i8] c"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([313 x i8], [313 x i8]* @.str, i64 0, i64 0), i8** %7
store i32 1, i32* %6
br label %8
8: ; preds = %32, %2
%9 = load i32, i32* %6
%10 = icmp sle i32 %9, 300
br i1 %10, label %11, label %35
11: ; preds = %8
%12 = load i8*, i8** %7
%13 = getelementptr inbounds i8, i8* %12, i64 0
%14 = load i32, i32* %6
%15 = call i32 @write(i32 1, i8* %13, i32 %14)
%16 = call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%17 = load i8*, i8** %7
%18 = getelementptr inbounds i8, i8* %17, i64 1
%19 = load i32, i32* %6
%20 = call i32 @write(i32 1, i8* %18, i32 %19)
%21 = call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%22 = load i8*, i8** %7
%23 = getelementptr inbounds i8, i8* %22, i64 2
%24 = load i32, i32* %6
%25 = call i32 @write(i32 1, i8* %23, i32 %24)
%26 = call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%27 = load i8*, i8** %7
%28 = getelementptr inbounds i8, i8* %27, i64 3
%29 = load i32, i32* %6
%30 = call i32 @write(i32 1, i8* %28, i32 %29)
%31 = call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %32
32: ; preds = %11
%33 = load i32, i32* %6
%34 = add nsw i32 %33, 1
store i32 %34, i32* %6
br label %8
35: ; preds = %8
%36 = load i32, i32* %3
ret i32 %36
}

LLVM IR (-O2):
@.str = [313 x i8] c"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 1, %2 ], [ %13, %3 ]
%5 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([313 x i8], [313 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%7 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([313 x i8], [313 x i8]* @.str, i64 0, i64 1), i32 %4)
%8 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%9 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([313 x i8], [313 x i8]* @.str, i64 0, i64 2), i32 %4)
%10 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%11 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([313 x i8], [313 x i8]* @.str, i64 0, i64 3), i32 %4)
%12 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%13 = add nuw nsw i32 %4, 1
%14 = icmp eq i32 %13, 301
br i1 %14, label %15, label %3
15: ; preds = %3
ret i32 0
}