Comments (8)
If travis-ci/travis-ci#2877 got fixed, we could have separate configurations for SV-COMP (with SET_FILES being set) vs. all benchmarks.
That should address @PhilippWendler's concerns voiced on the SV-COMP mailing list.
Best,
Michael
from sv-benchmarks.
@tautschnig
We can do this already if we want. If you take a look at .travis.yml
in the root of the repository you will see these lines
- C_COMPILER=gcc-4.8 SYNTAX_ONLY=1 WARNINGS_AS_ERRORS=0 VERBOSE=0 SUPPRESS_WARNINGS=1 REPORT_CC_FILE=2
- C_COMPILER=clang-3.7 CLANG_BUILD_HACK=1 SYNTAX_ONLY=1 WARNINGS_AS_ERRORS=0 VERBOSE=0 SUPPRESS_WARNINGS=1 REPORT_CC_FILE=2
Each line sets a build configuration (i.e. we test two different configurations) with different environment variables. Currently we build with gcc-4.8 and clang-3.7. CLANG_BUILD_HACK
is only there to prevent Clang trying to build the regression
benchmarks mentioned in this issue.
We could easily add another configuration that only builds certain set files.
However I think that all benchmarks that exist in the repository should be compilable, otherwise they are useless. I'd rather we just ask the author of the benchmarks to fix them and if that fails just delete the benchmarks.
from sv-benchmarks.
While I agree that in medium term we should have compilable files only in the repository, that's just not doable on the spot. So I was hoping we could have multiple "Build (not) passing" indicators in README.md, one for the SV-COMP sub-set and another for all benchmarks.
from sv-benchmarks.
So I was hoping we could have multiple "Build (not) passing" indicators in README.md, one for the SV-COMP sub-set and another for all benchmarks.
I see to my knowledge TravisCI cannot do this right now.
from sv-benchmarks.
As far as I understood it is fixed
from sv-benchmarks.
I don't know. In the last relevant commit to this directory (edc4741), @delcypher claimed that the problem persists.
from sv-benchmarks.
@mutilin @PhilippWendler No this is still broken
Try
cd c c/regression
make clean
CC=clang make
I get output like this
clang building regression/drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3238:20: warning: variable 'var_group1' is uninitialized when used here [-Wuninitialized]
mt2266_release(var_group1);
^~~~~~~~~~
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3219:34: note: initialize the variable 'var_group1' to silence this warning
struct dvb_frontend *var_group1 ;
^
= 0
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3262:36: warning: variable 'var_mt2266_get_bandwidth_6_p1' is uninitialized when used here [-Wuninitialized]
mt2266_get_bandwidth(var_group1, var_mt2266_get_bandwidth_6_p1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3222:37: note: initialize the variable 'var_mt2266_get_bandwidth_6_p1' to silence this warning
u32 *var_mt2266_get_bandwidth_6_p1 ;
^
= 0
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3258:36: warning: variable 'var_mt2266_get_frequency_5_p1' is uninitialized when used here [-Wuninitialized]
mt2266_get_frequency(var_group1, var_mt2266_get_frequency_5_p1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3221:37: note: initialize the variable 'var_mt2266_get_frequency_5_p1' to silence this warning
u32 *var_mt2266_get_frequency_5_p1 ;
^
= 0
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3254:33: warning: variable 'var_group2' is uninitialized when used here [-Wuninitialized]
mt2266_set_params(var_group1, var_group2);
^~~~~~~~~~
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3220:45: note: initialize the variable 'var_group2' to silence this warning
struct dvb_frontend_parameters *var_group2 ;
^
= 0
drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.i:3475:6: error: definition of builtin function '__builtin_expect'
long __builtin_expect(long exp , long c )
^
4 warnings and 1 error generated.
make: *** [..//Makefile.rules:229: /home/dan/dev/sv-benchmarks/c/bin/regression/drivers--media--common--tuners--mt2266.ko_000.b094516.39_7a.cil_true-unreach-call.oi] Error 1
The only reason that TravisCI doesn't currently fail is because I put in a hack to prevent the regression
directory being traversed when building with clang.
You can see this at
Line 70 in dfe81a3
from sv-benchmarks.
fixed in #189
from sv-benchmarks.
Related Issues (20)
- Tasks in seq-mthreaded wrongly marked as non-terminating HOT 2
- Task ntdrivers/floppy2 is not memory safe
- Task ntdrivers/diskperf.i.cil-1.c is not memory safe HOT 2
- ntdrivers/parport.i.cil-2 is not memory safe
- LDV tasks with undefined behaviour and/or wrong verdicts HOT 3
- cut-2 and od-1 from busy-box are not memory safe HOT 1
- Undefined behavior in two AWS benchmarks
- MemSafety - unset subproperty for false verdict
- Incorrect Verification Task
- geo1-ll.c can overflow HOT 3
- Implementation-defined behaviour HOT 3
- SV-COMP concurrency benchmarks with data races HOT 3
- "Repeated" benchmarks in pthread-wmm
- why can echo-2.i overflow? HOT 2
- __builtin_unreachable() in LDV benchmarks HOT 3
- Benchmarks for weak memory models HOT 3
- Reachable error in pthread-ext/41_FreeBSD_abd_kbd_sliced
- Use of `__VERIFIER_nondet_*` functions that aren't specified in SV-COMP rules HOT 1
- Info on SV-COMP 2022? HOT 2
- Repository moved to GitLab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sv-benchmarks.