#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 */
typedef int /*<<< orphan*/ off_t;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, char *);
int main(int argc, char *argv[]) {
  unsigned int i;
  char *prefix[9];
  for (i = 0; i < 9; i++)
    prefix[i] = NULL;
  prefix[1] = "hh";
  prefix[2] = "h";
  prefix[8] = "ll";
  prefix[sizeof(int)] = "";
  prefix[sizeof(long int)] = "l";
  printf("%s\n", prefix[sizeof(off_t)]);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x9,-0x14(%rbp)
jae    1151 <main+0x41>
mov    -0x14(%rbp),%eax
movq   $0x0,-0x60(%rbp,%rax,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
lea    0xea8(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xe9e(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xe95(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe90(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xe80(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x40(%rbp),%rsi
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xee4(%rip),%rsi
call   1030 <printf@plt>
mov    0x2eb5(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"hh\00"
@.str.1 = [2 x i8] c"h\00"
@.str.2 = [3 x i8] c"ll\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [2 x i8] c"l\00"
@.str.5 = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [9 x i8*]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %8
8: ; preds = %15, %2
%9 = load i32, i32* %6
%10 = icmp ult i32 %9, 9
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = load i32, i32* %6
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 %13
store i8* null, i8** %14
br label %15
15: ; preds = %11
%16 = load i32, i32* %6
%17 = add i32 %16, 1
store i32 %17, i32* %6
br label %8
18: ; preds = %8
%19 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %19
%20 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 8
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 4
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 8
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds [9 x i8*], [9 x i8*]* %7, i64 0, i64 4
%25 = load i8*, i8** %24
%26 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %25)
%27 = load i32, i32* @EXIT_SUCCESS
ret i32 %27
}

LLVM IR (-O2):
@.str.3 = [1 x i8] zeroinitializer
@.str.5 = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0))
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}