// filename:c2011-F-9-3-ex.c
// original examples and/or notes:
// 		(c) ISO/IEC JTC1 SC22 WG14 N1570, April 12, 2011
// 			C2011 F.9.3 Relational operators
// compile and output mechanism:
// 		(c) Ogawa Kiyoshi, kaizen@gifu-u.ac.jp, December.29, 2013
// compile errors and/or wornings:
// 		(c) Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
// 			Target: x86_64-apple-darwin11.4.2 //Thread model: posix
// 		(c) LLVM 2003-2009 University of Illinois at Urbana-Champaign.
#include <stdio.h>
#include <math.h>
#include <fenv.h>
#include <stdarg.h>

// Example
void f(void){printf("f\n");}
void g(void){printf("g\n");}
int main(void)
{
	float a,b;
// calls g and raises ‘‘invalid’’ if a and b are unordered
if (a < b)
f();
else
g();
	
// calls f and raises ‘‘invalid’’ if a and b are unordered
if (a >= b)
g();
else
f();

// calls f without raising ‘‘invalid’’ if a and b are unordered
if (isgreaterequal(a,b))
g();
else
f();
	
// calls g without raising ‘‘invalid’’ if a and b are unordered
if (isless(a,b))
f();
else
g();	
	
if (!(a < b))
g();
else
f();	
	

return printf("F.9.3 Relational operators\n");
}
// output may be 
// g
// g
// g
// g
// g
// F.9.3 Relational operators