Skip to content

Commit

Permalink
csexec-cbmc: do the output coversion immediately (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihalko authored Feb 9, 2022
1 parent 3b302a0 commit 771a9c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cbmc_utils/csexec-cbmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ then
/usr/bin/timeout --signal=KILL $TIMEOUT \
/usr/bin/cbmc --unwind 1 --verbosity 4 --json-ui \
"${CBMC_ARGS[@]}" "${ARGV[0]}" \
2> "$LOGDIR/pid-$$.err" > "$LOGDIR/pid-$$.out"
2> "$LOGDIR/pid-$$.err" | /usr/bin/tee "$LOGDIR/pid-$$.out" | \
cbmc-convert-output > "$LOGDIR/pid-$$.out.conv"
else
/usr/bin/goto-instrument "${GOTO_INSTRUMENT_ARGS[@]}" \
"${ARGV[0]}" "${ARGV[0]}.instrumented.$$" \
Expand All @@ -68,7 +69,8 @@ else
/usr/bin/timeout --signal=KILL $TIMEOUT \
/usr/bin/cbmc --unwind 1 --verbosity 4 --json-ui \
"${CBMC_ARGS[@]}" "${ARGV[0]}.instrumented.$$" \
2> "$LOGDIR/pid-$$.err" > "$LOGDIR/pid-$$.out"
2> "$LOGDIR/pid-$$.err" | /usr/bin/tee "$LOGDIR/pid-$$.out" | \
cbmc-convert-output > "$LOGDIR/pid-$$.out.conv"
fi

exec $(/usr/bin/csexec --print-ld-exec-cmd ${CSEXEC_ARGV0}) "${ARGV[@]}"

0 comments on commit 771a9c1

Please sign in to comment.