#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__ is_prime(int);
unsigned int is_concjecture_find(int odd_number) {
  for (unsigned int i = 0; (2 * i * i) < odd_number; i++) {
    if (is_prime(odd_number - 2 * i * i)) {
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<is_concjecture_find>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
imul   -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1172 <is_concjecture_find+0x62>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
imul   -0xc(%rbp),%eax
sub    %eax,%edi
call   1030 <is_prime@plt>
cmp    $0x0,%rax
je     115f <is_concjecture_find+0x4f>
movl   $0x1,-0x4(%rbp)
jmp    1179 <is_concjecture_find+0x69>
jmp    1164 <is_concjecture_find+0x54>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1122 <is_concjecture_find+0x12>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_concjecture_find>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
test   %edi,%edi
je     114f <is_concjecture_find+0x3f>
mov    %edi,%r15d
xor    %eax,%eax
mov    $0x1,%r14d
mov    $0x2,%ebx
mov    $0x1,%ebp
mov    %r15d,%edi
sub    %eax,%edi
call   1030 <is_prime@plt>
test   %rax,%rax
jne    1152 <is_concjecture_find+0x42>
mov    %ebx,%eax
imul   %ebp,%eax
add    $0x1,%ebp
add    $0x2,%ebx
cmp    %r15d,%eax
jb     1130 <is_concjecture_find+0x20>
xor    %r14d,%r14d
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @is_concjecture_find(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 0, i32* %4
br label %5
5: ; preds = %23, %1
%6 = load i32, i32* %4
%7 = mul i32 2, %6
%8 = load i32, i32* %4
%9 = mul i32 %7, %8
%10 = load i32, i32* %3
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %5
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = mul i32 2, %14
%16 = load i32, i32* %4
%17 = mul i32 %15, %16
%18 = sub i32 %13, %17
%19 = call i64 @is_prime(i32 %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %12
store i32 1, i32* %2
br label %27
22: ; preds = %12
br label %23
23: ; preds = %22
%24 = load i32, i32* %4
%25 = add i32 %24, 1
store i32 %25, i32* %4
br label %5
26: ; preds = %5
store i32 0, i32* %2
br label %27
27: ; preds = %26, %21
%28 = load i32, i32* %2
ret i32 %28
}

LLVM IR (-O2):
define i32 @is_concjecture_find(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %14, label %7
3: ; preds = %7
%4 = shl i32 %13, 1
%5 = mul i32 %4, %13
%6 = icmp ult i32 %5, %0
br i1 %6, label %7, label %14
7: ; preds = %1, %3
%8 = phi i32 [ %5, %3 ], [ 0, %1 ]
%9 = phi i32 [ %13, %3 ], [ 0, %1 ]
%10 = sub i32 %0, %8
%11 = tail call i64 @is_prime(i32 %10)
%12 = icmp eq i64 %11, 0
%13 = add i32 %9, 1
br i1 %12, label %3, label %14
14: ; preds = %3, %7, %1
%15 = phi i32 [ 0, %1 ], [ 1, %7 ], [ 0, %3 ]
ret i32 %15
}