Last active
August 29, 2015 14:07
-
-
Save dobrokot/47f4bd6e1ecb4a9157eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir src_dir | |
| mkdir exec_dir | |
| python generate_variants.py | |
| ls src_dir | xargs -P 100 -IF gcc src_dir/F -o exec_dir/F.x 2>/dev/null | |
| find exec_dir/ | xargs -n 1 -P 1000 ./check_prog.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PROG="$1" | |
| OUT=$( "$PROG" | head -c 21 ) | |
| if [ "$OUT" == "--------------------" ] ; then | |
| echo $PROG | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(): | |
| chars = map(chr, xrange(32, 128)) | |
| code = open('input.c').read() | |
| id = [0] | |
| def add(txt): | |
| with open('src_dir/' + str(id[0]) + '.c', 'wb') as out: | |
| out.write(txt) | |
| id[0] += 1 | |
| for c in chars: | |
| for i in xrange(len(code)): | |
| add(code[:i] + c + code[i+1:]) #replace [i] char | |
| for i in xrange(len(code) + 1): | |
| add(code[:i] + c + code[i:]) #insert after [i] char | |
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() { | |
| int i; | |
| int n = 20; | |
| for(i=0;i<n;i--) | |
| printf("-"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment