#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 /*<<< orphan*/ my_putchar(char);
int my_print_comb2(void) {
  int i;
  int i2;
  i = 0;
  i2 = 0;
  while (i2 < 100) {
    i = i2 + 1;
    while (i < 100) {
      my_putchar(i2 / 10 + 48);
      my_putchar(i2 % 10 + 48);
      my_putchar(' ');
      my_putchar(i / 10 + 48);
      my_putchar(i % 10 + 48);
      if ((i2 / 10 != 9) || (i2 % 10 != 8)) {
        my_putchar(',');
        my_putchar(' ');
      }
      i++;
    }
    i2++;
  }
  return (0);
}


x86 assembly (clang, -O0):
<my_print_comb2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    1201 <my_print_comb2+0xf1>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
cmpl   $0x64,-0x4(%rbp)
jge    11f3 <my_print_comb2+0xe3>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%al
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    $0x20,%edi
call   1030 <my_putchar@plt>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x30,%edx
mov    %dl,%al
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x9,%eax
jne    11d1 <my_print_comb2+0xc1>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x8,%edx
je     11e5 <my_print_comb2+0xd5>
mov    $0x2c,%edi
call   1030 <my_putchar@plt>
mov    $0x20,%edi
call   1030 <my_putchar@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1139 <my_print_comb2+0x29>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <my_print_comb2+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_print_comb2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %eax,%eax
movl   $0x63,0xc(%rsp)
movb   $0x1,0xb(%rsp)
jmp    1147 <my_print_comb2+0x37>
nop
addl   $0xffffffff,0xc(%rsp)
addb   $0x1,0xb(%rsp)
mov    0x10(%rsp),%eax
cmp    $0x64,%eax
je     1211 <my_print_comb2+0x101>
lea    0x1(%rax),%ecx
mov    %ecx,0x10(%rsp)
cmp    $0x62,%eax
ja     1130 <my_print_comb2+0x20>
movzbl %al,%ecx
imul   $0xcd,%ecx,%edx
shr    $0xb,%edx
lea    0x30(%rdx),%esi
mov    %esi,0x14(%rsp)
add    %edx,%edx
lea    (%rdx,%rdx,4),%edx
sub    %dl,%cl
mov    %ecx,%r13d
or     $0x30,%r13b
add    $0xffffffa6,%eax
cmp    $0xa,%eax
setb   %al
cmp    $0x8,%cl
sete   %bl
and    %al,%bl
mov    0xb(%rsp),%r12b
mov    0xc(%rsp),%r15d
jmp    11aa <my_print_comb2+0x9a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12b
add    $0xffffffff,%r15d
je     1130 <my_print_comb2+0x20>
movzbl %r12b,%r14d
imul   $0xcd,%r14d,%ebp
shr    $0xb,%ebp
mov    %ebp,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %al,%r14b
movzbl 0x14(%rsp),%edi
call   1030 <my_putchar@plt>
movsbl %r13b,%edi
call   1030 <my_putchar@plt>
mov    $0x20,%edi
call   1030 <my_putchar@plt>
lea    0x30(%rbp),%eax
movzbl %al,%edi
call   1030 <my_putchar@plt>
or     $0x30,%r14b
movsbl %r14b,%edi
call   1030 <my_putchar@plt>
test   %bl,%bl
jne    11a0 <my_print_comb2+0x90>
mov    $0x2c,%edi
call   1030 <my_putchar@plt>
mov    $0x20,%edi
call   1030 <my_putchar@plt>
jmp    11a0 <my_print_comb2+0x90>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @my_print_comb2() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %47, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 100
br i1 %5, label %6, label %50
6: ; preds = %3
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
br label %9
9: ; preds = %44, %6
%10 = load i32, i32* %1
%11 = icmp slt i32 %10, 100
br i1 %11, label %12, label %47
12: ; preds = %9
%13 = load i32, i32* %2
%14 = sdiv i32 %13, 10
%15 = add nsw i32 %14, 48
%16 = trunc i32 %15 to i8
%17 = call i32 @my_putchar(i8 signext %16)
%18 = load i32, i32* %2
%19 = srem i32 %18, 10
%20 = add nsw i32 %19, 48
%21 = trunc i32 %20 to i8
%22 = call i32 @my_putchar(i8 signext %21)
%23 = call i32 @my_putchar(i8 signext 32)
%24 = load i32, i32* %1
%25 = sdiv i32 %24, 10
%26 = add nsw i32 %25, 48
%27 = trunc i32 %26 to i8
%28 = call i32 @my_putchar(i8 signext %27)
%29 = load i32, i32* %1
%30 = srem i32 %29, 10
%31 = add nsw i32 %30, 48
%32 = trunc i32 %31 to i8
%33 = call i32 @my_putchar(i8 signext %32)
%34 = load i32, i32* %2
%35 = sdiv i32 %34, 10
%36 = icmp ne i32 %35, 9
br i1 %36, label %41, label %37
37: ; preds = %12
%38 = load i32, i32* %2
%39 = srem i32 %38, 10
%40 = icmp ne i32 %39, 8
br i1 %40, label %41, label %44
41: ; preds = %37, %12
%42 = call i32 @my_putchar(i8 signext 44)
%43 = call i32 @my_putchar(i8 signext 32)
br label %44
44: ; preds = %41, %37
%45 = load i32, i32* %1
%46 = add nsw i32 %45, 1
store i32 %46, i32* %1
br label %9
47: ; preds = %9
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %3
50: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
define i32 @my_print_comb2() {
br label %3
1: ; preds = %33, %3
%2 = icmp eq i32 %5, 100
br i1 %2, label %36, label %3
3: ; preds = %0, %1
%4 = phi i32 [ 0, %0 ], [ %5, %1 ]
%5 = add nuw nsw i32 %4, 1
%6 = icmp ult i32 %4, 99
br i1 %6, label %7, label %1
7: ; preds = %3
%8 = trunc i32 %4 to i8
%9 = udiv i8 %8, 10
%10 = add nuw nsw i8 %9, 48
%11 = trunc i32 %4 to i8
%12 = urem i8 %11, 10
%13 = or i8 %12, 48
%14 = add nsw i32 %4, -90
%15 = icmp ult i32 %14, 10
%16 = icmp eq i8 %12, 8
%17 = and i1 %15, %16
br label %18
18: ; preds = %7, %33
%19 = phi i32 [ %5, %7 ], [ %34, %33 ]
%20 = tail call i32 @my_putchar(i8 signext %10)
%21 = tail call i32 @my_putchar(i8 signext %13)
%22 = tail call i32 @my_putchar(i8 signext 32)
%23 = trunc i32 %19 to i8
%24 = udiv i8 %23, 10
%25 = add nuw nsw i8 %24, 48
%26 = tail call i32 @my_putchar(i8 signext %25)
%27 = urem i8 %23, 10
%28 = or i8 %27, 48
%29 = tail call i32 @my_putchar(i8 signext %28)
br i1 %17, label %33, label %30
30: ; preds = %18
%31 = tail call i32 @my_putchar(i8 signext 44)
%32 = tail call i32 @my_putchar(i8 signext 32)
br label %33
33: ; preds = %18, %30
%34 = add nuw nsw i32 %19, 1
%35 = icmp eq i32 %34, 100
br i1 %35, label %1, label %18
36: ; preds = %1
ret i32 0
}