// // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // range_test.cfa -- // // Author : Thierry Delisle // Created On : Thu Dec 02 17:13:24 2021 // Last Modified By : // Last Modified On : // Update Count : // #include #include void print(const char * range){ RangeIter r = { range }; while(moveNext(r)) { sout | r.com | nonl; } sout | nl; } int main() { print("0-6"); print("0"); print("0-6,22-30"); print("0,2,4,6,8,10"); print("0-6,8-14,16,32"); print("0-4,6,8-12,14,16-20"); }