#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 *, char *);
int main(void) {
  char a, b, c, d, e;
  printf("Input1: ");
  scanf(" %c", &a);
  printf("Input2: ");
  scanf(" %c", &b);
  printf("Input3: ");
  scanf(" %c", &c);
  printf("Input4: ");
  scanf(" %c", &d);
  printf("Input5: ");
  scanf(" %c", &e);
  printf("**********\n");
  if (a >= 97) {
    printf("Output1: %c\n", (a - 'a' + 1) % 26 + 97);
  } else {
    printf("Output1: %c\n", (a - 'A' + 1) % 26 + 65);
  }
  printf("Output2: %c\n", b);
  if (c >= 97) {
    printf("Output3: %c\n", (c - 'a' + 1) % 26 + 97);
  } else {
    printf("Output3: %c\n", (c - 'A' + 1) % 26 + 65);
  }
  printf("Output4: %c\n", d);
  if (e >= 97) {
    printf("Output5: %c\n", (e - 'a' + 1) % 26 + 97);
  } else {
    printf("Output5: %c\n", (e - 'A' + 1) % 26 + 65);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
lea    -0x6(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe89(%rip),%rdi
lea    -0x7(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6b(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4d(%rip),%rdi
lea    -0x9(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     120a <main+0xea>
movsbl -0x5(%rbp),%eax
sub    $0x61,%eax
add    $0x1,%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x61,%esi
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122f <main+0x10f>
movsbl -0x5(%rbp),%eax
sub    $0x41,%eax
add    $0x1,%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x41,%esi
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x6(%rbp),%esi
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x7(%rbp),%eax
cmp    $0x61,%eax
jl     1278 <main+0x158>
movsbl -0x7(%rbp),%eax
sub    $0x61,%eax
add    $0x1,%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x61,%esi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129d <main+0x17d>
movsbl -0x7(%rbp),%eax
sub    $0x41,%eax
add    $0x1,%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x41,%esi
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x8(%rbp),%esi
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x9(%rbp),%eax
cmp    $0x61,%eax
jl     12e6 <main+0x1c6>
movsbl -0x9(%rbp),%eax
sub    $0x61,%eax
add    $0x1,%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x61,%esi
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    130b <main+0x1eb>
movsbl -0x9(%rbp),%eax
sub    $0x41,%eax
add    $0x1,%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
add    $0x41,%esi
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebf(%rip),%rbx
lea    0xf(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xe8b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
movsbl 0xf(%rsp),%eax
cmp    $0x61,%ax
jl     11f6 <main+0xc6>
add    $0xa0,%al
movzbl %al,%eax
imul   $0x4f,%eax,%ecx
shr    $0xb,%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %dl,%al
add    $0x61,%al
movzbl %al,%eax
jmp    1217 <main+0xe7>
cwtl
add    $0xffffffc0,%eax
imul   $0x4ec5,%eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x13,%ecx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %edx,%eax
add    $0x41,%eax
movzwl %ax,%esi
lea    0xe10(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xe(%rsp),%esi
lea    0xe0a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xd(%rsp),%eax
cmp    $0x61,%ax
jl     1262 <main+0x132>
add    $0xa0,%al
movzbl %al,%eax
imul   $0x4f,%eax,%ecx
shr    $0xb,%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %dl,%al
add    $0x61,%al
movzbl %al,%eax
jmp    1283 <main+0x153>
cwtl
add    $0xffffffc0,%eax
imul   $0x4ec5,%eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x13,%ecx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %edx,%eax
add    $0x41,%eax
movzwl %ax,%esi
lea    0xdbe(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xc(%rsp),%esi
lea    0xdb8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xb(%rsp),%eax
cmp    $0x61,%ax
jl     12ce <main+0x19e>
add    $0xa0,%al
movzbl %al,%eax
imul   $0x4f,%eax,%ecx
shr    $0xb,%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %dl,%al
add    $0x61,%al
movzbl %al,%eax
jmp    12ef <main+0x1bf>
cwtl
add    $0xffffffc0,%eax
imul   $0x4ec5,%eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x13,%ecx
add    %edx,%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %edx,%eax
add    $0x41,%eax
movzwl %ax,%esi
lea    0xd6c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Input1: \00"
@.str.1 = [4 x i8] c" %c\00"
@.str.2 = [9 x i8] c"Input2: \00"
@.str.3 = [9 x i8] c"Input3: \00"
@.str.4 = [9 x i8] c"Input4: \00"
@.str.5 = [9 x i8] c"Input5: \00"
@.str.6 = [12 x i8] c"**********\0A\00"
@.str.7 = [13 x i8] c"Output1: %c\0A\00"
@.str.8 = [13 x i8] c"Output2: %c\0A\00"
@.str.9 = [13 x i8] c"Output3: %c\0A\00"
@.str.10 = [13 x i8] c"Output4: %c\0A\00"
@.str.11 = [13 x i8] c"Output5: %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%18 = load i8, i8* %2
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 97
br i1 %20, label %21, label %29
21: ; preds = %0
%22 = load i8, i8* %2
%23 = sext i8 %22 to i32
%24 = sub nsw i32 %23, 97
%25 = add nsw i32 %24, 1
%26 = srem i32 %25, 26
%27 = add nsw i32 %26, 97
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %27)
br label %37
29: ; preds = %0
%30 = load i8, i8* %2
%31 = sext i8 %30 to i32
%32 = sub nsw i32 %31, 65
%33 = add nsw i32 %32, 1
%34 = srem i32 %33, 26
%35 = add nsw i32 %34, 65
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %29, %21
%38 = load i8, i8* %3
%39 = sext i8 %38 to i32
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %39)
%41 = load i8, i8* %4
%42 = sext i8 %41 to i32
%43 = icmp sge i32 %42, 97
br i1 %43, label %44, label %52
44: ; preds = %37
%45 = load i8, i8* %4
%46 = sext i8 %45 to i32
%47 = sub nsw i32 %46, 97
%48 = add nsw i32 %47, 1
%49 = srem i32 %48, 26
%50 = add nsw i32 %49, 97
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %50)
br label %60
52: ; preds = %37
%53 = load i8, i8* %4
%54 = sext i8 %53 to i32
%55 = sub nsw i32 %54, 65
%56 = add nsw i32 %55, 1
%57 = srem i32 %56, 26
%58 = add nsw i32 %57, 65
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %58)
br label %60
60: ; preds = %52, %44
%61 = load i8, i8* %5
%62 = sext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %62)
%64 = load i8, i8* %6
%65 = sext i8 %64 to i32
%66 = icmp sge i32 %65, 97
br i1 %66, label %67, label %75
67: ; preds = %60
%68 = load i8, i8* %6
%69 = sext i8 %68 to i32
%70 = sub nsw i32 %69, 97
%71 = add nsw i32 %70, 1
%72 = srem i32 %71, 26
%73 = add nsw i32 %72, 97
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %73)
br label %83
75: ; preds = %60
%76 = load i8, i8* %6
%77 = sext i8 %76 to i32
%78 = sub nsw i32 %77, 65
%79 = add nsw i32 %78, 1
%80 = srem i32 %79, 26
%81 = add nsw i32 %80, 65
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %75, %67
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"Input1: \00"
@.str.1 = [4 x i8] c" %c\00"
@.str.2 = [9 x i8] c"Input2: \00"
@.str.3 = [9 x i8] c"Input3: \00"
@.str.4 = [9 x i8] c"Input4: \00"
@.str.5 = [9 x i8] c"Input5: \00"
@.str.7 = [13 x i8] c"Output1: %c\0A\00"
@.str.8 = [13 x i8] c"Output2: %c\0A\00"
@.str.9 = [13 x i8] c"Output3: %c\0A\00"
@.str.10 = [13 x i8] c"Output4: %c\0A\00"
@.str.11 = [13 x i8] c"Output5: %c\0A\00"
@str = [11 x i8] c"**********\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%17 = load i8, i8* %1
%18 = icmp sgt i8 %17, 96
br i1 %18, label %19, label %24
19: ; preds = %0
%20 = add i8 %17, -96
%21 = urem i8 %20, 26
%22 = add nuw nsw i8 %21, 97
%23 = zext i8 %22 to i16
br label %29
24: ; preds = %0
%25 = sext i8 %17 to i16
%26 = add nsw i16 %25, -64
%27 = srem i16 %26, 26
%28 = add nsw i16 %27, 65
br label %29
29: ; preds = %24, %19
%30 = phi i16 [ %28, %24 ], [ %23, %19 ]
%31 = zext i16 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %31)
%33 = load i8, i8* %2
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %34)
%36 = load i8, i8* %3
%37 = icmp sgt i8 %36, 96
br i1 %37, label %38, label %43
38: ; preds = %29
%39 = add i8 %36, -96
%40 = urem i8 %39, 26
%41 = add nuw nsw i8 %40, 97
%42 = zext i8 %41 to i16
br label %48
43: ; preds = %29
%44 = sext i8 %36 to i16
%45 = add nsw i16 %44, -64
%46 = srem i16 %45, 26
%47 = add nsw i16 %46, 65
br label %48
48: ; preds = %43, %38
%49 = phi i16 [ %47, %43 ], [ %42, %38 ]
%50 = zext i16 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %50)
%52 = load i8, i8* %4
%53 = sext i8 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %53)
%55 = load i8, i8* %5
%56 = icmp sgt i8 %55, 96
br i1 %56, label %57, label %62
57: ; preds = %48
%58 = add i8 %55, -96
%59 = urem i8 %58, 26
%60 = add nuw nsw i8 %59, 97
%61 = zext i8 %60 to i16
br label %67
62: ; preds = %48
%63 = sext i8 %55 to i16
%64 = add nsw i16 %63, -64
%65 = srem i16 %64, 26
%66 = add nsw i16 %65, 65
br label %67
67: ; preds = %62, %57
%68 = phi i16 [ %66, %62 ], [ %61, %57 ]
%69 = zext i16 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %69)
ret i32 0
}