You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example, neither loop can be perforated, despite the annotations. Is this expected?
On a related note, it would be very helpful if accept told you where the loop exit was, the same way it tells you what line an assignment to a precise value or an impure function call is.
#include<assert.h>#include<enerc.h>intmain() {
APPROXintx_approx=0;
for (inti=0; i<1000; ++i) {
assert(x_approx <= 2000); // ACCEPT_PERMITx_approx+=1;
}
for (inti=0; i<1000; ++i) {
if (i>557) // ACCEPT_PERMITbreak; // ACCEPT_PERMITx_approx+=1;
}
returnENDORSE(x_approx);
}
The text was updated successfully, but these errors were encountered:
In the example, neither loop can be perforated, despite the annotations. Is this expected?
On a related note, it would be very helpful if accept told you where the loop exit was, the same way it tells you what line an assignment to a precise value or an impure function call is.
The text was updated successfully, but these errors were encountered: