C only code or also c++ code? #676
-
So far I managed to run the second example available from the web interface. What I would really need is to model-check C++ code. So please let me know whether ESBMC can verify C++ source code or only C source code? I was also able to install ESBMC on my macOS computer. I tried to run it on the same second example from the web interface and after successfully parsing the code, it complains about not finding a symbol: __chkstk_darwin. It also says that esbmc was built for Mac OS X 11.6, but on my computer I have only version 10.13.6. How can I fix this issue? Could I build esbmc for Mac OS X 10.13.6 ? I tried using the following command: esbmc doublelists.cc --unwind 12 -I /usr/lib/libSystem.B.dylib But it does not help. In the file doublelists.cc I have the following code: #include <assert.h> The file does compile with c++ and if I run the executable then the result is: Assertion failed: (j==i), function main, file doublelists.cc, line 8 Thanks and best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Dear @monicamarcus, Many thanks for your interest in ESBMC++. You can find ESBMC++, which handles C++03 programs, at https://ssvlab.github.io/esbmc/benchmarks/stvr_2021_experiments.zip. We're currently expanding our clang C++ frontend (https://github.com/esbmc/esbmc/tree/master/src/clang-cpp-frontend) to support the most recent versions of the C++ standard. @kunjsong01 is leading this development. Which version of the C++ standard do you want to verify? BTW, you can find our journal paper at STVR 2022 and the video of our talk at ICST 2022 at: Felipe R. Monteiro, Mikhail R. Gadelha, Lucas C. Cordeiro. Model checking C++ programs. In Softw. Test. Verification Reliab. 32(1), 2022. DOI, Video, Best, |
Beta Was this translation helpful? Give feedback.
-
@monicamarcus: we have advanced our C++ frontend quite a lot. Would you happen to have some benchmarks that we can play with? |
Beta Was this translation helpful? Give feedback.
Dear @monicamarcus,
Many thanks for your interest in ESBMC++.
You can find ESBMC++, which handles C++03 programs, at https://ssvlab.github.io/esbmc/benchmarks/stvr_2021_experiments.zip.
We're currently expanding our clang C++ frontend (https://github.com/esbmc/esbmc/tree/master/src/clang-cpp-frontend) to support the most recent versions of the C++ standard. @kunjsong01 is leading this development.
Which version of the C++ standard do you want to verify?
BTW, you can find our journal paper at STVR 2022 and the video of our talk at ICST 2022 at:
Felipe R. Monteiro, Mikhail R. Gadelha, Lucas C. Cordeiro. Model checking C++ programs. In Softw. Test. Verification Reliab. 32(1), 2022. DOI, Video,