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

/* Variables and functions */
scalar_t__ isblank(char);
char **split_on_blank(char *line) {
  static char *list[7] = {};
  register int i;
  i = 0;
  goto middle;
  for (; i < 7; i++) {
    while (isblank(*line))
      line++;
  middle:
    list[i] = line;
    while (!isblank(*line) && *line != ':' && *line != '\n')
      line++;
    *(line++) = '\0';
  }
  return list;
}


x86 assembly (clang, -O0):
<split_on_blank>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
jmp    1163 <split_on_blank+0x53>
cmpl   $0x7,-0xc(%rbp)
jge    11fa <split_on_blank+0xea>
jmp    1137 <split_on_blank+0x27>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isblank@plt>
cmp    $0x0,%rax
je     115e <split_on_blank+0x4e>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1137 <split_on_blank+0x27>
jmp    1163 <split_on_blank+0x53>
mov    -0x8(%rbp),%rdx
movslq -0xc(%rbp),%rcx
lea    0x2ece(%rip),%rax
mov    %rdx,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isblank@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0xd(%rbp)
jne    11b9 <split_on_blank+0xa9>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x3a,%ecx
mov    %al,-0xd(%rbp)
je     11b9 <split_on_blank+0xa9>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    11c9 <split_on_blank+0xb9>
jmp    11da <split_on_blank+0xca>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1176 <split_on_blank+0x66>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x0,(%rax)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1128 <split_on_blank+0x18>
lea    0x2e3f(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<split_on_blank>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
xor    %r14d,%r14d
lea    0x2f1e(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,(%r15,%r14,8)
movsbl (%rbx),%edi
call   1030 <isblank@plt>
test   %rax,%rax
jne    1160 <split_on_blank+0x50>
movzbl (%rbx),%eax
cmp    $0xa,%al
je     1160 <split_on_blank+0x50>
cmp    $0x3a,%al
je     1160 <split_on_blank+0x50>
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
jmp    1137 <split_on_blank+0x27>
cs nopw 0x0(%rax,%rax,1)
movb   $0x0,(%rbx)
cmp    $0x6,%r14
je     1184 <split_on_blank+0x74>
add    $0x1,%r14
nopl   (%rax)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isblank@plt>
test   %rax,%rax
jne    1170 <split_on_blank+0x60>
jmp    1130 <split_on_blank+0x20>
lea    0x2eb5(%rip),%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@split_on_blank.list = internal global [7 x i8*] zeroinitializer
define i8** @split_on_blank(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %18
4: ; No predecessors!
br label %5
5: ; preds = %46, %4
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 7
br i1 %7, label %8, label %49
8: ; preds = %5
br label %9
9: ; preds = %14, %8
%10 = load i8*, i8** %2
%11 = load i8, i8* %10
%12 = call i64 @isblank(i8 signext %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load i8*, i8** %2
%16 = getelementptr inbounds i8, i8* %15, i32 1
store i8* %16, i8** %2
br label %9
17: ; preds = %9
br label %18
18: ; preds = %17, %1
%19 = load i8*, i8** %2
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [7 x i8*], [7 x i8*]* @split_on_blank.list, i64 0, i64 %21
store i8* %19, i8** %22
br label %23
23: ; preds = %40, %18
%24 = load i8*, i8** %2
%25 = load i8, i8* %24
%26 = call i64 @isblank(i8 signext %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %38, label %28
28: ; preds = %23
%29 = load i8*, i8** %2
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 58
br i1 %32, label %33, label %38
33: ; preds = %28
%34 = load i8*, i8** %2
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 10
br label %38
38: ; preds = %33, %28, %23
%39 = phi i1 [ false, %28 ], [ false, %23 ], [ %37, %33 ]
br i1 %39, label %40, label %43
40: ; preds = %38
%41 = load i8*, i8** %2
%42 = getelementptr inbounds i8, i8* %41, i32 1
store i8* %42, i8** %2
br label %23
43: ; preds = %38
%44 = load i8*, i8** %2
%45 = getelementptr inbounds i8, i8* %44, i32 1
store i8* %45, i8** %2
store i8 0, i8* %44
br label %46
46: ; preds = %43
%47 = load i32, i32* %3
%48 = add nsw i32 %47, 1
store i32 %48, i32* %3
br label %5
49: ; preds = %5
ret i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @split_on_blank.list, i64 0, i64 0)
}

LLVM IR (-O2):
@split_on_blank.list = internal global [7 x i8*] zeroinitializer
define i8** @split_on_blank(i8* %0) {
br label %8
2: ; preds = %23, %2
%3 = phi i8* [ %4, %2 ], [ %24, %23 ]
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = load i8, i8* %4
%6 = tail call i64 @isblank(i8 signext %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %2
8: ; preds = %2, %1
%9 = phi i64 [ 0, %1 ], [ %25, %2 ]
%10 = phi i8* [ %0, %1 ], [ %4, %2 ]
%11 = getelementptr inbounds [7 x i8*], [7 x i8*]* @split_on_blank.list, i64 0, i64 %9
store i8* %10, i8** %11
%12 = load i8, i8* %10
%13 = tail call i64 @isblank(i8 signext %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %8, %18
%16 = phi i8* [ %19, %18 ], [ %10, %8 ]
%17 = load i8, i8* %16
switch i8 %17, label %18 [
i8 58, label %23
i8 10, label %23
]
18: ; preds = %15
%19 = getelementptr inbounds i8, i8* %16, i64 1
%20 = load i8, i8* %19
%21 = tail call i64 @isblank(i8 signext %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %15, label %23
23: ; preds = %18, %15, %15, %8
%24 = phi i8* [ %10, %8 ], [ %16, %15 ], [ %16, %15 ], [ %19, %18 ]
store i8 0, i8* %24
%25 = add nuw nsw i64 %9, 1
%26 = icmp eq i64 %9, 6
br i1 %26, label %27, label %2
27: ; preds = %23
ret i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @split_on_blank.list, i64 0, i64 0)
}