X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b900e1a43acf792e7eaccff2418919d02382cd3c..1d00044a33c8852a4675b91b8dc6b4ccfec1e8b3:/backtrack.sh diff --git a/backtrack.sh b/backtrack.sh index 20b250f..a67bce4 100755 --- a/backtrack.sh +++ b/backtrack.sh @@ -1,5 +1,9 @@ #!/bin/bash ./apple-make.sh build-osx-i386 -echo "backup $(grep -c '^State ' build.osx-i386/lex.backup)" -echo "states $(grep '^static .* yy_accept\[' build.osx-i386/lex.cy.cpp | sed -e 's/.*\[//;s/].*//') 3528" -echo "jammed $(grep -F 'accepts: ['"$(grep 'jammed' build.osx-i386/lex.cy.cpp -B 3 | head -n 1 | sed -e 's/:$//;s/.* //')"']' build.osx-i386/lex.output | sed -e 's/.* # //;s/ .*//')" +echo +echo "backup" $(grep -c '^State ' build.osx-i386/lex.backup) +echo "states" $(grep '^static .* yy_accept\[' build.osx-i386/Scanner.cpp | sed -e 's/.*\[//;s/].*//') 3680 +echo "jammed" $(grep -F 'accepts: ['"$(grep 'jammed' build.osx-i386/Scanner.cpp -B 3 | head -n 1 | sed -e 's/:$//;s/.* //')"']' build.osx-i386/Scanner.output | sed -e 's/.* # //;s/ .*//') +echo "failed" $(grep "^ jam-transitions: " build.osx-i386/lex.backup | grep -v ': EOF \[\(\]\| \\2\)' | wc -l) +echo +grep '^ jam-transitions: EOF \[ \\2' build.osx-i386/lex.backup -B 2 | grep $'^\t' | sort | uniq -c