#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 */
typedef struct TYPE_8__ TYPE_4__;
typedef struct TYPE_7__ TYPE_3__;
typedef struct TYPE_6__ TYPE_2__;
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
struct tcmu_mailbox {
  int cmd_head;
  int cmd_tail;
};
struct TYPE_8__ {
  int scsi_status;
  int *sense_buffer;
};
struct TYPE_7__ {
  int iov_cnt;
  int iov_bidi_cnt;
  int iov_dif_cnt;
  int cdb_off;
  int __pad1;
  int __pad2;
  TYPE_2__ *iov;
};
struct TYPE_5__ {
  int len_op;
  int cmd_id;
  int kflags;
  int uflags;
};
struct tcmu_cmd_entry {
  TYPE_4__ rsp;
  TYPE_3__ req;
  TYPE_1__ hdr;
};
struct TYPE_6__ {
  int iov_len;
  void *iov_base;
};

/* Variables and functions */
int /*<<< orphan*/ memset(char *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  char buf[128];
  memset(buf, 0x0, 128);
  struct tcmu_cmd_entry *cmd = (struct tcmu_cmd_entry *)buf;
  printf("%d\n", sizeof(struct tcmu_cmd_entry));
  cmd->hdr.len_op = 0x1;
  cmd->hdr.cmd_id = 0x2;
  cmd->hdr.kflags = 0x3;
  cmd->hdr.uflags = 0x4;
  cmd->req.iov_cnt = 0x5;
  cmd->req.iov_bidi_cnt = 0x6;
  cmd->req.iov_dif_cnt = 0x7;
  cmd->req.cdb_off = 0x8;
  cmd->req.__pad1 = 0xf;
  cmd->req.__pad2 = 0xf;
  cmd->req.iov[0].iov_base = (void *)0x23;
  cmd->req.iov[0].iov_len = 0x24;
  int i;
  for (i = 0; i < 128; i++) {
    printf("0x%02x ", buf[i]);
    if (i % 16 == 15)
      printf("\n");
  }
  printf("sizeof iov %d\n", sizeof(cmd->req.iov[0]));
  printf("sizeof iov_base %d\n", sizeof(cmd->req.iov[0].iov_base));
  printf("sizeof iov_len %d\n", sizeof(cmd->req.iov[0].iov_len));
  memset(buf, 0x0, 128);
  cmd->rsp.scsi_status = 0x2;
  cmd->rsp.sense_buffer[0] = 0x6;
  cmd->rsp.sense_buffer[1] = 0x7;
  for (i = 0; i < 128; i++) {
    printf("0x%02x ", buf[i]);
    if (i % 16 == 15)
      printf("\n");
  }
  memset(buf, 0x0, 128);
  printf("\n");
  printf("\n");
  struct tcmu_mailbox *mb = (struct tcmu_mailbox *)buf;
  mb->cmd_head = 0x07;
  mb->cmd_tail = 0x08;
  for (i = 0; i < 128; i++) {
    printf("0x%02x ", buf[i]);
    if (i % 16 == 15)
      printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1040 <memset@plt>
lea    -0x90(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    0xec6(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x98(%rbp),%rax
movl   $0x1,0x30(%rax)
mov    -0x98(%rbp),%rax
movl   $0x2,0x34(%rax)
mov    -0x98(%rbp),%rax
movl   $0x3,0x38(%rax)
mov    -0x98(%rbp),%rax
movl   $0x4,0x3c(%rax)
mov    -0x98(%rbp),%rax
movl   $0x5,0x10(%rax)
mov    -0x98(%rbp),%rax
movl   $0x6,0x14(%rax)
mov    -0x98(%rbp),%rax
movl   $0x7,0x18(%rax)
mov    -0x98(%rbp),%rax
movl   $0x8,0x1c(%rax)
mov    -0x98(%rbp),%rax
movl   $0xf,0x20(%rax)
mov    -0x98(%rbp),%rax
movl   $0xf,0x24(%rax)
mov    -0x98(%rbp),%rax
mov    0x28(%rax),%rax
mov    $0x23,%ecx
mov    %rcx,0x8(%rax)
mov    -0x98(%rbp),%rax
mov    0x28(%rax),%rax
movl   $0x24,(%rax)
movl   $0x0,-0x9c(%rbp)
cmpl   $0x80,-0x9c(%rbp)
jge    1293 <main+0x173>
movslq -0x9c(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%esi
ff
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x9c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0xf,%edx
jne    127a <main+0x15a>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    127f <main+0x15f>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1228 <main+0x108>
lea    0xd6e(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd6a(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd6b(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1040 <memset@plt>
mov    -0x98(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x98(%rbp),%rax
mov    0x8(%rax),%rax
movl   $0x6,(%rax)
mov    -0x98(%rbp),%rax
mov    0x8(%rax),%rax
movl   $0x7,0x4(%rax)
movl   $0x0,-0x9c(%rbp)
cmpl   $0x80,-0x9c(%rbp)
jge    1384 <main+0x264>
movslq -0x9c(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%esi
ff
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x9c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0xf,%edx
jne    136b <main+0x24b>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1370 <main+0x250>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1319 <main+0x1f9>
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1040 <memset@plt>
lea    0xc8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x90(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
movl   $0x7,(%rax)
mov    -0xa8(%rbp),%rax
movl   $0x8,0x4(%rax)
movl   $0x0,-0x9c(%rbp)
cmpl   $0x80,-0x9c(%rbp)
jge    1451 <main+0x331>
movslq -0x9c(%rbp),%rax
movsbl -0x90(%rbp,%rax,1),%esi
ff
lea    0xbf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x9c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0xf,%edx
jne    1438 <main+0x318>
lea    0xbf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    143d <main+0x31d>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    13e6 <main+0x2c6>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
lea    0xef7(%rip),%rdi
mov    $0x40,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movaps 0xe9d(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0xf0000000f,%rax
mov    %rax,0x20(%rsp)
mov    0x28(%rsp),%rax
movq   $0x23,0x8(%rax)
movl   $0x24,(%rax)
lea    0xe83(%rip),%r14
xor    %ebx,%ebx
jmp    11bd <main+0x8d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x80,%rbx
je     11df <main+0xaf>
movsbl (%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%eax
not    %eax
test   $0xf,%al
jne    11b0 <main+0x80>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    11b0 <main+0x80>
lea    0xe42(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3e(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
movl   $0x2,(%rsp)
mov    0x8(%rsp),%rax
movabs $0x700000006,%rcx
mov    %rcx,(%rax)
lea    0xdd9(%rip),%r14
xor    %ebx,%ebx
jmp    125d <main+0x12d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x80,%rbx
je     127f <main+0x14f>
movsbl (%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%eax
not    %eax
test   $0xf,%al
jne    1250 <main+0x120>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1250 <main+0x120>
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1050 <memset@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movabs $0x800000007,%rax
mov    %rax,(%rsp)
mov    $0x7,%al
lea    0xd67(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsbl %al,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%eax
not    %eax
test   $0xf,%al
jne    12df <main+0x1af>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    $0x7f,%rbx
je     12f0 <main+0x1c0>
movzbl 0x1(%rsp,%rbx,1),%eax
add    $0x1,%rbx
jmp    12c0 <main+0x190>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.tcmu_cmd_entry = type { %struct.TYPE_8__, %struct.TYPE_7__, %struct.TYPE_5__ }
%struct.TYPE_8__ = type { i32, i32* }
%struct.TYPE_7__ = type { i32, i32, i32, i32, i32, i32, %struct.TYPE_6__* }
%struct.TYPE_6__ = type { i32, i8* }
%struct.TYPE_5__ = type { i32, i32, i32, i32 }
%struct.tcmu_mailbox = type { i32, i32 }
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [8 x i8] c"0x%02x \00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [15 x i8] c"sizeof iov %d\0A\00"
@.str.4 = [20 x i8] c"sizeof iov_base %d\0A\00"
@.str.5 = [19 x i8] c"sizeof iov_len %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [128 x i8]
%7 = alloca %struct.tcmu_cmd_entry*
%8 = alloca i32
%9 = alloca %struct.tcmu_mailbox*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%11 = call i32 @memset(i8* %10, i32 0, i32 128)
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%13 = bitcast i8* %12 to %struct.tcmu_cmd_entry*
store %struct.tcmu_cmd_entry* %13, %struct.tcmu_cmd_entry** %7
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 64)
%15 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%16 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %15, i32 0, i32 2
%17 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %16, i32 0, i32 0
store i32 1, i32* %17
%18 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%19 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %18, i32 0, i32 2
%20 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %19, i32 0, i32 1
store i32 2, i32* %20
%21 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%22 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %21, i32 0, i32 2
%23 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %22, i32 0, i32 2
store i32 3, i32* %23
%24 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%25 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %24, i32 0, i32 2
%26 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %25, i32 0, i32 3
store i32 4, i32* %26
%27 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%28 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %27, i32 0, i32 1
%29 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %28, i32 0, i32 0
store i32 5, i32* %29
%30 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%31 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %30, i32 0, i32 1
%32 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %31, i32 0, i32 1
store i32 6, i32* %32
%33 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%34 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %33, i32 0, i32 1
%35 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %34, i32 0, i32 2
store i32 7, i32* %35
%36 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%37 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %36, i32 0, i32 1
%38 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %37, i32 0, i32 3
store i32 8, i32* %38
%39 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%40 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %39, i32 0, i32 1
%41 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %40, i32 0, i32 4
store i32 15, i32* %41
%42 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%43 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %42, i32 0, i32 1
%44 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %43, i32 0, i32 5
store i32 15, i32* %44
%45 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%46 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %45, i32 0, i32 1
%47 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %46, i32 0, i32 6
%48 = load %struct.TYPE_6__*, %struct.TYPE_6__** %47
%49 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %48, i64 0
%50 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %49, i32 0, i32 1
store i8* inttoptr (i64 35 to i8*), i8** %50
%51 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%52 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %51, i32 0, i32 1
%53 = getelementptr inbounds %struct.TYPE_7__, %struct.TYPE_7__* %52, i32 0, i32 6
%54 = load %struct.TYPE_6__*, %struct.TYPE_6__** %53
%55 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %54, i64 0
%56 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %55, i32 0, i32 0
store i32 36, i32* %56
store i32 0, i32* %8
br label %57
57: ; preds = %73, %2
%58 = load i32, i32* %8
%59 = icmp slt i32 %58, 128
br i1 %59, label %60, label %76
60: ; preds = %57
%61 = load i32, i32* %8
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %62
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %65)
%67 = load i32, i32* %8
%68 = srem i32 %67, 16
%69 = icmp eq i32 %68, 15
br i1 %69, label %70, label %72
70: ; preds = %60
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %72
72: ; preds = %70, %60
br label %73
73: ; preds = %72
%74 = load i32, i32* %8
%75 = add nsw i32 %74, 1
store i32 %75, i32* %8
br label %57
76: ; preds = %57
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i64 16)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 8)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 4)
%80 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%81 = call i32 @memset(i8* %80, i32 0, i32 128)
%82 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%83 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %82, i32 0, i32 0
%84 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %83, i32 0, i32 0
store i32 2, i32* %84
%85 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%86 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %85, i32 0, i32 0
%87 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %86, i32 0, i32 1
%88 = load i32*, i32** %87
%89 = getelementptr inbounds i32, i32* %88, i64 0
store i32 6, i32* %89
%90 = load %struct.tcmu_cmd_entry*, %struct.tcmu_cmd_entry** %7
%91 = getelementptr inbounds %struct.tcmu_cmd_entry, %struct.tcmu_cmd_entry* %90, i32 0, i32 0
%92 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %91, i32 0, i32 1
%93 = load i32*, i32** %92
%94 = getelementptr inbounds i32, i32* %93, i64 1
store i32 7, i32* %94
store i32 0, i32* %8
br label %95
95: ; preds = %111, %76
%96 = load i32, i32* %8
%97 = icmp slt i32 %96, 128
br i1 %97, label %98, label %114
98: ; preds = %95
%99 = load i32, i32* %8
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %100
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %103)
%105 = load i32, i32* %8
%106 = srem i32 %105, 16
%107 = icmp eq i32 %106, 15
br i1 %107, label %108, label %110
108: ; preds = %98
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %110
110: ; preds = %108, %98
br label %111
111: ; preds = %110
%112 = load i32, i32* %8
%113 = add nsw i32 %112, 1
store i32 %113, i32* %8
br label %95
114: ; preds = %95
%115 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%116 = call i32 @memset(i8* %115, i32 0, i32 128)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%119 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%120 = bitcast i8* %119 to %struct.tcmu_mailbox*
store %struct.tcmu_mailbox* %120, %struct.tcmu_mailbox** %9
%121 = load %struct.tcmu_mailbox*, %struct.tcmu_mailbox** %9
%122 = getelementptr inbounds %struct.tcmu_mailbox, %struct.tcmu_mailbox* %121, i32 0, i32 0
store i32 7, i32* %122
%123 = load %struct.tcmu_mailbox*, %struct.tcmu_mailbox** %9
%124 = getelementptr inbounds %struct.tcmu_mailbox, %struct.tcmu_mailbox* %123, i32 0, i32 1
store i32 8, i32* %124
store i32 0, i32* %8
br label %125
125: ; preds = %141, %114
%126 = load i32, i32* %8
%127 = icmp slt i32 %126, 128
br i1 %127, label %128, label %144
128: ; preds = %125
%129 = load i32, i32* %8
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 %130
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %133)
%135 = load i32, i32* %8
%136 = srem i32 %135, 16
%137 = icmp eq i32 %136, 15
br i1 %137, label %138, label %140
138: ; preds = %128
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %140
140: ; preds = %138, %128
br label %141
141: ; preds = %140
%142 = load i32, i32* %8
%143 = add nsw i32 %142, 1
store i32 %143, i32* %8
br label %125
144: ; preds = %125
ret i32 0
}

LLVM IR (-O2):
%struct.TYPE_6__ = type { i32, i8* }
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [8 x i8] c"0x%02x \00"
@.str.3 = [15 x i8] c"sizeof iov %d\0A\00"
@.str.4 = [20 x i8] c"sizeof iov_base %d\0A\00"
@.str.5 = [19 x i8] c"sizeof iov_len %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [128 x i8]
%4 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%5 = call i32 @memset(i8* %4, i32 0, i32 128)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 64)
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 48
%8 = bitcast i8* %7 to <4 x i32>*
store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, <4 x i32>* %8
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 16
%10 = bitcast i8* %9 to <4 x i32>*
store <4 x i32> <i32 5, i32 6, i32 7, i32 8>, <4 x i32>* %10
%11 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 32
%12 = bitcast i8* %11 to i32*
store i32 15, i32* %12
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 36
%14 = bitcast i8* %13 to i32*
store i32 15, i32* %14
%15 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 40
%16 = bitcast i8* %15 to %struct.TYPE_6__**
%17 = load %struct.TYPE_6__*, %struct.TYPE_6__** %16
%18 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %17, i64 0, i32 1
store i8* inttoptr (i64 35 to i8*), i8** %18
%19 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %17, i64 0, i32 0
store i32 36, i32* %19
br label %20
20: ; preds = %2, %30
%21 = phi i64 [ 0, %2 ], [ %31, %30 ]
%22 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = and i64 %21, 15
%27 = icmp eq i64 %26, 15
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = call i32 @putchar(i32 10)
br label %30
30: ; preds = %20, %28
%31 = add nuw nsw i64 %21, 1
%32 = icmp eq i64 %31, 128
br i1 %32, label %33, label %20
33: ; preds = %30
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i64 16)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 8)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 4)
%37 = call i32 @memset(i8* %4, i32 0, i32 128)
%38 = bitcast [128 x i8]* %3 to i32*
store i32 2, i32* %38
%39 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 8
%40 = bitcast i8* %39 to i32**
%41 = load i32*, i32** %40
store i32 6, i32* %41
%42 = getelementptr inbounds i32, i32* %41, i64 1
store i32 7, i32* %42
br label %43
43: ; preds = %33, %53
%44 = phi i64 [ 0, %33 ], [ %54, %53 ]
%45 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %47)
%49 = and i64 %44, 15
%50 = icmp eq i64 %49, 15
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = call i32 @putchar(i32 10)
br label %53
53: ; preds = %43, %51
%54 = add nuw nsw i64 %44, 1
%55 = icmp eq i64 %54, 128
br i1 %55, label %56, label %43
56: ; preds = %53
%57 = call i32 @memset(i8* %4, i32 0, i32 128)
%58 = call i32 @putchar(i32 10)
%59 = call i32 @putchar(i32 10)
store i32 7, i32* %38
%60 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 4
%61 = bitcast i8* %60 to i32*
store i32 8, i32* %61
br label %62
62: ; preds = %74, %56
%63 = phi i8 [ 7, %56 ], [ %76, %74 ]
%64 = phi i64 [ 0, %56 ], [ %72, %74 ]
%65 = sext i8 %63 to i32
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %65)
%67 = and i64 %64, 15
%68 = icmp eq i64 %67, 15
br i1 %68, label %69, label %71
69: ; preds = %62
%70 = call i32 @putchar(i32 10)
br label %71
71: ; preds = %62, %69
%72 = add nuw nsw i64 %64, 1
%73 = icmp eq i64 %72, 128
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %72
%76 = load i8, i8* %75
br label %62
77: ; preds = %71
ret i32 0
}