This repository is related to a mandatory project for the degree "Computer science and engineering" at Politecnico di Milano.
Course: Algoritmi e principi dell'informatica - API
AY: 2021-2022
Project title: Word checker
Due to quota limitations set by GitHub, it's possibile that large files stored on LFS will become unavailable. I've uploaded the whole repo on OneDrive, students from polimi can access the .zip file using their Microsoft account.
This repo contains input files generated using the input_gen.py script provided by the professor and, for each input file, the corresponding output returned by my script. I hope these files help the students who need to troubleshoot their solution.
gcc -Werror -Wall -Wmaybe-uninitialized -Wuninitialized -pedantic
gcc -Werror -Wall -Wmaybe-uninitialized -Wuninitialized -pedantic -g3 file.c
valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all ./a.out < /path/to/input/file > output.txt
gcc -Werror -Wall -Wmaybe-uninitialized -Wuninitialized -pedantic -g3 file.c
valgrind --tool=callgrind ./a.out < /path/to/input/file > output.txt
kcachegrind callgrind.out.XXXXX
gcc -Werror -Wall -Wmaybe-uninitialized -Wuninitialized -pedantic -g3 -fsanitize=address -lasan file.c
./a.out < /path/to/input/file > output.txt
Although my solution successfully passed each test available in the valutation software, I cannot gurantee that the code is bug-free.
In order to avoid copyright issues, the script input_gen.py is not uploaded here; students with their credentials can download the file through the website of the valutation software.