aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2019-05-25 20:00:04 +0100
committerYann Herklotz <git@yannherklotz.com>2019-05-25 20:00:04 +0100
commit03755364ff17e5bd6cf6408d982df748fa13376c (patch)
tree7edbc9c9fea1076123215225d59db140c56ffd8c /scripts
parente323bbeab91f8f6f56b5cec1def1f5e8638736d1 (diff)
downloadverismith-03755364ff17e5bd6cf6408d982df748fa13376c.tar.gz
verismith-03755364ff17e5bd6cf6408d982df748fa13376c.zip
Add scripts to run verifuzz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run15
-rwxr-xr-xscripts/swarm16
2 files changed, 31 insertions, 0 deletions
diff --git a/scripts/run b/scripts/run
new file mode 100755
index 0000000..f6683cb
--- /dev/null
+++ b/scripts/run
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import subprocess
+
+def main():
+ i = 0
+ name = "output_yosys_all"
+ config = "experiments/yosys_all.toml"
+ iterations = 50
+ while True:
+ subprocess.call(["verifuzz", "fuzz", "-o", name + str(i), "-c", config, "-n", str(iterations)])
+ i += 1
+
+if __name__ == '__main__':
+ main()
diff --git a/scripts/swarm b/scripts/swarm
new file mode 100755
index 0000000..526fb30
--- /dev/null
+++ b/scripts/swarm
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+
+import subprocess
+
+def main():
+ i = 0
+ name = "output_large_rand"
+ config = "experiments/config_large.toml"
+ iterations = 20
+ while True:
+ subprocess.call(["verifuzz", "config", "-c", config, "-o", "config_random.toml", "--randomise"])
+ subprocess.call(["verifuzz", "fuzz", "-o", name + str(i), "-c", "config_random.toml", "-n", str(iterations)])
+ i += 1
+
+if __name__ == '__main__':
+ main()