#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 isValidSudoku(char **, int, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  char *b[9];
  b[0] = ".87654321";
  b[1] = "2........";
  b[2] = "3........";
  b[3] = "4........";
  b[4] = "5........";
  b[5] = "6........";
  b[6] = "7........";
  b[7] = "8........";
  b[8] = "9........";
  printf("%d\n", isValidSudoku(b, 9, 9));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xec9(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xec8(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xec7(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xec6(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xec5(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xec4(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xec3(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xec2(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x50(%rbp),%rdi
mov    $0x9,%edx
mov    %edx,%esi
call   1030 <isValidSudoku@plt>
mov    %eax,%esi
lea    0xeaf(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
lea    0xed5(%rip),%rax
mov    %rax,(%rsp)
lea    0xed4(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xed2(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xed0(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xece(%rip),%rax
mov    %rax,0x20(%rsp)
lea    0xecc(%rip),%rax
mov    %rax,0x28(%rsp)
lea    0xeca(%rip),%rax
mov    %rax,0x30(%rsp)
lea    0xec8(%rip),%rax
mov    %rax,0x38(%rsp)
lea    0xec6(%rip),%rax
mov    %rax,0x40(%rsp)
mov    %rsp,%rdi
mov    $0x9,%esi
mov    $0x9,%edx
call   1030 <isValidSudoku@plt>
lea    0xeb2(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@.str = [10 x i8] c".87654321\00"
@.str.1 = [10 x i8] c"2........\00"
@.str.2 = [10 x i8] c"3........\00"
@.str.3 = [10 x i8] c"4........\00"
@.str.4 = [10 x i8] c"5........\00"
@.str.5 = [10 x i8] c"6........\00"
@.str.6 = [10 x i8] c"7........\00"
@.str.7 = [10 x i8] c"8........\00"
@.str.8 = [10 x i8] c"9........\00"
@.str.9 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [9 x i8*]
store i32 0, i32* %1
%3 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 2
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 3
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 4
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 5
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 6
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 7
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 8
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 0
%13 = call i32 @isValidSudoku(i8** %12, i32 9, i32 9)
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c".87654321\00"
@.str.1 = [10 x i8] c"2........\00"
@.str.2 = [10 x i8] c"3........\00"
@.str.3 = [10 x i8] c"4........\00"
@.str.4 = [10 x i8] c"5........\00"
@.str.5 = [10 x i8] c"6........\00"
@.str.6 = [10 x i8] c"7........\00"
@.str.7 = [10 x i8] c"8........\00"
@.str.8 = [10 x i8] c"9........\00"
@.str.9 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [9 x i8*]
%2 = bitcast [9 x i8*]* %1 to i8*
%3 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 5
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 6
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 7
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 8
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %11
%12 = call i32 @isValidSudoku(i8** %3, i32 9, i32 9)
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %12)
ret i32 0
}