#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 */
char getchar();
int plndrm(char *);
int /*<<< orphan*/ printf(char *);
int main() {
  int i, l;
  char s[100001], ch;
  for (i = 0; ch != '\n'; i++) {
    ch = getchar();
    s[i] = ch;
  }
  s[i] = '$';
  l = plndrm(s);
  if (l == 0)
    printf("pangram");
  else
    printf("not pangram");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x186c0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movsbl -0x186b1(%rbp),%eax
cmp    $0xa,%eax
je     1185 <main+0x55>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x186b1(%rbp)
mov    -0x186b1(%rbp),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x186b0(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1149 <main+0x19>
movslq -0x8(%rbp),%rax
movb   $0x24,-0x186b0(%rbp,%rax,1)
24
lea    -0x186b0(%rbp),%rdi
call   1050 <plndrm@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    11bb <main+0x8b>
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
jmp    11c7 <main+0x97>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x186c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x186b0,%rsp
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %al,(%rsp,%rbx,1)
add    $0x1,%rbx
cmp    $0xa,%al
jne    1140 <main+0x10>
mov    %ebx,%eax
movb   $0x24,(%rsp,%rax,1)
mov    %rsp,%rdi
call   1050 <plndrm@plt>
test   %eax,%eax
lea    0xe9b(%rip),%rax
lea    0xe90(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x186b0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"pangram\00"
@.str.1 = [12 x i8] c"not pangram\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [100001 x i8]
%5 = alloca i8
store i32 0, i32* %1
store i32 0, i32* %2
br label %6
6: ; preds = %16, %0
%7 = load i8, i8* %5
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 10
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = call signext i8 (...) @getchar()
store i8 %11, i8* %5
%12 = load i8, i8* %5
%13 = load i32, i32* %2
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100001 x i8], [100001 x i8]* %4, i64 0, i64 %14
store i8 %12, i8* %15
br label %16
16: ; preds = %10
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %6
19: ; preds = %6
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100001 x i8], [100001 x i8]* %4, i64 0, i64 %21
store i8 36, i8* %22
%23 = getelementptr inbounds [100001 x i8], [100001 x i8]* %4, i64 0, i64 0
%24 = call i32 @plndrm(i8* %23)
store i32 %24, i32* %3
%25 = load i32, i32* %3
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %31
29: ; preds = %19
%30 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %31
31: ; preds = %29, %27
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"pangram\00"
@.str.1 = [12 x i8] c"not pangram\00"
define i32 @main() {
%1 = alloca [100001 x i8]
%2 = getelementptr inbounds [100001 x i8], [100001 x i8]* %1, i64 0, i64 0
br label %3
3: ; preds = %0, %3
%4 = phi i64 [ 0, %0 ], [ %7, %3 ]
%5 = tail call signext i8 (...) @getchar()
%6 = getelementptr inbounds [100001 x i8], [100001 x i8]* %1, i64 0, i64 %4
store i8 %5, i8* %6
%7 = add nuw i64 %4, 1
%8 = icmp eq i8 %5, 10
br i1 %8, label %9, label %3
9: ; preds = %3
%10 = and i64 %7, 4294967295
%11 = getelementptr inbounds [100001 x i8], [100001 x i8]* %1, i64 0, i64 %10
store i8 36, i8* %11
%12 = call i32 @plndrm(i8* %2)
%13 = icmp eq i32 %12, 0
%14 = select i1 %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0)
%15 = call i32 @printf(i8* dereferenceable(1) %14)
ret i32 0
}