Merge BuDDy 2.3.
* examples/calculator/, examples/internal/: Were renamed as ... * examples/bddcalc/, examples/bddtest/: ... these. * configure.ac: Adjust version and output Makefiles. * examples/Makefile.am (SUBDIRS): Adjust subdir renaming. * examples/cmilner/milner.c, examples/fdd/statespace.cxx: Were renamed as ... * examples/cmilner/cmilner.c, examples/fdd/fdd.cxx: ... these. * examples/cmilner/Makefile.am, examples/fdd/Makefile.am: Adjust accordingly. * src/Makefile.am (AM_CPPFLAGS): Define VERSION.
This commit is contained in:
parent
805b6fb70b
commit
aa4a582f1b
27 changed files with 130 additions and 796 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include "bdd.h"
|
||||
#include <iostream>
|
||||
|
|
@ -98,6 +97,7 @@ bdd reachable_states(bdd I, bdd T)
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
using namespace std ;
|
||||
int n;
|
||||
if(argc < 2)
|
||||
{
|
||||
|
|
@ -113,8 +113,6 @@ int main(int argc, char** argv)
|
|||
exit(2);
|
||||
}
|
||||
|
||||
long clk1 = clock();
|
||||
|
||||
bdd_init(500000, 50000);
|
||||
bdd_setvarnum(N*6);
|
||||
|
||||
|
|
@ -164,8 +162,6 @@ int main(int argc, char** argv)
|
|||
bdd T = transitions(t,tp,h,hp,c,cp);
|
||||
bdd R = reachable_states(I,T);
|
||||
|
||||
long clk2 = clock();
|
||||
|
||||
bddStat s;
|
||||
bdd_stats(&s);
|
||||
|
||||
|
|
@ -175,8 +171,6 @@ int main(int argc, char** argv)
|
|||
cout << endl << "Number of nodes in T is " << bdd_nodecount( T ) << endl;
|
||||
cout << "Number of nodes in R is " << bdd_nodecount( R ) << endl << endl;
|
||||
|
||||
cout << (float)(clk2 - clk1)/(float)(CLOCKS_PER_SEC) << " sec.\n";
|
||||
|
||||
//bdd_printstat();
|
||||
cout << "Nodenum: " << bdd_getnodenum() << endl;
|
||||
bdd_done();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue