// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // forctrl.c -- // // Author : Peter A. Buhr // Created On : Wed Aug 8 18:32:59 2018 // Last Modified By : Peter A. Buhr // Last Modified On : Thu Aug 30 17:12:12 2018 // Update Count : 43 // #include struct S { int i, j; }; void ?{}( S & s ) { s.[i, j] = 0; } void ?{}( S & s, int i ) { s.[i, j] = [i, 0]; } void ?{}( S & s, int i, int j ) { s.[i, j] = [i, j]; } void ?{}( S & s, zero_t ) { s.[i, j] = 0; } void ?{}( S & s, one_t ) { s.[i, j] = 1; } S ?+?( S t1, S t2 ) { return (S){ t1.i + t2.i, t1.j + t2.j }; } int ?