#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*/ _expect_approx(double, int /*<<< orphan*/, char *);
int /*<<< orphan*/ az_signmod(double, double, double);
void test_signmod(void) {
  _expect_approx(3.0, az_signmod(10.0, 7.0, 1.0),
                 "3.0"
                 " == "
                 "az_signmod( 10.0, 7.0, 1.0)");
  _expect_approx(-4.0, az_signmod(10.0, 7.0, -1.0),
                 "-4.0"
                 " == "
                 "az_signmod( 10.0, 7.0, -1.0)");
  _expect_approx(4.0, az_signmod(-10.0, 7.0, 1.0),
                 "4.0"
                 " == "
                 "az_signmod(-10.0, 7.0, 1.0)");
  _expect_approx(-3.0, az_signmod(-10.0, 7.0, -1.0),
                 "-3.0"
                 " == "
                 "az_signmod(-10.0, 7.0, -1.0)");
  _expect_approx(3.0, az_signmod(10.0, -7.0, 1.0),
                 "3.0"
                 " == "
                 "az_signmod( 10.0, -7.0, 1.0)");
  _expect_approx(-4.0, az_signmod(10.0, -7.0, -1.0),
                 "-4.0"
                 " == "
                 "az_signmod( 10.0, -7.0, -1.0)");
  _expect_approx(4.0, az_signmod(-10.0, -7.0, 1.0),
                 "4.0"
                 " == "
                 "az_signmod(-10.0, -7.0, 1.0)");
  _expect_approx(-3.0, az_signmod(-10.0, -7.0, -1.0),
                 "-3.0"
                 " == "
                 "az_signmod(-10.0, -7.0, -1.0)");
  _expect_approx(0.0, az_signmod(0.0, 7.0, 1.0),
                 "0.0"
                 " == "
                 "az_signmod( 0.0, 7.0, 1.0)");
  _expect_approx(0.0, az_signmod(0.0, 7.0, -1.0),
                 "0.0"
                 " == "
                 "az_signmod( 0.0, 7.0, -1.0)");
  _expect_approx(0.0, az_signmod(0.0, -7.0, 1.0),
                 "0.0"
                 " == "
                 "az_signmod( 0.0, -7.0, 1.0)");
  _expect_approx(0.0, az_signmod(0.0, -7.0, -1.0),
                 "0.0"
                 " == "
                 "az_signmod( 0.0, -7.0, -1.0)");
  _expect_approx(0.0, az_signmod(14.0, 7.0, 1.0),
                 "0.0"
                 " == "
                 "az_signmod( 14.0, 7.0, 1.0)");
  _expect_approx(0.0, az_signmod(14.0, 7.0, -1.0),
                 "0.0"
                 " == "
                 "az_signmod( 14.0, 7.0, -1.0)");
  _expect_approx(0.0, az_signmod(14.0, -7.0, 1.0),
                 "0.0"
                 " == "
                 "az_signmod( 14.0, -7.0, 1.0)");
  _expect_approx(0.0, az_signmod(14.0, -7.0, -1.0),
                 "0.0"
                 " == "
                 "az_signmod( 14.0, -7.0, -1.0)");
  _expect_approx(0.0, az_signmod(-14.0, 7.0, 1.0),
                 "0.0"
                 " == "
                 "az_signmod(-14.0, 7.0, 1.0)");
  _expect_approx(0.0, az_signmod(-14.0, 7.0, -1.0),
                 "0.0"
                 " == "
                 "az_signmod(-14.0, 7.0, -1.0)");
  _expect_approx(0.0, az_signmod(-14.0, -7.0, 1.0),
                 "0.0"
                 " == "
                 "az_signmod(-14.0, -7.0, 1.0)");
  _expect_approx(0.0, az_signmod(-14.0, -7.0, -1.0),
                 "0.0"
                 " == "
                 "az_signmod(-14.0, -7.0, -1.0)");
}


x86 assembly (clang, -O0):
<test_signmod>:
push   %rbp
mov    %rsp,%rbp
movsd  0xf24(%rip),%xmm0
movsd  0xeec(%rip),%xmm1
movsd  0xedc(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xf0d(%rip),%xmm0
lea    0xf0e(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xef1(%rip),%xmm0
movsd  0xeb9(%rip),%xmm1
movsd  0xea1(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xeca(%rip),%xmm0
lea    0xefe(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xea6(%rip),%xmm0
movsd  0xe86(%rip),%xmm1
movsd  0xe76(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xe8f(%rip),%xmm0
lea    0xef0(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xe73(%rip),%xmm0
movsd  0xe53(%rip),%xmm1
movsd  0xe3b(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xe4c(%rip),%xmm0
lea    0xee0(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xe58(%rip),%xmm0
movsd  0xe08(%rip),%xmm1
movsd  0xe10(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xe41(%rip),%xmm0
lea    0xed2(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xe25(%rip),%xmm0
movsd  0xdd5(%rip),%xmm1
movsd  0xdd5(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xdfe(%rip),%xmm0
lea    0xec3(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xdda(%rip),%xmm0
movsd  0xda2(%rip),%xmm1
movsd  0xdaa(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xdc3(%rip),%xmm0
lea    0xeb6(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xda7(%rip),%xmm0
movsd  0xd6f(%rip),%xmm1
movsd  0xd6f(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
movsd  0xd80(%rip),%xmm0
lea    0xea7(%rip),%rsi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xd59(%rip),%xmm1
movsd  0xd49(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xea4(%rip),%rsi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xd30(%rip),%xmm1
movsd  0xd18(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe9d(%rip),%rsi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xcef(%rip),%xmm1
movsd  0xcf7(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe97(%rip),%rsi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xcc6(%rip),%xmm1
movsd  0xcc6(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe91(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xcc0(%rip),%xmm0
movsd  0xcb0(%rip),%xmm1
movsd  0xca0(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe87(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xc92(%rip),%xmm0
movsd  0xc82(%rip),%xmm1
movsd  0xc6a(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe7c(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xc64(%rip),%xmm0
movsd  0xc3c(%rip),%xmm1
movsd  0xc44(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe72(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xc36(%rip),%xmm0
movsd  0xc0e(%rip),%xmm1
movsd  0xc0e(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe68(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xbe0(%rip),%xmm0
movsd  0xbf8(%rip),%xmm1
movsd  0xbe8(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe5f(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xbb2(%rip),%xmm0
movsd  0xbca(%rip),%xmm1
movsd  0xbb2(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe54(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xb84(%rip),%xmm0
movsd  0xb84(%rip),%xmm1
movsd  0xb8c(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe4a(%rip),%rsi
call   1040 <_expect_approx@plt>
movsd  0xb56(%rip),%xmm0
movsd  0xb56(%rip),%xmm1
movsd  0xb56(%rip),%xmm2
call   1030 <az_signmod@plt>
mov    %eax,%edi
xorps  %xmm0,%xmm0
lea    0xe40(%rip),%rsi
call   1040 <_expect_approx@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_signmod>:
push   %rax
movsd  0xed7(%rip),%xmm0
movsd  0xed7(%rip),%xmm1
movsd  0xed7(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xf1b(%rip),%rsi
movsd  0xecb(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xec4(%rip),%xmm2
movsd  0xe9c(%rip),%xmm0
movsd  0xe9c(%rip),%xmm1
call   1030 <az_signmod@plt>
lea    0xf0b(%rip),%rsi
movsd  0xea8(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xea1(%rip),%xmm0
movsd  0xe71(%rip),%xmm1
movsd  0xe71(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xefd(%rip),%rsi
movsd  0xe85(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xe6e(%rip),%xmm0
movsd  0xe3e(%rip),%xmm1
movsd  0xe4e(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xeed(%rip),%rsi
movsd  0xe5a(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xe53(%rip),%xmm1
movsd  0xe03(%rip),%xmm0
movsd  0xe0b(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xedf(%rip),%rsi
movsd  0xdff(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xdd8(%rip),%xmm0
movsd  0xe18(%rip),%xmm1
movsd  0xde8(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xed0(%rip),%rsi
movsd  0xddc(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xdd5(%rip),%xmm0
movsd  0xde5(%rip),%xmm1
movsd  0xda5(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xec3(%rip),%rsi
movsd  0xdb9(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xda2(%rip),%xmm0
movsd  0xdb2(%rip),%xmm1
movsd  0xd82(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xeb4(%rip),%rsi
movsd  0xd8e(%rip),%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xd44(%rip),%xmm1
movsd  0xd44(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xeac(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xd1b(%rip),%xmm1
movsd  0xd2b(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xea5(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xd32(%rip),%xmm1
movsd  0xcf2(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe9f(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
xorps  %xmm0,%xmm0
movsd  0xd09(%rip),%xmm1
movsd  0xcd9(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe99(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xceb(%rip),%xmm0
movsd  0xc9b(%rip),%xmm1
movsd  0xc9b(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe8f(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xcbd(%rip),%xmm0
movsd  0xc6d(%rip),%xmm1
movsd  0xc7d(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe84(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xc8f(%rip),%xmm0
movsd  0xc7f(%rip),%xmm1
movsd  0xc3f(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe7a(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xc61(%rip),%xmm0
movsd  0xc51(%rip),%xmm1
movsd  0xc21(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe70(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xc3b(%rip),%xmm0
movsd  0xbe3(%rip),%xmm1
movsd  0xbe3(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe67(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xc0d(%rip),%xmm0
movsd  0xbb5(%rip),%xmm1
movsd  0xbc5(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe5c(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xbdf(%rip),%xmm0
movsd  0xbc7(%rip),%xmm1
movsd  0xb87(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe52(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
call   1040 <_expect_approx@plt>
movsd  0xbb1(%rip),%xmm0
movsd  0xb99(%rip),%xmm1
movsd  0xb69(%rip),%xmm2
call   1030 <az_signmod@plt>
lea    0xe48(%rip),%rsi
xorps  %xmm0,%xmm0
mov    %eax,%edi
pop    %rax
jmp    1040 <_expect_approx@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"3.0 == az_signmod( 10.0, 7.0, 1.0)\00"
@.str.1 = [37 x i8] c"-4.0 == az_signmod( 10.0, 7.0, -1.0)\00"
@.str.2 = [35 x i8] c"4.0 == az_signmod(-10.0, 7.0, 1.0)\00"
@.str.3 = [37 x i8] c"-3.0 == az_signmod(-10.0, 7.0, -1.0)\00"
@.str.4 = [36 x i8] c"3.0 == az_signmod( 10.0, -7.0, 1.0)\00"
@.str.5 = [38 x i8] c"-4.0 == az_signmod( 10.0, -7.0, -1.0)\00"
@.str.6 = [36 x i8] c"4.0 == az_signmod(-10.0, -7.0, 1.0)\00"
@.str.7 = [38 x i8] c"-3.0 == az_signmod(-10.0, -7.0, -1.0)\00"
@.str.8 = [34 x i8] c"0.0 == az_signmod( 0.0, 7.0, 1.0)\00"
@.str.9 = [35 x i8] c"0.0 == az_signmod( 0.0, 7.0, -1.0)\00"
@.str.10 = [35 x i8] c"0.0 == az_signmod( 0.0, -7.0, 1.0)\00"
@.str.11 = [36 x i8] c"0.0 == az_signmod( 0.0, -7.0, -1.0)\00"
@.str.12 = [35 x i8] c"0.0 == az_signmod( 14.0, 7.0, 1.0)\00"
@.str.13 = [36 x i8] c"0.0 == az_signmod( 14.0, 7.0, -1.0)\00"
@.str.14 = [36 x i8] c"0.0 == az_signmod( 14.0, -7.0, 1.0)\00"
@.str.15 = [37 x i8] c"0.0 == az_signmod( 14.0, -7.0, -1.0)\00"
@.str.16 = [35 x i8] c"0.0 == az_signmod(-14.0, 7.0, 1.0)\00"
@.str.17 = [36 x i8] c"0.0 == az_signmod(-14.0, 7.0, -1.0)\00"
@.str.18 = [36 x i8] c"0.0 == az_signmod(-14.0, -7.0, 1.0)\00"
@.str.19 = [37 x i8] c"0.0 == az_signmod(-14.0, -7.0, -1.0)\00"
define void @test_signmod() {
%1 = call i32 @az_signmod(double 1.000000e+01, double 7.000000e+00, double 1.000000e+00)
%2 = call i32 @_expect_approx(double 3.000000e+00, i32 %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @az_signmod(double 1.000000e+01, double 7.000000e+00, double -1.000000e+00)
%4 = call i32 @_expect_approx(double -4.000000e+00, i32 %3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @az_signmod(double -1.000000e+01, double 7.000000e+00, double 1.000000e+00)
%6 = call i32 @_expect_approx(double 4.000000e+00, i32 %5, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @az_signmod(double -1.000000e+01, double 7.000000e+00, double -1.000000e+00)
%8 = call i32 @_expect_approx(double -3.000000e+00, i32 %7, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @az_signmod(double 1.000000e+01, double -7.000000e+00, double 1.000000e+00)
%10 = call i32 @_expect_approx(double 3.000000e+00, i32 %9, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @az_signmod(double 1.000000e+01, double -7.000000e+00, double -1.000000e+00)
%12 = call i32 @_expect_approx(double -4.000000e+00, i32 %11, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @az_signmod(double -1.000000e+01, double -7.000000e+00, double 1.000000e+00)
%14 = call i32 @_expect_approx(double 4.000000e+00, i32 %13, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @az_signmod(double -1.000000e+01, double -7.000000e+00, double -1.000000e+00)
%16 = call i32 @_expect_approx(double -3.000000e+00, i32 %15, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @az_signmod(double 0.000000e+00, double 7.000000e+00, double 1.000000e+00)
%18 = call i32 @_expect_approx(double 0.000000e+00, i32 %17, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 @az_signmod(double 0.000000e+00, double 7.000000e+00, double -1.000000e+00)
%20 = call i32 @_expect_approx(double 0.000000e+00, i32 %19, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 @az_signmod(double 0.000000e+00, double -7.000000e+00, double 1.000000e+00)
%22 = call i32 @_expect_approx(double 0.000000e+00, i32 %21, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 @az_signmod(double 0.000000e+00, double -7.000000e+00, double -1.000000e+00)
%24 = call i32 @_expect_approx(double 0.000000e+00, i32 %23, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%25 = call i32 @az_signmod(double 1.400000e+01, double 7.000000e+00, double 1.000000e+00)
%26 = call i32 @_expect_approx(double 0.000000e+00, i32 %25, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 @az_signmod(double 1.400000e+01, double 7.000000e+00, double -1.000000e+00)
%28 = call i32 @_expect_approx(double 0.000000e+00, i32 %27, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%29 = call i32 @az_signmod(double 1.400000e+01, double -7.000000e+00, double 1.000000e+00)
%30 = call i32 @_expect_approx(double 0.000000e+00, i32 %29, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%31 = call i32 @az_signmod(double 1.400000e+01, double -7.000000e+00, double -1.000000e+00)
%32 = call i32 @_expect_approx(double 0.000000e+00, i32 %31, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
%33 = call i32 @az_signmod(double -1.400000e+01, double 7.000000e+00, double 1.000000e+00)
%34 = call i32 @_expect_approx(double 0.000000e+00, i32 %33, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.16, i64 0, i64 0))
%35 = call i32 @az_signmod(double -1.400000e+01, double 7.000000e+00, double -1.000000e+00)
%36 = call i32 @_expect_approx(double 0.000000e+00, i32 %35, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0))
%37 = call i32 @az_signmod(double -1.400000e+01, double -7.000000e+00, double 1.000000e+00)
%38 = call i32 @_expect_approx(double 0.000000e+00, i32 %37, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0))
%39 = call i32 @az_signmod(double -1.400000e+01, double -7.000000e+00, double -1.000000e+00)
%40 = call i32 @_expect_approx(double 0.000000e+00, i32 %39, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"3.0 == az_signmod( 10.0, 7.0, 1.0)\00"
@.str.1 = [37 x i8] c"-4.0 == az_signmod( 10.0, 7.0, -1.0)\00"
@.str.2 = [35 x i8] c"4.0 == az_signmod(-10.0, 7.0, 1.0)\00"
@.str.3 = [37 x i8] c"-3.0 == az_signmod(-10.0, 7.0, -1.0)\00"
@.str.4 = [36 x i8] c"3.0 == az_signmod( 10.0, -7.0, 1.0)\00"
@.str.5 = [38 x i8] c"-4.0 == az_signmod( 10.0, -7.0, -1.0)\00"
@.str.6 = [36 x i8] c"4.0 == az_signmod(-10.0, -7.0, 1.0)\00"
@.str.7 = [38 x i8] c"-3.0 == az_signmod(-10.0, -7.0, -1.0)\00"
@.str.8 = [34 x i8] c"0.0 == az_signmod( 0.0, 7.0, 1.0)\00"
@.str.9 = [35 x i8] c"0.0 == az_signmod( 0.0, 7.0, -1.0)\00"
@.str.10 = [35 x i8] c"0.0 == az_signmod( 0.0, -7.0, 1.0)\00"
@.str.11 = [36 x i8] c"0.0 == az_signmod( 0.0, -7.0, -1.0)\00"
@.str.12 = [35 x i8] c"0.0 == az_signmod( 14.0, 7.0, 1.0)\00"
@.str.13 = [36 x i8] c"0.0 == az_signmod( 14.0, 7.0, -1.0)\00"
@.str.14 = [36 x i8] c"0.0 == az_signmod( 14.0, -7.0, 1.0)\00"
@.str.15 = [37 x i8] c"0.0 == az_signmod( 14.0, -7.0, -1.0)\00"
@.str.16 = [35 x i8] c"0.0 == az_signmod(-14.0, 7.0, 1.0)\00"
@.str.17 = [36 x i8] c"0.0 == az_signmod(-14.0, 7.0, -1.0)\00"
@.str.18 = [36 x i8] c"0.0 == az_signmod(-14.0, -7.0, 1.0)\00"
@.str.19 = [37 x i8] c"0.0 == az_signmod(-14.0, -7.0, -1.0)\00"
define void @test_signmod() {
%1 = tail call i32 @az_signmod(double 1.000000e+01, double 7.000000e+00, double 1.000000e+00)
%2 = tail call i32 @_expect_approx(double 3.000000e+00, i32 %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @az_signmod(double 1.000000e+01, double 7.000000e+00, double -1.000000e+00)
%4 = tail call i32 @_expect_approx(double -4.000000e+00, i32 %3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @az_signmod(double -1.000000e+01, double 7.000000e+00, double 1.000000e+00)
%6 = tail call i32 @_expect_approx(double 4.000000e+00, i32 %5, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @az_signmod(double -1.000000e+01, double 7.000000e+00, double -1.000000e+00)
%8 = tail call i32 @_expect_approx(double -3.000000e+00, i32 %7, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @az_signmod(double 1.000000e+01, double -7.000000e+00, double 1.000000e+00)
%10 = tail call i32 @_expect_approx(double 3.000000e+00, i32 %9, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @az_signmod(double 1.000000e+01, double -7.000000e+00, double -1.000000e+00)
%12 = tail call i32 @_expect_approx(double -4.000000e+00, i32 %11, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @az_signmod(double -1.000000e+01, double -7.000000e+00, double 1.000000e+00)
%14 = tail call i32 @_expect_approx(double 4.000000e+00, i32 %13, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%15 = tail call i32 @az_signmod(double -1.000000e+01, double -7.000000e+00, double -1.000000e+00)
%16 = tail call i32 @_expect_approx(double -3.000000e+00, i32 %15, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%17 = tail call i32 @az_signmod(double 0.000000e+00, double 7.000000e+00, double 1.000000e+00)
%18 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %17, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%19 = tail call i32 @az_signmod(double 0.000000e+00, double 7.000000e+00, double -1.000000e+00)
%20 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %19, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
%21 = tail call i32 @az_signmod(double 0.000000e+00, double -7.000000e+00, double 1.000000e+00)
%22 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %21, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%23 = tail call i32 @az_signmod(double 0.000000e+00, double -7.000000e+00, double -1.000000e+00)
%24 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %23, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%25 = tail call i32 @az_signmod(double 1.400000e+01, double 7.000000e+00, double 1.000000e+00)
%26 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %25, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%27 = tail call i32 @az_signmod(double 1.400000e+01, double 7.000000e+00, double -1.000000e+00)
%28 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %27, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%29 = tail call i32 @az_signmod(double 1.400000e+01, double -7.000000e+00, double 1.000000e+00)
%30 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %29, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%31 = tail call i32 @az_signmod(double 1.400000e+01, double -7.000000e+00, double -1.000000e+00)
%32 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %31, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
%33 = tail call i32 @az_signmod(double -1.400000e+01, double 7.000000e+00, double 1.000000e+00)
%34 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %33, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.16, i64 0, i64 0))
%35 = tail call i32 @az_signmod(double -1.400000e+01, double 7.000000e+00, double -1.000000e+00)
%36 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %35, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0))
%37 = tail call i32 @az_signmod(double -1.400000e+01, double -7.000000e+00, double 1.000000e+00)
%38 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %37, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0))
%39 = tail call i32 @az_signmod(double -1.400000e+01, double -7.000000e+00, double -1.000000e+00)
%40 = tail call i32 @_expect_approx(double 0.000000e+00, i32 %39, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0))
ret void
}