#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*/ listnum(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float nint;
  int n;
  printf("\nEnter an integer > ");
  scanf("%f", &nint);
  if (nint < 2147483647) {
    n = nint;
    listnum(n);
  } else if (nint >= 2147483647) {
    printf("\n7\n4\n6\n3\n8\n4\n7\n4\n1\n2");
  }
  printf("\nThat's all, have a nice day!\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
movss  0xe9d(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1182 <main+0x52>
cvttss2si -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <listnum@plt>
jmp    11a9 <main+0x79>
movss  -0x8(%rbp),%xmm0
movss  0xe71(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     11a4 <main+0x74>
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
jmp    11a9 <main+0x79>
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xebc(%rip),%rdi
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0xe94(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    117c <main+0x3c>
cvttss2si %xmm0,%edi
call   1050 <listnum@plt>
jmp    1191 <main+0x51>
ucomiss 0xe7d(%rip),%xmm0
jb     1191 <main+0x51>
lea    0xe90(%rip),%rdi
call   1040 <printf@plt>
lea    0xe99(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"\0AEnter an integer > \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"\0A7\0A4\0A6\0A3\0A8\0A4\0A7\0A4\0A1\0A2\00"
@.str.3 = [31 x i8] c"\0AThat's all, have a nice day!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%6 = load float, float* %2
%7 = fcmp olt float %6, 0x41E0000000000000
br i1 %7, label %8, label %13
8: ; preds = %0
%9 = load float, float* %2
%10 = fptosi float %9 to i32
store i32 %10, i32* %3
%11 = load i32, i32* %3
%12 = call i32 @listnum(i32 %11)
br label %19
13: ; preds = %0
%14 = load float, float* %2
%15 = fcmp oge float %14, 0x41E0000000000000
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %13
br label %19
19: ; preds = %18, %8
%20 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"\0AEnter an integer > \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"\0A7\0A4\0A6\0A3\0A8\0A4\0A7\0A4\0A1\0A2\00"
@str = [30 x i8] c"\0AThat's all, have a nice day!\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fcmp olt float %5, 0x41E0000000000000
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = fptosi float %5 to i32
%9 = call i32 @listnum(i32 %8)
br label %14
10: ; preds = %0
%11 = fcmp ult float %5, 0x41E0000000000000
br i1 %11, label %14, label %12
12: ; preds = %10
%13 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %10, %12, %7
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
ret i32 0
}