#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 */
struct ic_type_ref {
  int dummy;
};
struct ic_field {
  int dummy;
};
struct ic_decl_type {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int ic_decl_type_add_field(struct ic_decl_type *, struct ic_field *);
int ic_decl_type_destroy(struct ic_decl_type *, int);
int ic_decl_type_field_length(struct ic_decl_type *);
int ic_decl_type_get_field_offset(struct ic_decl_type *, char *);
int /*<<< orphan*/ ic_decl_type_get_name(struct ic_decl_type *);
struct ic_decl_type *ic_decl_type_new_union(char *, int);
int /*<<< orphan*/ ic_decl_type_print(int /*<<< orphan*/, struct ic_decl_type *,
                                      unsigned int *);
struct ic_field *ic_field_new(char *, int, struct ic_type_ref *,
                              int /*<<< orphan*/);
int /*<<< orphan*/ ic_parse_perm_default();
int /*<<< orphan*/ ic_symbol_contents(int /*<<< orphan*/);
struct ic_type_ref *ic_type_ref_symbol_new(char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strncmp(int /*<<< orphan*/, char *, int);
int main(void) {
  struct ic_field *field = 0;
  struct ic_decl_type *tdecl = 0;
  struct ic_type_ref *type_ref1 = 0;
  struct ic_type_ref *type_ref2 = 0;
  unsigned int fake_indent = 0;
  tdecl = ic_decl_type_new_union("Foo", 3);
  assert(tdecl);
  assert(!strncmp(ic_symbol_contents(ic_decl_type_get_name(tdecl)), "Foo", 3));
  assert(0 == ic_decl_type_field_length(tdecl));
  type_ref1 = ic_type_ref_symbol_new("Signed", 6);
  assert(type_ref1);
  field = ic_field_new("a", 1, type_ref1, ic_parse_perm_default());
  assert(field);
  assert(1 == ic_decl_type_add_field(tdecl, field));
  assert(1 == ic_decl_type_field_length(tdecl));
  type_ref2 = ic_type_ref_symbol_new("String", 6);
  assert(type_ref2);
  field = ic_field_new("b", 1, type_ref2, ic_parse_perm_default());
  assert(field);
  assert(1 == ic_decl_type_add_field(tdecl, field));
  assert(2 == ic_decl_type_field_length(tdecl));
  assert(0 == ic_decl_type_get_field_offset(tdecl, "a"));
  assert(1 == ic_decl_type_get_field_offset(tdecl, "b"));
  printf("Should see:\ntype Foo\n    a::Signed\n    b::String\nend\n");
  puts("Output:");
  ic_decl_type_print(stdout, tdecl, &fake_indent);
  assert(ic_decl_type_destroy(tdecl, 1));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xdd3(%rip),%rdi
mov    $0x3,%esi
call   10f0 <ic_decl_type_new_union@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <ic_decl_type_get_name@plt>
mov    %eax,%edi
call   10a0 <ic_symbol_contents@plt>
mov    %eax,%edi
lea    0xda1(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
call   10d0 <ic_decl_type_field_length@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
lea    0xd66(%rip),%rdi
mov    $0x6,%esi
call   1060 <ic_type_ref_symbol_new@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %eax,%edi
call   10c0 <assert@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x0,%al
call   1090 <ic_parse_perm_default@plt>
mov    -0x40(%rbp),%rdx
mov    %eax,%ecx
lea    0xd38(%rip),%rdi
mov    $0x1,%esi
call   10b0 <ic_field_new@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1100 <ic_decl_type_add_field@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
call   10d0 <ic_decl_type_field_length@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
lea    0xcd8(%rip),%rdi
mov    $0x6,%esi
call   1060 <ic_type_ref_symbol_new@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %eax,%edi
call   10c0 <assert@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1090 <ic_parse_perm_default@plt>
mov    -0x38(%rbp),%rdx
mov    %eax,%ecx
lea    0xcaa(%rip),%rdi
mov    $0x1,%esi
call   10b0 <ic_field_new@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %eax,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1100 <ic_decl_type_add_field@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
call   10d0 <ic_decl_type_field_length@plt>
mov    %eax,%ecx
mov    $0x2,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
lea    0xc3b(%rip),%rsi
call   1070 <ic_decl_type_get_field_offset@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
mov    -0x18(%rbp),%rdi
lea    0xc21(%rip),%rsi
call   1070 <ic_decl_type_get_field_offset@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10c0 <assert@plt>
lea    0xc01(%rip),%rdi
call   1080 <printf@plt>
lea    0xc2b(%rip),%rdi
call   1050 <puts@plt>
mov    0x2bb3(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
call   10e0 <ic_decl_type_print@plt>
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
call   1110 <ic_decl_type_destroy@plt>
mov    %eax,%edi
call   10c0 <assert@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
movl   $0x0,0x4(%rsp)
lea    0xe09(%rip),%r14
mov    %r14,%rdi
mov    $0x3,%esi
call   10e0 <ic_decl_type_new_union@plt>
mov    %rax,%r12
mov    %r12d,%edi
call   10b0 <assert@plt>
mov    %r12,%rdi
call   1030 <ic_decl_type_get_name@plt>
mov    %eax,%edi
call   1090 <ic_symbol_contents@plt>
mov    %eax,%edi
mov    %r14,%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r12,%rdi
call   10c0 <ic_decl_type_field_length@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
lea    0xdae(%rip),%rdi
mov    $0x6,%esi
call   1060 <ic_type_ref_symbol_new@plt>
mov    %rax,%rbx
mov    %ebx,%edi
call   10b0 <assert@plt>
xor    %eax,%eax
call   1080 <ic_parse_perm_default@plt>
lea    0xd93(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %eax,%ecx
call   10a0 <ic_field_new@plt>
mov    %rax,%rbx
mov    %ebx,%edi
call   10b0 <assert@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   10f0 <ic_decl_type_add_field@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r12,%rdi
call   10c0 <ic_decl_type_field_length@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
lea    0xd43(%rip),%rdi
mov    $0x6,%esi
call   1060 <ic_type_ref_symbol_new@plt>
mov    %rax,%rbx
mov    %ebx,%edi
call   10b0 <assert@plt>
xor    %eax,%eax
call   1080 <ic_parse_perm_default@plt>
lea    0xd28(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %eax,%ecx
call   10a0 <ic_field_new@plt>
mov    %rax,%rbx
mov    %ebx,%edi
call   10b0 <assert@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   10f0 <ic_decl_type_add_field@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r12,%rdi
call   10c0 <ic_decl_type_field_length@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r12,%rdi
mov    %r14,%rsi
call   1070 <ic_decl_type_get_field_offset@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r12,%rdi
mov    %r15,%rsi
call   1070 <ic_decl_type_get_field_offset@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
lea    0xcaf(%rip),%rdi
call   1050 <puts@plt>
lea    0xc9b(%rip),%rdi
call   1050 <puts@plt>
mov    0x2c59(%rip),%rax
mov    (%rax),%edi
lea    0x4(%rsp),%rdx
mov    %r12,%rsi
call   10d0 <ic_decl_type_print@plt>
mov    %r12,%rdi
mov    $0x1,%esi
call   1100 <ic_decl_type_destroy@plt>
mov    %eax,%edi
call   10b0 <assert@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.ic_field = type { i32 }
%struct.ic_decl_type = type { i32 }
%struct.ic_type_ref = type { i32 }
@.str = [4 x i8] c"Foo\00"
@.str.1 = [7 x i8] c"Signed\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [7 x i8] c"String\00"
@.str.4 = [2 x i8] c"b\00"
@.str.5 = [54 x i8] c"Should see:\0Atype Foo\0A a::Signed\0A b::String\0Aend\0A\00"
@.str.6 = [8 x i8] c"Output:\00"
@stdout = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.ic_field*
%3 = alloca %struct.ic_decl_type*
%4 = alloca %struct.ic_type_ref*
%5 = alloca %struct.ic_type_ref*
%6 = alloca i32
store i32 0, i32* %1
store %struct.ic_field* null, %struct.ic_field** %2
store %struct.ic_decl_type* null, %struct.ic_decl_type** %3
store %struct.ic_type_ref* null, %struct.ic_type_ref** %4
store %struct.ic_type_ref* null, %struct.ic_type_ref** %5
store i32 0, i32* %6
%7 = call %struct.ic_decl_type* @ic_decl_type_new_union(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
store %struct.ic_decl_type* %7, %struct.ic_decl_type** %3
%8 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%9 = ptrtoint %struct.ic_decl_type* %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%12 = call i32 @ic_decl_type_get_name(%struct.ic_decl_type* %11)
%13 = call i32 @ic_symbol_contents(i32 %12)
%14 = call i32 @strncmp(i32 %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%20 = call i32 @ic_decl_type_field_length(%struct.ic_decl_type* %19)
%21 = icmp eq i32 0, %20
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
%24 = call %struct.ic_type_ref* @ic_type_ref_symbol_new(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
store %struct.ic_type_ref* %24, %struct.ic_type_ref** %4
%25 = load %struct.ic_type_ref*, %struct.ic_type_ref** %4
%26 = ptrtoint %struct.ic_type_ref* %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = load %struct.ic_type_ref*, %struct.ic_type_ref** %4
%29 = call i32 (...) @ic_parse_perm_default()
%30 = call %struct.ic_field* @ic_field_new(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1, %struct.ic_type_ref* %28, i32 %29)
store %struct.ic_field* %30, %struct.ic_field** %2
%31 = load %struct.ic_field*, %struct.ic_field** %2
%32 = ptrtoint %struct.ic_field* %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%35 = load %struct.ic_field*, %struct.ic_field** %2
%36 = call i32 @ic_decl_type_add_field(%struct.ic_decl_type* %34, %struct.ic_field* %35)
%37 = icmp eq i32 1, %36
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%41 = call i32 @ic_decl_type_field_length(%struct.ic_decl_type* %40)
%42 = icmp eq i32 1, %41
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = call %struct.ic_type_ref* @ic_type_ref_symbol_new(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
store %struct.ic_type_ref* %45, %struct.ic_type_ref** %5
%46 = load %struct.ic_type_ref*, %struct.ic_type_ref** %5
%47 = ptrtoint %struct.ic_type_ref* %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = load %struct.ic_type_ref*, %struct.ic_type_ref** %5
%50 = call i32 (...) @ic_parse_perm_default()
%51 = call %struct.ic_field* @ic_field_new(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1, %struct.ic_type_ref* %49, i32 %50)
store %struct.ic_field* %51, %struct.ic_field** %2
%52 = load %struct.ic_field*, %struct.ic_field** %2
%53 = ptrtoint %struct.ic_field* %52 to i32
%54 = call i32 @assert(i32 %53)
%55 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%56 = load %struct.ic_field*, %struct.ic_field** %2
%57 = call i32 @ic_decl_type_add_field(%struct.ic_decl_type* %55, %struct.ic_field* %56)
%58 = icmp eq i32 1, %57
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%62 = call i32 @ic_decl_type_field_length(%struct.ic_decl_type* %61)
%63 = icmp eq i32 2, %62
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%67 = call i32 @ic_decl_type_get_field_offset(%struct.ic_decl_type* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%68 = icmp eq i32 0, %67
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%72 = call i32 @ic_decl_type_get_field_offset(%struct.ic_decl_type* %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%73 = icmp eq i32 1, %72
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%77 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%78 = load i32, i32* @stdout
%79 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%80 = call i32 @ic_decl_type_print(i32 %78, %struct.ic_decl_type* %79, i32* %6)
%81 = load %struct.ic_decl_type*, %struct.ic_decl_type** %3
%82 = call i32 @ic_decl_type_destroy(%struct.ic_decl_type* %81, i32 1)
%83 = call i32 @assert(i32 %82)
ret i32 0
}

LLVM IR (-O2):
%struct.ic_field = type { i32 }
%struct.ic_decl_type = type { i32 }
%struct.ic_type_ref = type { i32 }
@.str = [4 x i8] c"Foo\00"
@.str.1 = [7 x i8] c"Signed\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [7 x i8] c"String\00"
@.str.4 = [2 x i8] c"b\00"
@.str.6 = [8 x i8] c"Output:\00"
@stdout = global i32 0
@str = [53 x i8] c"Should see:\0Atype Foo\0A a::Signed\0A b::String\0Aend\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = tail call %struct.ic_decl_type* @ic_decl_type_new_union(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%4 = ptrtoint %struct.ic_decl_type* %3 to i64
%5 = trunc i64 %4 to i32
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 @ic_decl_type_get_name(%struct.ic_decl_type* %3)
%8 = tail call i32 @ic_symbol_contents(i32 %7)
%9 = tail call i32 @strncmp(i32 %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @ic_decl_type_field_length(%struct.ic_decl_type* %3)
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call %struct.ic_type_ref* @ic_type_ref_symbol_new(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
%18 = ptrtoint %struct.ic_type_ref* %17 to i64
%19 = trunc i64 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 (...) @ic_parse_perm_default()
%22 = tail call %struct.ic_field* @ic_field_new(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1, %struct.ic_type_ref* %17, i32 %21)
%23 = ptrtoint %struct.ic_field* %22 to i64
%24 = trunc i64 %23 to i32
%25 = tail call i32 @assert(i32 %24)
%26 = tail call i32 @ic_decl_type_add_field(%struct.ic_decl_type* %3, %struct.ic_field* %22)
%27 = icmp eq i32 %26, 1
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28)
%30 = tail call i32 @ic_decl_type_field_length(%struct.ic_decl_type* %3)
%31 = icmp eq i32 %30, 1
%32 = zext i1 %31 to i32
%33 = tail call i32 @assert(i32 %32)
%34 = tail call %struct.ic_type_ref* @ic_type_ref_symbol_new(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%35 = ptrtoint %struct.ic_type_ref* %34 to i64
%36 = trunc i64 %35 to i32
%37 = tail call i32 @assert(i32 %36)
%38 = tail call i32 (...) @ic_parse_perm_default()
%39 = tail call %struct.ic_field* @ic_field_new(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1, %struct.ic_type_ref* %34, i32 %38)
%40 = ptrtoint %struct.ic_field* %39 to i64
%41 = trunc i64 %40 to i32
%42 = tail call i32 @assert(i32 %41)
%43 = tail call i32 @ic_decl_type_add_field(%struct.ic_decl_type* %3, %struct.ic_field* %39)
%44 = icmp eq i32 %43, 1
%45 = zext i1 %44 to i32
%46 = tail call i32 @assert(i32 %45)
%47 = tail call i32 @ic_decl_type_field_length(%struct.ic_decl_type* %3)
%48 = icmp eq i32 %47, 2
%49 = zext i1 %48 to i32
%50 = tail call i32 @assert(i32 %49)
%51 = tail call i32 @ic_decl_type_get_field_offset(%struct.ic_decl_type* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
%53 = zext i1 %52 to i32
%54 = tail call i32 @assert(i32 %53)
%55 = tail call i32 @ic_decl_type_get_field_offset(%struct.ic_decl_type* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%56 = icmp eq i32 %55, 1
%57 = zext i1 %56 to i32
%58 = tail call i32 @assert(i32 %57)
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%61 = load i32, i32* @stdout
%62 = call i32 @ic_decl_type_print(i32 %61, %struct.ic_decl_type* %3, i32* %1)
%63 = call i32 @ic_decl_type_destroy(%struct.ic_decl_type* %3, i32 1)
%64 = call i32 @assert(i32 %63)
ret i32 0
}