#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 EXIT_SUCCESS;
scalar_t__ isalpha(char);
scalar_t__ iswspace(char);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  char vector[64][64];
  char phrase[128] = "Ok motherfuckers";
  int state;
  int counter = 0;
  int line = 0;
  int column = 0;
  while (state != 3) {
    char c = phrase[counter];
    if (isalpha(c)) {
      vector[line][column] = c;
      state = 1;
      column++;
    } else if (iswspace(c) || c == '\n') {
      vector[line][column] = '\0';
      column = 0;
      line++;
      state = 2;
    } else if (c == '\0') {
      vector[line][column] = '\0';
      line++;
      state = 3;
    }
    counter++;
  }
  int n, m;
  for (n = 0; n < line; n++) {
    for (m = 0; m < 64; m++) {
      printf("%c", vector[n][m]);
    }
    printf("\n");
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1090(%rbp),%rdi
lea    0xe99(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x1098(%rbp)
movl   $0x0,-0x109c(%rbp)
movl   $0x0,-0x10a0(%rbp)
cmpl   $0x3,-0x1094(%rbp)
je     12de <main+0x19e>
movslq -0x1098(%rbp),%rax
mov    -0x1090(%rbp,%rax,1),%al
mov    %al,-0x10a1(%rbp)
movsbl -0x10a1(%rbp),%edi
call   1050 <isalpha@plt>
cmp    $0x0,%rax
je     1209 <main+0xc9>
mov    -0x10a1(%rbp),%dl
movslq -0x109c(%rbp),%rcx
lea    -0x1010(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0x10a0(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
movl   $0x1,-0x1094(%rbp)
mov    -0x10a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10a0(%rbp)
jmp    12ca <main+0x18a>
movsbl -0x10a1(%rbp),%edi
call   1060 <iswspace@plt>
cmp    $0x0,%rax
jne    122f <main+0xef>
movsbl -0x10a1(%rbp),%eax
cmp    $0xa,%eax
jne    1277 <main+0x137>
movslq -0x109c(%rbp),%rcx
lea    -0x1010(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0x10a0(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
movl   $0x0,-0x10a0(%rbp)
mov    -0x109c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x109c(%rbp)
movl   $0x2,-0x1094(%rbp)
jmp    12c5 <main+0x185>
movsbl -0x10a1(%rbp),%eax
cmp    $0x0,%eax
jne    12c0 <main+0x180>
movslq -0x109c(%rbp),%rcx
lea    -0x1010(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0x10a0(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x109c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x109c(%rbp)
movl   $0x3,-0x1094(%rbp)
jmp    12c5 <main+0x185>
jmp    12ca <main+0x18a>
mov    -0x1098(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1098(%rbp)
jmp    118f <main+0x4f>
movl   $0x0,-0x10a8(%rbp)
mov    -0x10a8(%rbp),%eax
cmp    -0x109c(%rbp),%eax
jge    1375 <main+0x235>
movl   $0x0,-0x10ac(%rbp)
cmpl   $0x40,-0x10ac(%rbp)
jge    1353 <main+0x213>
movslq -0x10a8(%rbp),%rcx
lea    -0x1010(%rbp),%rax
shl    $0x6,%rcx
add    %rcx,%rax
movslq -0x10ac(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10ac(%rbp)
jmp    1304 <main+0x1c4>
lea    0xd29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10a8(%rbp)
jmp    12e8 <main+0x1a8>
mov    0x2c64(%rip),%rax
mov    (%rax),%eax
add    $0x10b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1008,%rsp
xor    %r15d,%r15d
lea    0xeb5(%rip),%r12
xor    %r13d,%r13d
xor    %r14d,%r14d
jmp    117a <main+0x4a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movslq %r14d,%rax
movslq %r13d,%r13
shl    $0x6,%rax
add    %rsp,%rax
mov    %bpl,0x0(%r13,%rax,1)
add    $0x1,%r13d
add    $0x1,%r15
movzbl (%r15,%r12,1),%ebp
movsbl %bpl,%ebx
mov    %ebx,%edi
call   1040 <isalpha@plt>
test   %rax,%rax
jne    1160 <main+0x30>
mov    %ebx,%edi
call   1050 <iswspace@plt>
test   %rax,%rax
je     11b9 <main+0x89>
movslq %r14d,%rax
movslq %r13d,%rcx
shl    $0x6,%rax
add    %rsp,%rax
movb   $0x0,(%rcx,%rax,1)
add    $0x1,%r14d
xor    %r13d,%r13d
add    $0x1,%r15
jmp    117a <main+0x4a>
lea    -0x10(%r15),%rax
cmp    $0x70,%rax
jb     11c9 <main+0x99>
add    $0x1,%r15
jmp    117a <main+0x4a>
movslq %r14d,%rax
movslq %r13d,%rcx
shl    $0x6,%rax
add    %rsp,%rax
movb   $0x0,(%rcx,%rax,1)
test   %r14d,%r14d
js     122a <main+0xfa>
add    $0x1,%r14d
mov    %rsp,%rbx
xor    %r15d,%r15d
nopl   0x0(%rax)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
cmp    $0x40,%rbp
jne    1200 <main+0xd0>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
add    $0x40,%rbx
cmp    %r14,%r15
jne    11f0 <main+0xc0>
mov    0x2daf(%rip),%rax
mov    (%rax),%eax
add    $0x1008,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.phrase = [128 x i8] c"Ok motherfuckers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [64 x [64 x i8]]
%7 = alloca [128 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = bitcast [128 x i8]* %7 to i8*
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
br label %16
16: ; preds = %69, %2
%17 = load i32, i32* %8
%18 = icmp ne i32 %17, 3
br i1 %18, label %19, label %72
19: ; preds = %16
%20 = load i32, i32* %9
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %21
%23 = load i8, i8* %22
store i8 %23, i8* %12
%24 = load i8, i8* %12
%25 = call i64 @isalpha(i8 signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %37
27: ; preds = %19
%28 = load i8, i8* %12
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %6, i64 0, i64 %30
%32 = load i32, i32* %11
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [64 x i8], [64 x i8]* %31, i64 0, i64 %33
store i8 %28, i8* %34
store i32 1, i32* %8
%35 = load i32, i32* %11
%36 = add nsw i32 %35, 1
store i32 %36, i32* %11
br label %69
37: ; preds = %19
%38 = load i8, i8* %12
%39 = call i64 @iswspace(i8 signext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %45, label %41
41: ; preds = %37
%42 = load i8, i8* %12
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 10
br i1 %44, label %45, label %54
45: ; preds = %41, %37
%46 = load i32, i32* %10
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %6, i64 0, i64 %47
%49 = load i32, i32* %11
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [64 x i8], [64 x i8]* %48, i64 0, i64 %50
store i8 0, i8* %51
store i32 0, i32* %11
%52 = load i32, i32* %10
%53 = add nsw i32 %52, 1
store i32 %53, i32* %10
store i32 2, i32* %8
br label %68
54: ; preds = %41
%55 = load i8, i8* %12
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %67
58: ; preds = %54
%59 = load i32, i32* %10
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %6, i64 0, i64 %60
%62 = load i32, i32* %11
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [64 x i8], [64 x i8]* %61, i64 0, i64 %63
store i8 0, i8* %64
%65 = load i32, i32* %10
%66 = add nsw i32 %65, 1
store i32 %66, i32* %10
store i32 3, i32* %8
br label %67
67: ; preds = %58, %54
br label %68
68: ; preds = %67, %45
br label %69
69: ; preds = %68, %27
%70 = load i32, i32* %9
%71 = add nsw i32 %70, 1
store i32 %71, i32* %9
br label %16
72: ; preds = %16
store i32 0, i32* %13
br label %73
73: ; preds = %96, %72
%74 = load i32, i32* %13
%75 = load i32, i32* %10
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %99
77: ; preds = %73
store i32 0, i32* %14
br label %78
78: ; preds = %91, %77
%79 = load i32, i32* %14
%80 = icmp slt i32 %79, 64
br i1 %80, label %81, label %94
81: ; preds = %78
%82 = load i32, i32* %13
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %6, i64 0, i64 %83
%85 = load i32, i32* %14
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [64 x i8], [64 x i8]* %84, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %89)
br label %91
91: ; preds = %81
%92 = load i32, i32* %14
%93 = add nsw i32 %92, 1
store i32 %93, i32* %14
br label %78
94: ; preds = %78
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %96
96: ; preds = %94
%97 = load i32, i32* %13
%98 = add nsw i32 %97, 1
store i32 %98, i32* %13
br label %73
99: ; preds = %73
%100 = load i32, i32* @EXIT_SUCCESS
ret i32 %100
}

LLVM IR (-O2):
@__const.main.phrase = [128 x i8] c"Ok motherfuckers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [64 x [64 x i8]]
%4 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %3, i64 0, i64 0, i64 0
br label %13
5: ; preds = %34
%6 = sext i32 %16 to i64
%7 = sext i32 %15 to i64
%8 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %3, i64 0, i64 %6, i64 %7
store i8 0, i8* %8
%9 = icmp sgt i32 %16, -1
br i1 %9, label %10, label %55
10: ; preds = %5
%11 = add nsw i32 %16, 1
%12 = zext i32 %11 to i64
br label %41
13: ; preds = %37, %2
%14 = phi i64 [ 0, %2 ], [ %40, %37 ]
%15 = phi i32 [ 0, %2 ], [ %39, %37 ]
%16 = phi i32 [ 0, %2 ], [ %38, %37 ]
%17 = getelementptr inbounds [128 x i8], [128 x i8]* @__const.main.phrase, i64 0, i64 %14
%18 = load i8, i8* %17
%19 = tail call i64 @isalpha(i8 signext %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %13
%22 = sext i32 %16 to i64
%23 = sext i32 %15 to i64
%24 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %3, i64 0, i64 %22, i64 %23
store i8 %18, i8* %24
%25 = add nsw i32 %15, 1
br label %37
26: ; preds = %13
%27 = tail call i64 @iswspace(i8 signext %18)
%28 = icmp eq i64 %27, 0
br i1 %28, label %34, label %29
29: ; preds = %26
%30 = sext i32 %16 to i64
%31 = sext i32 %15 to i64
%32 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %3, i64 0, i64 %30, i64 %31
store i8 0, i8* %32
%33 = add nsw i32 %16, 1
br label %37
34: ; preds = %26
%35 = add nsw i64 %14, -16
%36 = icmp ult i64 %35, 112
br i1 %36, label %5, label %37
37: ; preds = %29, %34, %21
%38 = phi i32 [ %16, %21 ], [ %33, %29 ], [ %16, %34 ]
%39 = phi i32 [ %25, %21 ], [ 0, %29 ], [ %15, %34 ]
%40 = add nuw i64 %14, 1
br label %13
41: ; preds = %10, %51
%42 = phi i64 [ 0, %10 ], [ %53, %51 ]
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ 0, %41 ], [ %49, %43 ]
%45 = getelementptr inbounds [64 x [64 x i8]], [64 x [64 x i8]]* %3, i64 0, i64 %42, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = tail call i32 @putchar(i32 %47)
%49 = add nuw nsw i64 %44, 1
%50 = icmp eq i64 %49, 64
br i1 %50, label %51, label %43
51: ; preds = %43
%52 = tail call i32 @putchar(i32 10)
%53 = add nuw nsw i64 %42, 1
%54 = icmp eq i64 %53, %12
br i1 %54, label %55, label %41
55: ; preds = %51, %5
%56 = load i32, i32* @EXIT_SUCCESS
ret i32 %56
}