#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 scalar_t__ useconds_t;
typedef scalar_t__ uid_t;
typedef scalar_t__ ssize_t;
typedef scalar_t__ pid_t;
typedef scalar_t__ off_t;
typedef scalar_t__ mode_t;
typedef scalar_t__ ino_t;
typedef scalar_t__ gid_t;
typedef scalar_t__ dev_t;

/* Variables and functions */
int CHAR_BIT;
int /*<<< orphan*/ printf(char *, ...);
void posix88_types() {
  printf("    mod posix88 {\n");
  printf("        type %s = %c%d;\n", "off_t", ((((off_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(off_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "dev_t", ((((dev_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(dev_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "ino_t", ((((ino_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(ino_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "pid_t", ((((pid_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(pid_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "uid_t", ((((uid_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(uid_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "gid_t", ((((gid_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(gid_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "useconds_t",
         ((((useconds_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(useconds_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "mode_t",
         ((((mode_t)-1) < 0) ? 'i' : 'u'), (((int)sizeof(mode_t)) * CHAR_BIT));
  printf("        type %s = %c%d;\n", "ssize_t",
         ((((ssize_t)-1) < 0) ? 'i' : 'u'),
         (((int)sizeof(ssize_t)) * CHAR_BIT));
  printf("    }\n");
}


x86 assembly (clang, -O0):
<posix88_types>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2eb7(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xede(%rip),%rdi
lea    0xef0(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xeb8(%rip),%rdi
lea    0xed0(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xe92(%rip),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xe6c(%rip),%rdi
lea    0xe90(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xe46(%rip),%rdi
lea    0xe70(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2df9(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xe20(%rip),%rdi
lea    0xe50(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dd3(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xdfa(%rip),%rdi
lea    0xe30(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dad(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xdd4(%rip),%rdi
lea    0xe15(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d87(%rip),%rax
mov    (%rax),%ecx
shl    $0x3,%ecx
lea    0xdae(%rip),%rdi
lea    0xdf6(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<posix88_types>:
push   %r14
push   %rbx
push   %rax
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
mov    0x2ea9(%rip),%r14
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xebc(%rip),%rbx
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xeb8(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xea2(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xe8c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xe76(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xe4a(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r14),%ecx
shl    $0x3,%ecx
lea    0xe24(%rip),%rsi
mov    %rbx,%rdi
mov    $0x69,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe28(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [19 x i8] c" mod posix88 {\0A\00"
@.str.1 = [25 x i8] c" type %s = %c%d;\0A\00"
@.str.2 = [6 x i8] c"off_t\00"
@CHAR_BIT = global i32 0
@.str.3 = [6 x i8] c"dev_t\00"
@.str.4 = [6 x i8] c"ino_t\00"
@.str.5 = [6 x i8] c"pid_t\00"
@.str.6 = [6 x i8] c"uid_t\00"
@.str.7 = [6 x i8] c"gid_t\00"
@.str.8 = [11 x i8] c"useconds_t\00"
@.str.9 = [7 x i8] c"mode_t\00"
@.str.10 = [8 x i8] c"ssize_t\00"
@.str.11 = [7 x i8] c" }\0A\00"
define void @posix88_types() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @CHAR_BIT
%3 = mul nsw i32 8, %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 105, i32 %3)
%5 = load i32, i32* @CHAR_BIT
%6 = mul nsw i32 8, %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 105, i32 %6)
%8 = load i32, i32* @CHAR_BIT
%9 = mul nsw i32 8, %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 105, i32 %9)
%11 = load i32, i32* @CHAR_BIT
%12 = mul nsw i32 8, %11
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 105, i32 %12)
%14 = load i32, i32* @CHAR_BIT
%15 = mul nsw i32 8, %14
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 105, i32 %15)
%17 = load i32, i32* @CHAR_BIT
%18 = mul nsw i32 8, %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 105, i32 %18)
%20 = load i32, i32* @CHAR_BIT
%21 = mul nsw i32 8, %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 105, i32 %21)
%23 = load i32, i32* @CHAR_BIT
%24 = mul nsw i32 8, %23
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 105, i32 %24)
%26 = load i32, i32* @CHAR_BIT
%27 = mul nsw i32 8, %26
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 105, i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c" type %s = %c%d;\0A\00"
@.str.2 = [6 x i8] c"off_t\00"
@CHAR_BIT = global i32 0
@.str.3 = [6 x i8] c"dev_t\00"
@.str.4 = [6 x i8] c"ino_t\00"
@.str.5 = [6 x i8] c"pid_t\00"
@.str.6 = [6 x i8] c"uid_t\00"
@.str.7 = [6 x i8] c"gid_t\00"
@.str.8 = [11 x i8] c"useconds_t\00"
@.str.9 = [7 x i8] c"mode_t\00"
@.str.10 = [8 x i8] c"ssize_t\00"
@str = [18 x i8] c" mod posix88 {\00"
@str.12 = [6 x i8] c" }\00"
define void @posix88_types() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = load i32, i32* @CHAR_BIT
%3 = shl nsw i32 %2, 3
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 105, i32 %3)
%5 = load i32, i32* @CHAR_BIT
%6 = shl nsw i32 %5, 3
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 105, i32 %6)
%8 = load i32, i32* @CHAR_BIT
%9 = shl nsw i32 %8, 3
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 105, i32 %9)
%11 = load i32, i32* @CHAR_BIT
%12 = shl nsw i32 %11, 3
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 105, i32 %12)
%14 = load i32, i32* @CHAR_BIT
%15 = shl nsw i32 %14, 3
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 105, i32 %15)
%17 = load i32, i32* @CHAR_BIT
%18 = shl nsw i32 %17, 3
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 105, i32 %18)
%20 = load i32, i32* @CHAR_BIT
%21 = shl nsw i32 %20, 3
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i32 105, i32 %21)
%23 = load i32, i32* @CHAR_BIT
%24 = shl nsw i32 %23, 3
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 105, i32 %24)
%26 = load i32, i32* @CHAR_BIT
%27 = shl nsw i32 %26, 3
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 105, i32 %27)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.12, i64 0, i64 0))
ret void
}