#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 maximu(int);
int minimu(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(int argc, char *argv[]) {
  int wrong, max, min, i;
  do {
    printf("Enter a maximum number that don't exceed 126: ");
    scanf("%d", &max);
    if (max > 126 || max < 32 || max > 32) {
      wrong = 1;
    }
    if (max > 126 || max < 32)
      printf("Error: enter number between 32 and 126. ");
    else {
      wrong = 0;
    }
  } while (wrong);
  do {
    printf("Enter a minimum number that don't go below 32: ");
    scanf("%d", &min);
    if (min < 32 || min > 126) {
      wrong = 1;
    }
    if (min < 32 || min > 126)
      printf("ERROR enter number between 32 and 126. ");
    else {
      wrong = 0;
    }
  } while (wrong);
  max = maximu(max);
  min = minimu(min);
  for (i = min; i <= max; i++) {
    printf(" %d   <%c> \n", i, i);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x7e,-0x18(%rbp)
jg     1192 <main+0x52>
cmpl   $0x20,-0x18(%rbp)
jl     1192 <main+0x52>
cmpl   $0x20,-0x18(%rbp)
jle    1199 <main+0x59>
movl   $0x1,-0x14(%rbp)
cmpl   $0x7e,-0x18(%rbp)
jg     11ad <main+0x6d>
cmpl   $0x20,-0x18(%rbp)
jge    11c0 <main+0x80>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c7 <main+0x87>
movl   $0x0,-0x14(%rbp)
jmp    11cc <main+0x8c>
cmpl   $0x0,-0x14(%rbp)
jne    1156 <main+0x16>
jmp    11db <main+0x9b>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe3f(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1060 <scanf@plt>
cmpl   $0x20,-0x1c(%rbp)
jl     120d <main+0xcd>
cmpl   $0x7e,-0x1c(%rbp)
jle    1214 <main+0xd4>
movl   $0x1,-0x14(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jl     1228 <main+0xe8>
cmpl   $0x7e,-0x1c(%rbp)
jle    123b <main+0xfb>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1242 <main+0x102>
movl   $0x0,-0x14(%rbp)
jmp    1247 <main+0x107>
cmpl   $0x0,-0x14(%rbp)
jne    11db <main+0x9b>
mov    -0x18(%rbp),%edi
call   1030 <maximu@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
call   1050 <minimu@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     129b <main+0x15b>
mov    -0x20(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    126d <main+0x12d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xeb1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
mov    %rsp,%rsi
call   1060 <scanf@plt>
mov    (%rsp),%eax
add    $0xffffff81,%eax
cmp    $0xffffffa0,%eax
ja     11ba <main+0x7a>
lea    0xebb(%rip),%r14
lea    0xe82(%rip),%r15
lea    0xeaa(%rip),%r12
mov    %rsp,%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    (%rsp),%eax
add    $0xffffff81,%eax
cmp    $0xffffffa1,%eax
jb     1190 <main+0x50>
lea    0xe9a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe60(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xffffff81,%eax
cmp    $0xffffffa0,%eax
ja     122b <main+0xeb>
lea    0xe9f(%rip),%r14
lea    0xe68(%rip),%r15
lea    0xe35(%rip),%r12
lea    0x4(%rsp),%rbx
nop
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xffffff81,%eax
cmp    $0xffffffa1,%eax
jb     1200 <main+0xc0>
mov    (%rsp),%edi
call   1030 <maximu@plt>
mov    %eax,(%rsp)
mov    0x4(%rsp),%edi
call   1050 <minimu@plt>
mov    %eax,0x4(%rsp)
cmp    (%rsp),%eax
jg     1278 <main+0x138>
mov    %eax,%ebx
lea    0xe62(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1(%rbx),%eax
cmp    (%rsp),%ebx
mov    %eax,%ebx
jl     1260 <main+0x120>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [47 x i8] c"Enter a maximum number that don't exceed 126: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [41 x i8] c"Error: enter number between 32 and 126. \00"
@.str.3 = [48 x i8] c"Enter a minimum number that don't go below 32: \00"
@.str.4 = [40 x i8] c"ERROR enter number between 32 and 126. \00"
@.str.5 = [13 x i8] c" %d <%c> \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %10
10: ; preds = %32, %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 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* %7)
%13 = load i32, i32* %7
%14 = icmp sgt i32 %13, 126
br i1 %14, label %21, label %15
15: ; preds = %10
%16 = load i32, i32* %7
%17 = icmp slt i32 %16, 32
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %7
%20 = icmp sgt i32 %19, 32
br i1 %20, label %21, label %22
21: ; preds = %18, %15, %10
store i32 1, i32* %6
br label %22
22: ; preds = %21, %18
%23 = load i32, i32* %7
%24 = icmp sgt i32 %23, 126
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i32, i32* %7
%27 = icmp slt i32 %26, 32
br i1 %27, label %28, label %30
28: ; preds = %25, %22
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
br label %31
30: ; preds = %25
store i32 0, i32* %6
br label %31
31: ; preds = %30, %28
br label %32
32: ; preds = %31
%33 = load i32, i32* %6
%34 = icmp ne i32 %33, 0
br i1 %34, label %10, label %35
35: ; preds = %32
br label %36
36: ; preds = %55, %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%39 = load i32, i32* %8
%40 = icmp slt i32 %39, 32
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = load i32, i32* %8
%43 = icmp sgt i32 %42, 126
br i1 %43, label %44, label %45
44: ; preds = %41, %36
store i32 1, i32* %6
br label %45
45: ; preds = %44, %41
%46 = load i32, i32* %8
%47 = icmp slt i32 %46, 32
br i1 %47, label %51, label %48
48: ; preds = %45
%49 = load i32, i32* %8
%50 = icmp sgt i32 %49, 126
br i1 %50, label %51, label %53
51: ; preds = %48, %45
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
br label %54
53: ; preds = %48
store i32 0, i32* %6
br label %54
54: ; preds = %53, %51
br label %55
55: ; preds = %54
%56 = load i32, i32* %6
%57 = icmp ne i32 %56, 0
br i1 %57, label %36, label %58
58: ; preds = %55
%59 = load i32, i32* %7
%60 = call i32 @maximu(i32 %59)
store i32 %60, i32* %7
%61 = load i32, i32* %8
%62 = call i32 @minimu(i32 %61)
store i32 %62, i32* %8
%63 = load i32, i32* %8
store i32 %63, i32* %9
br label %64
64: ; preds = %72, %58
%65 = load i32, i32* %9
%66 = load i32, i32* %7
%67 = icmp sle i32 %65, %66
br i1 %67, label %68, label %75
68: ; preds = %64
%69 = load i32, i32* %9
%70 = load i32, i32* %9
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %69, i32 %70)
br label %72
72: ; preds = %68
%73 = load i32, i32* %9
%74 = add nsw i32 %73, 1
store i32 %74, i32* %9
br label %64
75: ; preds = %64
ret i32 0
}

LLVM IR (-O2):
@.str = [47 x i8] c"Enter a maximum number that don't exceed 126: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [41 x i8] c"Error: enter number between 32 and 126. \00"
@.str.3 = [48 x i8] c"Enter a minimum number that don't go below 32: \00"
@.str.4 = [40 x i8] c"ERROR enter number between 32 and 126. \00"
@.str.5 = [13 x i8] c" %d <%c> \0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 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* %3)
%9 = load i32, i32* %3
%10 = add i32 %9, -127
%11 = icmp ult i32 %10, -95
br i1 %11, label %18, label %12
12: ; preds = %18, %2
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%15 = load i32, i32* %4
%16 = add i32 %15, -127
%17 = icmp ult i32 %16, -95
br i1 %17, label %25, label %32
18: ; preds = %2, %18
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, 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 = add i32 %22, -127
%24 = icmp ult i32 %23, -95
br i1 %24, label %18, label %12
25: ; preds = %12, %25
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%29 = load i32, i32* %4
%30 = add i32 %29, -127
%31 = icmp ult i32 %30, -95
br i1 %31, label %25, label %32
32: ; preds = %25, %12
%33 = load i32, i32* %3
%34 = call i32 @maximu(i32 %33)
store i32 %34, i32* %3
%35 = load i32, i32* %4
%36 = call i32 @minimu(i32 %35)
store i32 %36, i32* %4
%37 = load i32, i32* %3
%38 = icmp sgt i32 %36, %37
br i1 %38, label %45, label %39
39: ; preds = %32, %39
%40 = phi i32 [ %42, %39 ], [ %36, %32 ]
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %40, i32 %40)
%42 = add nsw i32 %40, 1
%43 = load i32, i32* %3
%44 = icmp slt i32 %40, %43
br i1 %44, label %39, label %45
45: ; preds = %39, %32
ret i32 0
}