#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__ isgraph(size_t);
int /*<<< orphan*/ printf(char *, size_t, size_t);
int main(int argc, char const *argv[]) {
  for (size_t i = 0; i < 128; i++) {
    if (i < 100) {
      if (isgraph(i)) {
        printf("%lu                        %c\n", i, i);
      }
    } else if (isgraph(i)) {
      printf("%lu                       %c\n", i, i);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x80,-0x18(%rbp)
jae    11c5 <main+0xa5>
cmpq   $0x64,-0x18(%rbp)
jae    1183 <main+0x63>
mov    -0x18(%rbp),%rdi
call   1040 <isgraph@plt>
cmp    $0x0,%rax
je     117e <main+0x5e>
mov    -0x18(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    11af <main+0x8f>
mov    -0x18(%rbp),%rdi
call   1040 <isgraph@plt>
cmp    $0x0,%rax
je     11aa <main+0x8a>
mov    -0x18(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
jmp    11af <main+0x8f>
jmp    11b4 <main+0x94>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    113e <main+0x1e>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %ebx,%ebx
lea    0xed2(%rip),%r14
lea    0xeea(%rip),%r15
jmp    114d <main+0x2d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x80,%rbx
je     1172 <main+0x52>
mov    %rbx,%rdi
call   1040 <isgraph@plt>
test   %rax,%rax
je     1140 <main+0x20>
cmp    $0x64,%rbx
mov    %r15,%rdi
cmovb  %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
call   1030 <printf@plt>
jmp    1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [31 x i8] c"%lu %c\0A\00"
@.str.1 = [30 x i8] c"%lu %c\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %6
br label %7
7: ; preds = %32, %2
%8 = load i64, i64* %6
%9 = icmp ult i64 %8, 128
br i1 %9, label %10, label %35
10: ; preds = %7
%11 = load i64, i64* %6
%12 = icmp ult i64 %11, 100
br i1 %12, label %13, label %22
13: ; preds = %10
%14 = load i64, i64* %6
%15 = call i64 @isgraph(i64 %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = load i64, i64* %6
%19 = load i64, i64* %6
%20 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i64 %18, i64 %19)
br label %21
21: ; preds = %17, %13
br label %31
22: ; preds = %10
%23 = load i64, i64* %6
%24 = call i64 @isgraph(i64 %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = load i64, i64* %6
%28 = load i64, i64* %6
%29 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i64 %27, i64 %28)
br label %30
30: ; preds = %26, %22
br label %31
31: ; preds = %30, %21
br label %32
32: ; preds = %31
%33 = load i64, i64* %6
%34 = add i64 %33, 1
store i64 %34, i64* %6
br label %7
35: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"%lu %c\0A\00"
@.str.1 = [30 x i8] c"%lu %c\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %4
3: ; preds = %12
ret i32 0
4: ; preds = %2, %12
%5 = phi i64 [ 0, %2 ], [ %13, %12 ]
%6 = tail call i64 @isgraph(i64 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %4
%9 = icmp ult i64 %5, 100
%10 = select i1 %9, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0)
%11 = tail call i32 @printf(i8* %10, i64 %5, i64 %5)
br label %12
12: ; preds = %4, %8
%13 = add nuw nsw i64 %5, 1
%14 = icmp eq i64 %13, 128
br i1 %14, label %3, label %4
}