#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 */
char *strsep(char **, char *);
void get(char *command, char **param) {
  int i;
  for (i = 0; i < 16; i++) {
    param[i] = strsep(&command, " ");
    if (param[i] == NULL)
      break;
  }
}


x86 assembly (clang, -O0):
<get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    117b <get+0x6b>
lea    -0x8(%rbp),%rdi
lea    0xec4(%rip),%rsi
call   1030 <strsep@plt>
mov    %rax,%rdx
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    1168 <get+0x58>
jmp    117b <get+0x6b>
jmp    116d <get+0x5d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <get+0x17>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
mov    %rdi,0x8(%rsp)
lea    0xedc(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xebf(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x8(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xea1(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x10(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xe83(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x18(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xe65(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x20(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xe47(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x28(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xe29(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x30(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xe0b(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x38(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xded(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x40(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xdcf(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x48(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xdb1(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x50(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xd97(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x58(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xd7d(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x60(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xd63(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x68(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xd49(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x70(%rbx)
test   %rax,%rax
je     12df <get+0x1cf>
lea    0xd2f(%rip),%rsi
lea    0x8(%rsp),%rdi
call   1030 <strsep@plt>
mov    %rax,0x78(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
define void @get(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i32
store i8* %0, i8** %3
store i8** %1, i8*** %4
store i32 0, i32* %5
br label %6
6: ; preds = %23, %2
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 16
br i1 %8, label %9, label %26
9: ; preds = %6
%10 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = load i8**, i8*** %4
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8*, i8** %11, i64 %13
store i8* %10, i8** %14
%15 = load i8**, i8*** %4
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %15, i64 %17
%19 = load i8*, i8** %18
%20 = icmp eq i8* %19, null
br i1 %20, label %21, label %22
21: ; preds = %9
br label %26
22: ; preds = %9
br label %23
23: ; preds = %22
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
store i32 %25, i32* %5
br label %6
26: ; preds = %21, %6
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
define void @get(i8* %0, i8** nocapture writeonly %1) {
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %4, i8** %1
%5 = icmp eq i8* %4, null
br i1 %5, label %65, label %6
6: ; preds = %2
%7 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds i8*, i8** %1, i64 1
store i8* %7, i8** %8
%9 = icmp eq i8* %7, null
br i1 %9, label %65, label %10
10: ; preds = %6
%11 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds i8*, i8** %1, i64 2
store i8* %11, i8** %12
%13 = icmp eq i8* %11, null
br i1 %13, label %65, label %14
14: ; preds = %10
%15 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%16 = getelementptr inbounds i8*, i8** %1, i64 3
store i8* %15, i8** %16
%17 = icmp eq i8* %15, null
br i1 %17, label %65, label %18
18: ; preds = %14
%19 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = getelementptr inbounds i8*, i8** %1, i64 4
store i8* %19, i8** %20
%21 = icmp eq i8* %19, null
br i1 %21, label %65, label %22
22: ; preds = %18
%23 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%24 = getelementptr inbounds i8*, i8** %1, i64 5
store i8* %23, i8** %24
%25 = icmp eq i8* %23, null
br i1 %25, label %65, label %26
26: ; preds = %22
%27 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%28 = getelementptr inbounds i8*, i8** %1, i64 6
store i8* %27, i8** %28
%29 = icmp eq i8* %27, null
br i1 %29, label %65, label %30
30: ; preds = %26
%31 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%32 = getelementptr inbounds i8*, i8** %1, i64 7
store i8* %31, i8** %32
%33 = icmp eq i8* %31, null
br i1 %33, label %65, label %34
34: ; preds = %30
%35 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%36 = getelementptr inbounds i8*, i8** %1, i64 8
store i8* %35, i8** %36
%37 = icmp eq i8* %35, null
br i1 %37, label %65, label %38
38: ; preds = %34
%39 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%40 = getelementptr inbounds i8*, i8** %1, i64 9
store i8* %39, i8** %40
%41 = icmp eq i8* %39, null
br i1 %41, label %65, label %42
42: ; preds = %38
%43 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%44 = getelementptr inbounds i8*, i8** %1, i64 10
store i8* %43, i8** %44
%45 = icmp eq i8* %43, null
br i1 %45, label %65, label %46
46: ; preds = %42
%47 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%48 = getelementptr inbounds i8*, i8** %1, i64 11
store i8* %47, i8** %48
%49 = icmp eq i8* %47, null
br i1 %49, label %65, label %50
50: ; preds = %46
%51 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%52 = getelementptr inbounds i8*, i8** %1, i64 12
store i8* %51, i8** %52
%53 = icmp eq i8* %51, null
br i1 %53, label %65, label %54
54: ; preds = %50
%55 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%56 = getelementptr inbounds i8*, i8** %1, i64 13
store i8* %55, i8** %56
%57 = icmp eq i8* %55, null
br i1 %57, label %65, label %58
58: ; preds = %54
%59 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%60 = getelementptr inbounds i8*, i8** %1, i64 14
store i8* %59, i8** %60
%61 = icmp eq i8* %59, null
br i1 %61, label %65, label %62
62: ; preds = %58
%63 = call i8* @strsep(i8** %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%64 = getelementptr inbounds i8*, i8** %1, i64 15
store i8* %63, i8** %64
br label %65
65: ; preds = %62, %58, %54, %50, %46, %42, %38, %34, %30, %26, %22, %18, %14, %10, %6, %2
ret void
}