#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);
scalar_t__ fpwr2(int);
scalar_t__ powf(int, int);
int main(int argc, char *argv[]) {
  assert(fpwr2(0) == powf(2, 0));
  assert(fpwr2(100) == powf(2, 100));
  assert(fpwr2(-100) == powf(2, -100));
  assert(fpwr2(10000) == powf(2, 10000));
  assert(fpwr2(-10000) == powf(2, -10000));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %edi,%edi
call   1050 <fpwr2@plt>
mov    %rax,-0x38(%rbp)
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <powf@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x64,%edi
call   1050 <fpwr2@plt>
mov    %rax,-0x30(%rbp)
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <powf@plt>
mov    %rax,%rcx
mov    -0x30(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0xffffff9c,%edi
call   1050 <fpwr2@plt>
mov    %rax,-0x28(%rbp)
mov    $0x2,%edi
mov    $0xffffff9c,%esi
call   1030 <powf@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0x2710,%edi
call   1050 <fpwr2@plt>
mov    %rax,-0x20(%rbp)
mov    $0x2,%edi
mov    $0x2710,%esi
call   1030 <powf@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    $0xffffd8f0,%edi
call   1050 <fpwr2@plt>
mov    %rax,-0x18(%rbp)
mov    $0x2,%edi
mov    $0xffffd8f0,%esi
call   1030 <powf@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edi,%edi
call   1050 <fpwr2@plt>
mov    %rax,%rbx
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <powf@plt>
xor    %edi,%edi
cmp    %rax,%rbx
sete   %dil
call   1040 <assert@plt>
mov    $0x64,%edi
call   1050 <fpwr2@plt>
mov    %rax,%rbx
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <powf@plt>
xor    %edi,%edi
cmp    %rax,%rbx
sete   %dil
call   1040 <assert@plt>
mov    $0xffffff9c,%edi
call   1050 <fpwr2@plt>
mov    %rax,%rbx
mov    $0x2,%edi
mov    $0xffffff9c,%esi
call   1030 <powf@plt>
xor    %edi,%edi
cmp    %rax,%rbx
sete   %dil
call   1040 <assert@plt>
mov    $0x2710,%edi
call   1050 <fpwr2@plt>
mov    %rax,%rbx
mov    $0x2,%edi
mov    $0x2710,%esi
call   1030 <powf@plt>
xor    %edi,%edi
cmp    %rax,%rbx
sete   %dil
call   1040 <assert@plt>
mov    $0xffffd8f0,%edi
call   1050 <fpwr2@plt>
mov    %rax,%rbx
mov    $0x2,%edi
mov    $0xffffd8f0,%esi
call   1030 <powf@plt>
xor    %edi,%edi
cmp    %rax,%rbx
sete   %dil
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i64 @fpwr2(i32 0)
%7 = call i64 @powf(i32 2, i32 0)
%8 = icmp eq i64 %6, %7
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = call i64 @fpwr2(i32 100)
%12 = call i64 @powf(i32 2, i32 100)
%13 = icmp eq i64 %11, %12
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 %14)
%16 = call i64 @fpwr2(i32 -100)
%17 = call i64 @powf(i32 2, i32 -100)
%18 = icmp eq i64 %16, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = call i64 @fpwr2(i32 10000)
%22 = call i64 @powf(i32 2, i32 10000)
%23 = icmp eq i64 %21, %22
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
%26 = call i64 @fpwr2(i32 -10000)
%27 = call i64 @powf(i32 2, i32 -10000)
%28 = icmp eq i64 %26, %27
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @fpwr2(i32 0)
%4 = tail call i64 @powf(i32 2, i32 0)
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = tail call i64 @fpwr2(i32 100)
%9 = tail call i64 @powf(i32 2, i32 100)
%10 = icmp eq i64 %8, %9
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i64 @fpwr2(i32 -100)
%14 = tail call i64 @powf(i32 2, i32 -100)
%15 = icmp eq i64 %13, %14
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16)
%18 = tail call i64 @fpwr2(i32 10000)
%19 = tail call i64 @powf(i32 2, i32 10000)
%20 = icmp eq i64 %18, %19
%21 = zext i1 %20 to i32
%22 = tail call i32 @assert(i32 %21)
%23 = tail call i64 @fpwr2(i32 -10000)
%24 = tail call i64 @powf(i32 2, i32 -10000)
%25 = icmp eq i64 %23, %24
%26 = zext i1 %25 to i32
%27 = tail call i32 @assert(i32 %26)
ret i32 0
}