#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 settabs(int argc, char *argv[], char *tabstop) {
  int i;
  if (argc < 2) {
    for (i = 1; i <= 250; i++)
      tabstop[i] = ((i % 4) == 0) ? 1 : 0;
    return;
  }
  for (i = 1; i <= 250; i++)
    tabstop[i] = false;
  while (--argc > 0) {
    i = atoi(*++argv);
    if (0 < i && i <= 250)
      tabstop[i] = 1;
  }
}


x86 assembly (clang, -O0):
<settabs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x2,-0x4(%rbp)
jge    1179 <settabs+0x69>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xfa,-0x1c(%rbp)
jg     1174 <settabs+0x64>
mov    -0x1c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
mov    %al,%dl
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1134 <settabs+0x24>
jmp    1202 <settabs+0xf2>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xfa,-0x1c(%rbp)
jg     11a7 <settabs+0x97>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1180 <settabs+0x70>
jmp    11ac <settabs+0x9c>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
jle    1202 <settabs+0xf2>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
call   1030 <atoi@plt>
mov    %eax,-0x1c(%rbp)
xor    %eax,%eax
cmp    -0x1c(%rbp),%eax
jge    11fd <settabs+0xed>
cmpl   $0xfa,-0x1c(%rbp)
jg     11fd <settabs+0xed>
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movb   $0x1,(%rax,%rcx,1)
jmp    11ac <settabs+0x9c>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<settabs>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
cmp    $0x1,%edi
jg     11a7 <settabs+0x97>
movaps 0xed9(%rip),%xmm0
movups %xmm0,0x1(%r14)
movups %xmm0,0x11(%r14)
movups %xmm0,0x21(%r14)
movups %xmm0,0x31(%r14)
movups %xmm0,0x41(%r14)
movups %xmm0,0x51(%r14)
movups %xmm0,0x61(%r14)
movups %xmm0,0x71(%r14)
movups %xmm0,0x81(%r14)
movups %xmm0,0x91(%r14)
movups %xmm0,0xa1(%r14)
movups %xmm0,0xb1(%r14)
movups %xmm0,0xc1(%r14)
movups %xmm0,0xd1(%r14)
movups %xmm0,0xe1(%r14)
movabs $0x100000001000000,%rax
mov    %rax,0xf1(%r14)
movw   $0x0,0xf9(%r14)
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    %rsi,%rbx
mov    %edi,%ebp
xorps  %xmm0,%xmm0
movups %xmm0,0xeb(%r14)
movups %xmm0,0xe1(%r14)
movups %xmm0,0xd1(%r14)
movups %xmm0,0xc1(%r14)
movups %xmm0,0xb1(%r14)
movups %xmm0,0xa1(%r14)
movups %xmm0,0x91(%r14)
movups %xmm0,0x81(%r14)
movups %xmm0,0x71(%r14)
movups %xmm0,0x61(%r14)
movups %xmm0,0x51(%r14)
movups %xmm0,0x41(%r14)
movups %xmm0,0x31(%r14)
movups %xmm0,0x21(%r14)
movups %xmm0,0x11(%r14)
movups %xmm0,0x1(%r14)
add    $0x1,%ebp
add    $0x8,%rbx
jmp    1230 <settabs+0x120>
add    $0xffffffff,%ebp
add    $0x8,%rbx
cmp    $0x2,%ebp
jbe    11a2 <settabs+0x92>
mov    (%rbx),%rdi
call   1030 <atoi@plt>
lea    -0x1(%rax),%ecx
cmp    $0xf9,%ecx
ja     1220 <settabs+0x110>
mov    %eax,%eax
movb   $0x1,(%r14,%rax,1)
jmp    1220 <settabs+0x110>

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

LLVM IR (-O2):
define void @settabs(i32 %0, i8** nocapture %1, i8* nocapture writeonly %2) {
%4 = icmp slt i32 %0, 2
br i1 %4, label %5, label %46
5: ; preds = %3
%6 = getelementptr inbounds i8, i8* %2, i64 1
%7 = bitcast i8* %6 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %7
%8 = getelementptr inbounds i8, i8* %2, i64 17
%9 = bitcast i8* %8 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %9
%10 = getelementptr inbounds i8, i8* %2, i64 33
%11 = bitcast i8* %10 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %11
%12 = getelementptr inbounds i8, i8* %2, i64 49
%13 = bitcast i8* %12 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %13
%14 = getelementptr inbounds i8, i8* %2, i64 65
%15 = bitcast i8* %14 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %15
%16 = getelementptr inbounds i8, i8* %2, i64 81
%17 = bitcast i8* %16 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %17
%18 = getelementptr inbounds i8, i8* %2, i64 97
%19 = bitcast i8* %18 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %19
%20 = getelementptr inbounds i8, i8* %2, i64 113
%21 = bitcast i8* %20 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %21
%22 = getelementptr inbounds i8, i8* %2, i64 129
%23 = bitcast i8* %22 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %23
%24 = getelementptr inbounds i8, i8* %2, i64 145
%25 = bitcast i8* %24 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %25
%26 = getelementptr inbounds i8, i8* %2, i64 161
%27 = bitcast i8* %26 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %27
%28 = getelementptr inbounds i8, i8* %2, i64 177
%29 = bitcast i8* %28 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %29
%30 = getelementptr inbounds i8, i8* %2, i64 193
%31 = bitcast i8* %30 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %31
%32 = getelementptr inbounds i8, i8* %2, i64 209
%33 = bitcast i8* %32 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %33
%34 = getelementptr inbounds i8, i8* %2, i64 225
%35 = bitcast i8* %34 to <16 x i8>*
store <16 x i8> <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, i8 1>, <16 x i8>* %35
%36 = getelementptr inbounds i8, i8* %2, i64 241
store i8 0, i8* %36
%37 = getelementptr inbounds i8, i8* %2, i64 242
store i8 0, i8* %37
%38 = getelementptr inbounds i8, i8* %2, i64 243
store i8 0, i8* %38
%39 = getelementptr inbounds i8, i8* %2, i64 244
store i8 1, i8* %39
%40 = getelementptr inbounds i8, i8* %2, i64 245
store i8 0, i8* %40
%41 = getelementptr inbounds i8, i8* %2, i64 246
store i8 0, i8* %41
%42 = getelementptr inbounds i8, i8* %2, i64 247
store i8 0, i8* %42
%43 = getelementptr inbounds i8, i8* %2, i64 248
store i8 1, i8* %43
%44 = getelementptr inbounds i8, i8* %2, i64 249
store i8 0, i8* %44
%45 = getelementptr inbounds i8, i8* %2, i64 250
store i8 0, i8* %45
br label %62
46: ; preds = %3
%47 = getelementptr i8, i8* %2, i64 1
br label %48
48: ; preds = %46, %60
%49 = phi i32 [ %51, %60 ], [ %0, %46 ]
%50 = phi i8** [ %52, %60 ], [ %1, %46 ]
%51 = add nsw i32 %49, -1
%52 = getelementptr inbounds i8*, i8** %50, i64 1
%53 = load i8*, i8** %52
%54 = tail call i32 @atoi(i8* %53)
%55 = add i32 %54, -1
%56 = icmp ult i32 %55, 250
br i1 %56, label %57, label %60
57: ; preds = %48
%58 = zext i32 %54 to i64
%59 = getelementptr inbounds i8, i8* %2, i64 %58
store i8 1, i8* %59
br label %60
60: ; preds = %57, %48
%61 = icmp ugt i32 %49, 2
br i1 %61, label %48, label %62
62: ; preds = %60, %5
ret void
}