void main() {
  int i, j;
  struct line {
    struct point {
      int x;
      int y;
    } p1, p2;
  } * l1, l3[1] = {{{15, 16}, {17, 18}}};
  struct line s4 = {{10, 11}, {12, 13}};
  int a[3] = {1, 2, 3}, c[2][3] = {{1, 2, 3}, {4, 5, 6}};
  struct point p, p1 = {20, 21};
  int b = s4.p2.y;
  printid(l3);
  printid(s4);
  printid(a);
  printid(b);
  printid(c);
  p = s4.p1;
  printid(p);
  printid(p1);
  l3[0].p2.y = 5;
  printid(l3);
  s4.p2 = p;
  printid(s4);
  l1 = &s4;
  l1->p1 = p1;
  l1->p2 = p;
  print(*l1);
  printid(s4);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0xece(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec8(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x3c(%rbp)
mov    0xec0(%rip),%eax
mov    %eax,-0x34(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xeb8(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xeb5(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x74(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1040 <printid@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <printid@plt>
lea    -0x3c(%rbp),%rdi
mov    $0x0,%al
call   1040 <printid@plt>
mov    -0x74(%rbp),%edi
mov    $0x0,%al
call   1040 <printid@plt>
lea    -0x60(%rbp),%rdi
mov    $0x0,%al
call   1040 <printid@plt>
mov    -0x30(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    $0x0,%al
call   1040 <printid@plt>
mov    -0x70(%rbp),%rdi
mov    $0x0,%al
call   1040 <printid@plt>
movl   $0x5,-0x14(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1040 <printid@plt>
mov    -0x68(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <printid@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x70(%rbp),%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    -0x68(%rbp),%rcx
mov    %rcx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x8(%rax),%rsi
mov    $0x0,%al
call   1030 <print@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <printid@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
movaps 0xed0(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    0xedd(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xeca(%rip),%rax
mov    %rax,(%rsp)
mov    0xedf(%rip),%rax
mov    %rax,0x30(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printid@plt>
movabs $0xb0000000a,%rbx
movabs $0xd0000000c,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printid@plt>
mov    %rsp,%rdi
xor    %eax,%eax
call   1040 <printid@plt>
mov    $0xd,%edi
xor    %eax,%eax
call   1040 <printid@plt>
lea    0x20(%rsp),%rdi
xor    %eax,%eax
call   1040 <printid@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printid@plt>
movabs $0x1500000014,%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printid@plt>
movl   $0x5,0x1c(%rsp)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printid@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printid@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <print@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printid@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.line = type { %struct.point, %struct.point }
%struct.point = type { i32, i32 }
@__const.main.l3 = [1 x %struct.line] [%struct.line { %struct.point { i32 15, i32 16 }, %struct.point { i32 17, i32 18 } }]
@__const.main.s4 = %struct.line { %struct.point { i32 10, i32 11 }, %struct.point { i32 12, i32 13 } }
@__const.main.a = [3 x i32] [i32 1, i32 2, i32 3]
@__const.main.c = [2 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6]]
@__const.main.p1 = %struct.point { i32 20, i32 21 }
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.line*
%4 = alloca [1 x %struct.line]
%5 = alloca %struct.line
%6 = alloca [3 x i32]
%7 = alloca [2 x [3 x i32]]
%8 = alloca %struct.point
%9 = alloca %struct.point
%10 = alloca i32
%11 = bitcast [1 x %struct.line]* %4 to i8*
%12 = bitcast %struct.line* %5 to i8*
%13 = bitcast [3 x i32]* %6 to i8*
%14 = bitcast [2 x [3 x i32]]* %7 to i8*
%15 = bitcast %struct.point* %9 to i8*
%16 = getelementptr inbounds %struct.line, %struct.line* %5, i32 0, i32 1
%17 = getelementptr inbounds %struct.point, %struct.point* %16, i32 0, i32 1
%18 = load i32, i32* %17
store i32 %18, i32* %10
%19 = getelementptr inbounds [1 x %struct.line], [1 x %struct.line]* %4, i64 0, i64 0
%20 = call i32 (%struct.line*, ...) bitcast (i32 (...)* @printid to i32 (%struct.line*, ...)*)(%struct.line* %19)
%21 = bitcast %struct.line* %5 to { i64, i64 }*
%22 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %21, i32 0, i32 0
%23 = load i64, i64* %22
%24 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %21, i32 0, i32 1
%25 = load i64, i64* %24
%26 = call i32 (i64, i64, ...) bitcast (i32 (...)* @printid to i32 (i64, i64, ...)*)(i64 %23, i64 %25)
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
%28 = call i32 (i32*, ...) bitcast (i32 (...)* @printid to i32 (i32*, ...)*)(i32* %27)
%29 = load i32, i32* %10
%30 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 %29)
%31 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %7, i64 0, i64 0
%32 = call i32 ([3 x i32]*, ...) bitcast (i32 (...)* @printid to i32 ([3 x i32]*, ...)*)([3 x i32]* %31)
%33 = getelementptr inbounds %struct.line, %struct.line* %5, i32 0, i32 0
%34 = bitcast %struct.point* %8 to i8*
%35 = bitcast %struct.point* %33 to i8*
%36 = bitcast %struct.point* %8 to i64*
%37 = load i64, i64* %36
%38 = call i32 (i64, ...) bitcast (i32 (...)* @printid to i32 (i64, ...)*)(i64 %37)
%39 = bitcast %struct.point* %9 to i64*
%40 = load i64, i64* %39
%41 = call i32 (i64, ...) bitcast (i32 (...)* @printid to i32 (i64, ...)*)(i64 %40)
%42 = getelementptr inbounds [1 x %struct.line], [1 x %struct.line]* %4, i64 0, i64 0
%43 = getelementptr inbounds %struct.line, %struct.line* %42, i32 0, i32 1
%44 = getelementptr inbounds %struct.point, %struct.point* %43, i32 0, i32 1
store i32 5, i32* %44
%45 = getelementptr inbounds [1 x %struct.line], [1 x %struct.line]* %4, i64 0, i64 0
%46 = call i32 (%struct.line*, ...) bitcast (i32 (...)* @printid to i32 (%struct.line*, ...)*)(%struct.line* %45)
%47 = getelementptr inbounds %struct.line, %struct.line* %5, i32 0, i32 1
%48 = bitcast %struct.point* %47 to i8*
%49 = bitcast %struct.point* %8 to i8*
%50 = bitcast %struct.line* %5 to { i64, i64 }*
%51 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %50, i32 0, i32 0
%52 = load i64, i64* %51
%53 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %50, i32 0, i32 1
%54 = load i64, i64* %53
%55 = call i32 (i64, i64, ...) bitcast (i32 (...)* @printid to i32 (i64, i64, ...)*)(i64 %52, i64 %54)
store %struct.line* %5, %struct.line** %3
%56 = load %struct.line*, %struct.line** %3
%57 = getelementptr inbounds %struct.line, %struct.line* %56, i32 0, i32 0
%58 = bitcast %struct.point* %57 to i8*
%59 = bitcast %struct.point* %9 to i8*
%60 = load %struct.line*, %struct.line** %3
%61 = getelementptr inbounds %struct.line, %struct.line* %60, i32 0, i32 1
%62 = bitcast %struct.point* %61 to i8*
%63 = bitcast %struct.point* %8 to i8*
%64 = load %struct.line*, %struct.line** %3
%65 = bitcast %struct.line* %64 to { i64, i64 }*
%66 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %65, i32 0, i32 0
%67 = load i64, i64* %66
%68 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %65, i32 0, i32 1
%69 = load i64, i64* %68
%70 = call i32 (i64, i64, ...) bitcast (i32 (...)* @print to i32 (i64, i64, ...)*)(i64 %67, i64 %69)
%71 = bitcast %struct.line* %5 to { i64, i64 }*
%72 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %71, i32 0, i32 0
%73 = load i64, i64* %72
%74 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %71, i32 0, i32 1
%75 = load i64, i64* %74
%76 = call i32 (i64, i64, ...) bitcast (i32 (...)* @printid to i32 (i64, i64, ...)*)(i64 %73, i64 %75)
ret void
}

LLVM IR (-O2):
%struct.line = type { %struct.point, %struct.point }
%struct.point = type { i32, i32 }
@__const.main.l3 = [1 x %struct.line] [%struct.line { %struct.point { i32 15, i32 16 }, %struct.point { i32 17, i32 18 } }]
@__const.main.a = [3 x i32] [i32 1, i32 2, i32 3]
@__const.main.c = [2 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6]]
define void @main() {
%1 = alloca [1 x %struct.line]
%2 = alloca [3 x i32]
%3 = alloca [2 x [3 x i32]]
%4 = bitcast [1 x %struct.line]* %1 to i8*
%5 = bitcast [3 x i32]* %2 to i8*
%6 = bitcast [2 x [3 x i32]]* %3 to i8*
%7 = getelementptr inbounds [1 x %struct.line], [1 x %struct.line]* %1, i64 0, i64 0
%8 = call i32 (%struct.line*, ...) bitcast (i32 (...)* @printid to i32 (%struct.line*, ...)*)(%struct.line* %7)
%9 = call i32 (i64, i64, ...) bitcast (i32 (...)* @printid to i32 (i64, i64, ...)*)(i64 47244640266, i64 55834574860)
%10 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%11 = call i32 (i32*, ...) bitcast (i32 (...)* @printid to i32 (i32*, ...)*)(i32* %10)
%12 = call i32 (i32, ...) bitcast (i32 (...)* @printid to i32 (i32, ...)*)(i32 13)
%13 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %3, i64 0, i64 0
%14 = call i32 ([3 x i32]*, ...) bitcast (i32 (...)* @printid to i32 ([3 x i32]*, ...)*)([3 x i32]* %13)
%15 = call i32 (i64, ...) bitcast (i32 (...)* @printid to i32 (i64, ...)*)(i64 47244640266)
%16 = call i32 (i64, ...) bitcast (i32 (...)* @printid to i32 (i64, ...)*)(i64 90194313236)
%17 = getelementptr inbounds [1 x %struct.line], [1 x %struct.line]* %1, i64 0, i64 0, i32 1, i32 1
store i32 5, i32* %17
%18 = call i32 (%struct.line*, ...) bitcast (i32 (...)* @printid to i32 (%struct.line*, ...)*)(%struct.line* %7)
%19 = call i32 (i64, i64, ...) bitcast (i32 (...)* @printid to i32 (i64, i64, ...)*)(i64 47244640266, i64 47244640266)
%20 = call i32 (i64, i64, ...) bitcast (i32 (...)* @print to i32 (i64, i64, ...)*)(i64 90194313236, i64 47244640266)
%21 = call i32 (i64, i64, ...) bitcast (i32 (...)* @printid to i32 (i64, i64, ...)*)(i64 90194313236, i64 47244640266)
ret void
}