avatar

lou1306 (it)

  • About •
  • CV •
  • Schools •
  • •

Bounded model checking with CBMC and Glucose

December 10, 2020 · 5 minutes· Tags:Bmc, C, Cbmc, Glucose, Sat

Formal verification allows to find bugs in a program by systematically exploring all its feasible executions. I have used several formal verification tools during my PhD; since I feel there is a lack of technical blog posts about this topic on the Web, I’ll try and write some :)

This post deals with bounded model checking, specifically the CBMC tool and how to combine it with the Glucose solver. I believe this leads to a measurable increase in performance, at least when checking unsafe programs.


Continue »

C: Packing two integers in a single variable

January 11, 2018 · Just one minute· Tags:C

Lately we needed to put a pair of small integers into a single int variable. (Let us gloss over the intricacies of what an int actually is and just assume it is 32-bit, shall we?) Nothing crazy hard but still, it took some trial and error before we got it right. So, if anybody needs it or is just curious, here’s the code:

The code will test all possible tuples and quit if some unpacking gives an unexpected result.


Continue »

© 2024 - map[name:Luca Di Stefano]
License: CC BY-NC 4.0
Hugo • Type Theme • Skeleton • Academicons