#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 */
scalar_t__ candidates(int *, int);
char *test_twoPossibleCandidates() {
  static int grid[81] = {1, 2, 3, 0, 5, 0, 7, 8, 9, 0, 0, 0, 1, 2, 3, 0, 0,
                         0, 0, 0, 0, 7, 8, 9, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0,
                         0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0,
                         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0,
                         0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0};
  do {
    if (!(candidates(grid, 3) == 0))
      return "e: test_twoPossibleCandidates";
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<test_twoPossibleCandidates>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0x2f11(%rip),%rdi
mov    $0x3,%esi
call   1030 <candidates@plt>
cmp    $0x0,%rax
je     1143 <test_twoPossibleCandidates+0x33>
lea    0xec6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1150 <test_twoPossibleCandidates+0x40>
jmp    1148 <test_twoPossibleCandidates+0x38>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_twoPossibleCandidates>:
push   %rax
lea    0x2f18(%rip),%rdi
mov    $0x3,%esi
call   1030 <candidates@plt>
test   %rax,%rax
lea    0xed4(%rip),%rcx
cmovne %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
@test_twoPossibleCandidates.grid = internal global [81 x i32] [i32 1, i32 2, i32 3, i32 0, i32 5, i32 0, i32 7, i32 8, i32 9, i32 0, i32 0, i32 0, i32 1, i32 2, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 7, i32 8, i32 9, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 5, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 9, i32 0, i32 0, i32 0, i32 0, i32 0]
@.str = [30 x i8] c"e: test_twoPossibleCandidates\00"
define i8* @test_twoPossibleCandidates() {
%1 = alloca i8*
br label %2
2: ; preds = %0
%3 = call i64 @candidates(i32* getelementptr inbounds ([81 x i32], [81 x i32]* @test_twoPossibleCandidates.grid, i64 0, i64 0), i32 3)
%4 = icmp eq i64 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %2
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8** %1
br label %8
6: ; preds = %2
br label %7
7: ; preds = %6
store i8* null, i8** %1
br label %8
8: ; preds = %7, %5
%9 = load i8*, i8** %1
ret i8* %9
}

LLVM IR (-O2):
@test_twoPossibleCandidates.grid = internal global [81 x i32] [i32 1, i32 2, i32 3, i32 0, i32 5, i32 0, i32 7, i32 8, i32 9, i32 0, i32 0, i32 0, i32 1, i32 2, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 7, i32 8, i32 9, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 5, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 9, i32 0, i32 0, i32 0, i32 0, i32 0]
@.str = [30 x i8] c"e: test_twoPossibleCandidates\00"
define i8* @test_twoPossibleCandidates() {
%1 = tail call i64 @candidates(i32* getelementptr inbounds ([81 x i32], [81 x i32]* @test_twoPossibleCandidates.grid, i64 0, i64 0), i32 3)
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* null, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0)
ret i8* %3
}