#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*/ printSudoku(int **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sudokuUtility(int **);
void main() {
  int grid[9][9] = {0};
  printSudoku(grid);
  printf("\nLoading ...\n");
  if (!sudokuUtility(grid))
    printf("\nSolution doesn't exist\n");
  printf("\nThe solution exists :: \n");
  printSudoku(grid);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
lea    -0x150(%rbp),%rdi
xor    %esi,%esi
mov    $0x144,%edx
call   1040 <memset@plt>
lea    -0x150(%rbp),%rdi
call   1050 <printSudoku@plt>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
lea    -0x150(%rbp),%rdi
call   1060 <sudokuUtility@plt>
cmp    $0x0,%eax
jne    1197 <main+0x57>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
lea    -0x150(%rbp),%rdi
call   1050 <printSudoku@plt>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x150,%rsp
mov    %rsp,%rbx
mov    $0x144,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    %rbx,%rdi
call   1050 <printSudoku@plt>
lea    0xe97(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1060 <sudokuUtility@plt>
test   %eax,%eax
jne    1186 <main+0x46>
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rdi
call   1050 <printSudoku@plt>
add    $0x150,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"\0ALoading ...\0A\00"
@.str.1 = [25 x i8] c"\0ASolution doesn't exist\0A\00"
@.str.2 = [26 x i8] c"\0AThe solution exists :: \0A\00"
define void @main() {
%1 = alloca [9 x [9 x i32]]
%2 = bitcast [9 x [9 x i32]]* %1 to i8*
%3 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %1, i64 0, i64 0
%4 = bitcast [9 x i32]* %3 to i32**
%5 = call i32 @printSudoku(i32** %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %1, i64 0, i64 0
%8 = bitcast [9 x i32]* %7 to i32**
%9 = call i32 @sudokuUtility(i32** %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %0
%14 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%15 = getelementptr inbounds [9 x [9 x i32]], [9 x [9 x i32]]* %1, i64 0, i64 0
%16 = bitcast [9 x i32]* %15 to i32**
%17 = call i32 @printSudoku(i32** %16)
ret void
}

LLVM IR (-O2):
@str = [13 x i8] c"\0ALoading ...\00"
@str.3 = [24 x i8] c"\0ASolution doesn't exist\00"
@str.4 = [25 x i8] c"\0AThe solution exists :: \00"
define void @main() {
%1 = alloca [9 x [9 x i32]]
%2 = bitcast [9 x [9 x i32]]* %1 to i8*
%3 = bitcast [9 x [9 x i32]]* %1 to i32**
%4 = call i32 @printSudoku(i32** %3)
%5 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%6 = call i32 @sudokuUtility(i32** %3)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.3, i64 0, i64 0))
br label %10
10: ; preds = %8, %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.4, i64 0, i64 0))
%12 = call i32 @printSudoku(i32** %3)
ret void
}