// S : tags interval min $TAGS // S : expect --result valid // S : cc -o test.bc $CC_OPT $file // S : verify --lamp interval -o nofail:malloc $V_OPT test.bc #include #include #include int main() { auto a = __lamp::lift( 4, 8 ); // a = [ 4, 8 ] auto b = __lamp::lift( 1, 2 ); // b = [ 1, 2 ] auto c = a / b; // c = [ 2, 8 ] if ( c > 2 ) // c = [ 3, 8 ] { assert( a == __lamp::lift( 4, 8 ) ); assert( b == __lamp::lift( 1, 2 ) ); } else // c = [ 2, 2 ] { assert( a == __lamp::lift( 4, 4 ) ); assert( b == __lamp::lift( 2, 2 ) ); } }