Our website uses cookies to enhance your browsing experience.
Accept
to the top

Free PVS-Studio for Students and Teachers

At PVS-Studio, we develop a static code analyzer for C, C++, C#, and Java code. We are confident that the groundwork for writing clean and secure code should be established early in the learning process.

For educational and research purposes, we offer a free temporary student license to students and teachers in IT majors.

How to get a license

If you are a student or teacher, select Student License when filling out the Request a Trial Key form.

Please note: when ordering a license, use your educational institution email address (university domain). This is the only way to obtain a Student License.

Using the Compiler Explorer website

You may find it convenient to complete lab assignments that consist of a single file using the Compiler Explorer (godbolt.org) website. website. This is an online tool that allows you to write, compile, and run programs in Ada, C, C++, D, Fortran, Go, Pascal, Rust, and other programming languages. You can generate a link to your code in Compiler Explorer and submit it to your teacher for assessment, which makes it especially convenient to use.

If your code is written in C or C++, you can also check your program with PVS-Studio directly in Compiler Explorer and gain hands-on experience with how the analyzer works.

Suppose you have a lab task on loops in C++, and you need to write an array-sorting program. Let's introduce a mistake and see how the Compiler Explorer + PVS-Studio combination works:

This is our lab assignment with a mistake in it:

  • Editor window;
  • Resulting assembly code, which we aren't interested in right now;
  • Program's seemingly correct output;
  • Warnings by PVS-Studio.

The array appears to be sorted correctly, so the program looks correct as well. But that's just luck. In fact, we are accessing the array out of bounds, which is what PVS-Studio is warning us about. Let's take a closer look at the condition of the inner loop:

j < size + 1

This is what it should actually look like:

j < size

Now you can fix the mistake and send your teacher a link for assessment: correctly done lab assignment.

Free version for open-source projects

Developers co-working on an open-source academic project can get free licenses. To learn more about this option, see the article "Ways to Get a Free PVS-Studio License".

A note for corporate users

None of the above scenarios for using PVS-Studio for free are intended as a way to try the tool on a commercial project. This would either be impossible or at least inconvenient.

Simply contact us for a trial key and specify your corporate email address. This will help us determine whether we have already communicated with your colleagues, whether your company is or has been our customer, and so on. If necessary, we can advise you on using the analyzer or provide an Enterprise License if you want to integrate PVS-Studio with tools such as SonarQube.