#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*/ assert(int);
int check_if_n_queens_be_placed_on_n_board(int);
int main() {
  assert(!check_if_n_queens_be_placed_on_n_board(0));
  assert(check_if_n_queens_be_placed_on_n_board(1));
  assert(check_if_n_queens_be_placed_on_n_board(2));
  assert(check_if_n_queens_be_placed_on_n_board(3));
  assert(check_if_n_queens_be_placed_on_n_board(4));
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x1,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    $0x2,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    $0x3,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    $0x4,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
mov    $0x1,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    $0x2,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    $0x3,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    $0x4,%edi
call   1030 <check_if_n_queens_be_placed_on_n_board@plt>
mov    %eax,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @check_if_n_queens_be_placed_on_n_board(i32 0)
%3 = icmp ne i32 %2, 0
%4 = xor i1 %3, true
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = call i32 @check_if_n_queens_be_placed_on_n_board(i32 1)
%8 = call i32 @assert(i32 %7)
%9 = call i32 @check_if_n_queens_be_placed_on_n_board(i32 2)
%10 = call i32 @assert(i32 %9)
%11 = call i32 @check_if_n_queens_be_placed_on_n_board(i32 3)
%12 = call i32 @assert(i32 %11)
%13 = call i32 @check_if_n_queens_be_placed_on_n_board(i32 4)
%14 = call i32 @assert(i32 %13)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @check_if_n_queens_be_placed_on_n_board(i32 0)
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @check_if_n_queens_be_placed_on_n_board(i32 1)
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 @check_if_n_queens_be_placed_on_n_board(i32 2)
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @check_if_n_queens_be_placed_on_n_board(i32 3)
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 @check_if_n_queens_be_placed_on_n_board(i32 4)
%12 = tail call i32 @assert(i32 %11)
ret i32 0
}