Skip to content

Commit

Permalink
chore: clean up gates reports script (#6896)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Dec 20, 2024
1 parent b23e85b commit 186fbb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_programs/gates_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ for pathname in $test_dirs; do
fi

GATES_INFO=$($BACKEND gates -b "$artifacts_path/$ARTIFACT_NAME/target/program.json")
MAIN_FUNCTION_INFO=$(echo $GATES_INFO | jq -r '.functions[0] | .name = "main"')
echo "{\"package_name\": \"$ARTIFACT_NAME\", \"functions\": [$MAIN_FUNCTION_INFO]" >> gates_report.json
MAIN_FUNCTION_INFO=$(echo $GATES_INFO | jq -r ".functions[0] | {package_name: "\"$ARTIFACT_NAME\"", functions: [{name: \"main\", acir_opcodes, opcodes: .acir_opcodes, circuit_size}]}")
echo -n $MAIN_FUNCTION_INFO >> gates_report.json

if (($ITER == $NUM_ARTIFACTS)); then
echo "}" >> gates_report.json
echo "" >> gates_report.json
else
echo "}, " >> gates_report.json
echo "," >> gates_report.json
fi

ITER=$(( $ITER + 1 ))
Expand Down

0 comments on commit 186fbb7

Please sign in to comment.