#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_putchar(char);
int /*<<< orphan*/ print_num(char, char, char);
void ft_print_comb(void) {
  char i;
  char x;
  char z;
  i = '0';
  while (i < '7') {
    x = i + 1;
    while (x <= '8') {
      z = x + 1;
      while (z <= '9') {
        print_num(i, x, z);
        ft_putchar(',');
        ft_putchar(' ');
        z++;
      }
      x++;
    }
    i++;
  }
  print_num('7', '8', '9');
  ft_putchar('\n');
}


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
jge    11b7 <ft_print_comb+0x97>
movsbl -0x1(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x38,%eax
jg     11aa <ft_print_comb+0x8a>
movsbl -0x2(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x3(%rbp)
movsbl -0x3(%rbp),%eax
cmp    $0x39,%eax
jg     119d <ft_print_comb+0x7d>
mov    -0x1(%rbp),%cl
mov    -0x2(%rbp),%al
movsbl %cl,%edi
movsbl %al,%esi
movsbl -0x3(%rbp),%edx
call   1040 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_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    $0x37,%edi
mov    $0x38,%esi
mov    $0x39,%edx
call   1040 <print_num@plt>
mov    $0xa,%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     1182 <ft_print_comb+0x62>
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 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     1150 <ft_print_comb+0x30>
jmp    1130 <ft_print_comb+0x10>
mov    $0x31,%r14b
mov    $0x32,%al
jmp    1198 <ft_print_comb+0x78>
nopl   0x0(%rax)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     11e2 <ft_print_comb+0xc2>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1190 <ft_print_comb+0x70>
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 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     11b0 <ft_print_comb+0x90>
jmp    1190 <ft_print_comb+0x70>
mov    $0x32,%r14b
mov    $0x33,%al
jmp    11f8 <ft_print_comb+0xd8>
nopl   0x0(%rax)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     1242 <ft_print_comb+0x122>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     11f0 <ft_print_comb+0xd0>
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 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     1210 <ft_print_comb+0xf0>
jmp    11f0 <ft_print_comb+0xd0>
mov    $0x33,%r14b
mov    $0x34,%al
jmp    1258 <ft_print_comb+0x138>
nopl   0x0(%rax)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     12a2 <ft_print_comb+0x182>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1250 <ft_print_comb+0x130>
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 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     1270 <ft_print_comb+0x150>
jmp    1250 <ft_print_comb+0x130>
mov    $0x34,%r14b
mov    $0x35,%al
jmp    12b8 <ft_print_comb+0x198>
nopl   0x0(%rax)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     1302 <ft_print_comb+0x1e2>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     12b0 <ft_print_comb+0x190>
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 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     12d0 <ft_print_comb+0x1b0>
jmp    12b0 <ft_print_comb+0x190>
mov    $0x35,%r14b
mov    $0x36,%al
jmp    1318 <ft_print_comb+0x1f8>
nopl   0x0(%rax)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     1362 <ft_print_comb+0x242>
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    $0x35,%edi
mov    %ebp,%edx
call   1040 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     1330 <ft_print_comb+0x210>
jmp    1310 <ft_print_comb+0x1f0>
mov    $0x36,%r14b
mov    $0x37,%al
jmp    1378 <ft_print_comb+0x258>
nopl   0x0(%rax)
lea    0x1(%r14),%eax
cmp    $0x39,%al
je     13c2 <ft_print_comb+0x2a2>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    $0x37,%cl
ja     1370 <ft_print_comb+0x250>
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 <print_num@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
cmp    $0x39,%bpl
jb     1390 <ft_print_comb+0x270>
jmp    1370 <ft_print_comb+0x250>
mov    $0x37,%edi
mov    $0x38,%esi
mov    $0x39,%edx
call   1040 <print_num@plt>
mov    $0xa,%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 = %38, %0
%5 = load i8, i8* %1
%6 = sext i8 %5 to i32
%7 = icmp slt i32 %6, 55
br i1 %7, label %8, label %41
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 = %35, %8
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 56
br i1 %16, label %17, label %38
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 %35
26: ; preds = %22
%27 = load i8, i8* %1
%28 = load i8, i8* %2
%29 = load i8, i8* %3
%30 = call i32 @print_num(i8 signext %27, i8 signext %28, i8 signext %29)
%31 = call i32 @ft_putchar(i8 signext 44)
%32 = call i32 @ft_putchar(i8 signext 32)
%33 = load i8, i8* %3
%34 = add i8 %33, 1
store i8 %34, i8* %3
br label %22
35: ; preds = %22
%36 = load i8, i8* %2
%37 = add i8 %36, 1
store i8 %37, i8* %2
br label %13
38: ; preds = %13
%39 = load i8, i8* %1
%40 = add i8 %39, 1
store i8 %40, i8* %1
br label %4
41: ; preds = %4
%42 = call i32 @print_num(i8 signext 55, i8 signext 56, i8 signext 57)
%43 = call i32 @ft_putchar(i8 signext 10)
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 %17, 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 [ %15, %10 ], [ %9, %8 ]
%12 = tail call i32 @print_num(i8 signext 48, i8 signext %5, i8 signext %11)
%13 = tail call i32 @ft_putchar(i8 signext 44)
%14 = tail call i32 @ft_putchar(i8 signext 32)
%15 = add nuw nsw i8 %11, 1
%16 = icmp ult i8 %11, 57
br i1 %16, label %10, label %1
17: ; preds = %1, %30
%18 = phi i8 [ %31, %30 ], [ 50, %1 ]
%19 = phi i8 [ %18, %30 ], [ 49, %1 ]
%20 = icmp ult i8 %19, 56
br i1 %20, label %21, label %30
21: ; preds = %17
%22 = add nuw nsw i8 %19, 2
br label %23
23: ; preds = %23, %21
%24 = phi i8 [ %28, %23 ], [ %22, %21 ]
%25 = tail call i32 @print_num(i8 signext 49, i8 signext %18, i8 signext %24)
%26 = tail call i32 @ft_putchar(i8 signext 44)
%27 = tail call i32 @ft_putchar(i8 signext 32)
%28 = add nuw nsw i8 %24, 1
%29 = icmp ult i8 %24, 57
br i1 %29, label %23, label %30
30: ; preds = %23, %17
%31 = add nuw nsw i8 %18, 1
%32 = icmp eq i8 %31, 57
br i1 %32, label %33, label %17
33: ; preds = %30, %46
%34 = phi i8 [ %47, %46 ], [ 51, %30 ]
%35 = phi i8 [ %34, %46 ], [ 50, %30 ]
%36 = icmp ult i8 %35, 56
br i1 %36, label %37, label %46
37: ; preds = %33
%38 = add nuw nsw i8 %35, 2
br label %39
39: ; preds = %39, %37
%40 = phi i8 [ %44, %39 ], [ %38, %37 ]
%41 = tail call i32 @print_num(i8 signext 50, i8 signext %34, i8 signext %40)
%42 = tail call i32 @ft_putchar(i8 signext 44)
%43 = tail call i32 @ft_putchar(i8 signext 32)
%44 = add nuw nsw i8 %40, 1
%45 = icmp ult i8 %40, 57
br i1 %45, label %39, label %46
46: ; preds = %39, %33
%47 = add nuw nsw i8 %34, 1
%48 = icmp eq i8 %47, 57
br i1 %48, label %49, label %33
49: ; preds = %46, %62
%50 = phi i8 [ %63, %62 ], [ 52, %46 ]
%51 = phi i8 [ %50, %62 ], [ 51, %46 ]
%52 = icmp ult i8 %51, 56
br i1 %52, label %53, label %62
53: ; preds = %49
%54 = add nuw nsw i8 %51, 2
br label %55
55: ; preds = %55, %53
%56 = phi i8 [ %60, %55 ], [ %54, %53 ]
%57 = tail call i32 @print_num(i8 signext 51, i8 signext %50, i8 signext %56)
%58 = tail call i32 @ft_putchar(i8 signext 44)
%59 = tail call i32 @ft_putchar(i8 signext 32)
%60 = add nuw nsw i8 %56, 1
%61 = icmp ult i8 %56, 57
br i1 %61, label %55, label %62
62: ; preds = %55, %49
%63 = add nuw nsw i8 %50, 1
%64 = icmp eq i8 %63, 57
br i1 %64, label %65, label %49
65: ; preds = %62, %78
%66 = phi i8 [ %79, %78 ], [ 53, %62 ]
%67 = phi i8 [ %66, %78 ], [ 52, %62 ]
%68 = icmp ult i8 %67, 56
br i1 %68, label %69, label %78
69: ; preds = %65
%70 = add nuw nsw i8 %67, 2
br label %71
71: ; preds = %71, %69
%72 = phi i8 [ %76, %71 ], [ %70, %69 ]
%73 = tail call i32 @print_num(i8 signext 52, i8 signext %66, i8 signext %72)
%74 = tail call i32 @ft_putchar(i8 signext 44)
%75 = tail call i32 @ft_putchar(i8 signext 32)
%76 = add nuw nsw i8 %72, 1
%77 = icmp ult i8 %72, 57
br i1 %77, label %71, label %78
78: ; preds = %71, %65
%79 = add nuw nsw i8 %66, 1
%80 = icmp eq i8 %79, 57
br i1 %80, label %81, label %65
81: ; preds = %78, %94
%82 = phi i8 [ %95, %94 ], [ 54, %78 ]
%83 = phi i8 [ %82, %94 ], [ 53, %78 ]
%84 = icmp ult i8 %83, 56
br i1 %84, label %85, label %94
85: ; preds = %81
%86 = add nuw nsw i8 %83, 2
br label %87
87: ; preds = %87, %85
%88 = phi i8 [ %92, %87 ], [ %86, %85 ]
%89 = tail call i32 @print_num(i8 signext 53, i8 signext %82, i8 signext %88)
%90 = tail call i32 @ft_putchar(i8 signext 44)
%91 = tail call i32 @ft_putchar(i8 signext 32)
%92 = add nuw nsw i8 %88, 1
%93 = icmp ult i8 %88, 57
br i1 %93, label %87, label %94
94: ; preds = %87, %81
%95 = add nuw nsw i8 %82, 1
%96 = icmp eq i8 %95, 57
br i1 %96, label %97, label %81
97: ; preds = %94, %110
%98 = phi i8 [ %111, %110 ], [ 55, %94 ]
%99 = phi i8 [ %98, %110 ], [ 54, %94 ]
%100 = icmp ult i8 %99, 56
br i1 %100, label %101, label %110
101: ; preds = %97
%102 = add nuw nsw i8 %99, 2
br label %103
103: ; preds = %103, %101
%104 = phi i8 [ %108, %103 ], [ %102, %101 ]
%105 = tail call i32 @print_num(i8 signext 54, i8 signext %98, i8 signext %104)
%106 = tail call i32 @ft_putchar(i8 signext 44)
%107 = tail call i32 @ft_putchar(i8 signext 32)
%108 = add nuw nsw i8 %104, 1
%109 = icmp ult i8 %104, 57
br i1 %109, label %103, label %110
110: ; preds = %103, %97
%111 = add nuw nsw i8 %98, 1
%112 = icmp eq i8 %111, 57
br i1 %112, label %113, label %97
113: ; preds = %110
%114 = tail call i32 @print_num(i8 signext 55, i8 signext 56, i8 signext 57)
%115 = tail call i32 @ft_putchar(i8 signext 10)
ret void
}