#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 a, b, c, d, e;
  printf("Podaj 1. parametr:");
  scanf("%d", &a);
  if ((a >= -5) && (a <= +5))
    printf("Parametr 1. ustawiony na:%d\n", a);
  else
    printf("Bledny parametr!\n");
  printf("Podaj 2. parametr:");
  scanf("%d", &b);
  if ((b >= -5) && (b <= +5))
    printf("Parametr 2. ustawiony na:%d\n", b);
  else
    printf("Bledny parametr!\n");
  printf("Podaj 3. parametr:");
  scanf("%d", &c);
  if ((c >= -5) && (c <= +5))
    printf("Parametr 3. ustawiony na:%d\n", c);
  else
    printf("Bledny parametr!\n");
  printf("Podaj 4. parametr:");
  scanf("%d", &d);
  if ((d >= -5) && (d <= +5))
    printf("Parametr 4. ustawiony na:%d\n", d);
  else
    printf("Bdny parametr!\n");
  printf("Podaj 5. parametr:");
  scanf("%d", &e);
  if ((e >= -5) && (e <= +5))
    printf("Parametr 5. ustawiony na:%d\n", e);
  else
    printf("Bledny parametr!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xfffffffb,-0x8(%rbp)
jl     1177 <main+0x57>
cmpl   $0x5,-0x8(%rbp)
jg     1177 <main+0x57>
mov    -0x8(%rbp),%esi
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1185 <main+0x65>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xfffffffb,-0xc(%rbp)
jl     11cd <main+0xad>
cmpl   $0x5,-0xc(%rbp)
jg     11cd <main+0xad>
mov    -0xc(%rbp),%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11db <main+0xbb>
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe23(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xfffffffb,-0x10(%rbp)
jl     1223 <main+0x103>
cmpl   $0x5,-0x10(%rbp)
jg     1223 <main+0x103>
mov    -0x10(%rbp),%esi
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1231 <main+0x111>
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdcd(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xfffffffb,-0x14(%rbp)
jl     1279 <main+0x159>
cmpl   $0x5,-0x14(%rbp)
jg     1279 <main+0x159>
mov    -0x14(%rbp),%esi
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1287 <main+0x167>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd77(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xfffffffb,-0x18(%rbp)
jl     12cf <main+0x1af>
cmpl   $0x5,-0x18(%rbp)
jg     12cf <main+0x1af>
mov    -0x18(%rbp),%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12dd <main+0x1bd>
lea    0xd5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeca(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x14(%rsp),%esi
lea    0x5(%rsi),%eax
cmp    $0xa,%eax
ja     116f <main+0x3f>
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    117b <main+0x4b>
lea    0xf8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe83(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
lea    0x5(%rsi),%eax
cmp    $0xa,%eax
ja     11b6 <main+0x86>
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11c2 <main+0x92>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3c(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%esi
lea    0x5(%rsi),%eax
cmp    $0xa,%eax
ja     11fd <main+0xcd>
lea    0xe82(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1209 <main+0xd9>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe83(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf5(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x8(%rsp),%esi
lea    0x5(%rsi),%eax
cmp    $0xa,%eax
ja     1244 <main+0x114>
lea    0xe6b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1250 <main+0x120>
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdae(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%esi
lea    0x5(%rsi),%eax
cmp    $0xa,%eax
ja     128b <main+0x15b>
lea    0xe54(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1297 <main+0x167>
lea    0xe70(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Podaj 1. parametr:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [29 x i8] c"Parametr 1. ustawiony na:%d\0A\00"
@.str.3 = [18 x i8] c"Bledny parametr!\0A\00"
@.str.4 = [19 x i8] c"Podaj 2. parametr:\00"
@.str.5 = [29 x i8] c"Parametr 2. ustawiony na:%d\0A\00"
@.str.6 = [19 x i8] c"Podaj 3. parametr:\00"
@.str.7 = [29 x i8] c"Parametr 3. ustawiony na:%d\0A\00"
@.str.8 = [19 x i8] c"Podaj 4. parametr:\00"
@.str.9 = [29 x i8] c"Parametr 4. ustawiony na:%d\0A\00"
@.str.10 = [16 x i8] c"Bdny parametr!\0A\00"
@.str.11 = [19 x i8] c"Podaj 5. parametr:\00"
@.str.12 = [29 x i8] c"Parametr 5. ustawiony na:%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, -5
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 5
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* %2
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %15)
br label %19
17: ; preds = %11, %0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %19
19: ; preds = %17, %14
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%22 = load i32, i32* %3
%23 = icmp sge i32 %22, -5
br i1 %23, label %24, label %30
24: ; preds = %19
%25 = load i32, i32* %3
%26 = icmp sle i32 %25, 5
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, i32* %3
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %28)
br label %32
30: ; preds = %24, %19
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %32
32: ; preds = %30, %27
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%35 = load i32, i32* %4
%36 = icmp sge i32 %35, -5
br i1 %36, label %37, label %43
37: ; preds = %32
%38 = load i32, i32* %4
%39 = icmp sle i32 %38, 5
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, i32* %4
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 %41)
br label %45
43: ; preds = %37, %32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %45
45: ; preds = %43, %40
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%48 = load i32, i32* %5
%49 = icmp sge i32 %48, -5
br i1 %49, label %50, label %56
50: ; preds = %45
%51 = load i32, i32* %5
%52 = icmp sle i32 %51, 5
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* %5
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 %54)
br label %58
56: ; preds = %50, %45
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
br label %58
58: ; preds = %56, %53
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%60 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%61 = load i32, i32* %6
%62 = icmp sge i32 %61, -5
br i1 %62, label %63, label %69
63: ; preds = %58
%64 = load i32, i32* %6
%65 = icmp sle i32 %64, 5
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load i32, i32* %6
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %67)
br label %71
69: ; preds = %63, %58
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %71
71: ; preds = %69, %66
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"Podaj 1. parametr:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [29 x i8] c"Parametr 1. ustawiony na:%d\0A\00"
@.str.4 = [19 x i8] c"Podaj 2. parametr:\00"
@.str.5 = [29 x i8] c"Parametr 2. ustawiony na:%d\0A\00"
@.str.6 = [19 x i8] c"Podaj 3. parametr:\00"
@.str.7 = [29 x i8] c"Parametr 3. ustawiony na:%d\0A\00"
@.str.8 = [19 x i8] c"Podaj 4. parametr:\00"
@.str.9 = [29 x i8] c"Parametr 4. ustawiony na:%d\0A\00"
@.str.11 = [19 x i8] c"Podaj 5. parametr:\00"
@.str.12 = [29 x i8] c"Parametr 5. ustawiony na:%d\0A\00"
@str.15 = [15 x i8] c"Bdny parametr!\00"
@str.16 = [17 x i8] c"Bledny parametr!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%13 = load i32, i32* %1
%14 = add i32 %13, 5
%15 = icmp ult i32 %14, 11
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %13)
br label %20
18: ; preds = %0
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
br label %20
20: ; preds = %18, %16
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%23 = load i32, i32* %2
%24 = add i32 %23, 5
%25 = icmp ult i32 %24, 11
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %23)
br label %30
28: ; preds = %20
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%33 = load i32, i32* %3
%34 = add i32 %33, 5
%35 = icmp ult i32 %34, 11
br i1 %35, label %36, label %38
36: ; preds = %30
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 %33)
br label %40
38: ; preds = %30
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
br label %40
40: ; preds = %38, %36
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%43 = load i32, i32* %4
%44 = add i32 %43, 5
%45 = icmp ult i32 %44, 11
br i1 %45, label %46, label %48
46: ; preds = %40
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 %43)
br label %50
48: ; preds = %40
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.15, i64 0, i64 0))
br label %50
50: ; preds = %48, %46
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%52 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%53 = load i32, i32* %5
%54 = add i32 %53, 5
%55 = icmp ult i32 %54, 11
br i1 %55, label %56, label %58
56: ; preds = %50
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %53)
br label %60
58: ; preds = %50
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
br label %60
60: ; preds = %58, %56
ret i32 0
}