<commit_before>#!/bin/bash

set -ex

. ../../utils/genheader.sh

#echo '`define SEED 32'"'h$(echo $1 | md5sum | cut -c1-8)" > setseed.vh

python3 ../top.py >top.v
vivado -mode batch -source ../generate.tcl
test -z "$(fgrep CRITICAL vivado.log)"

for x in design*.bit; do
	../../../build/tools/bitread -F $XRAY_ROI_FRAMES -o ${x}s -z -y $x
done
<commit_msg>fuzzers: use env vars to refer to tools (continued)<commit_after>#!/bin/bash

set -ex

source ${XRAY_GENHEADER}

#echo '`define SEED 32'"'h$(echo $1 | md5sum | cut -c1-8)" > setseed.vh

python3 ../top.py >top.v
vivado -mode batch -source ../generate.tcl
test -z "$(fgrep CRITICAL vivado.log)"

for x in design*.bit; do
	${XRAY_BITREAD} -F $XRAY_ROI_FRAMES -o ${x}s -z -y $x
done

{'fraction_non_alphanumeric': 0.19183673469387755, 'fraction_numerical': 0.01904761904761905, 'mean_word_length': 3.15819209039548, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2621461', 'n_tokens_mistral': 327, 'n_tokens_neox': 307, 'n_words': 89}