// 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() { // a: 4------8 // b: 3-4 auto a = __lamp::lift( 4, 8 ); // a = [ 4, 8 ] auto b = __lamp::lift( 3, 4 ); // b = [ 3, 4 ] auto c = a - b; // c = [ 0, 5 ] if ( c > 1 ) // c = [ 2, 5 ] { assert( a == __lamp::lift( 5, 8 ) ); assert( b == __lamp::lift( 3, 4 ) ); } else // c = [ 0, 1 ] { assert( a == __lamp::lift( 4, 5 ) ); assert( b == __lamp::lift( 3, 4 ) ); } }