Giter Site home page Giter Site logo

posteruole / 2023_analysis_compound_unit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.98 MB

This repository contains an analysis of a Compound Unit student project. Analysis was done using tools for static and dynamic software verification. The repository is created for the purpose of Software Verification master's studies course at the Faculty of Mathematics.

Home Page: https://github.com/MATF-Software-Verification/2023_Analysis_CompoundUnits

C++ 1.93% CSS 0.52% HTML 75.49% LLVM 21.06% Makefile 0.61% C 0.37% Shell 0.01% QMake 0.01%
software-testing software-validation software-verification unit-testing

2023_analysis_compound_unit's Introduction

2023_Analysis_Compound_Unit

Analiza projekta Compound Unit (složene merne jedinice)

Ovaj repozitorijum predstavlja samostalni praktični seminarski rad izrađen za potrebe kursa Verifikacija softvera na master studijama Matematičkog fakulteta u Beogradu. Samostalni praktični seminarski rad podrazumeva primenu alata za statičku i dinamičku verifikaciju softvera na nekom od studentskih projekata.

O projektu:

Projekat je urađen za potrebe kursa Programske paradigme.
Projekat je napisan u programskom jeziku C++ i mogao bi se svrstati pod funkcionalnu i generičku programsku paradigmu.
Osnovna ideja iza samog projekta jeste pokušaj za definisanjem generičkog tipa "compound_unit" (složena jedinica) koji bi bio korišćen za reprezentovanje različitih mernih jedinica.
Na primer: compound_unit<meter<1>, second<-2>> bi predstavljalo m/s^2 (mernu jedinicu za ubrzanje).
Ukoliko bismo pomnožili različite veličine, na primer: 32m/s^2 * 5s
...trebalo bi da dobijemo m/s, odnosno <meter<1>, second<-1>>.

Napomena: Za prevođenje projekta neophodno je koristiti verziju 17 programskog jezika C++. Jedna od komandi kojom bismo to mogli da uradimo je sledeća:

g++ -std=c++17 demo.cpp -o test

Korišćeni alati:

  • gcov lcov
  • QtTest
  • Valgrind - massif
  • Valgrind - memcheck
  • Valgrind - callgrind
  • Perf

Izvedeni zaključci:

U projektu nisu pronađeni veći propusti. Projekat je po obimu mali. Implementirano je dosta funkcionalnosti u .hpp fajlovima, ali je mali broj njih testiran u demo.cpp fajlu u kome se nalazi main funkcija. Trebalo bi napomenuti da je ideja Compound unit projekta bila da se u toku prevođenja projekta (eng. in compile time) konstruišu sve merne jedinice, a da se potom u toku izvršavanja eventualno ispišu neke njihove osobine. S toga nas ne iznađuju izveštaji alata memcheck i massif koji kažu da je hip memorija mali broj puta alocirana i to pri samom kraju izvršavanja programa.

Autor

Petar Tešić 1064/2022 5I

2023_analysis_compound_unit's People

Contributors

posteruole avatar petart99syrmia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.