Skip to content

Commit

Permalink
Failing regression test from diffblue#661
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 6, 2018
1 parent fe8ef6d commit 1132562
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
48 changes: 48 additions & 0 deletions regression/cbmc/cpp1/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#include <cassert>

template <class T>
class sc_signal
{
public:
T data;
sc_signal(){}
sc_signal(const char *p) {}
T read() {return data;}
void write(const T &d) {data = d;}
};


struct rbm
{

sc_signal<unsigned int> data_out; //<L1>

sc_signal<bool> done; // <L2>

sc_signal<bool> conf_done;

void config();

rbm()
{

}

};


void rbm::config()
{
do {
conf_done.write(true);
assert(conf_done.data==true);
} while ( !conf_done.read() );
}

int main()
{
rbm IMPL;
IMPL.config();

return 0;
}
10 changes: 10 additions & 0 deletions regression/cbmc/cpp1/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
KNOWNBUG
main.cpp

^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
--
^warning: ignoring
--
This has been reported as #661.

0 comments on commit 1132562

Please sign in to comment.