#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*/ keywords;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
int main(void) {
  const char *keywords[] = {"do",     "for",   "if", "registeringchioszch",
                            "return", "while", NULL};
  printf("\nSize of the pointer array is %lu", sizeof(keywords));
  printf("\nSize of the first element of the ptr array is %lu",
         sizeof(keywords[0]));
  printf("\nIf we divide the 2 => there are %lu elements in the array.",
         (sizeof(keywords)) / (sizeof(keywords[0])));
  puts("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x38,%edx
call   1050 <memset@plt>
lea    0xeaa(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xea2(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe9b(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xe93(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xe9c(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe98(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe93(%rip),%rdi
mov    $0x38,%esi
call   1040 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x7,%esi
call   1040 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x38,%esi
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x7,%esi
call   1040 <printf@plt>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"do\00"
@.str.1 = [4 x i8] c"for\00"
@.str.2 = [3 x i8] c"if\00"
@.str.3 = [20 x i8] c"registeringchioszch\00"
@.str.4 = [7 x i8] c"return\00"
@.str.5 = [6 x i8] c"while\00"
@.str.6 = [34 x i8] c"\0ASize of the pointer array is %lu\00"
@.str.7 = [51 x i8] c"\0ASize of the first element of the ptr array is %lu\00"
@.str.8 = [60 x i8] c"\0AIf we divide the 2 => there are %lu elements in the array.\00"
@.str.9 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i8*]
store i32 0, i32* %1
%3 = bitcast [7 x i8*]* %2 to i8*
%4 = bitcast i8* %3 to [7 x i8*]*
%5 = getelementptr inbounds [7 x i8*], [7 x i8*]* %4, i32 0, i32 0
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8** %5
%6 = getelementptr inbounds [7 x i8*], [7 x i8*]* %4, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8** %6
%7 = getelementptr inbounds [7 x i8*], [7 x i8*]* %4, i32 0, i32 2
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [7 x i8*], [7 x i8*]* %4, i32 0, i32 3
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [7 x i8*], [7 x i8*]* %4, i32 0, i32 4
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8** %9
%10 = getelementptr inbounds [7 x i8*], [7 x i8*]* %4, i32 0, i32 5
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0), i8** %10
%11 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 56)
%12 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i32 8)
%13 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0), i32 7)
%14 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.6 = [34 x i8] c"\0ASize of the pointer array is %lu\00"
@.str.7 = [51 x i8] c"\0ASize of the first element of the ptr array is %lu\00"
@.str.8 = [60 x i8] c"\0AIf we divide the 2 => there are %lu elements in the array.\00"
@.str.9 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 56)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i32 8)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0), i32 7)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}