#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*/ iarr;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ arr;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, int);
int strlen(char *);
int main(int argv, char **argc) {
  char a = 'c';
  printf("%ld \n", sizeof(a));
  printf("%ld \n", sizeof(char));
  printf("%ld \n", sizeof(char *));
  int b = 334;
  printf("%ld \n", sizeof(b));
  printf("%ld \n", sizeof(int));
  printf("%ld \n", sizeof(int *));
  printf("%ld \n", sizeof(unsigned int));
  printf("%ld \n", sizeof(int));
  printf("%ld \n", sizeof(double));
  char arr[] = "abcd\0efgh";
  printf("arr[] array length is %ld\n", strlen(arr));
  printf("arr[] array size of %ld\n", sizeof(arr));
  char *iarr[] = {"abc", "b", "c", "d", "\0", "e", "f", "g", "h"};
  printf("iarr[] array length is %ld\n", strlen(*iarr));
  printf("iarr[] array size of %ld\n", sizeof(iarr));
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x63,-0x11(%rbp)
lea    0xe9f(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
movl   $0x14e,-0x18(%rbp)
lea    0xe65(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe54(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe43(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xe32(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe21(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe10(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
mov    0xe4b(%rip),%rax
mov    %rax,-0x22(%rbp)
mov    0xe48(%rip),%ax
mov    %ax,-0x1a(%rbp)
lea    -0x22(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%esi
lea    0xdf5(%rip),%rdi
call   1040 <printf@plt>
lea    0xe05(%rip),%rdi
mov    $0xa,%esi
call   1040 <printf@plt>
lea    -0x70(%rbp),%rdi
lea    0x2b8d(%rip),%rsi
mov    $0x48,%edx
call   1050 <memcpy@plt>
mov    -0x70(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%esi
lea    0xdb7(%rip),%rdi
call   1040 <printf@plt>
lea    0xdc7(%rip),%rdi
mov    $0x48,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
movabs $0x6766650064636261,%rax
65 66 67
mov    %rax,(%rsp)
movw   $0x68,0x8(%rsp)
mov    %rsp,%rdi
call   1030 <strlen@plt>
lea    0xe36(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xe44(%rip),%rdi
mov    $0xa,%esi
call   1040 <printf@plt>
lea    0xe12(%rip),%rdi
call   1030 <strlen@plt>
lea    0xe0a(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xe18(%rip),%rdi
mov    $0x48,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"%ld \0A\00"
@__const.main.arr = [10 x i8] c"abcd\00efgh\00"
@.str.1 = [27 x i8] c"arr[] array length is %ld\0A\00"
@.str.2 = [25 x i8] c"arr[] array size of %ld\0A\00"
@.str.3 = [4 x i8] c"abc\00"
@.str.4 = [2 x i8] c"b\00"
@.str.5 = [2 x i8] c"c\00"
@.str.6 = [2 x i8] c"d\00"
@.str.7 = [2 x i8] zeroinitializer
@.str.8 = [2 x i8] c"e\00"
@.str.9 = [2 x i8] c"f\00"
@.str.10 = [2 x i8] c"g\00"
@.str.11 = [2 x i8] c"h\00"
@__const.main.iarr = [9 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i32 0, i32 0)]
@.str.12 = [28 x i8] c"iarr[] array length is %ld\0A\00"
@.str.13 = [26 x i8] c"iarr[] array size of %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i32
%8 = alloca [10 x i8]
%9 = alloca [9 x i8*]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 99, i8* %6
%10 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1)
%11 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1)
%12 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
store i32 334, i32* %7
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
%16 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%18 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
%19 = bitcast [10 x i8]* %8 to i8*
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%21 = call i32 @strlen(i8* %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %21)
%23 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 10)
%24 = bitcast [9 x i8*]* %9 to i8*
%25 = getelementptr inbounds [9 x i8*], [9 x i8*]* %9, i64 0, i64 0
%26 = load i8*, i8** %25
%27 = call i32 @strlen(i8* %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i32 %27)
%29 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0), i32 72)
%30 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [6 x i8] c"%ld \0A\00"
@__const.main.arr = [10 x i8] c"abcd\00efgh\00"
@.str.1 = [27 x i8] c"arr[] array length is %ld\0A\00"
@.str.2 = [25 x i8] c"arr[] array size of %ld\0A\00"
@.str.3 = [4 x i8] c"abc\00"
@.str.12 = [28 x i8] c"iarr[] array length is %ld\0A\00"
@.str.13 = [26 x i8] c"iarr[] array size of %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i8]
%4 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 4)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 8)
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%14 = call i32 @strlen(i8* %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 10)
%17 = call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0), i32 %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0), i32 72)
%20 = call i32 @exit(i32 1)
unreachable
}