#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*/ sprintf(char *, char *, int);
int gen_io_domain_defs(FILE *fp) {
  char *dir, *aux, *streamtype, streamno[5];
  int i, j;
  for (j = 0; j < 2; j++) {
    if (j == 0)
      dir = "output";
    else
      dir = "input";
    for (i = 0; i < 2 * 12; i++) {
      if (i % 12 == 0) {
        aux = "";
        streamno[0] = '\0';
      } else {
        aux = "aux";
        sprintf(streamno, "%d", i % 12);
      }
      if (i < 12) {
        streamtype = "input";
      } else {
        streamtype = (i % 12 == 0) ? "history" : "hist";
      }
      fprintf(fp, "SUBROUTINE %s_%s%s%s ( fid , grid , config_flags , ierr )\n",
              dir, aux, streamtype, streamno);
      fprintf(fp, " IMPLICIT NONE\n");
      fprintf(fp, " TYPE(domain) :: grid\n");
      fprintf(
          fp,
          " TYPE(grid_config_rec_type),  INTENT(IN   )    :: config_flags\n");
      fprintf(fp, " INTEGER, INTENT(IN) :: fid\n");
      fprintf(fp, " INTEGER, INTENT(INOUT) :: ierr\n");
      fprintf(fp, " IF ( config_flags%%io_form_%s%s%s .GT. 0 ) THEN\n", aux,
              streamtype, streamno);
      fprintf(
          fp,
          "   CALL %s_wrf( fid, grid, config_flags, %s%s%s_only, ierr ) ;\n",
          dir, aux, streamtype, streamno);
      fprintf(fp, " ENDIF\n");
      fprintf(fp, " RETURN\n");
      fprintf(fp, "END SUBROUTINE %s_%s%s%s\n", dir, aux, streamtype, streamno);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<gen_io_domain_defs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jge    1322 <gen_io_domain_defs+0x202>
cmpl   $0x0,-0x30(%rbp)
jne    1157 <gen_io_domain_defs+0x37>
lea    0xeb2(%rip),%rax
mov    %rax,-0x10(%rbp)
jmp    1162 <gen_io_domain_defs+0x42>
lea    0xea9(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x18,-0x2c(%rbp)
jge    130f <gen_io_domain_defs+0x1ef>
mov    -0x2c(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    119b <gen_io_domain_defs+0x7b>
lea    0xecd(%rip),%rax
mov    %rax,-0x18(%rbp)
movb   $0x0,-0x25(%rbp)
jmp    11c1 <gen_io_domain_defs+0xa1>
lea    0xe6b(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x25(%rbp),%rdi
mov    -0x2c(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
lea    0xe55(%rip),%rsi
call   1040 <sprintf@plt>
cmpl   $0xc,-0x2c(%rbp)
jge    11db <gen_io_domain_defs+0xbb>
lea    0xe35(%rip),%rax
mov    %rax,-0x20(%rbp)
jmp    11ff <gen_io_domain_defs+0xdf>
mov    -0x2c(%rbp),%eax
mov    $0xc,%ecx
cltd
idiv   %ecx
lea    0xe2f(%rip),%rax
lea    0xe20(%rip),%rcx
cmp    $0x0,%edx
cmove  %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
lea    -0x25(%rbp),%r9
lea    0xe07(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe30(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe33(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe61(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    -0x25(%rbp),%r8
lea    0xe6f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
lea    -0x25(%rbp),%r9
lea    0xe7f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xead(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
lea    -0x25(%rbp),%r9
lea    0xe8a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1169 <gen_io_domain_defs+0x49>
jmp    1314 <gen_io_domain_defs+0x1f4>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1133 <gen_io_domain_defs+0x13>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_io_domain_defs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r12
lea    0xebb(%rip),%rbx
lea    0x3(%rsp),%r13
xor    %r14d,%r14d
jmp    12d1 <gen_io_domain_defs+0x1a1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14d,%eax
mov    $0xaaaaaaab,%ecx
imul   %rcx,%rax
shr    $0x23,%rax
shl    $0x2,%eax
lea    (%rax,%rax,2),%edx
neg    %edx
add    %r14d,%edx
mov    %r13,%rdi
lea    0xe8c(%rip),%rsi
call   1040 <sprintf@plt>
lea    0xe8b(%rip),%rbp
lea    0xe75(%rip),%r15
cmp    $0xc,%r14d
lea    0xe64(%rip),%rax
cmovb  %rax,%rbp
mov    %r12,%rdi
lea    0xe70(%rip),%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r13,%r9
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0xf,%esi
mov    $0x1,%edx
lea    0xe87(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x16,%esi
mov    $0x1,%edx
lea    0xe7e(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x3f,%esi
mov    $0x1,%edx
lea    0xe7c(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x1c,%esi
mov    $0x1,%edx
lea    0xea3(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x20,%esi
mov    $0x1,%edx
lea    0xea7(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    %r12,%rdi
lea    0xeb6(%rip),%rsi
mov    %r15,%rdx
mov    %rbp,%rcx
mov    %r13,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    %r12,%rdi
lea    0xece(%rip),%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r13,%r9
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xeea(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x8,%esi
mov    $0x1,%edx
lea    0xed9(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    %r12,%rdi
lea    0xed0(%rip),%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r13,%r9
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%r14d
cmp    $0x18,%r14d
je     1306 <gen_io_domain_defs+0x1d6>
movzbl %r14b,%eax
imul   $0xab,%eax,%ecx
shr    $0x9,%ecx
and    $0xfffffffc,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %cl,%al
jne    1160 <gen_io_domain_defs+0x30>
movb   $0x0,0x3(%rsp)
lea    0xd1a(%rip),%rbp
lea    0xd5a(%rip),%r15
jmp    1198 <gen_io_domain_defs+0x68>
lea    0x3(%rsp),%r14
xor    %ebx,%ebx
jmp    1469 <gen_io_domain_defs+0x339>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movb   $0x0,0x3(%rsp)
lea    0xce8(%rip),%rbp
lea    0xd28(%rip),%r15
cmp    $0xc,%ebx
lea    0xcca(%rip),%r13
cmovb  %r13,%rbp
mov    %r12,%rdi
lea    0xcd6(%rip),%rsi
mov    %r13,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0xf,%esi
mov    $0x1,%edx
lea    0xced(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x16,%esi
mov    $0x1,%edx
lea    0xce4(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x3f,%esi
mov    $0x1,%edx
lea    0xce2(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x1c,%esi
mov    $0x1,%edx
lea    0xd09(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x20,%esi
mov    $0x1,%edx
lea    0xd0d(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    %r12,%rdi
lea    0xd1c(%rip),%rsi
mov    %r15,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    %r12,%rdi
lea    0xd34(%rip),%rsi
mov    %r13,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xd50(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x8,%esi
mov    $0x1,%edx
lea    0xd3f(%rip),%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    %r12,%rdi
lea    0xd36(%rip),%rsi
mov    %r13,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%ebx
cmp    $0x18,%ebx
je     14c0 <gen_io_domain_defs+0x390>
movzbl %bl,%eax
imul   $0xab,%eax,%ecx
shr    $0x9,%ecx
and    $0xfffffffc,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %cl,%al
je     1320 <gen_io_domain_defs+0x1f0>
mov    %ebx,%eax
mov    $0xaaaaaaab,%ecx
imul   %rcx,%rax
shr    $0x23,%rax
shl    $0x2,%eax
lea    (%rax,%rax,2),%edx
neg    %edx
add    %ebx,%edx
mov    %r14,%rdi
lea    0xb69(%rip),%rsi
call   1040 <sprintf@plt>
lea    0xb68(%rip),%rbp
lea    0xb52(%rip),%r15
jmp    1333 <gen_io_domain_defs+0x203>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"output\00"
@.str.1 = [6 x i8] c"input\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [4 x i8] c"aux\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [8 x i8] c"history\00"
@.str.6 = [5 x i8] c"hist\00"
@.str.7 = [59 x i8] c"SUBROUTINE %s_%s%s%s ( fid , grid , config_flags , ierr )\0A\00"
@.str.8 = [16 x i8] c" IMPLICIT NONE\0A\00"
@.str.9 = [23 x i8] c" TYPE(domain) :: grid\0A\00"
@.str.10 = [64 x i8] c" TYPE(grid_config_rec_type), INTENT(IN ) :: config_flags\0A\00"
@.str.11 = [29 x i8] c" INTEGER, INTENT(IN) :: fid\0A\00"
@.str.12 = [33 x i8] c" INTEGER, INTENT(INOUT) :: ierr\0A\00"
@.str.13 = [50 x i8] c" IF ( config_flags%%io_form_%s%s%s .GT. 0 ) THEN\0A\00"
@.str.14 = [64 x i8] c" CALL %s_wrf( fid, grid, config_flags, %s%s%s_only, ierr ) ;\0A\00"
@.str.15 = [8 x i8] c" ENDIF\0A\00"
@.str.16 = [9 x i8] c" RETURN\0A\00"
@.str.17 = [26 x i8] c"END SUBROUTINE %s_%s%s%s\0A\00"
define i32 @gen_io_domain_defs(i32* %0) {
%2 = alloca i32*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [5 x i8]
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %8
br label %9
9: ; preds = %84, %1
%10 = load i32, i32* %8
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %87
12: ; preds = %9
%13 = load i32, i32* %8
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %12
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %3
br label %17
16: ; preds = %12
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %3
br label %17
17: ; preds = %16, %15
store i32 0, i32* %7
br label %18
18: ; preds = %80, %17
%19 = load i32, i32* %7
%20 = icmp slt i32 %19, 24
br i1 %20, label %21, label %83
21: ; preds = %18
%22 = load i32, i32* %7
%23 = srem i32 %22, 12
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8** %4
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
store i8 0, i8* %26
br label %32
27: ; preds = %21
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %4
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%29 = load i32, i32* %7
%30 = srem i32 %29, 12
%31 = call i32 @sprintf(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %30)
br label %32
32: ; preds = %27, %25
%33 = load i32, i32* %7
%34 = icmp slt i32 %33, 12
br i1 %34, label %35, label %36
35: ; preds = %32
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %5
br label %42
36: ; preds = %32
%37 = load i32, i32* %7
%38 = srem i32 %37, 12
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i64
%41 = select i1 %39, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
store i8* %41, i8** %5
br label %42
42: ; preds = %36, %35
%43 = load i32*, i32** %2
%44 = load i8*, i8** %3
%45 = load i8*, i8** %4
%46 = load i8*, i8** %5
%47 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i8* %44, i8* %45, i8* %46, i8* %47)
%49 = load i32*, i32** %2
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%51 = load i32*, i32** %2
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%53 = load i32*, i32** %2
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0))
%55 = load i32*, i32** %2
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%57 = load i32*, i32** %2
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%59 = load i32*, i32** %2
%60 = load i8*, i8** %4
%61 = load i8*, i8** %5
%62 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), i8* %60, i8* %61, i8* %62)
%64 = load i32*, i32** %2
%65 = load i8*, i8** %3
%66 = load i8*, i8** %4
%67 = load i8*, i8** %5
%68 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0), i8* %65, i8* %66, i8* %67, i8* %68)
%70 = load i32*, i32** %2
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
%72 = load i32*, i32** %2
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%74 = load i32*, i32** %2
%75 = load i8*, i8** %3
%76 = load i8*, i8** %4
%77 = load i8*, i8** %5
%78 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), i8* %75, i8* %76, i8* %77, i8* %78)
br label %80
80: ; preds = %42
%81 = load i32, i32* %7
%82 = add nsw i32 %81, 1
store i32 %82, i32* %7
br label %18
83: ; preds = %18
br label %84
84: ; preds = %83
%85 = load i32, i32* %8
%86 = add nsw i32 %85, 1
store i32 %86, i32* %8
br label %9
87: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"output\00"
@.str.1 = [6 x i8] c"input\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [4 x i8] c"aux\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [8 x i8] c"history\00"
@.str.6 = [5 x i8] c"hist\00"
@.str.7 = [59 x i8] c"SUBROUTINE %s_%s%s%s ( fid , grid , config_flags , ierr )\0A\00"
@.str.8 = [16 x i8] c" IMPLICIT NONE\0A\00"
@.str.9 = [23 x i8] c" TYPE(domain) :: grid\0A\00"
@.str.10 = [64 x i8] c" TYPE(grid_config_rec_type), INTENT(IN ) :: config_flags\0A\00"
@.str.11 = [29 x i8] c" INTEGER, INTENT(IN) :: fid\0A\00"
@.str.12 = [33 x i8] c" INTEGER, INTENT(INOUT) :: ierr\0A\00"
@.str.13 = [50 x i8] c" IF ( config_flags%%io_form_%s%s%s .GT. 0 ) THEN\0A\00"
@.str.14 = [64 x i8] c" CALL %s_wrf( fid, grid, config_flags, %s%s%s_only, ierr ) ;\0A\00"
@.str.15 = [8 x i8] c" ENDIF\0A\00"
@.str.16 = [9 x i8] c" RETURN\0A\00"
@.str.17 = [26 x i8] c"END SUBROUTINE %s_%s%s%s\0A\00"
define i32 @gen_io_domain_defs(i32* nocapture %0) {
%2 = alloca [5 x i8]
%3 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
br label %4
4: ; preds = %1, %13
%5 = phi i32 [ 0, %1 ], [ %29, %13 ]
%6 = trunc i32 %5 to i8
%7 = urem i8 %6, 12
%8 = icmp eq i8 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %4
store i8 0, i8* %3
br label %13
10: ; preds = %4
%11 = zext i8 %7 to i32
%12 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %10, %9
%14 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %10 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), %9 ]
%15 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %9 ]
%16 = icmp ult i32 %5, 12
%17 = select i1 %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %14
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %17, i8* %3)
%19 = call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i64 15, i64 1, i32* %0)
%20 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i64 22, i64 1, i32* %0)
%21 = call i64 @fwrite(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0), i64 63, i64 1, i32* %0)
%22 = call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i64 28, i64 1, i32* %0)
%23 = call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0), i64 32, i64 1, i32* %0)
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), i8* %15, i8* %17, i8* %3)
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %17, i8* %3)
%26 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i64 7, i64 1, i32* %0)
%27 = call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i64 8, i64 1, i32* %0)
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %17, i8* %3)
%29 = add nuw nsw i32 %5, 1
%30 = icmp eq i32 %29, 24
br i1 %30, label %31, label %4
31: ; preds = %13, %40
%32 = phi i32 [ %56, %40 ], [ 0, %13 ]
%33 = trunc i32 %32 to i8
%34 = urem i8 %33, 12
%35 = icmp eq i8 %34, 0
br i1 %35, label %39, label %36
36: ; preds = %31
%37 = zext i8 %34 to i32
%38 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %37)
br label %40
39: ; preds = %31
store i8 0, i8* %3
br label %40
40: ; preds = %39, %36
%41 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %36 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), %39 ]
%42 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), %36 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %39 ]
%43 = icmp ult i32 %32, 12
%44 = select i1 %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %41
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %42, i8* %44, i8* %3)
%46 = call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i64 15, i64 1, i32* %0)
%47 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i64 22, i64 1, i32* %0)
%48 = call i64 @fwrite(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0), i64 63, i64 1, i32* %0)
%49 = call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i64 28, i64 1, i32* %0)
%50 = call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0), i64 32, i64 1, i32* %0)
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), i8* %42, i8* %44, i8* %3)
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %42, i8* %44, i8* %3)
%53 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i64 7, i64 1, i32* %0)
%54 = call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i64 8, i64 1, i32* %0)
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %42, i8* %44, i8* %3)
%56 = add nuw nsw i32 %32, 1
%57 = icmp eq i32 %56, 24
br i1 %57, label %58, label %31
58: ; preds = %40
ret i32 0
}