#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*/ flipDiag();
int /*<<< orphan*/ flipHorz();
int /*<<< orphan*/ flipVert();
int /*<<< orphan*/ printSudoku(double);
int rand();
int /*<<< orphan*/ replace(int, int);
int /*<<< orphan*/ rotate90ccw();
int /*<<< orphan*/ rotate90cw();
int /*<<< orphan*/ swapBigCol(int, int);
int /*<<< orphan*/ swapBigRow(int, int);
int /*<<< orphan*/ swapLittleCol(int, int);
int /*<<< orphan*/ swapLittleRow(int, int);
void generate(void) {
  int fn, i, blockChoice;
  for (i = 0; i < 10; i++) {
    fn = rand() % 10;
    blockChoice = rand() % 3;
    switch (fn) {
    case 0:
      switch (blockChoice) {
      case 0:
        swapLittleRow(rand() % 3, rand() % 3);
        break;
      case 1:
        swapLittleRow((rand() % 3) + 3, (rand() % 3) + 3);
        break;
      case 2:
        swapLittleRow((rand() % 3) + 6, (rand() % 3) + 6);
        break;
      }
      break;
    case 1:
      swapBigRow((rand() % 3), (rand() % 3));
      break;
    case 2:
      switch (blockChoice) {
      case 0:
        swapLittleCol((rand() % 3), (rand() % 3));
        break;
      case 1:
        swapLittleCol((rand() % 3) + 3, (rand() % 3) + 3);
        break;
      case 2:
        swapLittleCol((rand() % 3) + 6, (rand() % 3) + 6);
        break;
      }
      break;
    case 3:
      swapBigCol((rand() % 3), (rand() % 3));
      break;
    case 4:
      flipVert();
      break;
    case 5:
      flipHorz();
      break;
    case 6:
      flipDiag();
      break;
    case 7:
      rotate90cw();
      break;
    case 8:
      rotate90ccw();
      break;
    case 9:
      replace((rand() % 9) + 1, (rand() % 9) + 1);
      break;
    }
  }
  printSudoku(0.66);
}


x86 assembly (clang, -O0):
<generate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    14db <generate+0x31b>
xor    %eax,%eax
mov    %al,-0x19(%rbp)
call   10e0 <rand@plt>
mov    %eax,%ecx
mov    -0x19(%rbp),%al
movslq %ecx,%rdx
imul   $0x66666667,%rdx,%rsi
mov    %rsi,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rsi
sar    $0x2,%esi
add    %edx,%esi
add    %esi,%esi
mov    %esi,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%ecx
mov    %ecx,-0x4(%rbp)
call   10e0 <rand@plt>
movslq %eax,%rcx
imul   $0x55555556,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rdx
add    %ecx,%edx
mov    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x18(%rbp)
sub    $0x9,%rax
ja     14c8 <generate+0x308>
mov    -0x18(%rbp),%rax
lea    0xdb8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
test   %eax,%eax
je     128e <generate+0xce>
jmp    126c <generate+0xac>
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
je     12be <generate+0xfe>
jmp    127d <generate+0xbd>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
je     12f4 <generate+0x134>
jmp    1325 <generate+0x165>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x24(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x24(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
call   1060 <swapLittleRow@plt>
jmp    1325 <generate+0x165>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
add    $0x3,%edx
mov    %edx,-0x28(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x28(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x3,%esi
call   1060 <swapLittleRow@plt>
jmp    1325 <generate+0x165>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
add    $0x6,%edx
mov    %edx,-0x2c(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x2c(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x6,%esi
call   1060 <swapLittleRow@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x30(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x30(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
call   1030 <swapBigRow@plt>
jmp    14c8 <generate+0x308>
mov    -0xc(%rbp),%eax
mov    %eax,-0x34(%rbp)
test   %eax,%eax
je     138f <generate+0x1cf>
jmp    136d <generate+0x1ad>
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
je     13bf <generate+0x1ff>
jmp    137e <generate+0x1be>
mov    -0x34(%rbp),%eax
sub    $0x2,%eax
je     13f5 <generate+0x235>
jmp    1426 <generate+0x266>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x38(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x38(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
call   1070 <swapLittleCol@plt>
jmp    1426 <generate+0x266>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
add    $0x3,%edx
mov    %edx,-0x3c(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x3c(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x3,%esi
call   1070 <swapLittleCol@plt>
jmp    1426 <generate+0x266>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
add    $0x6,%edx
mov    %edx,-0x40(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x40(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x6,%esi
call   1070 <swapLittleCol@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0x44(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x44(%rbp),%edi
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
call   1090 <swapBigCol@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   1040 <flipVert@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   1080 <flipHorz@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   10a0 <flipDiag@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   10d0 <rotate90cw@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   10b0 <rotate90ccw@plt>
jmp    14c8 <generate+0x308>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    $0x9,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x48(%rbp)
mov    $0x0,%al
call   10e0 <rand@plt>
mov    -0x48(%rbp),%edi
mov    $0x9,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x1,%esi
call   10c0 <replace@plt>
jmp    14cd <generate+0x30d>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11cf <generate+0xf>
movsd  0xb1d(%rip),%xmm0
call   1050 <printSudoku@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generate>:
push   %rbp
push   %r14
push   %rbx
mov    $0xa,%ebp
lea    0xe38(%rip),%r14
jmp    1239 <generate+0x79>
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x38e38e39,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,8),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x1,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x38e38e39,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,8),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %ebx,%edi
call   10c0 <replace@plt>
nopl   0x0(%rax)
add    $0xffffffff,%ebp
je     15a1 <generate+0x3e1>
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rbx
imul   $0x66666667,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
sar    $0x2,%eax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
cmp    $0x9,%ebx
ja     1230 <generate+0x70>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
sub    %ecx,%eax
movslq (%r14,%rbx,4),%rcx
add    %r14,%rcx
jmp    *%rcx
cmp    $0x2,%eax
je     1445 <generate+0x285>
cmp    $0x1,%eax
je     1497 <generate+0x2d7>
test   %eax,%eax
jne    1230 <generate+0x70>
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rbx
imul   $0x55555556,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rsi
imul   $0x55555556,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%esi
mov    %ebx,%edi
call   1060 <swapLittleRow@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rbx
imul   $0x55555556,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rsi
imul   $0x55555556,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%esi
mov    %ebx,%edi
call   1030 <swapBigRow@plt>
jmp    1230 <generate+0x70>
cmp    $0x2,%eax
je     14f3 <generate+0x333>
cmp    $0x1,%eax
je     1545 <generate+0x385>
test   %eax,%eax
jne    1230 <generate+0x70>
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rbx
imul   $0x55555556,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rsi
imul   $0x55555556,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%esi
mov    %ebx,%edi
call   1070 <swapLittleCol@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rbx
imul   $0x55555556,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
movslq %eax,%rsi
imul   $0x55555556,%rsi,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%esi
mov    %ebx,%edi
call   1090 <swapBigCol@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   1040 <flipVert@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10d0 <rotate90cw@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   1080 <flipHorz@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10a0 <flipDiag@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10b0 <rotate90ccw@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x6,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x6,%esi
jmp    14e7 <generate+0x327>
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x3,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x3,%esi
mov    %ebx,%edi
call   1060 <swapLittleRow@plt>
jmp    1230 <generate+0x70>
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x6,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x6,%esi
jmp    1595 <generate+0x3d5>
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x3,%ebx
xor    %eax,%eax
call   10e0 <rand@plt>
cltq
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x3,%esi
mov    %ebx,%edi
call   1070 <swapLittleCol@plt>
jmp    1230 <generate+0x70>
movsd  0xa57(%rip),%xmm0
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <printSudoku@plt>

LLVM IR (-O0):
define void @generate() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %2
br label %4
4: ; preds = %94, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %97
7: ; preds = %4
%8 = call i32 (...) @rand()
%9 = srem i32 %8, 10
store i32 %9, i32* %1
%10 = call i32 (...) @rand()
%11 = srem i32 %10, 3
store i32 %11, i32* %3
%12 = load i32, i32* %1
switch i32 %12, label %93 [
i32 0, label %13
i32 1, label %38
i32 2, label %44
i32 3, label %69
i32 4, label %75
i32 5, label %77
i32 6, label %79
i32 7, label %81
i32 8, label %83
i32 9, label %85
]
13: ; preds = %7
%14 = load i32, i32* %3
switch i32 %14, label %37 [
i32 0, label %15
i32 1, label %21
i32 2, label %29
]
15: ; preds = %13
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 3
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 3
%20 = call i32 @swapLittleRow(i32 %17, i32 %19)
br label %37
21: ; preds = %13
%22 = call i32 (...) @rand()
%23 = srem i32 %22, 3
%24 = add nsw i32 %23, 3
%25 = call i32 (...) @rand()
%26 = srem i32 %25, 3
%27 = add nsw i32 %26, 3
%28 = call i32 @swapLittleRow(i32 %24, i32 %27)
br label %37
29: ; preds = %13
%30 = call i32 (...) @rand()
%31 = srem i32 %30, 3
%32 = add nsw i32 %31, 6
%33 = call i32 (...) @rand()
%34 = srem i32 %33, 3
%35 = add nsw i32 %34, 6
%36 = call i32 @swapLittleRow(i32 %32, i32 %35)
br label %37
37: ; preds = %13, %29, %21, %15
br label %93
38: ; preds = %7
%39 = call i32 (...) @rand()
%40 = srem i32 %39, 3
%41 = call i32 (...) @rand()
%42 = srem i32 %41, 3
%43 = call i32 @swapBigRow(i32 %40, i32 %42)
br label %93
44: ; preds = %7
%45 = load i32, i32* %3
switch i32 %45, label %68 [
i32 0, label %46
i32 1, label %52
i32 2, label %60
]
46: ; preds = %44
%47 = call i32 (...) @rand()
%48 = srem i32 %47, 3
%49 = call i32 (...) @rand()
%50 = srem i32 %49, 3
%51 = call i32 @swapLittleCol(i32 %48, i32 %50)
br label %68
52: ; preds = %44
%53 = call i32 (...) @rand()
%54 = srem i32 %53, 3
%55 = add nsw i32 %54, 3
%56 = call i32 (...) @rand()
%57 = srem i32 %56, 3
%58 = add nsw i32 %57, 3
%59 = call i32 @swapLittleCol(i32 %55, i32 %58)
br label %68
60: ; preds = %44
%61 = call i32 (...) @rand()
%62 = srem i32 %61, 3
%63 = add nsw i32 %62, 6
%64 = call i32 (...) @rand()
%65 = srem i32 %64, 3
%66 = add nsw i32 %65, 6
%67 = call i32 @swapLittleCol(i32 %63, i32 %66)
br label %68
68: ; preds = %44, %60, %52, %46
br label %93
69: ; preds = %7
%70 = call i32 (...) @rand()
%71 = srem i32 %70, 3
%72 = call i32 (...) @rand()
%73 = srem i32 %72, 3
%74 = call i32 @swapBigCol(i32 %71, i32 %73)
br label %93
75: ; preds = %7
%76 = call i32 (...) @flipVert()
br label %93
77: ; preds = %7
%78 = call i32 (...) @flipHorz()
br label %93
79: ; preds = %7
%80 = call i32 (...) @flipDiag()
br label %93
81: ; preds = %7
%82 = call i32 (...) @rotate90cw()
br label %93
83: ; preds = %7
%84 = call i32 (...) @rotate90ccw()
br label %93
85: ; preds = %7
%86 = call i32 (...) @rand()
%87 = srem i32 %86, 9
%88 = add nsw i32 %87, 1
%89 = call i32 (...) @rand()
%90 = srem i32 %89, 9
%91 = add nsw i32 %90, 1
%92 = call i32 @replace(i32 %88, i32 %91)
br label %93
93: ; preds = %7, %85, %83, %81, %79, %77, %75, %69, %68, %38, %37
br label %94
94: ; preds = %93
%95 = load i32, i32* %2
%96 = add nsw i32 %95, 1
store i32 %96, i32* %2
br label %4
97: ; preds = %4
%98 = call i32 @printSudoku(double 6.600000e-01)
ret void
}

LLVM IR (-O2):
define void @generate() {
br label %1
1: ; preds = %0, %83
%2 = phi i32 [ 0, %0 ], [ %84, %83 ]
%3 = tail call i32 (...) @rand()
%4 = srem i32 %3, 10
%5 = tail call i32 (...) @rand()
%6 = srem i32 %5, 3
switch i32 %4, label %83 [
i32 0, label %7
i32 1, label %30
i32 2, label %36
i32 3, label %59
i32 4, label %65
i32 5, label %67
i32 6, label %69
i32 7, label %71
i32 8, label %73
i32 9, label %75
]
7: ; preds = %1
switch i32 %6, label %83 [
i32 0, label %8
i32 1, label %14
i32 2, label %22
]
8: ; preds = %7
%9 = tail call i32 (...) @rand()
%10 = srem i32 %9, 3
%11 = tail call i32 (...) @rand()
%12 = srem i32 %11, 3
%13 = tail call i32 @swapLittleRow(i32 %10, i32 %12)
br label %83
14: ; preds = %7
%15 = tail call i32 (...) @rand()
%16 = srem i32 %15, 3
%17 = add nsw i32 %16, 3
%18 = tail call i32 (...) @rand()
%19 = srem i32 %18, 3
%20 = add nsw i32 %19, 3
%21 = tail call i32 @swapLittleRow(i32 %17, i32 %20)
br label %83
22: ; preds = %7
%23 = tail call i32 (...) @rand()
%24 = srem i32 %23, 3
%25 = add nsw i32 %24, 6
%26 = tail call i32 (...) @rand()
%27 = srem i32 %26, 3
%28 = add nsw i32 %27, 6
%29 = tail call i32 @swapLittleRow(i32 %25, i32 %28)
br label %83
30: ; preds = %1
%31 = tail call i32 (...) @rand()
%32 = srem i32 %31, 3
%33 = tail call i32 (...) @rand()
%34 = srem i32 %33, 3
%35 = tail call i32 @swapBigRow(i32 %32, i32 %34)
br label %83
36: ; preds = %1
switch i32 %6, label %83 [
i32 0, label %37
i32 1, label %43
i32 2, label %51
]
37: ; preds = %36
%38 = tail call i32 (...) @rand()
%39 = srem i32 %38, 3
%40 = tail call i32 (...) @rand()
%41 = srem i32 %40, 3
%42 = tail call i32 @swapLittleCol(i32 %39, i32 %41)
br label %83
43: ; preds = %36
%44 = tail call i32 (...) @rand()
%45 = srem i32 %44, 3
%46 = add nsw i32 %45, 3
%47 = tail call i32 (...) @rand()
%48 = srem i32 %47, 3
%49 = add nsw i32 %48, 3
%50 = tail call i32 @swapLittleCol(i32 %46, i32 %49)
br label %83
51: ; preds = %36
%52 = tail call i32 (...) @rand()
%53 = srem i32 %52, 3
%54 = add nsw i32 %53, 6
%55 = tail call i32 (...) @rand()
%56 = srem i32 %55, 3
%57 = add nsw i32 %56, 6
%58 = tail call i32 @swapLittleCol(i32 %54, i32 %57)
br label %83
59: ; preds = %1
%60 = tail call i32 (...) @rand()
%61 = srem i32 %60, 3
%62 = tail call i32 (...) @rand()
%63 = srem i32 %62, 3
%64 = tail call i32 @swapBigCol(i32 %61, i32 %63)
br label %83
65: ; preds = %1
%66 = tail call i32 (...) @flipVert()
br label %83
67: ; preds = %1
%68 = tail call i32 (...) @flipHorz()
br label %83
69: ; preds = %1
%70 = tail call i32 (...) @flipDiag()
br label %83
71: ; preds = %1
%72 = tail call i32 (...) @rotate90cw()
br label %83
73: ; preds = %1
%74 = tail call i32 (...) @rotate90ccw()
br label %83
75: ; preds = %1
%76 = tail call i32 (...) @rand()
%77 = srem i32 %76, 9
%78 = add nsw i32 %77, 1
%79 = tail call i32 (...) @rand()
%80 = srem i32 %79, 9
%81 = add nsw i32 %80, 1
%82 = tail call i32 @replace(i32 %78, i32 %81)
br label %83
83: ; preds = %30, %59, %65, %67, %69, %71, %73, %75, %1, %7, %22, %14, %8, %36, %51, %43, %37
%84 = add nuw nsw i32 %2, 1
%85 = icmp eq i32 %84, 10
br i1 %85, label %86, label %1
86: ; preds = %83
%87 = tail call i32 @printSudoku(double 6.600000e-01)
ret void
}