#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 /*<<< orphan*/ printf(char *, ...);
scalar_t__ sqrt(int);
void printSudoku(int grid[9][9]) {
  int i, j;
  for (i = 0; i < 9; ++i) {
    if (i % ((int)sqrt(9)) == 0)
      printf("\n\n\t\t");
    else
      printf("\n\t\t");
    for (j = 0; j < 9; ++j)
      if (i % ((int)sqrt(9)) == 0)
        printf("- - - ");
    if (i % ((int)sqrt(9)) == 0)
      printf("-");
    if (i % ((int)sqrt(9)) == 0)
      printf("\n\n\t\t");
    else
      printf("\n\t\t");
    for (j = 0; j < 9; ++j) {
      if (j % ((int)sqrt(9)))
        printf(", ");
      else
        printf("| ");
      printf("%3d ", grid[i][j]);
    }
    printf("|");
  }
  printf("\n\n\t\t");
  for (j = 0; j < 9; ++j)
    if (i % ((int)sqrt(9)) == 0)
      printf("- - - ");
  printf("\n");
}


x86 assembly (clang, -O0):
<printSudoku>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jge    12e9 <printSudoku+0x1c9>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x9,%edi
call   1040 <sqrt@plt>
mov    %rax,%rcx
mov    -0x14(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1172 <printSudoku+0x52>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1180 <printSudoku+0x60>
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jge    11d4 <printSudoku+0xb4>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x9,%edi
call   1040 <sqrt@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11c1 <printSudoku+0xa1>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11c6 <printSudoku+0xa6>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1187 <printSudoku+0x67>
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    $0x9,%edi
call   1040 <sqrt@plt>
mov    %rax,%rcx
mov    -0x1c(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1204 <printSudoku+0xe4>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    $0x9,%edi
call   1040 <sqrt@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1239 <printSudoku+0x119>
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1247 <printSudoku+0x127>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jge    12cd <printSudoku+0x1ad>
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    $0x9,%edi
call   1040 <sqrt@plt>
mov    %rax,%rcx
mov    -0x24(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
je     128d <printSudoku+0x16d>
lea    0xd8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129b <printSudoku+0x17b>
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x24,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    124e <printSudoku+0x12e>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <printSudoku+0x13>
lea    0xd10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jge    134b <printSudoku+0x22b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    $0x9,%edi
call   1040 <sqrt@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%eax
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1338 <printSudoku+0x218>
lea    0xcd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    133d <printSudoku+0x21d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12fe <printSudoku+0x1de>
lea    0xcc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printSudoku>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r13
add    $0x20,%r13
lea    0xebc(%rip),%r14
lea    0xebf(%rip),%r15
lea    0xebb(%rip),%r12
lea    0xeae(%rip),%rbp
xor    %ebx,%ebx
jmp    11a1 <printSudoku+0x71>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x7c,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
add    $0x24,%r13
cmp    $0x9,%rbx
je     14f5 <printSudoku+0x3c5>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
lea    0xe46(%rip),%rdi
test   %edx,%edx
je     11c5 <printSudoku+0x95>
lea    0xe3c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    11ec <printSudoku+0xbc>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    120c <printSudoku+0xdc>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    122c <printSudoku+0xfc>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    124c <printSudoku+0x11c>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    126c <printSudoku+0x13c>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    128c <printSudoku+0x15c>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    12ac <printSudoku+0x17c>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    12cc <printSudoku+0x19c>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    12ec <printSudoku+0x1bc>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
test   %edx,%edx
jne    130c <printSudoku+0x1dc>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    %ebx,%eax
cltd
idiv   %ecx
lea    0xcdb(%rip),%rdi
test   %edx,%edx
je     1330 <printSudoku+0x200>
lea    0xcd1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x20(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x1,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     1379 <printSudoku+0x249>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x1c(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x2,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     13ae <printSudoku+0x27e>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x18(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x3,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     13e3 <printSudoku+0x2b3>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x14(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x4,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     1418 <printSudoku+0x2e8>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x5,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     144d <printSudoku+0x31d>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0xc(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x6,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     1482 <printSudoku+0x352>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x8(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x7,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     14b7 <printSudoku+0x387>
mov    %rbp,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x4(%r13),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x8,%eax
xor    %edx,%edx
idiv   %ecx
mov    %r15,%rdi
test   %edx,%edx
je     1170 <printSudoku+0x40>
mov    %rbp,%rdi
jmp    1170 <printSudoku+0x40>
lea    0xb04(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    152b <printSudoku+0x3fb>
lea    0xae1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    1553 <printSudoku+0x423>
lea    0xab9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    157b <printSudoku+0x44b>
lea    0xa91(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    15a3 <printSudoku+0x473>
lea    0xa69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    15cb <printSudoku+0x49b>
lea    0xa41(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    15f3 <printSudoku+0x4c3>
lea    0xa19(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    161b <printSudoku+0x4eb>
lea    0x9f1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    1643 <printSudoku+0x513>
lea    0x9c9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x9,%edi
call   1050 <sqrt@plt>
mov    %rax,%rcx
mov    $0x9,%eax
xor    %edx,%edx
idiv   %ecx
test   %edx,%edx
jne    166b <printSudoku+0x53b>
lea    0x9a1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
@.str = [5 x i8] c"\0A\0A\09\09\00"
@.str.1 = [4 x i8] c"\0A\09\09\00"
@.str.2 = [7 x i8] c"- - - \00"
@.str.4 = [3 x i8] c", \00"
@.str.5 = [3 x i8] c"| \00"
@.str.6 = [5 x i8] c"%3d \00"
define void @printSudoku([9 x i32]* nocapture %0) {
br label %2
2: ; preds = %1, %80
%3 = phi i64 [ 0, %1 ], [ %165, %80 ]
%4 = tail call i64 @sqrt(i32 9)
%5 = trunc i64 %4 to i32
%6 = trunc i64 %3 to i32
%7 = srem i32 %6, %5
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %9)
%11 = tail call i64 @sqrt(i32 9)
%12 = trunc i64 %11 to i32
%13 = srem i32 %6, %12
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %2, %15
%18 = tail call i64 @sqrt(i32 9)
%19 = trunc i64 %18 to i32
%20 = srem i32 %6, %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %24
24: ; preds = %22, %17
%25 = tail call i64 @sqrt(i32 9)
%26 = trunc i64 %25 to i32
%27 = srem i32 %6, %26
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %31
31: ; preds = %29, %24
%32 = tail call i64 @sqrt(i32 9)
%33 = trunc i64 %32 to i32
%34 = srem i32 %6, %33
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36, %31
%39 = tail call i64 @sqrt(i32 9)
%40 = trunc i64 %39 to i32
%41 = srem i32 %6, %40
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %45
45: ; preds = %43, %38
%46 = tail call i64 @sqrt(i32 9)
%47 = trunc i64 %46 to i32
%48 = srem i32 %6, %47
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %52
52: ; preds = %50, %45
%53 = tail call i64 @sqrt(i32 9)
%54 = trunc i64 %53 to i32
%55 = srem i32 %6, %54
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %52
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %59
59: ; preds = %57, %52
%60 = tail call i64 @sqrt(i32 9)
%61 = trunc i64 %60 to i32
%62 = srem i32 %6, %61
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %66
66: ; preds = %64, %59
%67 = tail call i64 @sqrt(i32 9)
%68 = trunc i64 %67 to i32
%69 = srem i32 %6, %68
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %73
73: ; preds = %71, %66
%74 = tail call i64 @sqrt(i32 9)
%75 = trunc i64 %74 to i32
%76 = srem i32 %6, %75
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = tail call i32 @putchar(i32 45)
br label %80
80: ; preds = %78, %73
%81 = tail call i64 @sqrt(i32 9)
%82 = trunc i64 %81 to i32
%83 = srem i32 %6, %82
%84 = icmp eq i32 %83, 0
%85 = select i1 %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %85)
%87 = tail call i64 @sqrt(i32 9)
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%89 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 0
%90 = load i32, i32* %89
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %90)
%92 = tail call i64 @sqrt(i32 9)
%93 = trunc i64 %92 to i32
%94 = srem i32 1, %93
%95 = icmp eq i32 %94, 0
%96 = select i1 %95, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %96)
%98 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 1
%99 = load i32, i32* %98
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %99)
%101 = tail call i64 @sqrt(i32 9)
%102 = trunc i64 %101 to i32
%103 = srem i32 2, %102
%104 = icmp eq i32 %103, 0
%105 = select i1 %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %105)
%107 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 2
%108 = load i32, i32* %107
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %108)
%110 = tail call i64 @sqrt(i32 9)
%111 = trunc i64 %110 to i32
%112 = srem i32 3, %111
%113 = icmp eq i32 %112, 0
%114 = select i1 %113, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %114)
%116 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 3
%117 = load i32, i32* %116
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %117)
%119 = tail call i64 @sqrt(i32 9)
%120 = trunc i64 %119 to i32
%121 = srem i32 4, %120
%122 = icmp eq i32 %121, 0
%123 = select i1 %122, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %123)
%125 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 4
%126 = load i32, i32* %125
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %126)
%128 = tail call i64 @sqrt(i32 9)
%129 = trunc i64 %128 to i32
%130 = srem i32 5, %129
%131 = icmp eq i32 %130, 0
%132 = select i1 %131, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %132)
%134 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 5
%135 = load i32, i32* %134
%136 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %135)
%137 = tail call i64 @sqrt(i32 9)
%138 = trunc i64 %137 to i32
%139 = srem i32 6, %138
%140 = icmp eq i32 %139, 0
%141 = select i1 %140, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%142 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %141)
%143 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 6
%144 = load i32, i32* %143
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %144)
%146 = tail call i64 @sqrt(i32 9)
%147 = trunc i64 %146 to i32
%148 = srem i32 7, %147
%149 = icmp eq i32 %148, 0
%150 = select i1 %149, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%151 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %150)
%152 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 7
%153 = load i32, i32* %152
%154 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %153)
%155 = tail call i64 @sqrt(i32 9)
%156 = trunc i64 %155 to i32
%157 = srem i32 8, %156
%158 = icmp eq i32 %157, 0
%159 = select i1 %158, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%160 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %159)
%161 = getelementptr inbounds [9 x i32], [9 x i32]* %0, i64 %3, i64 8
%162 = load i32, i32* %161
%163 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %162)
%164 = tail call i32 @putchar(i32 124)
%165 = add nuw nsw i64 %3, 1
%166 = icmp eq i64 %165, 9
br i1 %166, label %167, label %2
167: ; preds = %80
%168 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%169 = tail call i64 @sqrt(i32 9)
%170 = trunc i64 %169 to i32
%171 = srem i32 9, %170
%172 = icmp eq i32 %171, 0
br i1 %172, label %173, label %175
173: ; preds = %167
%174 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %175
175: ; preds = %167, %173
%176 = tail call i64 @sqrt(i32 9)
%177 = trunc i64 %176 to i32
%178 = srem i32 9, %177
%179 = icmp eq i32 %178, 0
br i1 %179, label %180, label %182
180: ; preds = %175
%181 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %182
182: ; preds = %180, %175
%183 = tail call i64 @sqrt(i32 9)
%184 = trunc i64 %183 to i32
%185 = srem i32 9, %184
%186 = icmp eq i32 %185, 0
br i1 %186, label %187, label %189
187: ; preds = %182
%188 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %189
189: ; preds = %187, %182
%190 = tail call i64 @sqrt(i32 9)
%191 = trunc i64 %190 to i32
%192 = srem i32 9, %191
%193 = icmp eq i32 %192, 0
br i1 %193, label %194, label %196
194: ; preds = %189
%195 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %196
196: ; preds = %194, %189
%197 = tail call i64 @sqrt(i32 9)
%198 = trunc i64 %197 to i32
%199 = srem i32 9, %198
%200 = icmp eq i32 %199, 0
br i1 %200, label %201, label %203
201: ; preds = %196
%202 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %203
203: ; preds = %201, %196
%204 = tail call i64 @sqrt(i32 9)
%205 = trunc i64 %204 to i32
%206 = srem i32 9, %205
%207 = icmp eq i32 %206, 0
br i1 %207, label %208, label %210
208: ; preds = %203
%209 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %210
210: ; preds = %208, %203
%211 = tail call i64 @sqrt(i32 9)
%212 = trunc i64 %211 to i32
%213 = srem i32 9, %212
%214 = icmp eq i32 %213, 0
br i1 %214, label %215, label %217
215: ; preds = %210
%216 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %217
217: ; preds = %215, %210
%218 = tail call i64 @sqrt(i32 9)
%219 = trunc i64 %218 to i32
%220 = srem i32 9, %219
%221 = icmp eq i32 %220, 0
br i1 %221, label %222, label %224
222: ; preds = %217
%223 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %224
224: ; preds = %222, %217
%225 = tail call i64 @sqrt(i32 9)
%226 = trunc i64 %225 to i32
%227 = srem i32 9, %226
%228 = icmp eq i32 %227, 0
br i1 %228, label %229, label %231
229: ; preds = %224
%230 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %231
231: ; preds = %229, %224
%232 = tail call i32 @putchar(i32 10)
ret void
}