#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*/ equilatero(int, int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int X = 0, Y = 0, Z = 0, A = 0;
  do {
    printf("digite 3 numeros maiores que 0\n");
    scanf("%d %d %d", &X, &Y, &Z);
    if (X < 1 || Z < 1 || Y < 1) {
      A = 1;
    }
  } while (A == 1);
  equilatero(X, Y, Z);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xe9e(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1050 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
jl     119d <main+0x6d>
cmpl   $0x1,-0x10(%rbp)
jl     119d <main+0x6d>
cmpl   $0x1,-0xc(%rbp)
jge    11a4 <main+0x74>
movl   $0x1,-0x14(%rbp)
jmp    11a9 <main+0x79>
cmpl   $0x1,-0x14(%rbp)
je     115b <main+0x2b>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1030 <equilatero@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
call   1050 <scanf@plt>
mov    0xc(%rsp),%edi
test   %edi,%edi
jle    11a9 <main+0x79>
mov    0x4(%rsp),%edx
test   %edx,%edx
jle    11a9 <main+0x79>
mov    0x8(%rsp),%esi
test   %esi,%esi
jle    11a9 <main+0x79>
call   1040 <equilatero@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xe59(%rip),%r14
lea    0xe49(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%r13
lea    0x4(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1050 <scanf@plt>
jmp    11d0 <main+0xa0>

LLVM IR (-O0):
@.str = [32 x i8] c"digite 3 numeros maiores que 0\0A\00"
@.str.1 = [9 x i8] c"%d %d %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %19, %0
%7 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 1
br i1 %10, label %17, label %11
11: ; preds = %6
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 1
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, i32* %3
%16 = icmp slt i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %14, %11, %6
store i32 1, i32* %5
br label %18
18: ; preds = %17, %14
br label %19
19: ; preds = %18
%20 = load i32, i32* %5
%21 = icmp eq i32 %20, 1
br i1 %21, label %6, label %22
22: ; preds = %19
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = load i32, i32* %4
%26 = call i32 @equilatero(i32 %23, i32 %24, i32 %25)
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@.str.1 = [9 x i8] c"%d %d %d\00"
@str = [31 x i8] c"digite 3 numeros maiores que 0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%5 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%6 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%9 = load i32, i32* %1
%10 = icmp slt i32 %9, 1
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 1
%13 = select i1 %10, i1 true, i1 %12
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 1
%16 = select i1 %13, i1 true, i1 %15
br i1 %16, label %17, label %20
17: ; preds = %0, %17
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
br label %17
20: ; preds = %0
%21 = call i32 @equilatero(i32 %9, i32 %14, i32 %11)
ret i32 0
}