#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*/ power_of_ten(int);
int test_negative() {
  return !power_of_ten(0) && !power_of_ten(2) && !power_of_ten(15) &&
         !power_of_ten(-1) && !power_of_ten(-10) && !power_of_ten(1234) &&
         !power_of_ten(1010);
}


x86 assembly (clang, -O0):
<test_negative>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
call   1030 <power_of_ten@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1(%rbp)
jne    11c6 <test_negative+0xb6>
mov    $0x2,%edi
call   1030 <power_of_ten@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1(%rbp)
jne    11c6 <test_negative+0xb6>
mov    $0xf,%edi
call   1030 <power_of_ten@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1(%rbp)
jne    11c6 <test_negative+0xb6>
mov    $0xffffffff,%edi
call   1030 <power_of_ten@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1(%rbp)
jne    11c6 <test_negative+0xb6>
mov    $0xfffffff6,%edi
call   1030 <power_of_ten@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1(%rbp)
jne    11c6 <test_negative+0xb6>
mov    $0x4d2,%edi
call   1030 <power_of_ten@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1(%rbp)
jne    11c6 <test_negative+0xb6>
mov    $0x3f2,%edi
call   1030 <power_of_ten@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_negative>:
push   %rbx
xor    %ebx,%ebx
xor    %edi,%edi
call   1030 <power_of_ten@plt>
test   %eax,%eax
jne    1175 <test_negative+0x65>
mov    $0x2,%edi
call   1030 <power_of_ten@plt>
test   %eax,%eax
jne    1175 <test_negative+0x65>
mov    $0xf,%edi
call   1030 <power_of_ten@plt>
test   %eax,%eax
jne    1175 <test_negative+0x65>
mov    $0xffffffff,%edi
call   1030 <power_of_ten@plt>
test   %eax,%eax
jne    1175 <test_negative+0x65>
mov    $0xfffffff6,%edi
call   1030 <power_of_ten@plt>
test   %eax,%eax
jne    1175 <test_negative+0x65>
mov    $0x4d2,%edi
call   1030 <power_of_ten@plt>
test   %eax,%eax
jne    1175 <test_negative+0x65>
mov    $0x3f2,%edi
call   1030 <power_of_ten@plt>
xor    %ebx,%ebx
test   %eax,%eax
sete   %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @test_negative() {
%1 = call i32 @power_of_ten(i32 0)
%2 = icmp ne i32 %1, 0
br i1 %2, label %22, label %3
3: ; preds = %0
%4 = call i32 @power_of_ten(i32 2)
%5 = icmp ne i32 %4, 0
br i1 %5, label %22, label %6
6: ; preds = %3
%7 = call i32 @power_of_ten(i32 15)
%8 = icmp ne i32 %7, 0
br i1 %8, label %22, label %9
9: ; preds = %6
%10 = call i32 @power_of_ten(i32 -1)
%11 = icmp ne i32 %10, 0
br i1 %11, label %22, label %12
12: ; preds = %9
%13 = call i32 @power_of_ten(i32 -10)
%14 = icmp ne i32 %13, 0
br i1 %14, label %22, label %15
15: ; preds = %12
%16 = call i32 @power_of_ten(i32 1234)
%17 = icmp ne i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %15
%19 = call i32 @power_of_ten(i32 1010)
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br label %22
22: ; preds = %18, %15, %12, %9, %6, %3, %0
%23 = phi i1 [ false, %15 ], [ false, %12 ], [ false, %9 ], [ false, %6 ], [ false, %3 ], [ false, %0 ], [ %21, %18 ]
%24 = zext i1 %23 to i32
ret i32 %24
}

LLVM IR (-O2):
define i32 @test_negative() {
%1 = tail call i32 @power_of_ten(i32 0)
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %22
3: ; preds = %0
%4 = tail call i32 @power_of_ten(i32 2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %22
6: ; preds = %3
%7 = tail call i32 @power_of_ten(i32 15)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = tail call i32 @power_of_ten(i32 -1)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = tail call i32 @power_of_ten(i32 -10)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %12
%16 = tail call i32 @power_of_ten(i32 1234)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = tail call i32 @power_of_ten(i32 1010)
%20 = icmp eq i32 %19, 0
%21 = zext i1 %20 to i32
br label %22
22: ; preds = %18, %15, %12, %9, %6, %3, %0
%23 = phi i32 [ 0, %15 ], [ 0, %12 ], [ 0, %9 ], [ 0, %6 ], [ 0, %3 ], [ 0, %0 ], [ %21, %18 ]
ret i32 %23
}