#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
size_t fprintf(int /*<<< orphan*/ *, char *, ...);
int fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ memmove(char *, char *, size_t);
int strlen(char *);
void align(FILE *file, FILE *out) {
  char words[1024];
  char *next_word = words;
  size_t total_length = 0;
  size_t num_words = 0;
  fscanf(file, "%s", next_word);
  int column_size = atoi(next_word);
  while (fscanf(file, "%s", next_word) == 1) {
    size_t word_length = strlen(next_word);
    next_word += word_length + 1;
    ++num_words;
    total_length += word_length;
    if (total_length + num_words > column_size) {
      size_t need_spaces = column_size - (total_length - word_length);
      int min_spaces = 1;
      if (num_words > 2)
        min_spaces = need_spaces / (num_words - 2);
      char *word_print = words;
      size_t chars_printed = fprintf(out, "%s", word_print);
      word_print += strlen(word_print) + 1;
      size_t spaces_printed = 0;
      size_t words_to_print = num_words - 2;
      fflush(out);
      while (words_to_print > 0) {
        int spaces_to_print = min_spaces;
        if (((need_spaces - spaces_printed) % words_to_print) * 2 >=
            words_to_print)
          ++spaces_to_print;
        spaces_printed += spaces_to_print;
        --words_to_print;
        chars_printed +=
            fprintf(out, "%*c%s", spaces_to_print, ' ', word_print);
        word_print += strlen(word_print) + 1;
        fflush(out);
      }
      fprintf(out, "\n");
      memmove(words, word_print, (total_length = strlen(word_print)) + 1);
      num_words = 1;
      next_word = words + total_length + 1;
    }
  }
  char *word_print = words;
  while (word_print != next_word) {
    word_print += fprintf(out, "%s ", word_print);
  }
  fprintf(out, "\n");
}


x86 assembly (clang, -O0):
<align>:
push   %rbp
mov    %rsp,%rbp
sub    $0x490,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x410(%rbp),%rax
mov    %rax,-0x418(%rbp)
movq   $0x0,-0x420(%rbp)
movq   $0x0,-0x428(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x418(%rbp),%rdx
lea    0xe5a(%rip),%rsi
call   1040 <fscanf@plt>
mov    -0x418(%rbp),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x42c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x418(%rbp),%rdx
lea    0xe31(%rip),%rsi
call   1040 <fscanf@plt>
cmp    $0x1,%eax
jne    1483 <align+0x323>
mov    -0x418(%rbp),%rdi
call   1030 <strlen@plt>
cltq
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rax
add    $0x1,%rax
add    -0x418(%rbp),%rax
mov    %rax,-0x418(%rbp)
mov    -0x428(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x428(%rbp)
mov    -0x438(%rbp),%rax
add    -0x420(%rbp),%rax
mov    %rax,-0x420(%rbp)
mov    -0x420(%rbp),%rax
add    -0x428(%rbp),%rax
movslq -0x42c(%rbp),%rcx
cmp    %rcx,%rax
jbe    147e <align+0x31e>
movslq -0x42c(%rbp),%rax
mov    -0x420(%rbp),%rcx
sub    -0x438(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x440(%rbp)
movl   $0x1,-0x444(%rbp)
cmpq   $0x2,-0x428(%rbp)
02
jbe    12a7 <align+0x147>
mov    -0x440(%rbp),%rax
mov    -0x428(%rbp),%rcx
sub    $0x2,%rcx
xor    %edx,%edx
div    %rcx
mov    %eax,-0x444(%rbp)
lea    -0x410(%rbp),%rax
mov    %rax,-0x450(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x450(%rbp),%rdx
lea    0xd3c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    %rax,-0x458(%rbp)
mov    -0x450(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
add    $0x1,%ecx
mov    -0x450(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x450(%rbp)
movq   $0x0,-0x460(%rbp)
mov    -0x428(%rbp),%rax
sub    $0x2,%rax
mov    %rax,-0x468(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <fflush@plt>
cmpq   $0x0,-0x468(%rbp)
jbe    13ff <align+0x29f>
mov    -0x444(%rbp),%eax
mov    %eax,-0x46c(%rbp)
mov    -0x440(%rbp),%rax
sub    -0x460(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
divq   -0x468(%rbp)
shl    $0x1,%rdx
cmp    -0x468(%rbp),%rdx
jb     1373 <align+0x213>
mov    -0x46c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x46c(%rbp)
movslq -0x46c(%rbp),%rax
add    -0x460(%rbp),%rax
mov    %rax,-0x460(%rbp)
mov    -0x468(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x468(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x46c(%rbp),%edx
mov    -0x450(%rbp),%r8
lea    0xc4e(%rip),%rsi
mov    $0x20,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
add    -0x458(%rbp),%rax
mov    %rax,-0x458(%rbp)
mov    -0x450(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
add    $0x1,%ecx
mov    -0x450(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x450(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <fflush@plt>
jmp    1320 <align+0x1c0>
mov    -0x10(%rbp),%rdi
lea    0xbfc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
lea    -0x410(%rbp),%rax
mov    %rax,-0x488(%rbp)
mov    -0x450(%rbp),%rax
mov    %rax,-0x480(%rbp)
mov    -0x450(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x488(%rbp),%rdi
mov    -0x480(%rbp),%rsi
movslq %eax,%rdx
mov    %rdx,-0x420(%rbp)
add    $0x1,%rdx
call   1070 <memmove@plt>
movq   $0x1,-0x428(%rbp)
lea    -0x410(%rbp),%rax
add    -0x420(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
jmp    11c0 <align+0x60>
lea    -0x410(%rbp),%rax
mov    %rax,-0x478(%rbp)
mov    -0x478(%rbp),%rax
cmp    -0x418(%rbp),%rax
je     14d1 <align+0x371>
mov    -0x10(%rbp),%rdi
mov    -0x478(%rbp),%rdx
lea    0xb51(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
add    -0x478(%rbp),%rax
mov    %rax,-0x478(%rbp)
jmp    1491 <align+0x331>
mov    -0x10(%rbp),%rdi
lea    0xb2a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
add    $0x490,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<align>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
mov    %rsi,%rbx
mov    %rdi,%r13
lea    0xe65(%rip),%r15
lea    0x20(%rsp),%rbp
mov    %r15,%rsi
mov    %rbp,%rdx
call   1050 <fscanf@plt>
mov    %rbp,%rdi
call   10a0 <atoi@plt>
mov    %eax,%r14d
mov    %r13,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
call   1050 <fscanf@plt>
cmp    $0x1,%eax
jne    13b8 <align+0x238>
mov    %rbx,0x8(%rsp)
movslq %r14d,%rax
mov    %rax,0x18(%rsp)
mov    %rbp,%r15
xor    %ebp,%ebp
xor    %r14d,%r14d
mov    %r13,0x10(%rsp)
jmp    124d <align+0xcd>
nopl   0x0(%rax)
mov    $0xa,%edi
mov    %rbp,%rsi
call   1060 <fputc@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
movslq %eax,%rbx
lea    0x1(%rbx),%rdx
lea    0x20(%rsp),%rdi
mov    %r15,%rsi
call   1090 <memmove@plt>
lea    (%rsp,%rbx,1),%r15
add    $0x21,%r15
mov    $0x1,%r12d
mov    0x10(%rsp),%r13
mov    %r13,%rdi
lea    0xdcd(%rip),%rsi
mov    %r15,%rdx
call   1050 <fscanf@plt>
mov    %rbx,%rbp
mov    %r12,%r14
cmp    $0x1,%eax
jne    137c <align+0x1fc>
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
lea    0x1(%r14),%r12
lea    (%rax,%rbp,1),%rbx
lea    (%r14,%rbx,1),%rcx
add    $0x1,%rcx
mov    0x18(%rsp),%rdx
cmp    %rdx,%rcx
jbe    12b0 <align+0x130>
mov    %rdx,%rcx
mov    %rdx,%rbx
sub    %rbp,%rbx
add    $0xffffffffffffffff,%r14
mov    $0x1,%r13d
cmp    $0x3,%r12
mov    0x8(%rsp),%rbp
lea    0x20(%rsp),%r15
jb     12d0 <align+0x150>
mov    %rbx,%rax
or     %r14,%rax
shr    $0x20,%rax
je     12bc <align+0x13c>
mov    %rbx,%rax
xor    %edx,%edx
div    %r14
mov    %rax,%r13
jmp    12d0 <align+0x150>
nopl   (%rax)
add    %rax,%r15
add    $0x1,%r15
jmp    122c <align+0xac>
mov    %ebx,%eax
xor    %edx,%edx
div    %r14d
mov    %eax,%r13d
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %rbp,%rsi
call   1040 <fputs@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
add    %rax,%r15
add    $0x1,%r15
mov    %rbp,%rdi
call   1080 <fflush@plt>
test   %r14,%r14
je     11f0 <align+0x70>
xor    %r12d,%r12d
jmp    1363 <align+0x1e3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %edx,%edx
div    %r14
add    %rdx,%rdx
cmp    %r14,%rdx
mov    %r13d,%eax
sbb    $0xffffffff,%eax
movslq %eax,%rdx
add    %rdx,%r12
mov    %rbp,%rdi
lea    0xccf(%rip),%rsi
mov    $0x20,%ecx
mov    %r15,%r8
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
cltq
add    %rax,%r15
add    $0x1,%r15
mov    %rbp,%rdi
call   1080 <fflush@plt>
add    $0xffffffffffffffff,%r14
je     11f0 <align+0x70>
mov    %rbx,%rax
sub    %r12,%rax
mov    %rax,%rcx
or     %r14,%rcx
shr    $0x20,%rcx
jne    1310 <align+0x190>
xor    %edx,%edx
div    %r14d
jmp    1315 <align+0x195>
lea    0x20(%rsp),%rbp
cmp    %r15,%rbp
mov    0x8(%rsp),%rbx
je     13b8 <align+0x238>
lea    0xc74(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    %rax,%rbp
cmp    %r15,%rbp
jne    13a0 <align+0x220>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
add    $0x428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"%*c%s\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [4 x i8] c"%s \00"
define void @align(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1024 x i8]
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i32
%18 = alloca i8*
store i32* %0, i32** %3
store i32* %1, i32** %4
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
store i8* %19, i8** %6
store i64 0, i64* %7
store i64 0, i64* %8
%20 = load i32*, i32** %3
%21 = load i8*, i8** %6
%22 = call i32 @fscanf(i32* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = load i8*, i8** %6
%24 = call i32 @atoi(i8* %23)
store i32 %24, i32* %9
br label %25
25: ; preds = %130, %2
%26 = load i32*, i32** %3
%27 = load i8*, i8** %6
%28 = call i32 @fscanf(i32* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %27)
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %131
30: ; preds = %25
%31 = load i8*, i8** %6
%32 = call i32 @strlen(i8* %31)
%33 = sext i32 %32 to i64
store i64 %33, i64* %10
%34 = load i64, i64* %10
%35 = add i64 %34, 1
%36 = load i8*, i8** %6
%37 = getelementptr inbounds i8, i8* %36, i64 %35
store i8* %37, i8** %6
%38 = load i64, i64* %8
%39 = add i64 %38, 1
store i64 %39, i64* %8
%40 = load i64, i64* %10
%41 = load i64, i64* %7
%42 = add i64 %41, %40
store i64 %42, i64* %7
%43 = load i64, i64* %7
%44 = load i64, i64* %8
%45 = add i64 %43, %44
%46 = load i32, i32* %9
%47 = sext i32 %46 to i64
%48 = icmp ugt i64 %45, %47
br i1 %48, label %49, label %130
49: ; preds = %30
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = load i64, i64* %7
%53 = load i64, i64* %10
%54 = sub i64 %52, %53
%55 = sub i64 %51, %54
store i64 %55, i64* %11
store i32 1, i32* %12
%56 = load i64, i64* %8
%57 = icmp ugt i64 %56, 2
br i1 %57, label %58, label %64
58: ; preds = %49
%59 = load i64, i64* %11
%60 = load i64, i64* %8
%61 = sub i64 %60, 2
%62 = udiv i64 %59, %61
%63 = trunc i64 %62 to i32
store i32 %63, i32* %12
br label %64
64: ; preds = %58, %49
%65 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
store i8* %65, i8** %13
%66 = load i32*, i32** %4
%67 = load i8*, i8** %13
%68 = call i64 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %67)
store i64 %68, i64* %14
%69 = load i8*, i8** %13
%70 = call i32 @strlen(i8* %69)
%71 = add nsw i32 %70, 1
%72 = load i8*, i8** %13
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds i8, i8* %72, i64 %73
store i8* %74, i8** %13
store i64 0, i64* %15
%75 = load i64, i64* %8
%76 = sub i64 %75, 2
store i64 %76, i64* %16
%77 = load i32*, i32** %4
%78 = call i32 @fflush(i32* %77)
br label %79
79: ; preds = %95, %64
%80 = load i64, i64* %16
%81 = icmp ugt i64 %80, 0
br i1 %81, label %82, label %116
82: ; preds = %79
%83 = load i32, i32* %12
store i32 %83, i32* %17
%84 = load i64, i64* %11
%85 = load i64, i64* %15
%86 = sub i64 %84, %85
%87 = load i64, i64* %16
%88 = urem i64 %86, %87
%89 = mul i64 %88, 2
%90 = load i64, i64* %16
%91 = icmp uge i64 %89, %90
br i1 %91, label %92, label %95
92: ; preds = %82
%93 = load i32, i32* %17
%94 = add nsw i32 %93, 1
store i32 %94, i32* %17
br label %95
95: ; preds = %92, %82
%96 = load i32, i32* %17
%97 = sext i32 %96 to i64
%98 = load i64, i64* %15
%99 = add i64 %98, %97
store i64 %99, i64* %15
%100 = load i64, i64* %16
%101 = add i64 %100, -1
store i64 %101, i64* %16
%102 = load i32*, i32** %4
%103 = load i32, i32* %17
%104 = load i8*, i8** %13
%105 = call i64 (i32*, i8*, ...) @fprintf(i32* %102, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %103, i32 32, i8* %104)
%106 = load i64, i64* %14
%107 = add i64 %106, %105
store i64 %107, i64* %14
%108 = load i8*, i8** %13
%109 = call i32 @strlen(i8* %108)
%110 = add nsw i32 %109, 1
%111 = load i8*, i8** %13
%112 = sext i32 %110 to i64
%113 = getelementptr inbounds i8, i8* %111, i64 %112
store i8* %113, i8** %13
%114 = load i32*, i32** %4
%115 = call i32 @fflush(i32* %114)
br label %79
116: ; preds = %79
%117 = load i32*, i32** %4
%118 = call i64 (i32*, i8*, ...) @fprintf(i32* %117, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%119 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%120 = load i8*, i8** %13
%121 = load i8*, i8** %13
%122 = call i32 @strlen(i8* %121)
%123 = sext i32 %122 to i64
store i64 %123, i64* %7
%124 = add i64 %123, 1
%125 = call i32 @memmove(i8* %119, i8* %120, i64 %124)
store i64 1, i64* %8
%126 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%127 = load i64, i64* %7
%128 = getelementptr inbounds i8, i8* %126, i64 %127
%129 = getelementptr inbounds i8, i8* %128, i64 1
store i8* %129, i8** %6
br label %130
130: ; preds = %116, %30
br label %25
131: ; preds = %25
%132 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
store i8* %132, i8** %18
br label %133
133: ; preds = %137, %131
%134 = load i8*, i8** %18
%135 = load i8*, i8** %6
%136 = icmp ne i8* %134, %135
br i1 %136, label %137, label %143
137: ; preds = %133
%138 = load i32*, i32** %4
%139 = load i8*, i8** %18
%140 = call i64 (i32*, i8*, ...) @fprintf(i32* %138, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %139)
%141 = load i8*, i8** %18
%142 = getelementptr inbounds i8, i8* %141, i64 %140
store i8* %142, i8** %18
br label %133
143: ; preds = %133
%144 = load i32*, i32** %4
%145 = call i64 (i32*, i8*, ...) @fprintf(i32* %144, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"%*c%s\00"
@.str.3 = [4 x i8] c"%s \00"
define void @align(i32* nocapture %0, i32* nocapture %1) {
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = call i32 @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @atoi(i8* %4)
%7 = call i32 @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %81
9: ; preds = %2
%10 = sext i32 %6 to i64
br label %13
11: ; preds = %70
%12 = icmp eq i8* %4, %73
br i1 %12, label %81, label %76
13: ; preds = %9, %70
%14 = phi i8* [ %4, %9 ], [ %73, %70 ]
%15 = phi i64 [ 0, %9 ], [ %72, %70 ]
%16 = phi i64 [ 0, %9 ], [ %71, %70 ]
%17 = call i32 @strlen(i8* %14)
%18 = sext i32 %17 to i64
%19 = add nsw i64 %18, 1
%20 = getelementptr inbounds i8, i8* %14, i64 %19
%21 = add i64 %16, 1
%22 = add i64 %15, %18
%23 = add i64 %22, %21
%24 = icmp ugt i64 %23, %10
br i1 %24, label %25, label %70
25: ; preds = %13
%26 = sub i64 %10, %15
%27 = icmp ugt i64 %21, 2
%28 = add i64 %16, -1
br i1 %27, label %29, label %32
29: ; preds = %25
%30 = udiv i64 %26, %28
%31 = trunc i64 %30 to i32
br label %32
32: ; preds = %25, %29
%33 = phi i32 [ %31, %29 ], [ 1, %25 ]
%34 = call i32 @fputs(i8* %4, i32* %1)
%35 = call i32 @strlen(i8* %4)
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %37
%39 = call i32 @fflush(i32* %1)
%40 = icmp eq i64 %28, 0
br i1 %40, label %61, label %41
41: ; preds = %32, %41
%42 = phi i64 [ %59, %41 ], [ %28, %32 ]
%43 = phi i64 [ %52, %41 ], [ 0, %32 ]
%44 = phi i8* [ %57, %41 ], [ %38, %32 ]
%45 = sub i64 %26, %43
%46 = urem i64 %45, %42
%47 = shl i64 %46, 1
%48 = icmp uge i64 %47, %42
%49 = zext i1 %48 to i32
%50 = add nsw i32 %33, %49
%51 = sext i32 %50 to i64
%52 = add i64 %43, %51
%53 = call i64 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %50, i32 32, i8* %44)
%54 = call i32 @strlen(i8* %44)
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, i8* %44, i64 %56
%58 = call i32 @fflush(i32* %1)
%59 = add i64 %42, -1
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %41
61: ; preds = %41, %32
%62 = phi i8* [ %38, %32 ], [ %57, %41 ]
%63 = call i32 @fputc(i32 10, i32* %1)
%64 = call i32 @strlen(i8* %62)
%65 = sext i32 %64 to i64
%66 = add nsw i64 %65, 1
%67 = call i32 @memmove(i8* %4, i8* %62, i64 %66)
%68 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %65
%69 = getelementptr inbounds i8, i8* %68, i64 1
br label %70
70: ; preds = %61, %13
%71 = phi i64 [ 1, %61 ], [ %21, %13 ]
%72 = phi i64 [ %65, %61 ], [ %22, %13 ]
%73 = phi i8* [ %69, %61 ], [ %20, %13 ]
%74 = call i32 @fscanf(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %73)
%75 = icmp eq i32 %74, 1
br i1 %75, label %13, label %11
76: ; preds = %11, %76
%77 = phi i8* [ %79, %76 ], [ %4, %11 ]
%78 = call i64 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %77)
%79 = getelementptr inbounds i8, i8* %77, i64 %78
%80 = icmp eq i8* %79, %73
br i1 %80, label %81, label %76
81: ; preds = %76, %2, %11
%82 = call i32 @fputc(i32 10, i32* %1)
ret void
}