diff --git a/src/plugins/e-acsl/tests/arith/functions.c b/src/plugins/e-acsl/tests/arith/functions.c index f4b773c2774fa3bf22e1791a14b4e180223a4148..9c327c0e1b947af332f5725b589bdb1c8b45cfdd 100644 --- a/src/plugins/e-acsl/tests/arith/functions.c +++ b/src/plugins/e-acsl/tests/arith/functions.c @@ -43,6 +43,9 @@ int glob = 5; // Test sums inside functions /*@ logic integer f_sum (integer x) = \sum(1,x,\lambda integer y; 1); */ +// Test functions returning a rational +/*@ logic real over(real a, real b) = a/b; */ + int main(void) { int x = 1, y = 2; /*@ assert p1(x, y); */; @@ -75,7 +78,9 @@ int main(void) { double d = 2.0; /*@ assert f2(d) > 0; */; - /*@ assert f_sum (100) == 100; */ + /*@ assert f_sum (100) == 100; */; + + /*@ assert over(1., 2.) == 1./2.; */; // not yet supported /* /\*@ assert p_notyet(27); *\/ ; */