#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 to_lower(char);
void process(char *alphabet) {
  int i, is_legal = 1;
  for (i = 0; i < 26; i++) {
    if (!*(alphabet + i)) {
      if (is_legal)
        printf("missing ");
      is_legal = 0;
      printf("%c", to_lower((char)('A' + i)));
    }
  }
  if (is_legal)
    printf("pangram");
  printf("\n");
}


x86 assembly (clang, -O0):
<process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1a,-0xc(%rbp)
jge    11a6 <process+0x86>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
jne    1193 <process+0x73>
cmpl   $0x0,-0x10(%rbp)
je     116e <process+0x4e>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x41,%eax
movsbl %al,%edi
call   1040 <to_lower@plt>
mov    %eax,%esi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1198 <process+0x78>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113a <process+0x1a>
cmpl   $0x0,-0x10(%rbp)
je     11be <process+0x9e>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
lea    0xec1(%rip),%r14
xor    %ebx,%ebx
xor    %eax,%eax
add    $0x1,%rbx
nopw   0x0(%rax,%rax,1)
cmpb   $0x0,-0x1(%r15,%rbx,1)
je     1170 <process+0x40>
add    $0x1,%rbx
cmp    $0x1b,%rbx
jne    1150 <process+0x20>
jmp    119a <process+0x6a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   $0x1,%al
jne    117e <process+0x4e>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x40(%rbx),%eax
movsbl %al,%edi
call   1050 <to_lower@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    $0x1,%al
cmp    $0x1a,%rbx
jne    1143 <process+0x13>
jmp    11ac <process+0x7c>
test   $0x1,%al
jne    11ac <process+0x7c>
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c"missing \00"
@.str.2 = [8 x i8] c"pangram\00"
define void @process(i8* nocapture %0) {
br label %2
2: ; preds = %16, %1
%3 = phi i64 [ %21, %16 ], [ 0, %1 ]
%4 = phi i1 [ true, %16 ], [ false, %1 ]
br label %5
5: ; preds = %2, %13
%6 = phi i64 [ %14, %13 ], [ %3, %2 ]
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %5
br i1 %4, label %16, label %11
11: ; preds = %10
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %16
13: ; preds = %5
%14 = add nuw nsw i64 %6, 1
%15 = icmp eq i64 %14, 26
br i1 %15, label %23, label %5
16: ; preds = %10, %11
%17 = trunc i64 %6 to i8
%18 = add nuw nsw i8 %17, 65
%19 = tail call i32 @to_lower(i8 signext %18)
%20 = tail call i32 @putchar(i32 %19)
%21 = add nuw nsw i64 %6, 1
%22 = icmp eq i64 %21, 26
br i1 %22, label %26, label %2
23: ; preds = %13
br i1 %4, label %26, label %24
24: ; preds = %23
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %16, %24, %23
%27 = tail call i32 @putchar(i32 10)
ret void
}