#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*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int temperatura;
  printf("Podaj temperature we Wroclawiu: ");
  scanf("%d", &temperatura);
  if ((temperatura < -100) || (temperatura > +100))
    printf("Bledne dane!\n");
  else if (temperatura >= 20)
    printf("Jest bardzo ladna pogoda!\n");
  else
    printf("Nie jest zbyt cieplo!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xffffff9c,-0x8(%rbp)
jl     115f <main+0x3f>
cmpl   $0x64,-0x8(%rbp)
jle    1170 <main+0x50>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
jmp    119c <main+0x7c>
cmpl   $0x14,-0x8(%rbp)
jl     118b <main+0x6b>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
jmp    1197 <main+0x77>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
jmp    119c <main+0x7c>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
lea    -0x65(%rax),%ecx
cmp    $0x14,%eax
lea    0xedb(%rip),%rax
lea    0xebe(%rip),%rdx
cmovge %rax,%rdx
cmp    $0xffffff37,%ecx
lea    0xedd(%rip),%rdi
cmovae %rdx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Podaj temperature we Wroclawiu: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [14 x i8] c"Bledne dane!\0A\00"
@.str.3 = [27 x i8] c"Jest bardzo ladna pogoda!\0A\00"
@.str.4 = [23 x i8] c"Nie jest zbyt cieplo!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 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), i32* %2)
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, -100
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 100
br i1 %9, label %10, label %12
10: ; preds = %7, %0
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %20
12: ; preds = %7
%13 = load i32, i32* %2
%14 = icmp sge i32 %13, 20
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
br label %19
17: ; preds = %12
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"Podaj temperature we Wroclawiu: \00"
@.str.1 = [3 x i8] c"%d\00"
@str = [22 x i8] c"Nie jest zbyt cieplo!\00"
@str.5 = [26 x i8] c"Jest bardzo ladna pogoda!\00"
@str.6 = [13 x i8] c"Bledne dane!\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 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), i32* %1)
%5 = load i32, i32* %1
%6 = add i32 %5, -101
%7 = icmp ult i32 %6, -201
%8 = icmp sgt i32 %5, 19
%9 = select i1 %8, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0)
%10 = select i1 %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @str.6, i64 0, i64 0), i8* %9
%11 = call i32 @puts(i8* dereferenceable(1) %10)
ret i32 0
}