#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 /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ print_line(char const *, int, int, int, int *, int, int,
                              int /*<<< orphan*/ *, char const *);
int strlen(char const *);
void wrap(const char *s1, const char *s1_header, const char *s2,
          const char *s2_header, const char *diff, int len, int s1_offset,
          int s2_offset, FILE *output) {
  int m, n, i, j;
  int nr_gaps_a;
  int nr_gaps_b;
  int nr_lines;
  if (!len)
    return;
  m = strlen(s1);
  n = strlen(s2);
  if (!n && !m)
    return;
  i = 0;
  j = 0;
  nr_gaps_a = 0;
  nr_gaps_b = 0;
  nr_lines = (n > m ? m : n) / len;
  for (i = 0; i < nr_lines; ++i) {
    print_line(s1, i * len, s1_offset, (i + 1) * len, &nr_gaps_a, (i + 1) * len,
               0, output, s1_header);
    print_line(diff, i * len, 0, (i + 1) * len, NULL, (i + 1) * len, 1, output,
               NULL);
    print_line(s2, i * len, s2_offset, (i + 1) * len, &nr_gaps_b, (i + 1) * len,
               0, output, s2_header);
    fprintf(output, "\n");
  }
  j = i * len;
  if (j < m || j < n) {
    print_line(s1, i * len, s1_offset, ((m) < (n)) ? (m) : (n), &nr_gaps_a,
               (i + 1) * len, 0, output, s1_header);
    print_line(diff, i * len, 0, (m < n) ? m : n, NULL, (i + 1) * len, 1,
               output, NULL);
    print_line(s2, i * len, s2_offset, ((n) < (m)) ? (n) : (m), &nr_gaps_b,
               (i + 1) * len, 0, output, s2_header);
  }
}


x86 assembly (clang, -O0):
<wrap>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    116c <wrap+0x3c>
jmp    146c <wrap+0x33c>
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    119d <wrap+0x6d>
cmpl   $0x0,-0x30(%rbp)
jne    119d <wrap+0x6d>
jmp    146c <wrap+0x33c>
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    11d0 <wrap+0xa0>
mov    -0x30(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    11d6 <wrap+0xa6>
mov    -0x34(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cltd
idivl  -0x2c(%rbp)
mov    %eax,-0x48(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    12ea <wrap+0x1ba>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%esi
imul   -0x2c(%rbp),%esi
mov    0x10(%rbp),%edx
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
imul   -0x2c(%rbp),%ecx
mov    -0x38(%rbp),%r9d
add    $0x1,%r9d
imul   -0x2c(%rbp),%r9d
mov    0x20(%rbp),%r10
mov    -0x10(%rbp),%rax
lea    -0x40(%rbp),%r8
xor    %r11d,%r11d
movl   $0x0,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <print_line@plt>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%esi
imul   -0x2c(%rbp),%esi
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
imul   -0x2c(%rbp),%ecx
mov    -0x38(%rbp),%r9d
add    $0x1,%r9d
imul   -0x2c(%rbp),%r9d
mov    0x20(%rbp),%rax
xor    %edx,%edx
xor    %r8d,%r8d
movl   $0x1,(%rsp)
mov    %rax,0x8(%rsp)
movq   $0x0,0x10(%rsp)
call   1030 <print_line@plt>
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%esi
imul   -0x2c(%rbp),%esi
mov    0x18(%rbp),%edx
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
imul   -0x2c(%rbp),%ecx
mov    -0x38(%rbp),%r9d
add    $0x1,%r9d
imul   -0x2c(%rbp),%r9d
mov    0x20(%rbp),%r10
mov    -0x20(%rbp),%rax
lea    -0x44(%rbp),%r8
xor    %r11d,%r11d
movl   $0x0,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <print_line@plt>
mov    0x20(%rbp),%rdi
lea    0xd29(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11e7 <wrap+0xb7>
mov    -0x38(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     130c <wrap+0x1dc>
mov    -0x3c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    146c <wrap+0x33c>
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x38(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    0x10(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    133b <wrap+0x20b>
mov    -0x30(%rbp),%eax
mov    %eax,-0x64(%rbp)
jmp    1341 <wrap+0x211>
mov    -0x34(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x50(%rbp),%edx
mov    -0x54(%rbp),%esi
mov    -0x60(%rbp),%rdi
mov    -0x64(%rbp),%ecx
mov    -0x38(%rbp),%r9d
add    $0x1,%r9d
imul   -0x2c(%rbp),%r9d
mov    0x20(%rbp),%r10
mov    -0x10(%rbp),%rax
lea    -0x40(%rbp),%r8
xor    %r11d,%r11d
movl   $0x0,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <print_line@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x38(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    13a9 <wrap+0x279>
mov    -0x30(%rbp),%eax
mov    %eax,-0x74(%rbp)
jmp    13af <wrap+0x27f>
mov    -0x34(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x68(%rbp),%esi
mov    -0x70(%rbp),%rdi
mov    -0x74(%rbp),%ecx
mov    -0x38(%rbp),%r9d
add    $0x1,%r9d
imul   -0x2c(%rbp),%r9d
mov    0x20(%rbp),%rax
xor    %edx,%edx
xor    %r8d,%r8d
movl   $0x1,(%rsp)
mov    %rax,0x8(%rsp)
movq   $0x0,0x10(%rsp)
call   1030 <print_line@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x38(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    0x18(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    141e <wrap+0x2ee>
mov    -0x34(%rbp),%eax
mov    %eax,-0x8c(%rbp)
jmp    1427 <wrap+0x2f7>
mov    -0x30(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x78(%rbp),%edx
mov    -0x7c(%rbp),%esi
mov    -0x88(%rbp),%rdi
mov    -0x8c(%rbp),%ecx
mov    -0x38(%rbp),%r9d
add    $0x1,%r9d
imul   -0x2c(%rbp),%r9d
mov    0x20(%rbp),%r10
mov    -0x20(%rbp),%rax
lea    -0x44(%rbp),%r8
xor    %r11d,%r11d
movl   $0x0,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <print_line@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wrap>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8,0x30(%rsp)
mov    %rcx,0x38(%rsp)
test   %r9d,%r9d
je     131a <wrap+0x1ea>
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%r14
mov    %r9,0x40(%rsp)
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    0x40(%rsp),%rcx
mov    %eax,%esi
or     %r15d,%eax
je     131a <wrap+0x1ea>
mov    0x90(%rsp),%rbx
mov    0x80(%rsp),%ebp
movl   $0x0,0xc(%rsp)
cmp    %r15d,%esi
mov    %esi,%eax
mov    %r15d,0x1c(%rsp)
cmovg  %r15d,%eax
movl   $0x0,0x8(%rsp)
mov    %eax,0x18(%rsp)
cltd
idiv   %ecx
test   %eax,%eax
jle    128d <wrap+0x15d>
mov    %esi,0x10(%rsp)
mov    %r12,0x28(%rsp)
xor    %r12d,%r12d
mov    %r13,0x20(%rsp)
mov    %eax,0x14(%rsp)
mov    %eax,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    (%rcx,%r12,1),%r15d
sub    $0x8,%rsp
mov    %r14,%rdi
mov    %r12d,%esi
mov    %ebp,%edx
mov    %r15d,%ecx
lea    0x14(%rsp),%r8
mov    %r15d,%r9d
push   0x28(%rsp)
push   %rbx
push   $0x0
call   1030 <print_line@plt>
add    $0x18,%rsp
mov    0x38(%rsp),%rdi
mov    %r12d,%esi
xor    %edx,%edx
mov    %r15d,%ecx
xor    %r8d,%r8d
mov    %r15d,%r9d
push   $0x0
push   %rbx
push   $0x1
call   1030 <print_line@plt>
add    $0x18,%rsp
mov    0x30(%rsp),%rdi
mov    %r12d,%esi
mov    0x90(%rsp),%edx
mov    %r15d,%ecx
lea    0x10(%rsp),%r8
mov    %r15d,%r9d
push   0x40(%rsp)
push   %rbx
push   $0x0
call   1030 <print_line@plt>
add    $0x20,%rsp
mov    $0xa,%edi
mov    %rbx,%rsi
call   1050 <fputc@plt>
mov    0x40(%rsp),%rcx
mov    %r15d,%r12d
add    $0xffffffff,%r13d
jne    11e0 <wrap+0xb0>
mov    %r14,%rdi
mov    0x28(%rsp),%r12
mov    0x20(%rsp),%r13
mov    0x14(%rsp),%r14d
mov    0x10(%rsp),%esi
jmp    1293 <wrap+0x163>
mov    %r14,%rdi
xor    %r14d,%r14d
mov    %r14d,%r15d
imul   %ecx,%r15d
cmp    0x1c(%rsp),%r15d
jl     12a6 <wrap+0x176>
cmp    %esi,%r15d
jge    131a <wrap+0x1ea>
add    $0x1,%r14d
imul   %ecx,%r14d
sub    $0x8,%rsp
lea    0x14(%rsp),%r8
mov    %r15d,%esi
mov    %ebp,%edx
mov    0x20(%rsp),%ebp
mov    %ebp,%ecx
mov    %r14d,%r9d
push   %r13
push   %rbx
push   $0x0
call   1030 <print_line@plt>
add    $0x18,%rsp
mov    0x38(%rsp),%rdi
mov    %r15d,%esi
xor    %edx,%edx
mov    %ebp,%ecx
xor    %r8d,%r8d
mov    %r14d,%r9d
push   $0x0
push   %rbx
push   $0x1
call   1030 <print_line@plt>
add    $0x18,%rsp
lea    0x10(%rsp),%r8
mov    %r12,%rdi
mov    %r15d,%esi
mov    0x90(%rsp),%edx
mov    %ebp,%ecx
mov    %r14d,%r9d
push   0x40(%rsp)
push   %rbx
push   $0x0
call   1030 <print_line@plt>
add    $0x20,%rsp
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @wrap(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32* %8) {
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32*
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
store i8* %0, i8** %10
store i8* %1, i8** %11
store i8* %2, i8** %12
store i8* %3, i8** %13
store i8* %4, i8** %14
store i32 %5, i32* %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32* %8, i32** %18
%26 = load i32, i32* %15
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %9
br label %181
29: ; preds = %9
%30 = load i8*, i8** %10
%31 = call i32 @strlen(i8* %30)
store i32 %31, i32* %19
%32 = load i8*, i8** %12
%33 = call i32 @strlen(i8* %32)
store i32 %33, i32* %20
%34 = load i32, i32* %20
%35 = icmp ne i32 %34, 0
br i1 %35, label %40, label %36
36: ; preds = %29
%37 = load i32, i32* %19
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %36
br label %181
40: ; preds = %36, %29
store i32 0, i32* %21
store i32 0, i32* %22
store i32 0, i32* %23
store i32 0, i32* %24
%41 = load i32, i32* %20
%42 = load i32, i32* %19
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = load i32, i32* %19
br label %48
46: ; preds = %40
%47 = load i32, i32* %20
br label %48
48: ; preds = %46, %44
%49 = phi i32 [ %45, %44 ], [ %47, %46 ]
%50 = load i32, i32* %15
%51 = sdiv i32 %49, %50
store i32 %51, i32* %25
store i32 0, i32* %21
br label %52
52: ; preds = %105, %48
%53 = load i32, i32* %21
%54 = load i32, i32* %25
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %108
56: ; preds = %52
%57 = load i8*, i8** %10
%58 = load i32, i32* %21
%59 = load i32, i32* %15
%60 = mul nsw i32 %58, %59
%61 = load i32, i32* %16
%62 = load i32, i32* %21
%63 = add nsw i32 %62, 1
%64 = load i32, i32* %15
%65 = mul nsw i32 %63, %64
%66 = load i32, i32* %21
%67 = add nsw i32 %66, 1
%68 = load i32, i32* %15
%69 = mul nsw i32 %67, %68
%70 = load i32*, i32** %18
%71 = load i8*, i8** %11
%72 = call i32 @print_line(i8* %57, i32 %60, i32 %61, i32 %65, i32* %23, i32 %69, i32 0, i32* %70, i8* %71)
%73 = load i8*, i8** %14
%74 = load i32, i32* %21
%75 = load i32, i32* %15
%76 = mul nsw i32 %74, %75
%77 = load i32, i32* %21
%78 = add nsw i32 %77, 1
%79 = load i32, i32* %15
%80 = mul nsw i32 %78, %79
%81 = load i32, i32* %21
%82 = add nsw i32 %81, 1
%83 = load i32, i32* %15
%84 = mul nsw i32 %82, %83
%85 = load i32*, i32** %18
%86 = call i32 @print_line(i8* %73, i32 %76, i32 0, i32 %80, i32* null, i32 %84, i32 1, i32* %85, i8* null)
%87 = load i8*, i8** %12
%88 = load i32, i32* %21
%89 = load i32, i32* %15
%90 = mul nsw i32 %88, %89
%91 = load i32, i32* %17
%92 = load i32, i32* %21
%93 = add nsw i32 %92, 1
%94 = load i32, i32* %15
%95 = mul nsw i32 %93, %94
%96 = load i32, i32* %21
%97 = add nsw i32 %96, 1
%98 = load i32, i32* %15
%99 = mul nsw i32 %97, %98
%100 = load i32*, i32** %18
%101 = load i8*, i8** %13
%102 = call i32 @print_line(i8* %87, i32 %90, i32 %91, i32 %95, i32* %24, i32 %99, i32 0, i32* %100, i8* %101)
%103 = load i32*, i32** %18
%104 = call i32 @fprintf(i32* %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %105
105: ; preds = %56
%106 = load i32, i32* %21
%107 = add nsw i32 %106, 1
store i32 %107, i32* %21
br label %52
108: ; preds = %52
%109 = load i32, i32* %21
%110 = load i32, i32* %15
%111 = mul nsw i32 %109, %110
store i32 %111, i32* %22
%112 = load i32, i32* %22
%113 = load i32, i32* %19
%114 = icmp slt i32 %112, %113
br i1 %114, label %119, label %115
115: ; preds = %108
%116 = load i32, i32* %22
%117 = load i32, i32* %20
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %181
119: ; preds = %115, %108
%120 = load i8*, i8** %10
%121 = load i32, i32* %21
%122 = load i32, i32* %15
%123 = mul nsw i32 %121, %122
%124 = load i32, i32* %16
%125 = load i32, i32* %19
%126 = load i32, i32* %20
%127 = icmp slt i32 %125, %126
br i1 %127, label %128, label %130
128: ; preds = %119
%129 = load i32, i32* %19
br label %132
130: ; preds = %119
%131 = load i32, i32* %20
br label %132
132: ; preds = %130, %128
%133 = phi i32 [ %129, %128 ], [ %131, %130 ]
%134 = load i32, i32* %21
%135 = add nsw i32 %134, 1
%136 = load i32, i32* %15
%137 = mul nsw i32 %135, %136
%138 = load i32*, i32** %18
%139 = load i8*, i8** %11
%140 = call i32 @print_line(i8* %120, i32 %123, i32 %124, i32 %133, i32* %23, i32 %137, i32 0, i32* %138, i8* %139)
%141 = load i8*, i8** %14
%142 = load i32, i32* %21
%143 = load i32, i32* %15
%144 = mul nsw i32 %142, %143
%145 = load i32, i32* %19
%146 = load i32, i32* %20
%147 = icmp slt i32 %145, %146
br i1 %147, label %148, label %150
148: ; preds = %132
%149 = load i32, i32* %19
br label %152
150: ; preds = %132
%151 = load i32, i32* %20
br label %152
152: ; preds = %150, %148
%153 = phi i32 [ %149, %148 ], [ %151, %150 ]
%154 = load i32, i32* %21
%155 = add nsw i32 %154, 1
%156 = load i32, i32* %15
%157 = mul nsw i32 %155, %156
%158 = load i32*, i32** %18
%159 = call i32 @print_line(i8* %141, i32 %144, i32 0, i32 %153, i32* null, i32 %157, i32 1, i32* %158, i8* null)
%160 = load i8*, i8** %12
%161 = load i32, i32* %21
%162 = load i32, i32* %15
%163 = mul nsw i32 %161, %162
%164 = load i32, i32* %17
%165 = load i32, i32* %20
%166 = load i32, i32* %19
%167 = icmp slt i32 %165, %166
br i1 %167, label %168, label %170
168: ; preds = %152
%169 = load i32, i32* %20
br label %172
170: ; preds = %152
%171 = load i32, i32* %19
br label %172
172: ; preds = %170, %168
%173 = phi i32 [ %169, %168 ], [ %171, %170 ]
%174 = load i32, i32* %21
%175 = add nsw i32 %174, 1
%176 = load i32, i32* %15
%177 = mul nsw i32 %175, %176
%178 = load i32*, i32** %18
%179 = load i8*, i8** %13
%180 = call i32 @print_line(i8* %160, i32 %163, i32 %164, i32 %173, i32* %24, i32 %177, i32 0, i32* %178, i8* %179)
br label %181
181: ; preds = %28, %39, %172, %115
ret void
}

LLVM IR (-O2):
define void @wrap(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i32 %5, i32 %6, i32 %7, i32* %8) {
%10 = alloca i32
%11 = alloca i32
%12 = bitcast i32* %10 to i8*
%13 = bitcast i32* %11 to i8*
%14 = icmp eq i32 %5, 0
br i1 %14, label %48, label %15
15: ; preds = %9
%16 = tail call i32 @strlen(i8* %0)
%17 = tail call i32 @strlen(i8* %2)
%18 = icmp ne i32 %17, 0
%19 = icmp ne i32 %16, 0
%20 = select i1 %18, i1 true, i1 %19
br i1 %20, label %21, label %48
21: ; preds = %15
store i32 0, i32* %10
store i32 0, i32* %11
%22 = icmp sgt i32 %17, %16
%23 = select i1 %22, i32 %16, i32 %17
%24 = sdiv i32 %23, %5
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %36
26: ; preds = %21, %26
%27 = phi i32 [ %29, %26 ], [ 0, %21 ]
%28 = mul nsw i32 %27, %5
%29 = add nuw nsw i32 %27, 1
%30 = mul nsw i32 %29, %5
%31 = call i32 @print_line(i8* %0, i32 %28, i32 %6, i32 %30, i32* %10, i32 %30, i32 0, i32* %8, i8* %1)
%32 = call i32 @print_line(i8* %4, i32 %28, i32 0, i32 %30, i32* null, i32 %30, i32 1, i32* %8, i8* null)
%33 = call i32 @print_line(i8* %2, i32 %28, i32 %7, i32 %30, i32* %11, i32 %30, i32 0, i32* %8, i8* %3)
%34 = call i32 @fputc(i32 10, i32* %8)
%35 = icmp eq i32 %29, %24
br i1 %35, label %36, label %26
36: ; preds = %26, %21
%37 = phi i32 [ 0, %21 ], [ %24, %26 ]
%38 = mul nsw i32 %37, %5
%39 = icmp slt i32 %38, %16
%40 = icmp slt i32 %38, %17
%41 = select i1 %39, i1 true, i1 %40
br i1 %41, label %42, label %48
42: ; preds = %36
%43 = add nuw nsw i32 %37, 1
%44 = mul nsw i32 %43, %5
%45 = call i32 @print_line(i8* %0, i32 %38, i32 %6, i32 %23, i32* %10, i32 %44, i32 0, i32* %8, i8* %1)
%46 = call i32 @print_line(i8* %4, i32 %38, i32 0, i32 %23, i32* null, i32 %44, i32 1, i32* %8, i8* null)
%47 = call i32 @print_line(i8* %2, i32 %38, i32 %7, i32 %23, i32* %11, i32 %44, i32 0, i32* %8, i8* %3)
br label %48
48: ; preds = %42, %36, %15, %9
ret void
}