#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*/ solveSudoku(char **, int, int);
int main(int argc, char *argv[]) {
  char *sudo[9];
  char x[9][10] = {};
  int i;
  for (i = 0; i < 9; i++)
    sudo[i] = x[i];
  solveSudoku(sudo, 9, 9);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xc0(%rbp),%rdi
xor    %esi,%esi
mov    $0x5a,%edx
call   1030 <memset@plt>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x9,-0xc4(%rbp)
jge    1198 <main+0x78>
movslq -0xc4(%rbp),%rax
lea    -0xc0(%rbp),%rcx
imul   $0xa,%rax,%rax
add    %rax,%rcx
movslq -0xc4(%rbp),%rax
mov    %rcx,-0x60(%rbp,%rax,8)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1156 <main+0x36>
lea    -0x60(%rbp),%rdi
mov    $0x9,%edx
mov    %edx,%esi
call   1040 <solveSudoku@plt>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0xa8,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x4a(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    %rsp,%rax
mov    %rax,0x60(%rsp)
lea    0xa(%rsp),%rax
mov    %rax,0x68(%rsp)
lea    0x14(%rsp),%rax
mov    %rax,0x70(%rsp)
lea    0x1e(%rsp),%rax
mov    %rax,0x78(%rsp)
lea    0x28(%rsp),%rax
mov    %rax,0x80(%rsp)
lea    0x32(%rsp),%rax
mov    %rax,0x88(%rsp)
lea    0x3c(%rsp),%rax
mov    %rax,0x90(%rsp)
lea    0x46(%rsp),%rax
mov    %rax,0x98(%rsp)
lea    0x50(%rsp),%rax
mov    %rax,0xa0(%rsp)
lea    0x60(%rsp),%rdi
mov    $0x9,%esi
mov    $0x9,%edx
call   1030 <solveSudoku@plt>
xor    %eax,%eax
add    $0xa8,%rsp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [9 x i8*]
%7 = alloca [9 x [10 x i8]]
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [9 x [10 x i8]]* %7 to i8*
store i32 0, i32* %8
br label %10
10: ; preds = %21, %2
%11 = load i32, i32* %8
%12 = icmp slt i32 %11, 9
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load i32, i32* %8
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %7, i64 0, i64 %15
%17 = getelementptr inbounds [10 x i8], [10 x i8]* %16, i64 0, i64 0
%18 = load i32, i32* %8
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [9 x i8*], [9 x i8*]* %6, i64 0, i64 %19
store i8* %17, i8** %20
br label %21
21: ; preds = %13
%22 = load i32, i32* %8
%23 = add nsw i32 %22, 1
store i32 %23, i32* %8
br label %10
24: ; preds = %10
%25 = getelementptr inbounds [9 x i8*], [9 x i8*]* %6, i64 0, i64 0
%26 = call i32 @solveSudoku(i8** %25, i32 9, i32 9)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [9 x i8*]
%4 = alloca [9 x [10 x i8]]
%5 = bitcast [9 x i8*]* %3 to i8*
%6 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 0, i64 0
%7 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 0
store i8* %6, i8** %7
%8 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 1, i64 0
%9 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 1
store i8* %8, i8** %9
%10 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 2, i64 0
%11 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 2
store i8* %10, i8** %11
%12 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 3, i64 0
%13 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 3
store i8* %12, i8** %13
%14 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 4, i64 0
%15 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 4
store i8* %14, i8** %15
%16 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 5, i64 0
%17 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 5
store i8* %16, i8** %17
%18 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 6, i64 0
%19 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 6
store i8* %18, i8** %19
%20 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 7, i64 0
%21 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 7
store i8* %20, i8** %21
%22 = getelementptr inbounds [9 x [10 x i8]], [9 x [10 x i8]]* %4, i64 0, i64 8, i64 0
%23 = getelementptr inbounds [9 x i8*], [9 x i8*]* %3, i64 0, i64 8
store i8* %22, i8** %23
%24 = call i32 @solveSudoku(i8** %7, i32 9, i32 9)
ret i32 0
}