Skip to content

Commit

Permalink
Ignore combs with empty trees in the hierarchy
Browse files Browse the repository at this point in the history
The way conversion.sh is set up right now, if we don't get a .bot object
out it's a FAIL.  However, for empty regions, that's actually the
expected outcome.  Can't just check for that though - there can be cases
like truck.g's g1 comb that have a tree full of regions with empty
trees.

Kinda wondering if the thing to do here is create an empty BoT as the
output for these cases, to distinguish between failure and "successfully
empty"...
  • Loading branch information
starseeker committed Dec 19, 2023
1 parent 5835996 commit 4f03d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh/conversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ while test $# -gt 0 ; do

# execute in a coprocess
if test "x$OBJECTS" = "x" ; then OBJECTS='-print' ; fi
cmd="$SGED -c \"$work\" search $OPATH $OBJECTS"
cmd="$SGED -c \"$work\" search ! \( -type comb -and \( -nnodes 0 -or -above \( -type comb -and -nnodes 0 \) \) \) $OPATH $OBJECTS"
objects=`eval "$cmd" 2>&1 | grep -v Using`
$VERBOSE_ECHO "\$ $cmd"
$VERBOSE_ECHO "$objects"
Expand Down

0 comments on commit 4f03d0a

Please sign in to comment.