#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*/ ft_print_putchar(char, char, char);
int /*<<< orphan*/ ft_putchar(char);
void ft_print_comb(void) {
  char a;
  char b;
  char c;
  a = '0';
  while (a <= '7') {
    b = a + 1;
    while (b <= '8') {
      c = b + 1;
      while (c <= '9') {
        ft_print_putchar(a, b, c);
        c++;
      }
      b++;
    }
    a++;
  }
  ft_putchar('\b');
  ft_putchar('\b');
}


x86 assembly (clang, -O0):
<ft_print_comb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x30,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x37,%eax
jg     11a3 <ft_print_comb+0x83>
movsbl -0x1(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x38,%eax
jg     1196 <ft_print_comb+0x76>
movsbl -0x2(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x3(%rbp)
movsbl -0x3(%rbp),%eax
cmp    $0x39,%eax
jg     1189 <ft_print_comb+0x69>
mov    -0x1(%rbp),%cl
mov    -0x2(%rbp),%al
movsbl %cl,%edi
movsbl %al,%esi
movsbl -0x3(%rbp),%edx
call   1040 <ft_print_putchar@plt>
mov    -0x3(%rbp),%al
add    $0x1,%al
mov    %al,-0x3(%rbp)
jmp    115a <ft_print_comb+0x3a>
mov    -0x2(%rbp),%al
add    $0x1,%al
mov    %al,-0x2(%rbp)
jmp    1143 <ft_print_comb+0x23>
mov    -0x1(%rbp),%al
add    $0x1,%al
mov    %al,-0x1(%rbp)
jmp    112c <ft_print_comb+0xc>
mov    $0x8,%edi
call   1030 <ft_putchar@plt>
mov    $0x8,%edi
call   1030 <ft_putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_print_comb>:
push   %rbp
push   %r14
push   %rbx
mov    $0x30,%r14b
mov    $0x31,%al
jmp    1138 <ft_print_comb+0x18>
nopl   0x0(%rax,%rax,1)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     116e <ft_print_comb+0x4e>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1130 <ft_print_comb+0x10>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x30,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     1150 <ft_print_comb+0x30>
jmp    1130 <ft_print_comb+0x10>
mov    $0x31,%r14b
mov    $0x32,%al
jmp    1188 <ft_print_comb+0x68>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     11be <ft_print_comb+0x9e>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1180 <ft_print_comb+0x60>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x31,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     11a0 <ft_print_comb+0x80>
jmp    1180 <ft_print_comb+0x60>
mov    $0x32,%r14b
mov    $0x33,%al
jmp    11d8 <ft_print_comb+0xb8>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     120e <ft_print_comb+0xee>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     11d0 <ft_print_comb+0xb0>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x32,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     11f0 <ft_print_comb+0xd0>
jmp    11d0 <ft_print_comb+0xb0>
mov    $0x33,%r14b
mov    $0x34,%al
jmp    1228 <ft_print_comb+0x108>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     125e <ft_print_comb+0x13e>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1220 <ft_print_comb+0x100>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x33,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     1240 <ft_print_comb+0x120>
jmp    1220 <ft_print_comb+0x100>
mov    $0x34,%r14b
mov    $0x35,%al
jmp    1278 <ft_print_comb+0x158>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     12ae <ft_print_comb+0x18e>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1270 <ft_print_comb+0x150>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x34,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     1290 <ft_print_comb+0x170>
jmp    1270 <ft_print_comb+0x150>
mov    $0x35,%r14b
mov    $0x36,%al
jmp    12c8 <ft_print_comb+0x1a8>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     12fe <ft_print_comb+0x1de>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     12c0 <ft_print_comb+0x1a0>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x35,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     12e0 <ft_print_comb+0x1c0>
jmp    12c0 <ft_print_comb+0x1a0>
mov    $0x36,%r14b
mov    $0x37,%al
jmp    1318 <ft_print_comb+0x1f8>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     134e <ft_print_comb+0x22e>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1310 <ft_print_comb+0x1f0>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x36,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     1330 <ft_print_comb+0x210>
jmp    1310 <ft_print_comb+0x1f0>
mov    $0x37,%r14b
mov    $0x38,%al
jmp    1368 <ft_print_comb+0x248>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     139e <ft_print_comb+0x27e>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1360 <ft_print_comb+0x240>
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%bl
movsbl %r14b,%esi
movsbl %bl,%ebp
mov    $0x37,%edi
mov    %ebp,%edx
call   1040 <ft_print_putchar@plt>
cmp    $0x39,%bpl
jb     1380 <ft_print_comb+0x260>
jmp    1360 <ft_print_comb+0x240>
mov    $0x8,%edi
call   1030 <ft_putchar@plt>
mov    $0x8,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <ft_putchar@plt>

LLVM IR (-O0):
define void @ft_print_comb() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
store i8 48, i8* %1
br label %4
4: ; preds = %36, %0
%5 = load i8, i8* %1
%6 = sext i8 %5 to i32
%7 = icmp sle i32 %6, 55
br i1 %7, label %8, label %39
8: ; preds = %4
%9 = load i8, i8* %1
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = trunc i32 %11 to i8
store i8 %12, i8* %2
br label %13
13: ; preds = %33, %8
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 56
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = load i8, i8* %2
%19 = sext i8 %18 to i32
%20 = add nsw i32 %19, 1
%21 = trunc i32 %20 to i8
store i8 %21, i8* %3
br label %22
22: ; preds = %26, %17
%23 = load i8, i8* %3
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 57
br i1 %25, label %26, label %33
26: ; preds = %22
%27 = load i8, i8* %1
%28 = load i8, i8* %2
%29 = load i8, i8* %3
%30 = call i32 @ft_print_putchar(i8 signext %27, i8 signext %28, i8 signext %29)
%31 = load i8, i8* %3
%32 = add i8 %31, 1
store i8 %32, i8* %3
br label %22
33: ; preds = %22
%34 = load i8, i8* %2
%35 = add i8 %34, 1
store i8 %35, i8* %2
br label %13
36: ; preds = %13
%37 = load i8, i8* %1
%38 = add i8 %37, 1
store i8 %38, i8* %1
br label %4
39: ; preds = %4
%40 = call i32 @ft_putchar(i8 signext 8)
%41 = call i32 @ft_putchar(i8 signext 8)
ret void
}

LLVM IR (-O2):
define void @ft_print_comb() {
br label %4
1: ; preds = %10, %4
%2 = add nuw nsw i8 %5, 1
%3 = icmp eq i8 %2, 57
br i1 %3, label %15, label %4
4: ; preds = %0, %1
%5 = phi i8 [ %2, %1 ], [ 49, %0 ]
%6 = phi i8 [ %5, %1 ], [ 48, %0 ]
%7 = icmp ult i8 %6, 56
br i1 %7, label %8, label %1
8: ; preds = %4
%9 = add nuw nsw i8 %6, 2
br label %10
10: ; preds = %8, %10
%11 = phi i8 [ %13, %10 ], [ %9, %8 ]
%12 = tail call i32 @ft_print_putchar(i8 signext 48, i8 signext %5, i8 signext %11)
%13 = add nuw nsw i8 %11, 1
%14 = icmp ult i8 %11, 57
br i1 %14, label %10, label %1
15: ; preds = %1, %26
%16 = phi i8 [ %27, %26 ], [ 50, %1 ]
%17 = phi i8 [ %16, %26 ], [ 49, %1 ]
%18 = icmp ult i8 %17, 56
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = add nuw nsw i8 %17, 2
br label %21
21: ; preds = %21, %19
%22 = phi i8 [ %24, %21 ], [ %20, %19 ]
%23 = tail call i32 @ft_print_putchar(i8 signext 49, i8 signext %16, i8 signext %22)
%24 = add nuw nsw i8 %22, 1
%25 = icmp ult i8 %22, 57
br i1 %25, label %21, label %26
26: ; preds = %21, %15
%27 = add nuw nsw i8 %16, 1
%28 = icmp eq i8 %27, 57
br i1 %28, label %29, label %15
29: ; preds = %26, %40
%30 = phi i8 [ %41, %40 ], [ 51, %26 ]
%31 = phi i8 [ %30, %40 ], [ 50, %26 ]
%32 = icmp ult i8 %31, 56
br i1 %32, label %33, label %40
33: ; preds = %29
%34 = add nuw nsw i8 %31, 2
br label %35
35: ; preds = %35, %33
%36 = phi i8 [ %38, %35 ], [ %34, %33 ]
%37 = tail call i32 @ft_print_putchar(i8 signext 50, i8 signext %30, i8 signext %36)
%38 = add nuw nsw i8 %36, 1
%39 = icmp ult i8 %36, 57
br i1 %39, label %35, label %40
40: ; preds = %35, %29
%41 = add nuw nsw i8 %30, 1
%42 = icmp eq i8 %41, 57
br i1 %42, label %43, label %29
43: ; preds = %40, %54
%44 = phi i8 [ %55, %54 ], [ 52, %40 ]
%45 = phi i8 [ %44, %54 ], [ 51, %40 ]
%46 = icmp ult i8 %45, 56
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = add nuw nsw i8 %45, 2
br label %49
49: ; preds = %49, %47
%50 = phi i8 [ %52, %49 ], [ %48, %47 ]
%51 = tail call i32 @ft_print_putchar(i8 signext 51, i8 signext %44, i8 signext %50)
%52 = add nuw nsw i8 %50, 1
%53 = icmp ult i8 %50, 57
br i1 %53, label %49, label %54
54: ; preds = %49, %43
%55 = add nuw nsw i8 %44, 1
%56 = icmp eq i8 %55, 57
br i1 %56, label %57, label %43
57: ; preds = %54, %68
%58 = phi i8 [ %69, %68 ], [ 53, %54 ]
%59 = phi i8 [ %58, %68 ], [ 52, %54 ]
%60 = icmp ult i8 %59, 56
br i1 %60, label %61, label %68
61: ; preds = %57
%62 = add nuw nsw i8 %59, 2
br label %63
63: ; preds = %63, %61
%64 = phi i8 [ %66, %63 ], [ %62, %61 ]
%65 = tail call i32 @ft_print_putchar(i8 signext 52, i8 signext %58, i8 signext %64)
%66 = add nuw nsw i8 %64, 1
%67 = icmp ult i8 %64, 57
br i1 %67, label %63, label %68
68: ; preds = %63, %57
%69 = add nuw nsw i8 %58, 1
%70 = icmp eq i8 %69, 57
br i1 %70, label %71, label %57
71: ; preds = %68, %82
%72 = phi i8 [ %83, %82 ], [ 54, %68 ]
%73 = phi i8 [ %72, %82 ], [ 53, %68 ]
%74 = icmp ult i8 %73, 56
br i1 %74, label %75, label %82
75: ; preds = %71
%76 = add nuw nsw i8 %73, 2
br label %77
77: ; preds = %77, %75
%78 = phi i8 [ %80, %77 ], [ %76, %75 ]
%79 = tail call i32 @ft_print_putchar(i8 signext 53, i8 signext %72, i8 signext %78)
%80 = add nuw nsw i8 %78, 1
%81 = icmp ult i8 %78, 57
br i1 %81, label %77, label %82
82: ; preds = %77, %71
%83 = add nuw nsw i8 %72, 1
%84 = icmp eq i8 %83, 57
br i1 %84, label %85, label %71
85: ; preds = %82, %96
%86 = phi i8 [ %97, %96 ], [ 55, %82 ]
%87 = phi i8 [ %86, %96 ], [ 54, %82 ]
%88 = icmp ult i8 %87, 56
br i1 %88, label %89, label %96
89: ; preds = %85
%90 = add nuw nsw i8 %87, 2
br label %91
91: ; preds = %91, %89
%92 = phi i8 [ %94, %91 ], [ %90, %89 ]
%93 = tail call i32 @ft_print_putchar(i8 signext 54, i8 signext %86, i8 signext %92)
%94 = add nuw nsw i8 %92, 1
%95 = icmp ult i8 %92, 57
br i1 %95, label %91, label %96
96: ; preds = %91, %85
%97 = add nuw nsw i8 %86, 1
%98 = icmp eq i8 %97, 57
br i1 %98, label %99, label %85
99: ; preds = %96, %110
%100 = phi i8 [ %111, %110 ], [ 56, %96 ]
%101 = phi i8 [ %100, %110 ], [ 55, %96 ]
%102 = icmp ult i8 %101, 56
br i1 %102, label %103, label %110
103: ; preds = %99
%104 = add nuw nsw i8 %101, 2
br label %105
105: ; preds = %105, %103
%106 = phi i8 [ %108, %105 ], [ %104, %103 ]
%107 = tail call i32 @ft_print_putchar(i8 signext 55, i8 signext %100, i8 signext %106)
%108 = add nuw nsw i8 %106, 1
%109 = icmp ult i8 %106, 57
br i1 %109, label %105, label %110
110: ; preds = %105, %99
%111 = add nuw nsw i8 %100, 1
%112 = icmp eq i8 %111, 57
br i1 %112, label %113, label %99
113: ; preds = %110
%114 = tail call i32 @ft_putchar(i8 signext 8)
%115 = tail call i32 @ft_putchar(i8 signext 8)
ret void
}