Closed xhliu closed 2 years ago
// this must be manually configured at compile time
static const int N0 = __$$__;
loop (N0) {
}
log level: FATAL?
How to report error location, in sCrypt, not in Solidity?
// (1)
for (init; predicate; update) {
body;
}
//==>
init;
loop (N) {
if (predicate) {
body;
}
update;
}
//(2)
while (predicate) {
body;
}
//==>
loop (N) {
if (predicate) {
body;
}
}
//(3)
do {
body;
} while (predicate);
//==>
body;
loop (N) { // N: # of actual loop - 1
if (predicate) {
body;
}
}
*/
while/for