| 31 | init_jvm(&vm, &env); |
| 32 | } |
| 33 | void startFuzzing() { |
| 34 | FUZZER_LOGI("Start fuzzing..."); |
| 35 | Generator gen; |
| 36 | Executor executor; |
| 37 | status_t ret; |
| 38 | unsigned long iteration = 0; |
| 39 | // string stop = "Y"; |
| 40 | while (true) { |
| 41 | FUZZER_LOGI( |
| 42 | "-------------------------------------------------------------------"); |
| 43 | printf("Fuzzer iteration %ld\n", iteration); |
| 44 | Transaction tx = gen.generateTx(); |
| 45 | tx.dumpsha1(iteration); |
| 46 | printf("executing transaction\n "); |
| 47 | ret = executor.run(tx); |
| 48 | printf("done sending request\n"); |
| 49 | // sleep(1); |
| 50 | // if (stop == "Y") { |
| 51 | // cin >> stop; |
| 52 | // } |
| 53 | iteration++; |
| 54 | FUZZER_LOGI( |
| 55 | "-------------------------------------------------------------------"); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | int main(int argc, char *argv[]) { |
| 60 |
no test coverage detected