summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-11-25 13:58:31 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-11-25 13:58:31 +0100
commit961597c764419d97c4ac586fa971e3a0d2cffa22 (patch)
treec9472bf864e63c26e9db1d22d19ed7e6f06e86c3 /lib
parent93c7025733b1c7901fa0365e547577d1155c36bd (diff)
codegen/generate-dfa-benchmark: Support measurement of getEnergy call
Diffstat (limited to 'lib')
-rw-r--r--lib/codegen.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/codegen.py b/lib/codegen.py
index 45ae8f7..45a6871 100644
--- a/lib/codegen.py
+++ b/lib/codegen.py
@@ -7,6 +7,8 @@ header_template = """
#ifndef DFATOOL_{name}_H
#define DFATOOL_{name}_H
+#include "stdint.h"
+
{includes}
class {name}
@@ -486,6 +488,9 @@ class MultipassDriver:
for transition in self.pta.get_unique_transitions():
+ if transition.name == 'getEnergy':
+ continue
+
# XXX right now we only verify whether both functions have the
# same number of arguments. This breaks in many overloading cases.
function_info = self.class_info.function[transition.name]