decrease loop iterations in sum sample

This commit is contained in:
2026-04-21 22:35:17 +02:00
parent aec774c633
commit 42817bab52
7 changed files with 16 additions and 10 deletions

View File

@ -8,7 +8,7 @@ static plain_t sum_out[REPLICA_COUNT];
template <const unsigned int N> static INLINE void sum(void) {
int sum = 0;
for (int i = 0; i < 100; ++i) {
for (int i = 0; i < 5; ++i) {
sum += 1;
}
@ -24,7 +24,7 @@ extern "C" EXPORT("wasm_module") int wasm_module(void) {
fail_stop_trace();
if (X == 100) {
if (X == 5) {
HOST_PRINT("result correct.\n");
fail_marker_positive();
return 0;