#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ isalpha(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, const char *argv[]) {
  char letter;
  printf("Enter a letter: ");
  scanf("%c", &letter);
  if (!isalpha(letter)) {
    fprintf(stderr, "Entered char not a letter. Exiting.");
    exit(1);
  }
  char before = letter - 1;
  char after = letter + 1;
  printf("Symbol: %c | Before: %c | After: %c\n", letter, before, after);
  int n = 0;
  printf("Enter a number: ");
  scanf("%d", &n);
  if (n < 2 || n > 5) {
    fprintf(stderr,
            "Entered number is out of limits (min: %d | max: %d). Exiting.", 2,
            5);
    exit(2);
  }
  for (int i = 0; i < n; i++) {
    if (i == 0 || i == (n - 1)) {
      for (int j = 0; j < n; j++)
        printf("%c", letter);
    } else {
      printf("%c%*s%c", letter, n - 2, "", letter);
    }
    printf("\n");
  }
  n = 0;
  int m = 0;
  printf("Enter a number n: ");
  scanf("%d", &n);
  if (n < 2 || n > 5) {
    fprintf(stderr,
            "Entered number is out of limits (min: %d | max: %d). Exiting.", 2,
            5);
    exit(2);
  }
  printf("Enter a number m: ");
  scanf("%d", &m);
  if (m < 2 || m > 5) {
    fprintf(stderr,
            "Entered number is out of limits (min: %d | max: %d). Exiting.", 2,
            5);
    exit(2);
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      for (int k = 0; k < n; k++)
        putchar(letter);
      for (int k = 0; k < n; k++)
        putchar(' ');
    }
    putchar('\n');
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf26(%rip),%rdi
lea    -0x11(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
movsbl -0x11(%rbp),%edi
call   1060 <isalpha@plt>
cmp    $0x0,%eax
jne    11c9 <main+0x69>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
movsbl -0x11(%rbp),%eax
sub    $0x1,%eax
mov    %al,-0x12(%rbp)
movsbl -0x11(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x13(%rbp)
movsbl -0x11(%rbp),%esi
movsbl -0x12(%rbp),%edx
movsbl -0x13(%rbp),%ecx
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe58(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
cmpl   $0x2,-0x18(%rbp)
jl     1232 <main+0xd2>
cmpl   $0x5,-0x18(%rbp)
jle    125d <main+0xfd>
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
lea    0xe2c(%rip),%rsi
mov    $0x2,%edx
mov    $0x5,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x2,%edi
call   1080 <exit@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1303 <main+0x1a3>
cmpl   $0x0,-0x1c(%rbp)
je     128b <main+0x12b>
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    12c3 <main+0x163>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12be <main+0x15e>
movsbl -0x11(%rbp),%esi
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1292 <main+0x132>
jmp    12e7 <main+0x187>
movsbl -0x11(%rbp),%esi
mov    -0x18(%rbp),%edx
sub    $0x2,%edx
movsbl -0x11(%rbp),%r8d
lea    0xdd3(%rip),%rdi
lea    0xd79(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1264 <main+0x104>
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd45(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
cmpl   $0x2,-0x18(%rbp)
jl     1345 <main+0x1e5>
cmpl   $0x5,-0x18(%rbp)
jle    1370 <main+0x210>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xd19(%rip),%rsi
mov    $0x2,%edx
mov    $0x5,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x2,%edi
call   1080 <exit@plt>
lea    0xd50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xce6(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
cmpl   $0x2,-0x24(%rbp)
jl     13a4 <main+0x244>
cmpl   $0x5,-0x24(%rbp)
jle    13cf <main+0x26f>
mov    0x2c35(%rip),%rax
mov    (%rax),%edi
lea    0xcba(%rip),%rsi
mov    $0x2,%edx
mov    $0x5,%ecx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x2,%edi
call   1080 <exit@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1475 <main+0x315>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    145d <main+0x2fd>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    141f <main+0x2bf>
movsbl -0x11(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13fc <main+0x29c>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    144a <main+0x2ea>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1426 <main+0x2c6>
jmp    144f <main+0x2ef>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13e9 <main+0x289>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13d6 <main+0x276>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf32(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
movsbl 0xf(%rsp),%edi
call   1060 <isalpha@plt>
test   %eax,%eax
je     13a9 <main+0x249>
movsbl 0xf(%rsp),%esi
lea    -0x1(%rsi),%eax
lea    0x1(%rsi),%ecx
movsbl %al,%edx
movsbl %cl,%ecx
lea    0xe80(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x10(%rsp)
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe92(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x10(%rsp),%edx
lea    -0x6(%rdx),%eax
cmp    $0xfffffffc,%eax
jb     137e <main+0x21e>
lea    0xeb0(%rip),%r14
lea    0xe56(%rip),%r15
xor    %ebp,%ebp
jmp    123d <main+0xdd>
nopw   0x0(%rax,%rax,1)
movsbl 0xf(%rsp),%esi
add    $0xfffffffe,%edx
mov    %r14,%rdi
mov    %r15,%rcx
mov    %esi,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
mov    0x10(%rsp),%edx
cmp    %edx,%ebp
jge    1265 <main+0x105>
test   %ebp,%ebp
je     1248 <main+0xe8>
lea    -0x1(%rdx),%eax
cmp    %eax,%ebp
jne    1210 <main+0xb0>
test   %edx,%edx
jle    1228 <main+0xc8>
xor    %ebx,%ebx
xchg   %ax,%ax
movsbl 0xf(%rsp),%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    0x10(%rsp),%ebx
jl     1250 <main+0xf0>
jmp    1228 <main+0xc8>
movl   $0x0,0x10(%rsp)
movl   $0x0,0x14(%rsp)
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xde1(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x10(%rsp),%eax
add    $0xfffffffa,%eax
cmp    $0xfffffffc,%eax
jb     137e <main+0x21e>
lea    0xe1a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdb0(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x14(%rsp),%ecx
lea    -0x6(%rcx),%eax
cmp    $0xfffffffc,%eax
jb     137e <main+0x21e>
mov    0x10(%rsp),%eax
test   %eax,%eax
jle    1371 <main+0x211>
xor    %r14d,%r14d
test   %ecx,%ecx
jle    1350 <main+0x1f0>
nopw   0x0(%rax,%rax,1)
xor    %ebp,%ebp
jmp    1309 <main+0x1a9>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%ebp
cmp    0x14(%rsp),%ebp
jge    1350 <main+0x1f0>
test   %eax,%eax
jle    1300 <main+0x1a0>
xor    %ebx,%ebx
nop
movsbl 0xf(%rsp),%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
mov    0x10(%rsp),%eax
cmp    %eax,%ebx
jl     1310 <main+0x1b0>
test   %eax,%eax
jle    1300 <main+0x1a0>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
mov    0x10(%rsp),%eax
cmp    %eax,%ebx
jl     1330 <main+0x1d0>
jmp    1300 <main+0x1a0>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
mov    0x10(%rsp),%eax
cmp    %eax,%r14d
jge    1371 <main+0x211>
mov    0x14(%rsp),%ecx
test   %ecx,%ecx
jg     12f0 <main+0x190>
jmp    1350 <main+0x1f0>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c5b(%rip),%rax
mov    (%rax),%edi
lea    0xce0(%rip),%rsi
mov    $0x2,%edx
mov    $0x5,%ecx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x2,%edi
call   1080 <exit@plt>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
lea    0xc58(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"Enter a letter: \00"
@.str.1 = [3 x i8] c"%c\00"
@stderr = global i32 0
@.str.2 = [36 x i8] c"Entered char not a letter. Exiting.\00"
@.str.3 = [37 x i8] c"Symbol: %c | Before: %c | After: %c\0A\00"
@.str.4 = [17 x i8] c"Enter a number: \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [62 x i8] c"Entered number is out of limits (min: %d | max: %d). Exiting.\00"
@.str.7 = [8 x i8] c"%c%*s%c\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [19 x i8] c"Enter a number n: \00"
@.str.11 = [19 x i8] c"Enter a number m: \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%19 = load i8, i8* %6
%20 = call i32 @isalpha(i8 signext %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %26, label %22
22: ; preds = %2
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 @exit(i32 1)
unreachable
26: ; preds = %2
%27 = load i8, i8* %6
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 1
%30 = trunc i32 %29 to i8
store i8 %30, i8* %7
%31 = load i8, i8* %6
%32 = sext i8 %31 to i32
%33 = add nsw i32 %32, 1
%34 = trunc i32 %33 to i8
store i8 %34, i8* %8
%35 = load i8, i8* %6
%36 = sext i8 %35 to i32
%37 = load i8, i8* %7
%38 = sext i8 %37 to i32
%39 = load i8, i8* %8
%40 = sext i8 %39 to i32
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %36, i32 %38, i32 %40)
store i32 0, i32* %9
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %9)
%44 = load i32, i32* %9
%45 = icmp slt i32 %44, 2
br i1 %45, label %49, label %46
46: ; preds = %26
%47 = load i32, i32* %9
%48 = icmp sgt i32 %47, 5
br i1 %48, label %49, label %53
49: ; preds = %46, %26
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 5)
%52 = call i32 @exit(i32 2)
unreachable
53: ; preds = %46
store i32 0, i32* %10
br label %54
54: ; preds = %89, %53
%55 = load i32, i32* %10
%56 = load i32, i32* %9
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %92
58: ; preds = %54
%59 = load i32, i32* %10
%60 = icmp eq i32 %59, 0
br i1 %60, label %66, label %61
61: ; preds = %58
%62 = load i32, i32* %10
%63 = load i32, i32* %9
%64 = sub nsw i32 %63, 1
%65 = icmp eq i32 %62, %64
br i1 %65, label %66, label %79
66: ; preds = %61, %58
store i32 0, i32* %11
br label %67
67: ; preds = %75, %66
%68 = load i32, i32* %11
%69 = load i32, i32* %9
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %78
71: ; preds = %67
%72 = load i8, i8* %6
%73 = sext i8 %72 to i32
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %71
%76 = load i32, i32* %11
%77 = add nsw i32 %76, 1
store i32 %77, i32* %11
br label %67
78: ; preds = %67
br label %87
79: ; preds = %61
%80 = load i8, i8* %6
%81 = sext i8 %80 to i32
%82 = load i32, i32* %9
%83 = sub nsw i32 %82, 2
%84 = load i8, i8* %6
%85 = sext i8 %84 to i32
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %81, i32 %83, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i32 %85)
br label %87
87: ; preds = %79, %78
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %89
89: ; preds = %87
%90 = load i32, i32* %10
%91 = add nsw i32 %90, 1
store i32 %91, i32* %10
br label %54
92: ; preds = %54
store i32 0, i32* %9
store i32 0, i32* %12
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%94 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %9)
%95 = load i32, i32* %9
%96 = icmp slt i32 %95, 2
br i1 %96, label %100, label %97
97: ; preds = %92
%98 = load i32, i32* %9
%99 = icmp sgt i32 %98, 5
br i1 %99, label %100, label %104
100: ; preds = %97, %92
%101 = load i32, i32* @stderr
%102 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 5)
%103 = call i32 @exit(i32 2)
unreachable
104: ; preds = %97
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%106 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %12)
%107 = load i32, i32* %12
%108 = icmp slt i32 %107, 2
br i1 %108, label %112, label %109
109: ; preds = %104
%110 = load i32, i32* %12
%111 = icmp sgt i32 %110, 5
br i1 %111, label %112, label %116
112: ; preds = %109, %104
%113 = load i32, i32* @stderr
%114 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 5)
%115 = call i32 @exit(i32 2)
unreachable
116: ; preds = %109
store i32 0, i32* %13
br label %117
117: ; preds = %153, %116
%118 = load i32, i32* %13
%119 = load i32, i32* %9
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %156
121: ; preds = %117
store i32 0, i32* %14
br label %122
122: ; preds = %148, %121
%123 = load i32, i32* %14
%124 = load i32, i32* %12
%125 = icmp slt i32 %123, %124
br i1 %125, label %126, label %151
126: ; preds = %122
store i32 0, i32* %15
br label %127
127: ; preds = %134, %126
%128 = load i32, i32* %15
%129 = load i32, i32* %9
%130 = icmp slt i32 %128, %129
br i1 %130, label %131, label %137
131: ; preds = %127
%132 = load i8, i8* %6
%133 = call i32 @putchar(i8 signext %132)
br label %134
134: ; preds = %131
%135 = load i32, i32* %15
%136 = add nsw i32 %135, 1
store i32 %136, i32* %15
br label %127
137: ; preds = %127
store i32 0, i32* %16
br label %138
138: ; preds = %144, %137
%139 = load i32, i32* %16
%140 = load i32, i32* %9
%141 = icmp slt i32 %139, %140
br i1 %141, label %142, label %147
142: ; preds = %138
%143 = call i32 @putchar(i8 signext 32)
br label %144
144: ; preds = %142
%145 = load i32, i32* %16
%146 = add nsw i32 %145, 1
store i32 %146, i32* %16
br label %138
147: ; preds = %138
br label %148
148: ; preds = %147
%149 = load i32, i32* %14
%150 = add nsw i32 %149, 1
store i32 %150, i32* %14
br label %122
151: ; preds = %122
%152 = call i32 @putchar(i8 signext 10)
br label %153
153: ; preds = %151
%154 = load i32, i32* %13
%155 = add nsw i32 %154, 1
store i32 %155, i32* %13
br label %117
156: ; preds = %117
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"Enter a letter: \00"
@.str.1 = [3 x i8] c"%c\00"
@stderr = global i32 0
@.str.2 = [36 x i8] c"Entered char not a letter. Exiting.\00"
@.str.3 = [37 x i8] c"Symbol: %c | Before: %c | After: %c\0A\00"
@.str.4 = [17 x i8] c"Enter a number: \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [62 x i8] c"Entered number is out of limits (min: %d | max: %d). Exiting.\00"
@.str.7 = [8 x i8] c"%c%*s%c\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.10 = [19 x i8] c"Enter a number n: \00"
@.str.11 = [19 x i8] c"Enter a number m: \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%8 = load i8, i8* %3
%9 = call i32 @isalpha(i8 signext %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = add i8 %16, -1
%19 = add i8 %16, 1
%20 = sext i8 %18 to i32
%21 = sext i8 %19 to i32
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %17, i32 %20, i32 %21)
%23 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%26 = load i32, i32* %4
%27 = add i32 %26, -6
%28 = icmp ult i32 %27, -4
br i1 %28, label %29, label %40
29: ; preds = %15
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 5)
%32 = call i32 @exit(i32 2)
unreachable
33: ; preds = %62
store i32 0, i32* %4
%34 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%37 = load i32, i32* %4
%38 = add i32 %37, -6
%39 = icmp ult i32 %38, -4
br i1 %39, label %67, label %71
40: ; preds = %15, %62
%41 = phi i32 [ %65, %62 ], [ %26, %15 ]
%42 = phi i32 [ %64, %62 ], [ 0, %15 ]
%43 = icmp eq i32 %42, 0
%44 = add nsw i32 %41, -1
%45 = icmp eq i32 %42, %44
%46 = select i1 %43, i1 true, i1 %45
br i1 %46, label %47, label %57
47: ; preds = %40
%48 = icmp sgt i32 %41, 0
br i1 %48, label %49, label %62
49: ; preds = %47, %49
%50 = phi i32 [ %54, %49 ], [ 0, %47 ]
%51 = load i8, i8* %3
%52 = sext i8 %51 to i32
%53 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 %52)
%54 = add nuw nsw i32 %50, 1
%55 = load i32, i32* %4
%56 = icmp slt i32 %54, %55
br i1 %56, label %49, label %62
57: ; preds = %40
%58 = load i8, i8* %3
%59 = sext i8 %58 to i32
%60 = add nsw i32 %41, -2
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %59, i32 %60, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i32 %59)
br label %62
62: ; preds = %49, %47, %57
%63 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
%64 = add nuw nsw i32 %42, 1
%65 = load i32, i32* %4
%66 = icmp slt i32 %64, %65
br i1 %66, label %40, label %33
67: ; preds = %33
%68 = load i32, i32* @stderr
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 5)
%70 = call i32 @exit(i32 2)
unreachable
71: ; preds = %33
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%73 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %5)
%74 = load i32, i32* %5
%75 = add i32 %74, -6
%76 = icmp ult i32 %75, -4
br i1 %76, label %80, label %77
77: ; preds = %71
%78 = load i32, i32* %4
%79 = icmp sgt i32 %78, 0
br i1 %79, label %84, label %89
80: ; preds = %71
%81 = load i32, i32* @stderr
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 5)
%83 = call i32 @exit(i32 2)
unreachable
84: ; preds = %77, %99
%85 = phi i32 [ %97, %99 ], [ %78, %77 ]
%86 = phi i32 [ %100, %99 ], [ %74, %77 ]
%87 = phi i32 [ %96, %99 ], [ 0, %77 ]
%88 = icmp sgt i32 %86, 0
br i1 %88, label %90, label %94
89: ; preds = %94, %77
ret i32 0
90: ; preds = %84, %110
%91 = phi i32 [ %111, %110 ], [ %85, %84 ]
%92 = phi i32 [ %112, %110 ], [ 0, %84 ]
%93 = icmp sgt i32 %91, 0
br i1 %93, label %103, label %110
94: ; preds = %110, %84
%95 = call i32 @putchar(i8 signext 10)
%96 = add nuw nsw i32 %87, 1
%97 = load i32, i32* %4
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %89
99: ; preds = %94
%100 = load i32, i32* %5
br label %84
101: ; preds = %103
%102 = icmp sgt i32 %108, 0
br i1 %102, label %115, label %110
103: ; preds = %90, %103
%104 = phi i32 [ %107, %103 ], [ 0, %90 ]
%105 = load i8, i8* %3
%106 = call i32 @putchar(i8 signext %105)
%107 = add nuw nsw i32 %104, 1
%108 = load i32, i32* %4
%109 = icmp slt i32 %107, %108
br i1 %109, label %103, label %101
110: ; preds = %115, %90, %101
%111 = phi i32 [ %108, %101 ], [ %91, %90 ], [ %119, %115 ]
%112 = add nuw nsw i32 %92, 1
%113 = load i32, i32* %5
%114 = icmp slt i32 %112, %113
br i1 %114, label %90, label %94
115: ; preds = %101, %115
%116 = phi i32 [ %118, %115 ], [ 0, %101 ]
%117 = call i32 @putchar(i8 signext 32)
%118 = add nuw nsw i32 %116, 1
%119 = load i32, i32* %4
%120 = icmp slt i32 %118, %119
br i1 %120, label %115, label %110
}