Skip to content

Commit 9c48517

Browse files
committed
bug fix: static variable
1 parent 5fcd4b8 commit 9c48517

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ROBDD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "ROBDD.hpp"
22
#include <vector>
33
int yyparse();
4-
4+
ROBDD *T;
55
ROBDD::ROBDD()
66
{
77
this->zero = new BDD_node({0, nullptr, nullptr});

ROBDD.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@
3535
// delete nodes with references count = 0
3636
void trim();
3737
};
38-
static ROBDD *T;
3938
#endif

expression.y

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
%{
22
#include <iostream>
33
#include <string>
4+
#include "ROBDD.hpp"
45
int yylex(void);
56
void yyerror(const char *s);
7+
extern ROBDD *T;
68
%}
79

810
%code requires {
9-
#include <memory>
1011
#include "ROBDD.hpp"
1112
}
1213

0 commit comments

Comments
 (0)