#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 ft_print(int a, int b, int c) {
  if (a == 55 && b == 56 && c == 57) {
    my_putchar(a);
    my_putchar(b);
    my_putchar(c);
    return (0);
  }
  my_putchar(a);
  my_putchar(b);
  my_putchar(c);
  my_putchar(',');
  my_putchar(' ');
  return (0);
}


x86 assembly (clang, -O0):
<ft_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x37,-0x8(%rbp)
jne    116c <ft_print+0x5c>
cmpl   $0x38,-0xc(%rbp)
jne    116c <ft_print+0x5c>
cmpl   $0x39,-0x10(%rbp)
jne    116c <ft_print+0x5c>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0x10(%rbp),%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
movl   $0x0,-0x4(%rbp)
jmp    11a8 <ft_print+0x98>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    -0x10(%rbp),%eax
movsbl %al,%edi
call   1030 <my_putchar@plt>
mov    $0x2c,%edi
call   1030 <my_putchar@plt>
mov    $0x20,%edi
call   1030 <my_putchar@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_print>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %esi,%ebp
cmp    $0x37,%edi
jne    1131 <ft_print+0x21>
cmp    $0x38,%ebp
jne    1131 <ft_print+0x21>
cmp    $0x39,%ebx
jne    1131 <ft_print+0x21>
mov    $0x39,%bpl
mov    $0x38,%r14b
mov    $0x37,%bl
jmp    1149 <ft_print+0x39>
movsbl %dil,%edi
call   1030 <my_putchar@plt>
movsbl %bpl,%edi
call   1030 <my_putchar@plt>
mov    $0x20,%bpl
mov    $0x2c,%r14b
movsbl %bl,%edi
call   1030 <my_putchar@plt>
movzbl %r14b,%edi
call   1030 <my_putchar@plt>
movzbl %bpl,%edi
call   1030 <my_putchar@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @ft_print(i32 %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %0, 55
%5 = icmp eq i32 %1, 56
%6 = and i1 %4, %5
%7 = icmp eq i32 %2, 57
%8 = and i1 %6, %7
br i1 %8, label %15, label %9
9: ; preds = %3
%10 = trunc i32 %0 to i8
%11 = tail call i32 @my_putchar(i8 signext %10)
%12 = trunc i32 %1 to i8
%13 = tail call i32 @my_putchar(i8 signext %12)
%14 = trunc i32 %2 to i8
br label %15
15: ; preds = %3, %9
%16 = phi i8 [ %14, %9 ], [ 55, %3 ]
%17 = phi i8 [ 44, %9 ], [ 56, %3 ]
%18 = phi i8 [ 32, %9 ], [ 57, %3 ]
%19 = tail call i32 @my_putchar(i8 signext %16)
%20 = tail call i32 @my_putchar(i8 signext %17)
%21 = tail call i32 @my_putchar(i8 signext %18)
ret i32 0
}