Commit 5b4e7740 authored by SPARSA ROYCHOWDHURY's avatar SPARSA ROYCHOWDHURY

23/10/17:

1. Time Automata Working
2. Time push Down system is not working yet!!
parent f0234c74
No preview for this file type
......@@ -47,7 +47,7 @@ class stateGCPP{
stateGCPP* reduce(char dn);
stateGCPP* nextDummy(char dn);
stateGCPP* reduce1();
stateGCPP* reduce2(char dn, char wn,short* clockDis,bool* clockAcc,short dlr,bool aclr);
// return true iff clock gurards on new transition 'dn' with tsm value 'wn' is satisfied
bool consSatisfied(stateGCPP* vs,char dn, char wn, short *clockDis, bool *clockAcc);
......
......@@ -13,5 +13,5 @@
0
2 3 0 1 0
1 1 0 2 1
1 1 0 2 0
0
......@@ -6,4 +6,5 @@ digraph finite_state_machine {
0 -> 1 [ label = "{tn:0,x1:=0}" ];
1 -> 1 [ label = "{tn:1,x1:=0}" ];
1 -> 2 [ label = "{tn:2,2<=x1<=2}" ];
2 -> 3 [ label = "{tn:3,1<=x1<=2}" ];
}
\ No newline at end of file
input1/test1.png

17.6 KB | W: | H:

input1/test1.png

17.5 KB | W: | H:

input1/test1.png
input1/test1.png
input1/test1.png
input1/test1.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -5,11 +5,11 @@ digraph finite_state_machine {
qi0 -> 0;
0 -> 1 [ label = "{tn:0,x1:=0}" ];
1 -> 2 [ label = "{tn:1,ps_2}" ];
1 -> 5 [ label = "{tn:2,1<=x1<=2,pp_2,6<=x2<=8}" ];
1 -> 5 [ label = "{tn:2,1<=x1<=2,pp_2,6<=ag(2)<=8}" ];
2 -> 1 [ label = "{tn:3}" ];
2 -> 2 [ label = "{tn:4,1<=x1<=1,x1:=0,ps_1}" ];
2 -> 3 [ label = "{tn:5,0<=x1<=1}" ];
3 -> 4 [ label = "{tn:6}" ];
4 -> 2 [ label = "{tn:7,0<=x1<=2}" ];
4 -> 4 [ label = "{tn:8,pp_1,1<=x2<=2}" ];
4 -> 4 [ label = "{tn:8,pp_1,1<=ag(1)<=2}" ];
}
\ No newline at end of file
input1/tp63.png

43.4 KB | W: | H:

input1/tp63.png

52.1 KB | W: | H:

input1/tp63.png
input1/tp63.png
input1/tp63.png
input1/tp63.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -36,6 +36,8 @@ bool2 CircuitFinder::circuit(int V)
return F;
} else if (W > S && !Blocked[W - 1]) {
F = circuit(W);
if(F.B)
return F;
}
}
......
......@@ -139,16 +139,16 @@ void showsystem(char *outfile) {
if(openu &a32[0])
{
if(ub == INF)
tiimeoutfile << "," << lb << "<" << "x" << j << "<" << "inf";
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<" << "inf";
else
tiimeoutfile << "," << lb << "<" << "x" << j << "<" << ub;
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<" << ub;
}
else
{
if(ub == INF)
tiimeoutfile << "," << lb << "<" << "x" << j << "<=" << "inf";
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<=" << "inf";
else
tiimeoutfile << "," << lb << "<" << "x" << j << "<=" << ub;
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<=" << ub;
}
}
else
......@@ -156,16 +156,16 @@ void showsystem(char *outfile) {
if(openu &a32[0])
{
if(ub == INF)
tiimeoutfile << "," << lb << "<=" << "x" << j << "<" << "inf";
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<" << "inf";
else
tiimeoutfile << "," << lb << "<=" << "x" << j << "<" << ub;
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<" << ub;
}
else
{
if(ub == INF)
tiimeoutfile << "," << lb << "<=" << "x" << j << "<=" << "inf";
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<=" << "inf";
else
tiimeoutfile << "," << lb << "<=" << "x" << j << "<=" << ub;
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<=" << ub;
}
}
}
......@@ -181,16 +181,16 @@ void showsystem(char *outfile) {
if(openu &a32[0])
{
if(ub == INF)
tiimeoutfile << "," << lb << "<" << "x" << j << "<" << "inf";
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<" << "inf";
else
tiimeoutfile << "," << lb << "<" << "x" << j << "<" << ub;
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<" << ub;
}
else
{
if(ub == INF)
tiimeoutfile << "," << lb << "<" << "x" << j << "<=" << "inf";
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<=" << "inf";
else
tiimeoutfile << "," << lb << "<" << "x" << j << "<=" << ub;
tiimeoutfile << "," << lb << "<" << "ag(" << pp << ")" << "<=" << ub;
}
}
else
......@@ -198,16 +198,16 @@ void showsystem(char *outfile) {
if(openu &a32[0])
{
if(ub == INF)
tiimeoutfile << "," << lb << "<=" << "x" << j << "<" << "inf";
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<" << "inf";
else
tiimeoutfile << "," << lb << "<=" << "x" << j << "<" << ub;
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<" << ub;
}
else
{
if(ub == INF)
tiimeoutfile << "," << lb << "<=" << "x" << j << "<=" << "inf";
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<=" << "inf";
else
tiimeoutfile << "," << lb << "<=" << "x" << j << "<=" << ub;
tiimeoutfile << "," << lb << "<=" << "ag(" << pp << ")" << "<=" << ub;
}
}
tiimeoutfile << ",ps_" << ps;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment