#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double const,
                           double const, double const, char *, char *);
int /*<<< orphan*/ memcpy(char **, double const *, int);
void sig1_print2(FILE *stream, double const *cycle) {
  char *from, *to;
  memcpy(&from, cycle + 3, sizeof(char *));
  memcpy(&to, cycle + 4, sizeof(char *));
  fprintf(stream, "%.5G;%.5G;%.5G;%s;%s\n", cycle[0], cycle[1], cycle[2] / 2.0,
          from, to);
}


x86 assembly (clang, -O0):
<sig1_print2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
add    $0x18,%rsi
lea    -0x18(%rbp),%rdi
mov    $0x8,%edx
call   1040 <memcpy@plt>
mov    -0x10(%rbp),%rsi
add    $0x20,%rsi
lea    -0x20(%rbp),%rdi
mov    $0x8,%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
movsd  0xe7e(%rip),%xmm3
divsd  %xmm3,%xmm2
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xe73(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig1_print2>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
add    $0x18,%rsi
lea    0x10(%rsp),%rdi
mov    $0x8,%edx
call   1040 <memcpy@plt>
lea    0x20(%rbx),%rsi
lea    0x8(%rsp),%rdi
mov    $0x8,%edx
call   1040 <memcpy@plt>
movsd  (%rbx),%xmm0
movsd  0x8(%rbx),%xmm1
movsd  0x10(%rbx),%xmm2
mulsd  0xe97(%rip),%xmm2
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
lea    0xe8e(%rip),%rsi
mov    %r14,%rdi
call   1030 <fprintf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"%.5G;%.5G;%.5G;%s;%s\0A\00"
define void @sig1_print2(i32* %0, double* %1) {
%3 = alloca i32*
%4 = alloca double*
%5 = alloca i8*
%6 = alloca i8*
store i32* %0, i32** %3
store double* %1, double** %4
%7 = load double*, double** %4
%8 = getelementptr inbounds double, double* %7, i64 3
%9 = call i32 @memcpy(i8** %5, double* %8, i32 8)
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 4
%12 = call i32 @memcpy(i8** %6, double* %11, i32 8)
%13 = load i32*, i32** %3
%14 = load double*, double** %4
%15 = getelementptr inbounds double, double* %14, i64 0
%16 = load double, double* %15
%17 = load double*, double** %4
%18 = getelementptr inbounds double, double* %17, i64 1
%19 = load double, double* %18
%20 = load double*, double** %4
%21 = getelementptr inbounds double, double* %20, i64 2
%22 = load double, double* %21
%23 = fdiv double %22, 2.000000e+00
%24 = load i8*, i8** %5
%25 = load i8*, i8** %6
%26 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), double %16, double %19, double %23, i8* %24, i8* %25)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"%.5G;%.5G;%.5G;%s;%s\0A\00"
define void @sig1_print2(i32* nocapture %0, double* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = bitcast i8** %3 to i8*
%6 = bitcast i8** %4 to i8*
%7 = getelementptr inbounds double, double* %1, i64 3
%8 = call i32 @memcpy(i8** %3, double* %7, i32 8)
%9 = getelementptr inbounds double, double* %1, i64 4
%10 = call i32 @memcpy(i8** %4, double* %9, i32 8)
%11 = load double, double* %1
%12 = getelementptr inbounds double, double* %1, i64 1
%13 = load double, double* %12
%14 = getelementptr inbounds double, double* %1, i64 2
%15 = load double, double* %14
%16 = fmul double %15, 5.000000e-01
%17 = load i8*, i8** %3
%18 = load i8*, i8** %4
%19 = call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), double %11, double %13, double %16, i8* %17, i8* %18)
ret void
}