#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*/ display();
int /*<<< orphan*/ input();
int /*<<< orphan*/ intilization();
int /*<<< orphan*/ logic1();
int logic2();
int /*<<< orphan*/ printf(char *);
int status();
int main() {
  int chek;
  intilization();
  input();
  do {
    logic1();
    chek = logic2();
  } while ((status() != 1) && (chek == 1));
  printf("\n\nSudoku Solution is \n");
  display();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1090 <intilization@plt>
mov    $0x0,%al
call   1030 <input@plt>
mov    $0x0,%al
call   1080 <logic1@plt>
mov    $0x0,%al
call   1040 <logic2@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1070 <status@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%ecx
mov    %al,-0x9(%rbp)
je     11bf <main+0x4f>
cmpl   $0x1,-0x8(%rbp)
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    118d <main+0x1d>
lea    0xe2f(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1050 <display@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1090 <intilization@plt>
xor    %eax,%eax
call   1030 <input@plt>
nop
xor    %eax,%eax
call   1080 <logic1@plt>
xor    %eax,%eax
call   1050 <logic2@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1070 <status@plt>
cmp    $0x1,%eax
je     11a1 <main+0x31>
cmp    $0x1,%ebx
je     1180 <main+0x10>
lea    0xe58(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <display@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"\0A\0ASudoku Solution is \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @intilization()
%4 = call i32 (...) @input()
br label %5
5: ; preds = %14, %0
%6 = call i32 (...) @logic1()
%7 = call i32 (...) @logic2()
store i32 %7, i32* %2
br label %8
8: ; preds = %5
%9 = call i32 (...) @status()
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp eq i32 %12, 1
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %5, label %16
16: ; preds = %14
%17 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (...) @display()
ret i32 0
}

LLVM IR (-O2):
@str = [22 x i8] c"\0A\0ASudoku Solution is \00"
define i32 @main() {
%1 = tail call i32 (...) @intilization()
%2 = tail call i32 (...) @input()
br label %3
3: ; preds = %3, %0
%4 = tail call i32 (...) @logic1()
%5 = tail call i32 (...) @logic2()
%6 = tail call i32 (...) @status()
%7 = icmp ne i32 %6, 1
%8 = icmp eq i32 %5, 1
%9 = select i1 %7, i1 %8, i1 false
br i1 %9, label %3, label %10
10: ; preds = %3
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 (...) @display()
ret i32 0
}