#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 *);
void main() {
  char s[10000];
  int i, letter[26] = {0}, count = 0;
  printf("\n Enter the String:\n");
  scanf("%[^\n]s", s);
  for (i = 0; s[i] != '\0'; i++) {
    if ('a' <= s[i] && s[i] <= 'z') {
      if (letter[s[i] - 'a'] == 0) {
        letter[s[i] - 'a'] = 1;
        count++;
      }
    } else if ('A' <= s[i] && s[i] <= 'Z') {
      if (letter[s[i] - 'A'] == 0) {
        letter[s[i] - 'A'] = 1;
        count++;
      }
    }
  }
  if (count == 26) {
    printf("\n String %s is a Pangram.", s);
  } else {
    printf("\n String %s is NOT a Pangram.", s);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2790,%rsp
lea    -0x2780(%rbp),%rdi
xor    %esi,%esi
mov    $0x68,%edx
call   1040 <memset@plt>
movl   $0x0,-0x2784(%rbp)
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x2710(%rbp),%rsi
lea    0xea1(%rip),%rdi
call   1050 <scanf@plt>
movl   $0x0,-0x2714(%rbp)
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     12cb <main+0x19b>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%ecx
ff
mov    $0x61,%eax
cmp    %ecx,%eax
jg     1224 <main+0xf4>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
cmp    $0x7a,%eax
jg     1224 <main+0xf4>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
sub    $0x61,%eax
cltq
cmpl   $0x0,-0x2780(%rbp,%rax,4)
jne    121f <main+0xef>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
sub    $0x61,%eax
cltq
movl   $0x1,-0x2780(%rbp,%rax,4)
mov    -0x2784(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2784(%rbp)
jmp    12b2 <main+0x182>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%ecx
ff
mov    $0x41,%eax
cmp    %ecx,%eax
jg     12ad <main+0x17d>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
cmp    $0x5a,%eax
jg     12ad <main+0x17d>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
sub    $0x41,%eax
cltq
cmpl   $0x0,-0x2780(%rbp,%rax,4)
jne    12a8 <main+0x178>
movslq -0x2714(%rbp),%rax
movsbl -0x2710(%rbp,%rax,1),%eax
ff
sub    $0x41,%eax
cltq
movl   $0x1,-0x2780(%rbp,%rax,4)
mov    -0x2784(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2784(%rbp)
jmp    12ad <main+0x17d>
jmp    12b2 <main+0x182>
jmp    12b7 <main+0x187>
mov    -0x2714(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2714(%rbp)
jmp    1183 <main+0x53>
cmpl   $0x1a,-0x2784(%rbp)
jne    12f2 <main+0x1c2>
lea    -0x2710(%rbp),%rsi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1307 <main+0x1d7>
lea    -0x2710(%rbp),%rsi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x2790,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x2788,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0x60(%rsp)
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8d(%rip),%rdi
lea    0x70(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x70(%rsp),%al
test   %al,%al
je     11f7 <main+0xc7>
mov    $0xffffff9f,%r8d
lea    0x71(%rsp),%rdx
xor    %ecx,%ecx
jmp    11b4 <main+0x84>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    %r8d,%edi
cmpl   $0x0,(%rsp,%rdi,4)
je     11da <main+0xaa>
movzbl (%rdx),%eax
add    $0x1,%rdx
test   %al,%al
je     11e9 <main+0xb9>
movsbq %al,%rdi
lea    -0x61(%rdi),%esi
cmp    $0x19,%sil
jbe    11a0 <main+0x70>
add    $0xbf,%al
cmp    $0x19,%al
ja     11a9 <main+0x79>
lea    (%r8,%rdi,1),%eax
add    $0x20,%eax
cmpl   $0x0,(%rsp,%rax,4)
jne    11a9 <main+0x79>
lea    (%rsp,%rax,4),%rax
jmp    11de <main+0xae>
lea    (%rsp,%rdi,4),%rax
movl   $0x1,(%rax)
add    $0x1,%ecx
jmp    11a9 <main+0x79>
cmp    $0x1a,%ecx
jne    11f7 <main+0xc7>
lea    0xe12(%rip),%rdi
jmp    11fe <main+0xce>
lea    0xe23(%rip),%rdi
lea    0x70(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x2788,%rsp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"\0A Enter the String:\0A\00"
@.str.1 = [7 x i8] c"%[^\0A]s\00"
@.str.2 = [26 x i8] c"\0A String %s is a Pangram.\00"
@.str.3 = [30 x i8] c"\0A String %s is NOT a Pangram.\00"
define void @main() {
%1 = alloca [10000 x i8]
%2 = alloca i32
%3 = alloca [26 x i32]
%4 = alloca i32
%5 = bitcast [26 x i32]* %3 to i8*
store i32 0, i32* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 0
%8 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %7)
store i32 0, i32* %2
br label %9
9: ; preds = %92, %0
%10 = load i32, i32* %2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %11
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %95
16: ; preds = %9
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp sle i32 97, %21
br i1 %22, label %23, label %53
23: ; preds = %16
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %25
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp sle i32 %28, 122
br i1 %29, label %30, label %53
30: ; preds = %23
%31 = load i32, i32* %2
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = sub nsw i32 %35, 97
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %52
41: ; preds = %30
%42 = load i32, i32* %2
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = sub nsw i32 %46, 97
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %48
store i32 1, i32* %49
%50 = load i32, i32* %4
%51 = add nsw i32 %50, 1
store i32 %51, i32* %4
br label %52
52: ; preds = %41, %30
br label %91
53: ; preds = %23, %16
%54 = load i32, i32* %2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %55
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = icmp sle i32 65, %58
br i1 %59, label %60, label %90
60: ; preds = %53
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %62
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = icmp sle i32 %65, 90
br i1 %66, label %67, label %90
67: ; preds = %60
%68 = load i32, i32* %2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = sub nsw i32 %72, 65
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %74
%76 = load i32, i32* %75
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %89
78: ; preds = %67
%79 = load i32, i32* %2
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %80
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = sub nsw i32 %83, 65
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %85
store i32 1, i32* %86
%87 = load i32, i32* %4
%88 = add nsw i32 %87, 1
store i32 %88, i32* %4
br label %89
89: ; preds = %78, %67
br label %90
90: ; preds = %89, %60, %53
br label %91
91: ; preds = %90, %52
br label %92
92: ; preds = %91
%93 = load i32, i32* %2
%94 = add nsw i32 %93, 1
store i32 %94, i32* %2
br label %9
95: ; preds = %9
%96 = load i32, i32* %4
%97 = icmp eq i32 %96, 26
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 0
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %99)
br label %104
101: ; preds = %95
%102 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 0
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8* %102)
br label %104
104: ; preds = %101, %98
ret void
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"%[^\0A]s\00"
@.str.2 = [26 x i8] c"\0A String %s is a Pangram.\00"
@.str.3 = [30 x i8] c"\0A String %s is NOT a Pangram.\00"
@str = [20 x i8] c"\0A Enter the String:\00"
define void @main() {
%1 = alloca [10000 x i8]
%2 = alloca [26 x i32]
%3 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 0
%4 = bitcast [26 x i32]* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%7 = load i8, i8* %3
%8 = icmp eq i8 %7, 0
br i1 %8, label %42, label %9
9: ; preds = %0, %34
%10 = phi i64 [ %36, %34 ], [ 0, %0 ]
%11 = phi i8 [ %38, %34 ], [ %7, %0 ]
%12 = phi i32 [ %35, %34 ], [ 0, %0 ]
%13 = sext i8 %11 to i64
%14 = add i8 %11, -97
%15 = icmp ult i8 %14, 26
br i1 %15, label %16, label %22
16: ; preds = %9
%17 = add nsw i64 %13, 4294967199
%18 = and i64 %17, 4294967295
%19 = getelementptr inbounds [26 x i32], [26 x i32]* %2, i64 0, i64 %18
%20 = load i32, i32* %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %31, label %34
22: ; preds = %9
%23 = add i8 %11, -65
%24 = icmp ult i8 %23, 26
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = add nsw i64 %13, 4294967231
%27 = and i64 %26, 4294967295
%28 = getelementptr inbounds [26 x i32], [26 x i32]* %2, i64 0, i64 %27
%29 = load i32, i32* %28
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %25, %16
%32 = phi i32* [ %19, %16 ], [ %28, %25 ]
store i32 1, i32* %32
%33 = add nsw i32 %12, 1
br label %34
34: ; preds = %31, %16, %25, %22
%35 = phi i32 [ %12, %16 ], [ %12, %25 ], [ %12, %22 ], [ %33, %31 ]
%36 = add nuw i64 %10, 1
%37 = getelementptr inbounds [10000 x i8], [10000 x i8]* %1, i64 0, i64 %36
%38 = load i8, i8* %37
%39 = icmp eq i8 %38, 0
br i1 %39, label %40, label %9
40: ; preds = %34
%41 = icmp eq i32 %35, 26
br i1 %41, label %43, label %42
42: ; preds = %0, %40
br label %43
43: ; preds = %40, %42
%44 = phi i8* [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), %42 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), %40 ]
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %44, i8* %3)
ret void
}