#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*/ calculate_normal(float, float, float, float, float, float,
                                    float, float, float, float *, float *,
                                    float *);
int /*<<< orphan*/ printf(char *, float, float, float);
int /*<<< orphan*/ scanf(char *, float *, float *, float *, float *, float *,
                         float *, float *, float *, float *);
int main(int argc, char **argv) {
  float x1, y1, z1, x2, y2, z2, x3, y3, z3;
  float xresult, yresult, zresult;
  scanf("%f %f %f %f %f %f %f %f %f", &x1, &y1, &z1, &x2, &y2, &z2, &x3, &y3,
        &z3);
  calculate_normal(x1, y1, z1, x2, y2, z2, x3, y3, z3, &xresult, &yresult,
                   &zresult);
  printf("%f %f %f\n", xresult, yresult, zresult);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x68,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    0xeb2(%rip),%rdi
lea    -0x1c(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x24(%rbp),%rcx
lea    -0x28(%rbp),%r8
lea    -0x2c(%rbp),%r9
lea    -0x30(%rbp),%rbx
lea    -0x34(%rbp),%r11
lea    -0x38(%rbp),%r10
lea    -0x3c(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1050 <scanf@plt>
movss  -0x1c(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
movss  -0x24(%rbp),%xmm2
movss  -0x28(%rbp),%xmm3
movss  -0x2c(%rbp),%xmm4
movss  -0x30(%rbp),%xmm5
movss  -0x34(%rbp),%xmm6
movss  -0x38(%rbp),%xmm7
movss  -0x3c(%rbp),%xmm8
lea    -0x40(%rbp),%rdi
lea    -0x44(%rbp),%rsi
lea    -0x48(%rbp),%rdx
movss  %xmm8,(%rsp)
call   1040 <calculate_normal@plt>
movss  -0x40(%rbp),%xmm0
movss  -0x44(%rbp),%xmm1
movss  -0x48(%rbp),%xmm2
lea    0xe36(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0xc(%rsp),%rax
lea    0x10(%rsp),%r10
lea    0x14(%rsp),%r11
lea    0x18(%rsp),%rbx
lea    0xeb0(%rip),%rdi
lea    0x2c(%rsp),%rsi
lea    0x28(%rsp),%rdx
lea    0x24(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x1c(%rsp),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
call   1050 <scanf@plt>
add    $0x20,%rsp
movss  0x2c(%rsp),%xmm0
movss  0x28(%rsp),%xmm1
movss  0x24(%rsp),%xmm2
movss  0x20(%rsp),%xmm3
movss  0x1c(%rsp),%xmm4
movss  0x18(%rsp),%xmm5
movss  0x14(%rsp),%xmm6
movss  0x10(%rsp),%xmm7
movss  0xc(%rsp),%xmm8
sub    $0x10,%rsp
movss  %xmm8,(%rsp)
lea    0x18(%rsp),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1040 <calculate_normal@plt>
add    $0x10,%rsp
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movss  (%rsp),%xmm2
lea    0xe32(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"%f %f %f %f %f %f %f %f %f\00"
@.str.1 = [10 x i8] c"%f %f %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = call i32 @scanf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), float* %6, float* %7, float* %8, float* %9, float* %10, float* %11, float* %12, float* %13, float* %14)
%19 = load float, float* %6
%20 = load float, float* %7
%21 = load float, float* %8
%22 = load float, float* %9
%23 = load float, float* %10
%24 = load float, float* %11
%25 = load float, float* %12
%26 = load float, float* %13
%27 = load float, float* %14
%28 = call i32 @calculate_normal(float %19, float %20, float %21, float %22, float %23, float %24, float %25, float %26, float %27, float* %15, float* %16, float* %17)
%29 = load float, float* %15
%30 = load float, float* %16
%31 = load float, float* %17
%32 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), float %29, float %30, float %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"%f %f %f %f %f %f %f %f %f\00"
@.str.1 = [10 x i8] c"%f %f %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = bitcast float* %3 to i8*
%16 = bitcast float* %4 to i8*
%17 = bitcast float* %5 to i8*
%18 = bitcast float* %6 to i8*
%19 = bitcast float* %7 to i8*
%20 = bitcast float* %8 to i8*
%21 = bitcast float* %9 to i8*
%22 = bitcast float* %10 to i8*
%23 = bitcast float* %11 to i8*
%24 = bitcast float* %12 to i8*
%25 = bitcast float* %13 to i8*
%26 = bitcast float* %14 to i8*
%27 = call i32 @scanf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, float* %9, float* %10, float* %11)
%28 = load float, float* %3
%29 = load float, float* %4
%30 = load float, float* %5
%31 = load float, float* %6
%32 = load float, float* %7
%33 = load float, float* %8
%34 = load float, float* %9
%35 = load float, float* %10
%36 = load float, float* %11
%37 = call i32 @calculate_normal(float %28, float %29, float %30, float %31, float %32, float %33, float %34, float %35, float %36, float* %12, float* %13, float* %14)
%38 = load float, float* %12
%39 = load float, float* %13
%40 = load float, float* %14
%41 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), float %38, float %39, float %40)
ret i32 0
}