10 . /cs/www/classes/cs352/fall15/a10/tests /cs/www/classes/cs352/fall15/a10/master ####### warmup ####### problem warmup warmup.c build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -c warmup.c test warmup build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o warmup1 a10/warmup1.c warmup.o case ulimit -t 2; ./warmup1 ####### getnth ####### problem getnth getnth.c build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -c getnth.c test getnth1 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o getnth1 a10/getnth1.c getnth.o case ulimit -t 2; ./getnth1 case ulimit -t 2; valgrind --leak-check=full -q ./getnth1 test getnth3 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o getnth3 a10/getnth3.c getnth.o case ulimit -t 2; ./getnth3 < a10/getnth3.1 case ulimit -t 2; valgrind --leak-check=full -q ./getnth3 < a10/getnth3.1 test getnth4 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o getnth4 a10/getnth4.c getnth.o case ulimit -t 4; ./getnth4 < a10/getnth4.1 case ulimit -t 8; valgrind --leak-check=full -q ./getnth4 < a10/getnth4.1 ####### split ####### problem split split.c build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -c split.c test split1 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o split1 a10/split1.c a10/getnth.o split.o case ulimit -t 2; ./split1 case ulimit -t 2; valgrind --leak-check=full -q ./split1 test split2 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o split2 a10/split2.c a10/getnth.o split.o case ulimit -t 2; echo | ./split2 case ulimit -t 2; echo '0.' | ./split2 case ulimit -t 2; echo '1.x' | ./split2 case ulimit -t 2; echo 9.12345678910.abcdefghij11.xxxxxxxxxxx | ./split2 case ulimit -t 2; echo 9.12345678910.abcdefghij11.xxxxxxxxxxx | valgrind --leak-check=full -q ./split2 case ulimit -t 2; ./split2 < a10/split2.1 case ulimit -t 2; valgrind --leak-check=full -q ./split2 < a10/split2.1 case ulimit -t 2; ./split2 < a10/split2.2 case ulimit -t 2; valgrind --leak-check=full -q ./split2 < a10/split2.2 ####### build ######## problem build build.c build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -c build.c test build1 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o build1 a10/build1.c build.o case ulimit -t 2; ./build1 case ulimit -t 2; valgrind --leak-check=full -q ./build1 test build2 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o build2 a10/build2.c build.o case ulimit -t 2; ./build2 < /dev/null case ulimit -t 2; echo | ./build2 case ulimit -t 2; echo oneline | ./build2 case ulimit -t 2; echo oneline | valgrind --leak-check=full -q ./build2 case ulimit -t 2; ./build2 < a10/build2.1 case ulimit -t 2; valgrind --leak-check=full -q ./build2 < a10/build2.1 case ulimit -t 2; ./build2 < a10/build2.2 case ulimit -t 2; valgrind --leak-check=full -q ./build2 < a10/build2.2 case ulimit -t 7; seq 10000 | valgrind --leak-check=full -q ./build2 ############ picklines ############# problem picklines picklines.c build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o picklines picklines.c test picklines case ulimit -t 1; ./picklines < a10/picklines.1 1 5 case ulimit -t 1; ./picklines < a10/picklines.1 5:1 1 case ulimit -t 1; ./picklines < a10/picklines.1 -1:-5 case ulimit -t 1; valgrind --leak-check=full -q ./picklines 3 1 -1 < a10/picklines.1 case ulimit -t 1; valgrind --leak-check=full -q ./picklines 2:4 6:1 < a10/picklines.1 case ulimit -t 1; valgrind --leak-check=full -q ./picklines -1:1 < a10/picklines.1 case ulimit -t 1; valgrind --leak-check=full -q ./picklines -3:-2 < a10/picklines.1 case ulimit -t 1; valgrind --leak-check=full -q ./picklines 0 7 -7 1:10 -7:1 3 < a10/picklines.1 case ulimit -t 2; seq 1000 | a10/../a9/ilv "Line " - | valgrind --leak-check=full -q ./picklines $(seq 0 100 1000) case ulimit -t 2; seq 1000 | a10/ilv "Line " - | valgrind --leak-check=full -q ./picklines $(seq 0 100 1000 | a10/ilv -- -) case ulimit -t 2; seq 7 1000 | grep -v 8 | a10/ilv ... - | valgrind --leak-check=full -q ./picklines $(cat a10/picklines.2) # valgrind --leak-check=full -q ####### alloc ######## problem alloc alloc.c build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -c alloc.c test alloc1 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o alloc1 a10/alloc1.c alloc.o case ulimit -t 2; ./alloc1 | a10/addrmap test alloc2 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o alloc2 a10/alloc2.c alloc.o case ulimit -t 2; ./alloc2 | a10/addrmap test alloc3 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o alloc3 a10/alloc3.c alloc.o case ulimit -t 2; ./alloc3 | a10/addrmap test alloc4 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o alloc4 a10/alloc4.c alloc.o case ulimit -t 2; ./alloc4 | a10/addrmap test alloc5 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o alloc5 a10/alloc5.c alloc.o case ulimit -t 2; ./alloc5 | a10/addrmap test alloc6 build gcc -Werror -g -std=c1x -I/cs/www/classes/cs352/fall15/h -o alloc6 a10/alloc6.c alloc.o case ulimit -t 2; ./alloc6 | a10/addrmap