int main(int argc, char **argv) {
  int a;
  a = 65;
  assert(a == 65);
  printf("The value of a is %d.\n", a);
  printf("The value of a is stored in memory at the location %p.\n", &a);
  int *b;
  b = &a;
  assert(b = &a);
  printf("The value of b is %p.\n", b);
  printf("Lets verify that b = &a.\nb=%p, &a=%p, &a - b = %p\n", b, &a, &a - b);
  assert((&a - b) == 0);
  printf("&a = b = b + 0 = %p\n", b + 0);
  assert((b + 0) == &a);
  printf("a = %d, *b = %d\n", a, *b);
  assert(a == *b);
  printf("The size of int is %d.\n", sizeof(int));
  printf("The size of char is %d.\n", sizeof(char));
  char *c = &a;
  printf("c == &a == b, %p == %p == %p\n", c, &a, b);
  assert((c == &a) && (c == b));
  struct S {
    int a;
    char b;
    int c;
    char d;
  };
  struct S *s = malloc(1 * sizeof(struct S));
  assert(s);
  s->a = 0;
  s->b = 1;
  s->c = 2;
  s->d = 3;
  printf("s->a = %d\n", s->a);
  printf("s->b = %c\n", s->b);
  printf("s->c = %d\n", s->c);
  printf("s->d = %d\n", s->d);
  int *j = s;
  char *k = s;
  printf("\n// Iterate over structure as integer.\n");
  int i = 0;
  for (i = 0; i < sizeof(struct S) / sizeof(int); ++i) {
    printf("*(j + %d) = %d\n", i, *(j + i));
  }
  printf("\n// Iterate over structure as character.\n");
  for (i = 0; i < sizeof(struct S) / sizeof(char); ++i) {
    printf("*(k + %d) = %d\n", i, *(k + i));
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x41,-0x14(%rbp)
cmpl   $0x41,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x14(%rbp),%esi
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9f(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x14(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rdi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x20(%rbp),%rsi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rax
lea    -0x14(%rbp),%rcx
sub    %rax,%rcx
sar    $0x2,%rcx
lea    0xe9c(%rip),%rdi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rcx
lea    -0x14(%rbp),%rax
sub    %rcx,%rax
sar    $0x2,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x20(%rbp),%rsi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
lea    -0x14(%rbp),%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%edx
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
lea    0xe66(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6b(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x14(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rcx
lea    0xe61(%rip),%rdi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rcx
lea    -0x14(%rbp),%rdx
xor    %eax,%eax
cmp    %rdx,%rcx
mov    %al,-0x45(%rbp)
jne    12c1 <main+0x191>
mov    -0x28(%rbp),%rax
mov    -0x20(%rbp),%rcx
cmp    %rcx,%rax
sete   %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    $0x10,%edi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x30(%rbp),%rax
movb   $0x1,0x4(%rax)
mov    -0x30(%rbp),%rax
movl   $0x2,0x8(%rax)
mov    -0x30(%rbp),%rax
movb   $0x3,0xc(%rax)
mov    -0x30(%rbp),%rax
mov    (%rax),%esi
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl 0x4(%rax),%esi
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl 0xc(%rax),%esi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x44(%rbp)
movslq -0x44(%rbp),%rax
cmp    $0x4,%rax
jae    13c7 <main+0x297>
mov    -0x44(%rbp),%esi
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    138f <main+0x25f>
lea    0xda4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
movslq -0x44(%rbp),%rax
cmp    $0x10,%rax
jae    1415 <main+0x2e5>
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    13dc <main+0x2ac>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
movl   $0x41,0x4(%rsp)
mov    $0x1,%edi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xea1(%rip),%rdi
mov    $0x41,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea5(%rip),%rdi
lea    0x4(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xed4(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1050 <assert@plt>
mov    0x4(%rsp),%edx
lea    0xec8(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xebd(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1050 <assert@plt>
mov    $0x10,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <assert@plt>
movl   $0x0,(%rbx)
movb   $0x1,0x4(%rbx)
movl   $0x2,0x8(%rbx)
movb   $0x3,0xc(%rbx)
lea    0xe97(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x4(%rbx),%esi
lea    0xe8e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%esi
lea    0xe88(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xc(%rbx),%esi
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9e(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%edx
lea    0xe70(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rbx),%edx
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%edx
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rbx),%edx
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe6e(%rip),%rdi
call   1030 <puts@plt>
movsbl (%rbx),%edx
lea    0xe28(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x1(%rbx),%edx
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x2(%rbx),%edx
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x3(%rbx),%edx
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x4(%rbx),%edx
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x5(%rbx),%edx
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x6(%rbx),%edx
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x7(%rbx),%edx
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x8(%rbx),%edx
mov    %r14,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x9(%rbx),%edx
mov    %r14,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xa(%rbx),%edx
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xb(%rbx),%edx
mov    %r14,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xc(%rbx),%edx
mov    %r14,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xd(%rbx),%edx
mov    %r14,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xe(%rbx),%edx
mov    %r14,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0xf(%rbx),%edx
mov    %r14,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.S = type { i32, i8, i32, i8 }
@.str = [23 x i8] c"The value of a is %d.\0A\00"
@.str.1 = [56 x i8] c"The value of a is stored in memory at the location %p.\0A\00"
@.str.2 = [23 x i8] c"The value of b is %p.\0A\00"
@.str.3 = [51 x i8] c"Lets verify that b = &a.\0Ab=%p, &a=%p, &a - b = %p\0A\00"
@.str.4 = [21 x i8] c"&a = b = b + 0 = %p\0A\00"
@.str.5 = [17 x i8] c"a = %d, *b = %d\0A\00"
@.str.6 = [24 x i8] c"The size of int is %d.\0A\00"
@.str.7 = [25 x i8] c"The size of char is %d.\0A\00"
@.str.8 = [30 x i8] c"c == &a == b, %p == %p == %p\0A\00"
@.str.9 = [11 x i8] c"s->a = %d\0A\00"
@.str.10 = [11 x i8] c"s->b = %c\0A\00"
@.str.11 = [11 x i8] c"s->c = %d\0A\00"
@.str.12 = [11 x i8] c"s->d = %d\0A\00"
@.str.13 = [40 x i8] c"\0A// Iterate over structure as integer.\0A\00"
@.str.14 = [16 x i8] c"*(j + %d) = %d\0A\00"
@.str.15 = [42 x i8] c"\0A// Iterate over structure as character.\0A\00"
@.str.16 = [16 x i8] c"*(k + %d) = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca %struct.S*
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 65, i32* %6
%13 = load i32, i32* %6
%14 = icmp eq i32 %13, 65
%15 = zext i1 %14 to i32
%16 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %15)
%17 = load i32, i32* %6
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i32* %6)
store i32* %6, i32** %7
store i32* %6, i32** %7
%20 = call i32 (i32*, ...) bitcast (i32 (...)* @assert to i32 (i32*, ...)*)(i32* %6)
%21 = load i32*, i32** %7
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32* %21)
%23 = load i32*, i32** %7
%24 = load i32*, i32** %7
%25 = ptrtoint i32* %6 to i64
%26 = ptrtoint i32* %24 to i64
%27 = sub i64 %25, %26
%28 = sdiv exact i64 %27, 4
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i32* %23, i32* %6, i64 %28)
%30 = load i32*, i32** %7
%31 = ptrtoint i32* %6 to i64
%32 = ptrtoint i32* %30 to i64
%33 = sub i64 %31, %32
%34 = sdiv exact i64 %33, 4
%35 = icmp eq i64 %34, 0
%36 = zext i1 %35 to i32
%37 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %36)
%38 = load i32*, i32** %7
%39 = getelementptr inbounds i32, i32* %38, i64 0
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32* %39)
%41 = load i32*, i32** %7
%42 = getelementptr inbounds i32, i32* %41, i64 0
%43 = icmp eq i32* %42, %6
%44 = zext i1 %43 to i32
%45 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %44)
%46 = load i32, i32* %6
%47 = load i32*, i32** %7
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %46, i32 %48)
%50 = load i32, i32* %6
%51 = load i32*, i32** %7
%52 = load i32, i32* %51
%53 = icmp eq i32 %50, %52
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i64 4)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i64 1)
%58 = bitcast i32* %6 to i8*
store i8* %58, i8** %8
%59 = load i8*, i8** %8
%60 = load i32*, i32** %7
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* %59, i32* %6, i32* %60)
%62 = load i8*, i8** %8
%63 = bitcast i32* %6 to i8*
%64 = icmp eq i8* %62, %63
br i1 %64, label %65, label %70
65: ; preds = %2
%66 = load i8*, i8** %8
%67 = load i32*, i32** %7
%68 = bitcast i32* %67 to i8*
%69 = icmp eq i8* %66, %68
br label %70
70: ; preds = %65, %2
%71 = phi i1 [ false, %2 ], [ %69, %65 ]
%72 = zext i1 %71 to i32
%73 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %72)
%74 = call i8* @malloc(i64 16)
%75 = bitcast i8* %74 to %struct.S*
store %struct.S* %75, %struct.S** %9
%76 = load %struct.S*, %struct.S** %9
%77 = call i32 (%struct.S*, ...) bitcast (i32 (...)* @assert to i32 (%struct.S*, ...)*)(%struct.S* %76)
%78 = load %struct.S*, %struct.S** %9
%79 = getelementptr inbounds %struct.S, %struct.S* %78, i32 0, i32 0
store i32 0, i32* %79
%80 = load %struct.S*, %struct.S** %9
%81 = getelementptr inbounds %struct.S, %struct.S* %80, i32 0, i32 1
store i8 1, i8* %81
%82 = load %struct.S*, %struct.S** %9
%83 = getelementptr inbounds %struct.S, %struct.S* %82, i32 0, i32 2
store i32 2, i32* %83
%84 = load %struct.S*, %struct.S** %9
%85 = getelementptr inbounds %struct.S, %struct.S* %84, i32 0, i32 3
store i8 3, i8* %85
%86 = load %struct.S*, %struct.S** %9
%87 = getelementptr inbounds %struct.S, %struct.S* %86, i32 0, i32 0
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 %88)
%90 = load %struct.S*, %struct.S** %9
%91 = getelementptr inbounds %struct.S, %struct.S* %90, i32 0, i32 1
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %93)
%95 = load %struct.S*, %struct.S** %9
%96 = getelementptr inbounds %struct.S, %struct.S* %95, i32 0, i32 2
%97 = load i32, i32* %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %97)
%99 = load %struct.S*, %struct.S** %9
%100 = getelementptr inbounds %struct.S, %struct.S* %99, i32 0, i32 3
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %102)
%104 = load %struct.S*, %struct.S** %9
%105 = bitcast %struct.S* %104 to i32*
store i32* %105, i32** %10
%106 = load %struct.S*, %struct.S** %9
%107 = bitcast %struct.S* %106 to i8*
store i8* %107, i8** %11
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %12
store i32 0, i32* %12
br label %109
109: ; preds = %121, %70
%110 = load i32, i32* %12
%111 = sext i32 %110 to i64
%112 = icmp ult i64 %111, 4
br i1 %112, label %113, label %124
113: ; preds = %109
%114 = load i32, i32* %12
%115 = load i32*, i32** %10
%116 = load i32, i32* %12
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, i32* %115, i64 %117
%119 = load i32, i32* %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 %114, i32 %119)
br label %121
121: ; preds = %113
%122 = load i32, i32* %12
%123 = add nsw i32 %122, 1
store i32 %123, i32* %12
br label %109
124: ; preds = %109
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %12
br label %126
126: ; preds = %139, %124
%127 = load i32, i32* %12
%128 = sext i32 %127 to i64
%129 = icmp ult i64 %128, 16
br i1 %129, label %130, label %142
130: ; preds = %126
%131 = load i32, i32* %12
%132 = load i8*, i8** %11
%133 = load i32, i32* %12
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, i8* %132, i64 %134
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 %131, i32 %137)
br label %139
139: ; preds = %130
%140 = load i32, i32* %12
%141 = add nsw i32 %140, 1
store i32 %141, i32* %12
br label %126
142: ; preds = %126
ret i32 0
}

LLVM IR (-O2):
%struct.S = type { i32, i8, i32, i8 }
@.str = [23 x i8] c"The value of a is %d.\0A\00"
@.str.1 = [56 x i8] c"The value of a is stored in memory at the location %p.\0A\00"
@.str.2 = [23 x i8] c"The value of b is %p.\0A\00"
@.str.3 = [51 x i8] c"Lets verify that b = &a.\0Ab=%p, &a=%p, &a - b = %p\0A\00"
@.str.4 = [21 x i8] c"&a = b = b + 0 = %p\0A\00"
@.str.5 = [17 x i8] c"a = %d, *b = %d\0A\00"
@.str.6 = [24 x i8] c"The size of int is %d.\0A\00"
@.str.7 = [25 x i8] c"The size of char is %d.\0A\00"
@.str.8 = [30 x i8] c"c == &a == b, %p == %p == %p\0A\00"
@.str.9 = [11 x i8] c"s->a = %d\0A\00"
@.str.10 = [11 x i8] c"s->b = %c\0A\00"
@.str.11 = [11 x i8] c"s->c = %d\0A\00"
@.str.12 = [11 x i8] c"s->d = %d\0A\00"
@.str.14 = [16 x i8] c"*(j + %d) = %d\0A\00"
@.str.16 = [16 x i8] c"*(k + %d) = %d\0A\00"
@str = [39 x i8] c"\0A// Iterate over structure as integer.\00"
@str.17 = [41 x i8] c"\0A// Iterate over structure as character.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 65, i32* %3
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 65)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%8 = call i32 (i32*, ...) bitcast (i32 (...)* @assert to i32 (i32*, ...)*)(i32* %3)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0), i32* %3, i32* %3, i64 0)
%11 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%13 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%14 = load i32, i32* %3
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %14, i32 %14)
%16 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i64 4)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i64 1)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32* %3, i32* %3, i32* %3)
%20 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
%21 = call dereferenceable_or_null(16) i8* @malloc(i64 16)
%22 = bitcast i8* %21 to %struct.S*
%23 = call i32 (%struct.S*, ...) bitcast (i32 (...)* @assert to i32 (%struct.S*, ...)*)(%struct.S* %22)
%24 = getelementptr inbounds %struct.S, %struct.S* %22, i64 0, i32 0
store i32 0, i32* %24
%25 = getelementptr inbounds %struct.S, %struct.S* %22, i64 0, i32 1
store i8 1, i8* %25
%26 = getelementptr inbounds %struct.S, %struct.S* %22, i64 0, i32 2
store i32 2, i32* %26
%27 = getelementptr inbounds %struct.S, %struct.S* %22, i64 0, i32 3
store i8 3, i8* %27
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 0)
%29 = load i8, i8* %25
%30 = sext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %26
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %32)
%34 = load i8, i8* %27
%35 = sext i8 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %35)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%38 = load i32, i32* %24
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 0, i32 %38)
%40 = getelementptr inbounds i32, i32* %24, i64 1
%41 = load i32, i32* %40
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 %41)
%43 = getelementptr inbounds i32, i32* %24, i64 2
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 2, i32 %44)
%46 = getelementptr inbounds i32, i32* %24, i64 3
%47 = load i32, i32* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 3, i32 %47)
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.17, i64 0, i64 0))
%50 = load i8, i8* %21
%51 = sext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 0, i32 %51)
%53 = getelementptr inbounds i8, i8* %21, i64 1
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 1, i32 %55)
%57 = getelementptr inbounds i8, i8* %21, i64 2
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 2, i32 %59)
%61 = getelementptr inbounds i8, i8* %21, i64 3
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 3, i32 %63)
%65 = getelementptr inbounds i8, i8* %21, i64 4
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 4, i32 %67)
%69 = getelementptr inbounds i8, i8* %21, i64 5
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 5, i32 %71)
%73 = getelementptr inbounds i8, i8* %21, i64 6
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 6, i32 %75)
%77 = getelementptr inbounds i8, i8* %21, i64 7
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 7, i32 %79)
%81 = getelementptr inbounds i8, i8* %21, i64 8
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 8, i32 %83)
%85 = getelementptr inbounds i8, i8* %21, i64 9
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 9, i32 %87)
%89 = getelementptr inbounds i8, i8* %21, i64 10
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 10, i32 %91)
%93 = getelementptr inbounds i8, i8* %21, i64 11
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 11, i32 %95)
%97 = getelementptr inbounds i8, i8* %21, i64 12
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 12, i32 %99)
%101 = getelementptr inbounds i8, i8* %21, i64 13
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 13, i32 %103)
%105 = getelementptr inbounds i8, i8* %21, i64 14
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 14, i32 %107)
%109 = getelementptr inbounds i8, i8* %21, i64 15
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 15, i32 %111)
ret i32 0
}