summaryrefslogtreecommitdiff
path: root/src/tools/execution-results.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/execution-results.h')
-rw-r--r--src/tools/execution-results.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/tools/execution-results.h b/src/tools/execution-results.h
index 554b4eb6c..2a42b941b 100644
--- a/src/tools/execution-results.h
+++ b/src/tools/execution-results.h
@@ -18,9 +18,9 @@
// Shared execution result checking code
//
-#include "wasm.h"
-#include "shell-interface.h"
#include "ir/import-utils.h"
+#include "shell-interface.h"
+#include "wasm.h"
namespace wasm {
@@ -59,9 +59,11 @@ struct ExecutionResults {
LoggingExternalInterface interface(loggings);
try {
ModuleInstance instance(wasm, &interface);
- // execute all exported methods (that are therefore preserved through opts)
+ // execute all exported methods (that are therefore preserved through
+ // opts)
for (auto& exp : wasm.exports) {
- if (exp->kind != ExternalKind::Function) continue;
+ if (exp->kind != ExternalKind::Function)
+ continue;
std::cout << "[fuzz-exec] calling " << exp->name << "\n";
auto* func = wasm.getFunction(exp->value);
if (func->result != none) {
@@ -69,7 +71,8 @@ struct ExecutionResults {
results[exp->name] = run(func, wasm, instance);
// ignore the result if we hit an unreachable and returned no value
if (isConcreteType(results[exp->name].type)) {
- std::cout << "[fuzz-exec] note result: " << exp->name << " => " << results[exp->name] << '\n';
+ std::cout << "[fuzz-exec] note result: " << exp->name << " => "
+ << results[exp->name] << '\n';
}
} else {
// no result, run it anyhow (it might modify memory etc.)
@@ -111,9 +114,7 @@ struct ExecutionResults {
return true;
}
- bool operator!=(ExecutionResults& other) {
- return !((*this) == other);
- }
+ bool operator!=(ExecutionResults& other) { return !((*this) == other); }
Literal run(Function* func, Module& wasm) {
LoggingExternalInterface interface(loggings);