#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int isqrt2(int);
int /*<<< orphan*/ printf(char *, char);
void write_lu_info(FILE *fp, int nprocs, char class) {
  int isiz1, isiz2, itmax, inorm, problem_size;
  int xdiv, ydiv;
  char *dt_default;
  if (class == 'S') {
    problem_size = 12;
    dt_default = "0.5e0";
    itmax = 50;
  } else if (class == 'W') {
    problem_size = 33;
    dt_default = "1.5e-3";
    itmax = 300;
  } else if (class == 'A') {
    problem_size = 64;
    dt_default = "2.0e0";
    itmax = 250;
  } else if (class == 'B') {
    problem_size = 102;
    dt_default = "2.0e0";
    itmax = 250;
  } else if (class == 'C') {
    problem_size = 162;
    dt_default = "2.0e0";
    itmax = 250;
  } else if (class == 'D') {
    problem_size = 408;
    dt_default = "1.0e0";
    itmax = 300;
  } else if (class == 'E') {
    problem_size = 1020;
    dt_default = "0.5e0";
    itmax = 300;
  } else {
    printf("setparams: Internal error: invalid class %c\n", class);
    exit(1);
  }
  inorm = itmax;
  xdiv = isqrt2(nprocs);
  ydiv = nprocs / xdiv;
  isiz1 = problem_size / xdiv;
  if (isiz1 * xdiv < problem_size)
    isiz1++;
  isiz2 = problem_size / ydiv;
  if (isiz2 * ydiv < problem_size)
    isiz2++;
  fprintf(fp, "#define nnodes_compiled  %d\n", nprocs);
  fprintf(fp, "#define nnodes_xdim      %d\n", xdiv);
  fprintf(fp, "#define isiz01  %d\n", problem_size);
  fprintf(fp, "#define isiz02  %d\n", problem_size);
  fprintf(fp, "#define isiz03  %d\n", problem_size);
  fprintf(fp, "#define isiz1  %d\n", isiz1);
  fprintf(fp, "#define isiz2  %d\n", isiz2);
  fprintf(fp, "#define isiz3  isiz03\n");
  fprintf(fp, "#define itmax_default  %d\n", itmax);
  fprintf(fp, "#define inorm_default  %d\n", inorm);
  fprintf(fp, "#define dt_default  %s\n", dt_default);
}


x86 assembly (clang, -O0):
<write_lu_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %dl,%al
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %al,-0xd(%rbp)
movsbl -0xd(%rbp),%eax
cmp    $0x53,%eax
jne    117f <write_lu_info+0x3f>
movl   $0xc,-0x24(%rbp)
lea    0xe91(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x32,-0x1c(%rbp)
jmp    12b9 <write_lu_info+0x179>
movsbl -0xd(%rbp),%eax
cmp    $0x57,%eax
jne    11aa <write_lu_info+0x6a>
movl   $0x21,-0x24(%rbp)
lea    0xe6c(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x12c,-0x1c(%rbp)
jmp    12b4 <write_lu_info+0x174>
movsbl -0xd(%rbp),%eax
cmp    $0x41,%eax
jne    11d5 <write_lu_info+0x95>
movl   $0x40,-0x24(%rbp)
lea    0xe48(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0xfa,-0x1c(%rbp)
jmp    12af <write_lu_info+0x16f>
movsbl -0xd(%rbp),%eax
cmp    $0x42,%eax
jne    1200 <write_lu_info+0xc0>
movl   $0x66,-0x24(%rbp)
lea    0xe1d(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0xfa,-0x1c(%rbp)
jmp    12aa <write_lu_info+0x16a>
movsbl -0xd(%rbp),%eax
cmp    $0x43,%eax
jne    122b <write_lu_info+0xeb>
movl   $0xa2,-0x24(%rbp)
lea    0xdf2(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0xfa,-0x1c(%rbp)
jmp    12a5 <write_lu_info+0x165>
movsbl -0xd(%rbp),%eax
cmp    $0x44,%eax
jne    1256 <write_lu_info+0x116>
movl   $0x198,-0x24(%rbp)
lea    0xdcd(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x12c,-0x1c(%rbp)
jmp    12a0 <write_lu_info+0x160>
movsbl -0xd(%rbp),%eax
cmp    $0x45,%eax
jne    1281 <write_lu_info+0x141>
movl   $0x3fc,-0x24(%rbp)
lea    0xd8f(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x12c,-0x1c(%rbp)
jmp    129b <write_lu_info+0x15b>
lea    0xd91(%rip),%rdi
movsbl -0xd(%rbp),%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
jmp    12a0 <write_lu_info+0x160>
jmp    12a5 <write_lu_info+0x165>
jmp    12aa <write_lu_info+0x16a>
jmp    12af <write_lu_info+0x16f>
jmp    12b4 <write_lu_info+0x174>
jmp    12b9 <write_lu_info+0x179>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <isqrt2@plt>
mov    %eax,-0x28(%rbp)
mov    -0xc(%rbp),%eax
cltd
idivl  -0x28(%rbp)
mov    %eax,-0x2c(%rbp)
mov    -0x24(%rbp),%eax
cltd
idivl  -0x28(%rbp)
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12f7 <write_lu_info+0x1b7>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x24(%rbp),%eax
cltd
idivl  -0x2c(%rbp)
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
imul   -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    131a <write_lu_info+0x1da>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xd1e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%edx
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xd2e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xd2d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xd2c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xd2b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0xd29(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xd2a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xd2c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xd32(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%rdx
lea    0xd37(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_lu_info>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    -0x41(%rdx),%eax
cmp    $0x16,%al
ja     1329 <write_lu_info+0x1d9>
mov    %esi,%r12d
mov    %rdi,%r13
lea    0xee6(%rip),%rsi
mov    $0xc,%ebp
mov    $0x32,%edi
movzbl %al,%eax
lea    0xe76(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xecf(%rip),%rsi
mov    $0x40,%ebp
mov    $0xfa,%edi
jmp    11f2 <write_lu_info+0xa2>
lea    0xebc(%rip),%rsi
mov    $0x66,%ebp
mov    $0xfa,%edi
jmp    11f2 <write_lu_info+0xa2>
lea    0xea9(%rip),%rsi
mov    $0xa2,%ebp
mov    $0xfa,%edi
jmp    11f2 <write_lu_info+0xa2>
lea    0xe9c(%rip),%rsi
mov    $0x198,%ebp
jmp    11ed <write_lu_info+0x9d>
mov    $0x3fc,%ebp
jmp    11ed <write_lu_info+0x9d>
lea    0xe7a(%rip),%rsi
mov    $0x21,%ebp
mov    $0x12c,%edi
mov    %edi,0xc(%rsp)
mov    %rsi,0x10(%rsp)
mov    %r12d,%edi
call   1050 <isqrt2@plt>
mov    %eax,%r15d
mov    %r12d,%eax
cltd
idiv   %r15d
mov    %eax,%ecx
mov    %ebp,%eax
xor    %edx,%edx
idiv   %r15d
mov    %eax,%edx
imul   %r15d,%edx
xor    %ebx,%ebx
cmp    %ebp,%edx
setl   %bl
add    %eax,%ebx
mov    %ebp,%eax
xor    %edx,%edx
idiv   %ecx
imul   %eax,%ecx
xor    %r14d,%r14d
cmp    %ebp,%ecx
setl   %r14b
add    %eax,%r14d
lea    0xe61(%rip),%rsi
mov    %r13,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe6a(%rip),%rsi
mov    %r13,%rdi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe73(%rip),%rsi
mov    %r13,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe74(%rip),%rsi
mov    %r13,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe75(%rip),%rsi
mov    %r13,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe76(%rip),%rsi
mov    %r13,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe76(%rip),%rsi
mov    %r13,%rdi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe75(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   1070 <fwrite@plt>
lea    0xe73(%rip),%rsi
mov    %r13,%rdi
mov    0xc(%rsp),%ebx
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe77(%rip),%rsi
mov    %r13,%rdi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xe7f(%rip),%rsi
mov    %r13,%rdi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fprintf@plt>
movsbl %dl,%esi
lea    0xd42(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"0.5e0\00"
@.str.1 = [7 x i8] c"1.5e-3\00"
@.str.2 = [6 x i8] c"2.0e0\00"
@.str.3 = [6 x i8] c"1.0e0\00"
@.str.4 = [45 x i8] c"setparams: Internal error: invalid class %c\0A\00"
@.str.5 = [29 x i8] c"#define nnodes_compiled %d\0A\00"
@.str.6 = [29 x i8] c"#define nnodes_xdim %d\0A\00"
@.str.7 = [20 x i8] c"#define isiz01 %d\0A\00"
@.str.8 = [20 x i8] c"#define isiz02 %d\0A\00"
@.str.9 = [20 x i8] c"#define isiz03 %d\0A\00"
@.str.10 = [19 x i8] c"#define isiz1 %d\0A\00"
@.str.11 = [19 x i8] c"#define isiz2 %d\0A\00"
@.str.12 = [23 x i8] c"#define isiz3 isiz03\0A\00"
@.str.13 = [27 x i8] c"#define itmax_default %d\0A\00"
@.str.14 = [27 x i8] c"#define inorm_default %d\0A\00"
@.str.15 = [24 x i8] c"#define dt_default %s\0A\00"
define void @write_lu_info(i32* %0, i32 %1, i8 signext %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i8
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
store i32* %0, i32** %4
store i32 %1, i32* %5
store i8 %2, i8* %6
%15 = load i8, i8* %6
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 83
br i1 %17, label %18, label %19
18: ; preds = %3
store i32 12, i32* %11
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %14
store i32 50, i32* %9
br label %59
19: ; preds = %3
%20 = load i8, i8* %6
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 87
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 33, i32* %11
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %14
store i32 300, i32* %9
br label %58
24: ; preds = %19
%25 = load i8, i8* %6
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 65
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 64, i32* %11
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %14
store i32 250, i32* %9
br label %57
29: ; preds = %24
%30 = load i8, i8* %6
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 66
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 102, i32* %11
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %14
store i32 250, i32* %9
br label %56
34: ; preds = %29
%35 = load i8, i8* %6
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 67
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 162, i32* %11
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %14
store i32 250, i32* %9
br label %55
39: ; preds = %34
%40 = load i8, i8* %6
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 68
br i1 %42, label %43, label %44
43: ; preds = %39
store i32 408, i32* %11
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %14
store i32 300, i32* %9
br label %54
44: ; preds = %39
%45 = load i8, i8* %6
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 69
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 1020, i32* %11
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %14
store i32 300, i32* %9
br label %53
49: ; preds = %44
%50 = load i8, i8* %6
%51 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i8 signext %50)
%52 = call i32 @exit(i32 1)
unreachable
53: ; preds = %48
br label %54
54: ; preds = %53, %43
br label %55
55: ; preds = %54, %38
br label %56
56: ; preds = %55, %33
br label %57
57: ; preds = %56, %28
br label %58
58: ; preds = %57, %23
br label %59
59: ; preds = %58, %18
%60 = load i32, i32* %9
store i32 %60, i32* %10
%61 = load i32, i32* %5
%62 = call i32 @isqrt2(i32 %61)
store i32 %62, i32* %12
%63 = load i32, i32* %5
%64 = load i32, i32* %12
%65 = sdiv i32 %63, %64
store i32 %65, i32* %13
%66 = load i32, i32* %11
%67 = load i32, i32* %12
%68 = sdiv i32 %66, %67
store i32 %68, i32* %7
%69 = load i32, i32* %7
%70 = load i32, i32* %12
%71 = mul nsw i32 %69, %70
%72 = load i32, i32* %11
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %77
74: ; preds = %59
%75 = load i32, i32* %7
%76 = add nsw i32 %75, 1
store i32 %76, i32* %7
br label %77
77: ; preds = %74, %59
%78 = load i32, i32* %11
%79 = load i32, i32* %13
%80 = sdiv i32 %78, %79
store i32 %80, i32* %8
%81 = load i32, i32* %8
%82 = load i32, i32* %13
%83 = mul nsw i32 %81, %82
%84 = load i32, i32* %11
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %89
86: ; preds = %77
%87 = load i32, i32* %8
%88 = add nsw i32 %87, 1
store i32 %88, i32* %8
br label %89
89: ; preds = %86, %77
%90 = load i32*, i32** %4
%91 = load i32, i32* %5
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %90, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %91)
%93 = load i32*, i32** %4
%94 = load i32, i32* %12
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %93, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %94)
%96 = load i32*, i32** %4
%97 = load i32, i32* %11
%98 = call i32 (i32*, i8*, ...) @fprintf(i32* %96, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %97)
%99 = load i32*, i32** %4
%100 = load i32, i32* %11
%101 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %100)
%102 = load i32*, i32** %4
%103 = load i32, i32* %11
%104 = call i32 (i32*, i8*, ...) @fprintf(i32* %102, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %103)
%105 = load i32*, i32** %4
%106 = load i32, i32* %7
%107 = call i32 (i32*, i8*, ...) @fprintf(i32* %105, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %106)
%108 = load i32*, i32** %4
%109 = load i32, i32* %8
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %109)
%111 = load i32*, i32** %4
%112 = call i32 (i32*, i8*, ...) @fprintf(i32* %111, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
%113 = load i32*, i32** %4
%114 = load i32, i32* %9
%115 = call i32 (i32*, i8*, ...) @fprintf(i32* %113, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i32 %114)
%116 = load i32*, i32** %4
%117 = load i32, i32* %10
%118 = call i32 (i32*, i8*, ...) @fprintf(i32* %116, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i32 %117)
%119 = load i32*, i32** %4
%120 = load i8*, i8** %14
%121 = call i32 (i32*, i8*, ...) @fprintf(i32* %119, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i8* %120)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"0.5e0\00"
@.str.1 = [7 x i8] c"1.5e-3\00"
@.str.2 = [6 x i8] c"2.0e0\00"
@.str.3 = [6 x i8] c"1.0e0\00"
@.str.4 = [45 x i8] c"setparams: Internal error: invalid class %c\0A\00"
@.str.5 = [29 x i8] c"#define nnodes_compiled %d\0A\00"
@.str.6 = [29 x i8] c"#define nnodes_xdim %d\0A\00"
@.str.7 = [20 x i8] c"#define isiz01 %d\0A\00"
@.str.8 = [20 x i8] c"#define isiz02 %d\0A\00"
@.str.9 = [20 x i8] c"#define isiz03 %d\0A\00"
@.str.10 = [19 x i8] c"#define isiz1 %d\0A\00"
@.str.11 = [19 x i8] c"#define isiz2 %d\0A\00"
@.str.12 = [23 x i8] c"#define isiz3 isiz03\0A\00"
@.str.13 = [27 x i8] c"#define itmax_default %d\0A\00"
@.str.14 = [27 x i8] c"#define inorm_default %d\0A\00"
@.str.15 = [24 x i8] c"#define dt_default %s\0A\00"
define void @write_lu_info(i32* nocapture %0, i32 %1, i8 signext %2) {
switch i8 %2, label %10 [
i8 83, label %13
i8 87, label %4
i8 65, label %5
i8 66, label %6
i8 67, label %7
i8 68, label %8
i8 69, label %9
]
4: ; preds = %3
br label %13
5: ; preds = %3
br label %13
6: ; preds = %3
br label %13
7: ; preds = %3
br label %13
8: ; preds = %3
br label %13
9: ; preds = %3
br label %13
10: ; preds = %3
%11 = tail call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i8 signext %2)
%12 = tail call i32 @exit(i32 1)
unreachable
13: ; preds = %3, %4, %6, %8, %9, %7, %5
%14 = phi i32 [ 300, %4 ], [ 250, %5 ], [ 250, %6 ], [ 250, %7 ], [ 300, %8 ], [ 300, %9 ], [ 50, %3 ]
%15 = phi i32 [ 33, %4 ], [ 64, %5 ], [ 102, %6 ], [ 162, %7 ], [ 408, %8 ], [ 1020, %9 ], [ 12, %3 ]
%16 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), %4 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %5 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %6 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %7 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), %8 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %9 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %3 ]
%17 = tail call i32 @isqrt2(i32 %1)
%18 = sdiv i32 %1, %17
%19 = sdiv i32 %15, %17
%20 = mul nsw i32 %19, %17
%21 = icmp slt i32 %20, %15
%22 = zext i1 %21 to i32
%23 = add nsw i32 %19, %22
%24 = sdiv i32 %15, %18
%25 = mul nsw i32 %24, %18
%26 = icmp slt i32 %25, %15
%27 = zext i1 %26 to i32
%28 = add nsw i32 %24, %27
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %1)
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %17)
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %15)
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %15)
%34 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %23)
%35 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %28)
%36 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i64 22, i64 1, i32* %0)
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i32 %14)
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i32 %14)
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0), i8* %16)
ret void
}