CAC++ Library

What is CAC++?

The automatic correction of programming assignments facilitates learning and evaluation in subjects where programming skills are taught. Static analysis is a plausible option to this end. This technique analyzes the source code implemented by students to check whether the code satisfies some conditions in each specific assignment.

CAC++ is a library implementing a set of verifications for the static analysis of programming assignments in C++, mainly related to the object-oriented paradigm. By using this library, the teacher can use the verifications included in it in a simple way, since the library abstracts away the implementation details of these verifications.

The library has been developed with the aim of offering an intuitive but flexible method for its practical use. The teacher can use this library to generate a static analysis program tailored to each assignment. Instead of executing all the verifications in each assignment, the teacher can customize in which cases each verification is applied.

Any teacher can also add new verifications to the library!

Why should you use CAC++?

Sometimes, checking that students comply with the conditions established in the assignment is not possible by simply running a set of test cases. Without the aid of technology, the teacher has to manually review the code of all the students to check that their solutions meet those conditions.

Implementing static analysis programs for the assignments can help detect when a student is using (or not using) a particular feature of the language. Therefore, CAC++ can save the teacher time and effort. Likewise, CAC++ can provide useful feedback to the student.

Whether it is convenient to provide the programs to the students to help them complete the assignment or to use these programs for evaluation purposes, we leave it to the teacher to decide!