#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*/ bitPrint(int, int);
int /*<<< orphan*/ bitPrintf(float *, int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int num2;
  int num;
  float x;
  int u;
  u = sizeof(int);
  printf("Size of int is: %d bytes\n", u);
  u = sizeof(float);
  printf("Size of float is: %d bytes\n", u);
  u = sizeof(unsigned long long);
  printf("Size of unsigned long long is: %d bytes\n", u);
  u = sizeof(unsigned int);
  printf("Size of unsigned int is: %d bytes\n", u);
  u = sizeof(long int);
  printf("Size of long int is: %d bytes\n\n", u);
  x = 8.0;
  printf("\nfloat x = %f\n", x);
  bitPrintf(&x, 32);
  x = .15625;
  printf("\nfloat x = %f\n", x);
  bitPrintf(&x, 32);
  x = 5.1;
  printf("\nfloat x = %f\n", x);
  bitPrintf(&x, 32);
  num = 0x7fffffff;
  num2 = num + 1;
  printf("\n\nnum = __INT_MAX__: %d\n", num);
  bitPrint(num, 32);
  printf("\nnum2 = num+1: %d \n", num2);
  bitPrint(num2, 32);
  printf("\n ");
  printf("\nnum + num2: %d \n", num + num2);
  num2 = -0x7fffffff;
  printf("\nnum2=-_INT_MAX: %d \n", num2);
  bitPrint(num2, 32);
  printf("\n ");
  num2 = 3;
  printf("\nint=3: %d \n", num2);
  bitPrint(num2, 32);
  num2 = -3;
  printf("\nint=-3: %d \n", num2);
  bitPrint(num2, 32);
  printf("\n ");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x4,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x8,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  0xe50(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xee1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    -0xc(%rbp),%rdi
mov    $0x20,%esi
call   1050 <bitPrintf@plt>
movss  0xe1a(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeaf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    -0xc(%rbp),%rdi
mov    $0x20,%esi
call   1050 <bitPrintf@plt>
movss  0xde4(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe7d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    -0xc(%rbp),%rdi
mov    $0x20,%esi
call   1050 <bitPrintf@plt>
movl   $0x7fffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
mov    -0x4(%rbp),%esi
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
add    -0x4(%rbp),%esi
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x80000001,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x3,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
movl   $0xfffffffd,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xedd(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x41000000,0x4(%rsp)
41
lea    0xf18(%rip),%r14
movsd  0xe56(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x4(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x20,%esi
call   1050 <bitPrintf@plt>
movl   $0x3e200000,0x4(%rsp)
3e
movsd  0xe32(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
call   1050 <bitPrintf@plt>
movl   $0x40a33333,0x4(%rsp)
40
movsd  0xe13(%rip),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
call   1050 <bitPrintf@plt>
lea    0xeae(%rip),%rdi
mov    $0x7fffffff,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x7fffffff,%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
lea    0xea5(%rip),%rdi
mov    $0x80000000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x80000000,%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
lea    0xe97(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe89(%rip),%rdi
mov    $0xffffffff,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe88(%rip),%rdi
mov    $0x80000001,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x80000001,%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe72(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x3,%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
lea    0xe5d(%rip),%rdi
mov    $0xfffffffd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xfffffffd,%edi
mov    $0x20,%esi
call   1030 <bitPrint@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Size of int is: %d bytes\0A\00"
@.str.1 = [28 x i8] c"Size of float is: %d bytes\0A\00"
@.str.2 = [41 x i8] c"Size of unsigned long long is: %d bytes\0A\00"
@.str.3 = [35 x i8] c"Size of unsigned int is: %d bytes\0A\00"
@.str.4 = [32 x i8] c"Size of long int is: %d bytes\0A\0A\00"
@.str.5 = [15 x i8] c"\0Afloat x = %f\0A\00"
@.str.6 = [25 x i8] c"\0A\0Anum = __INT_MAX__: %d\0A\00"
@.str.7 = [20 x i8] c"\0Anum2 = num+1: %d \0A\00"
@.str.8 = [3 x i8] c"\0A \00"
@.str.9 = [18 x i8] c"\0Anum + num2: %d \0A\00"
@.str.10 = [22 x i8] c"\0Anum2=-_INT_MAX: %d \0A\00"
@.str.11 = [13 x i8] c"\0Aint=3: %d \0A\00"
@.str.12 = [14 x i8] c"\0Aint=-3: %d \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i32
store i32 4, i32* %4
%5 = load i32, i32* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %5)
store i32 4, i32* %4
%7 = load i32, i32* %4
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %7)
store i32 8, i32* %4
%9 = load i32, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 %9)
store i32 4, i32* %4
%11 = load i32, i32* %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %11)
store i32 8, i32* %4
%13 = load i32, i32* %4
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %13)
store float 8.000000e+00, float* %3
%15 = load float, float* %3
%16 = fpext float %15 to double
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double %16)
%18 = call i32 @bitPrintf(float* %3, i32 32)
store float 1.562500e-01, float* %3
%19 = load float, float* %3
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double %20)
%22 = call i32 @bitPrintf(float* %3, i32 32)
store float 0x4014666660000000, float* %3
%23 = load float, float* %3
%24 = fpext float %23 to double
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double %24)
%26 = call i32 @bitPrintf(float* %3, i32 32)
store i32 2147483647, i32* %2
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %1
%29 = load i32, i32* %2
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 %29)
%31 = load i32, i32* %2
%32 = call i32 @bitPrint(i32 %31, i32 32)
%33 = load i32, i32* %1
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %1
%36 = call i32 @bitPrint(i32 %35, i32 32)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%38 = load i32, i32* %2
%39 = load i32, i32* %1
%40 = add nsw i32 %38, %39
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %40)
store i32 -2147483647, i32* %1
%42 = load i32, i32* %1
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %1
%45 = call i32 @bitPrint(i32 %44, i32 32)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
store i32 3, i32* %1
%47 = load i32, i32* %1
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %47)
%49 = load i32, i32* %1
%50 = call i32 @bitPrint(i32 %49, i32 32)
store i32 -3, i32* %1
%51 = load i32, i32* %1
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %51)
%53 = load i32, i32* %1
%54 = call i32 @bitPrint(i32 %53, i32 32)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"Size of int is: %d bytes\0A\00"
@.str.1 = [28 x i8] c"Size of float is: %d bytes\0A\00"
@.str.2 = [41 x i8] c"Size of unsigned long long is: %d bytes\0A\00"
@.str.3 = [35 x i8] c"Size of unsigned int is: %d bytes\0A\00"
@.str.4 = [32 x i8] c"Size of long int is: %d bytes\0A\0A\00"
@.str.5 = [15 x i8] c"\0Afloat x = %f\0A\00"
@.str.6 = [25 x i8] c"\0A\0Anum = __INT_MAX__: %d\0A\00"
@.str.7 = [20 x i8] c"\0Anum2 = num+1: %d \0A\00"
@.str.8 = [3 x i8] c"\0A \00"
@.str.9 = [18 x i8] c"\0Anum + num2: %d \0A\00"
@.str.10 = [22 x i8] c"\0Anum2=-_INT_MAX: %d \0A\00"
@.str.11 = [13 x i8] c"\0Aint=3: %d \0A\00"
@.str.12 = [14 x i8] c"\0Aint=-3: %d \0A\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 4)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0), i32 8)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 4)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 8)
store float 8.000000e+00, float* %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double 8.000000e+00)
%9 = call i32 @bitPrintf(float* %1, i32 32)
store float 1.562500e-01, float* %1
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double 1.562500e-01)
%11 = call i32 @bitPrintf(float* %1, i32 32)
store float 0x4014666660000000, float* %1
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double 0x4014666660000000)
%13 = call i32 @bitPrintf(float* %1, i32 32)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 2147483647)
%15 = call i32 @bitPrint(i32 2147483647, i32 32)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 -2147483648)
%17 = call i32 @bitPrint(i32 -2147483648, i32 32)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 -1)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 -2147483647)
%21 = call i32 @bitPrint(i32 -2147483647, i32 32)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 3)
%24 = call i32 @bitPrint(i32 3, i32 32)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 -3)
%26 = call i32 @bitPrint(i32 -3, i32 32)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}