#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*/ pm;
typedef int /*<<< orphan*/ p4;
typedef int /*<<< orphan*/ p3;
typedef int /*<<< orphan*/ p2;
typedef int /*<<< orphan*/ p1;
typedef int /*<<< orphan*/ km;
typedef int /*<<< orphan*/ dm;
typedef int /*<<< orphan*/ d1;
typedef int /*<<< orphan*/ d;
typedef int /*<<< orphan*/ cnp;
typedef int /*<<< orphan*/ cn;
typedef int /*<<< orphan*/ cm;
typedef int /*<<< orphan*/ ckp;
typedef int /*<<< orphan*/ ck;
typedef int /*<<< orphan*/ c1;
typedef int /*<<< orphan*/ c;
typedef int /*<<< orphan*/ bnp;
typedef int /*<<< orphan*/ bn;
typedef int /*<<< orphan*/ bkp;
typedef int /*<<< orphan*/ bk;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, ...);
void main() {
  typedef struct student {
  } Stu_st, *Stu_pst;
  unsigned int i = 10;
  char *p3, p4;
  printf("\nsizeof p3 = %d,p4 = %d\n", sizeof(p3), sizeof(p4));
  typedef char *pchar;
  pchar p1, p2;
  printf("\nsizeof p1 = %d,p2 = %d\n", sizeof(p1), sizeof(p2));
  typedef char b[10];
  b c[10];
  b d;
  b *c1[10];
  b *d1;
  printf("sizeof b:%d\n", sizeof(b));
  printf("sizeof c:%d\n", sizeof(c));
  printf("sizeof c1:%d\n", sizeof(c1));
  printf("sizeof d:%d\n", sizeof(d));
  printf("sizeof d1:%d\n", sizeof(d1));
  typedef char *bm[10];
  bm cm[10];
  bm dm;
  bm *pm[10];
  bm *km;
  printf("\nsizeof bm:%d\n", sizeof(bm));
  printf("sizeof cm:%d\n", sizeof(cm));
  printf("sizeof dm:%d\n", sizeof(dm));
  printf("sizeof pm:%d\n", sizeof(pm));
  printf("sizeof km:%d\n", sizeof(km));
  typedef char(*an)[10];
  an bn[10];
  an cn;
  an *bnp[10];
  an *cnp[10];
  printf("\nsizeof an:%d\n", sizeof(an));
  printf("sizeof bn:%d\n", sizeof(bn));
  printf("sizeof cn:%d\n", sizeof(cn));
  printf("sizeof bnp:%d\n", sizeof(bnp));
  printf("sizeof cnp:%d\n", sizeof(cnp));
  typedef char *(*ak)[10];
  ak bk[10];
  ak ck;
  ak *bkp[10];
  ak *ckp[10];
  printf("\nsizeof an:%d\n", sizeof(ak));
  printf("sizeof bn:%d\n", sizeof(bk));
  printf("sizeof cn:%d\n", sizeof(ck));
  printf("sizeof bnp:%d\n", sizeof(bkp));
  printf("sizeof cnp:%d\n", sizeof(ckp));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x6d0,%rsp
movl   $0xa,-0x4(%rbp)
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x320,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe93(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe46(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe42(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3d(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe38(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe34(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x6d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0xee0(%rip),%rdi
mov    $0x1,%edx
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x8,%edx
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x320,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeae(%rip),%r14
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xea7(%rip),%r15
mov    %r15,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe9f(%rip),%r12
mov    %r12,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe97(%rip),%r13
mov    %r13,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe90(%rip),%rbx
mov    %rbx,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"\0Asizeof p3 = %d,p4 = %d\0A\00"
@.str.1 = [25 x i8] c"\0Asizeof p1 = %d,p2 = %d\0A\00"
@.str.2 = [13 x i8] c"sizeof b:%d\0A\00"
@.str.3 = [13 x i8] c"sizeof c:%d\0A\00"
@.str.4 = [14 x i8] c"sizeof c1:%d\0A\00"
@.str.5 = [13 x i8] c"sizeof d:%d\0A\00"
@.str.6 = [14 x i8] c"sizeof d1:%d\0A\00"
@.str.7 = [15 x i8] c"\0Asizeof bm:%d\0A\00"
@.str.8 = [14 x i8] c"sizeof cm:%d\0A\00"
@.str.9 = [14 x i8] c"sizeof dm:%d\0A\00"
@.str.10 = [14 x i8] c"sizeof pm:%d\0A\00"
@.str.11 = [14 x i8] c"sizeof km:%d\0A\00"
@.str.12 = [15 x i8] c"\0Asizeof an:%d\0A\00"
@.str.13 = [14 x i8] c"sizeof bn:%d\0A\00"
@.str.14 = [14 x i8] c"sizeof cn:%d\0A\00"
@.str.15 = [15 x i8] c"sizeof bnp:%d\0A\00"
@.str.16 = [15 x i8] c"sizeof cnp:%d\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [10 x [10 x i8]]
%7 = alloca [10 x i8]
%8 = alloca [10 x [10 x i8]*]
%9 = alloca [10 x i8]*
%10 = alloca [10 x [10 x i8*]]
%11 = alloca [10 x i8*]
%12 = alloca [10 x [10 x i8*]*]
%13 = alloca [10 x i8*]*
%14 = alloca [10 x [10 x i8]*]
%15 = alloca [10 x i8]*
%16 = alloca [10 x [10 x i8]**]
%17 = alloca [10 x [10 x i8]**]
%18 = alloca [10 x [10 x i8*]*]
%19 = alloca [10 x i8*]*
%20 = alloca [10 x [10 x i8*]**]
%21 = alloca [10 x [10 x i8*]**]
store i32 10, i32* %1
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 8, i64 1)
%23 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 8, i64 8)
%24 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 10)
%25 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 100)
%26 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 80)
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 10)
%28 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 8)
%29 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 80)
%30 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 800)
%31 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 80)
%32 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 80)
%33 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 8)
%34 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 8)
%35 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 80)
%36 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 8)
%37 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i32 80)
%38 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 80)
%39 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 8)
%40 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 80)
%41 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 8)
%42 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i32 80)
%43 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 80)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"\0Asizeof p3 = %d,p4 = %d\0A\00"
@.str.1 = [25 x i8] c"\0Asizeof p1 = %d,p2 = %d\0A\00"
@.str.2 = [13 x i8] c"sizeof b:%d\0A\00"
@.str.3 = [13 x i8] c"sizeof c:%d\0A\00"
@.str.4 = [14 x i8] c"sizeof c1:%d\0A\00"
@.str.5 = [13 x i8] c"sizeof d:%d\0A\00"
@.str.6 = [14 x i8] c"sizeof d1:%d\0A\00"
@.str.7 = [15 x i8] c"\0Asizeof bm:%d\0A\00"
@.str.8 = [14 x i8] c"sizeof cm:%d\0A\00"
@.str.9 = [14 x i8] c"sizeof dm:%d\0A\00"
@.str.10 = [14 x i8] c"sizeof pm:%d\0A\00"
@.str.11 = [14 x i8] c"sizeof km:%d\0A\00"
@.str.12 = [15 x i8] c"\0Asizeof an:%d\0A\00"
@.str.13 = [14 x i8] c"sizeof bn:%d\0A\00"
@.str.14 = [14 x i8] c"sizeof cn:%d\0A\00"
@.str.15 = [15 x i8] c"sizeof bnp:%d\0A\00"
@.str.16 = [15 x i8] c"sizeof cnp:%d\0A\00"
define void @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 8, i64 1)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 8, i64 8)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 10)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 100)
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 80)
%6 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 10)
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 8)
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 80)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 800)
%10 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 80)
%11 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 80)
%12 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i32 8)
%13 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 8)
%14 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 80)
%15 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 8)
%16 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i32 80)
%17 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 80)
%18 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 8)
%19 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 80)
%20 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i32 8)
%21 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0), i32 80)
%22 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i32 80)
ret void
}