#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 */
int atoi(char *);
void full_tabstops(char *tabline, int argc, char *argv[]) {
  int len = 0;
  int i = 0;
  int col_num = 0;
  for (i = 0; i < 100; i++) {
    tabline[i] = 0;
  }
  tabline[i++] = '\0';
  if (argc == 1) {
    for (i = 0; i < 100; i++) {
      tabline[i] = (i % 4 == 0);
    }
  } else {
    while (--argc > 0) {
      col_num = atoi(*++argv);
      tabline[col_num] = 1;
    }
  }
}


x86 assembly (clang, -O0):
<full_tabstops>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x64,-0x20(%rbp)
jge    1163 <full_tabstops+0x53>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    113f <full_tabstops+0x2f>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x20(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x1,-0xc(%rbp)
jne    11ca <full_tabstops+0xba>
movl   $0x0,-0x20(%rbp)
cmpl   $0x64,-0x20(%rbp)
jge    11c5 <full_tabstops+0xb5>
mov    -0x20(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    118a <full_tabstops+0x7a>
jmp    1212 <full_tabstops+0x102>
jmp    11cf <full_tabstops+0xbf>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jle    120d <full_tabstops+0xfd>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x18(%rbp)
mov    0x8(%rax),%rdi
call   1030 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movb   $0x1,(%rax,%rcx,1)
jmp    11cf <full_tabstops+0xbf>
jmp    1212 <full_tabstops+0x102>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<full_tabstops>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%r14
xorps  %xmm0,%xmm0
movups %xmm0,0x50(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm0,0x30(%rdi)
movups %xmm0,0x20(%rdi)
movups %xmm0,0x10(%rdi)
movups %xmm0,(%rdi)
movq   $0x0,0x5d(%rdi)
cmp    $0x1,%esi
jne    116c <full_tabstops+0x5c>
movaps 0xebb(%rip),%xmm0
movups %xmm0,(%r14)
movups %xmm0,0x10(%r14)
movups %xmm0,0x20(%r14)
movups %xmm0,0x30(%r14)
movups %xmm0,0x40(%r14)
movups %xmm0,0x50(%r14)
movl   $0x1,0x60(%r14)
jmp    119b <full_tabstops+0x8b>
jle    119b <full_tabstops+0x8b>
mov    %rdx,%rbx
mov    %esi,%ebp
add    $0x1,%ebp
add    $0x8,%rbx
nopw   0x0(%rax,%rax,1)
mov    (%rbx),%rdi
call   1030 <atoi@plt>
cltq
movb   $0x1,(%r14,%rax,1)
add    $0xffffffff,%ebp
add    $0x8,%rbx
cmp    $0x2,%ebp
ja     1180 <full_tabstops+0x70>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @full_tabstops(i8* %0, i32 %1, i8** %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %8
br label %10
10: ; preds = %18, %3
%11 = load i32, i32* %8
%12 = icmp slt i32 %11, 100
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i8*, i8** %4
%15 = load i32, i32* %8
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, i8* %14, i64 %16
store i8 0, i8* %17
br label %18
18: ; preds = %13
%19 = load i32, i32* %8
%20 = add nsw i32 %19, 1
store i32 %20, i32* %8
br label %10
21: ; preds = %10
%22 = load i8*, i8** %4
%23 = load i32, i32* %8
%24 = add nsw i32 %23, 1
store i32 %24, i32* %8
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds i8, i8* %22, i64 %25
store i8 0, i8* %26
%27 = load i32, i32* %5
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %47
29: ; preds = %21
store i32 0, i32* %8
br label %30
30: ; preds = %43, %29
%31 = load i32, i32* %8
%32 = icmp slt i32 %31, 100
br i1 %32, label %33, label %46
33: ; preds = %30
%34 = load i32, i32* %8
%35 = srem i32 %34, 4
%36 = icmp eq i32 %35, 0
%37 = zext i1 %36 to i32
%38 = trunc i32 %37 to i8
%39 = load i8*, i8** %4
%40 = load i32, i32* %8
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %39, i64 %41
store i8 %38, i8* %42
br label %43
43: ; preds = %33
%44 = load i32, i32* %8
%45 = add nsw i32 %44, 1
store i32 %45, i32* %8
br label %30
46: ; preds = %30
br label %62
47: ; preds = %21
br label %48
48: ; preds = %52, %47
%49 = load i32, i32* %5
%50 = add nsw i32 %49, -1
store i32 %50, i32* %5
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %61
52: ; preds = %48
%53 = load i8**, i8*** %6
%54 = getelementptr inbounds i8*, i8** %53, i32 1
store i8** %54, i8*** %6
%55 = load i8*, i8** %54
%56 = call i32 @atoi(i8* %55)
store i32 %56, i32* %9
%57 = load i8*, i8** %4
%58 = load i32, i32* %9
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %57, i64 %59
store i8 1, i8* %60
br label %48
61: ; preds = %48
br label %62
62: ; preds = %61, %46
ret void
}

LLVM IR (-O2):
define void @full_tabstops(i8* nocapture writeonly %0, i32 %1, i8** nocapture %2) {
%4 = icmp eq i32 %1, 1
br i1 %4, label %5, label %21
5: ; preds = %3
%6 = bitcast i8* %0 to <16 x i8>*
store <16 x i8> <i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0>, <16 x i8>* %6
%7 = getelementptr inbounds i8, i8* %0, i64 16
%8 = bitcast i8* %7 to <16 x i8>*
store <16 x i8> <i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0>, <16 x i8>* %8
%9 = getelementptr inbounds i8, i8* %0, i64 32
%10 = bitcast i8* %9 to <16 x i8>*
store <16 x i8> <i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0>, <16 x i8>* %10
%11 = getelementptr inbounds i8, i8* %0, i64 48
%12 = bitcast i8* %11 to <16 x i8>*
store <16 x i8> <i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0>, <16 x i8>* %12
%13 = getelementptr inbounds i8, i8* %0, i64 64
%14 = bitcast i8* %13 to <16 x i8>*
store <16 x i8> <i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0>, <16 x i8>* %14
%15 = getelementptr inbounds i8, i8* %0, i64 80
%16 = bitcast i8* %15 to <16 x i8>*
store <16 x i8> <i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0, i8 1, i8 0, i8 0, i8 0>, <16 x i8>* %16
%17 = getelementptr inbounds i8, i8* %0, i64 96
store i8 1, i8* %17
%18 = getelementptr inbounds i8, i8* %0, i64 97
store i8 0, i8* %18
%19 = getelementptr inbounds i8, i8* %0, i64 98
store i8 0, i8* %19
%20 = getelementptr inbounds i8, i8* %0, i64 99
store i8 0, i8* %20
br label %33
21: ; preds = %3
%22 = icmp sgt i32 %1, 1
br i1 %22, label %23, label %33
23: ; preds = %21, %23
%24 = phi i32 [ %26, %23 ], [ %1, %21 ]
%25 = phi i8** [ %27, %23 ], [ %2, %21 ]
%26 = add nsw i32 %24, -1
%27 = getelementptr inbounds i8*, i8** %25, i64 1
%28 = load i8*, i8** %27
%29 = tail call i32 @atoi(i8* %28)
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, i8* %0, i64 %30
store i8 1, i8* %31
%32 = icmp ugt i32 %24, 2
br i1 %32, label %23, label %33
33: ; preds = %23, %5, %21
ret void
}