Min_number = ( 0 ) ; Max_number = ( 5 )
In original model number_of_states = ( 23 ); number_of_transition = ( 46 ) 

Original Transition
0 --- 1  -> (x)
0 --- 4  -> ((-1)*x+(1))
1 --- 2  -> (p11)
1 --- 21  -> ((-1)*p11+(1))
2 --- 7  -> (p21)
2 --- 19  -> ((-1)*p21+(1))
3 --- 6  -> (p31)
3 --- 17  -> ((-1)*p31+(1))
4 --- 8  -> (p41)
4 --- 15  -> ((-1)*p41+(1))
5 --- 6  -> (p51)
5 --- 13  -> ((-1)*p51+(1))
6 --- 10  -> (p61)
6 --- 11  -> ((-1)*p61+(1))
7 --- 1  -> (y2)
7 --- 3  -> ((-1)*y1-y2+(1))
7 --- 5  -> (y1)
8 --- 0  -> (z2)
8 --- 4  -> ((-1)*z1-z2+(1))
8 --- 5  -> (z1)
9 --- 9  -> (1)
10 --- 0  -> (1)
11 --- 10  -> (p62)
11 --- 12  -> ((-1)*p62+(1))
12 --- 9  -> ((-1)*p63+(1))
12 --- 10  -> (p63)
13 --- 6  -> (p52)
13 --- 14  -> ((-1)*p52+(1))
14 --- 6  -> (p53)
14 --- 9  -> ((-1)*p53+(1))
15 --- 8  -> (p42)
15 --- 16  -> ((-1)*p42+(1))
16 --- 8  -> (p43)
16 --- 9  -> ((-1)*p43+(1))
17 --- 6  -> (p32)
17 --- 18  -> ((-1)*p32+(1))
18 --- 6  -> (p33)
18 --- 9  -> ((-1)*p33+(1))
19 --- 7  -> (p22)
19 --- 20  -> ((-1)*p22+(1))
20 --- 7  -> (p23)
20 --- 9  -> ((-1)*p23+(1))
21 --- 2  -> (p12)
21 --- 22  -> ((-1)*p12+(1))
22 --- 2  -> (p13)
22 --- 9  -> ((-1)*p13+(1))


In New Model number of states = ( 32 ); number of transition = ( 57 ) 

New transition
0 --- 1  -> (x)
0 --- 4  -> ((-1)*x+(1))
1 --- 2  -> (p11)
1 --- 21  -> ((-1)*p11+(1))
2 --- 7  -> (p21)
2 --- 19  -> ((-1)*p21+(1))
3 --- 6  -> (p31)
3 --- 17  -> ((-1)*p31+(1))
4 --- 8  -> (p41)
4 --- 15  -> ((-1)*p41+(1))
5 --- 6  -> (p51)
5 --- 13  -> ((-1)*p51+(1))
6 --- 11  -> ((-1)*p61+(1))
7 --- 1  -> (y2)
7 --- 5  -> (y1)
9 --- 9  -> (1)
10 --- 0  -> (1)
11 --- 10  -> (p62)
11 --- 12  -> ((-1)*p62+(1))
12 --- 9  -> ((-1)*p63+(1))
12 --- 10  -> (p63)
13 --- 14  -> ((-1)*p52+(1))
14 --- 6  -> (p53)
14 --- 9  -> ((-1)*p53+(1))
15 --- 8  -> (p42)
15 --- 16  -> ((-1)*p42+(1))
16 --- 8  -> (p43)
16 --- 9  -> ((-1)*p43+(1))
17 --- 6  -> (p32)
17 --- 18  -> ((-1)*p32+(1))
18 --- 6  -> (p33)
18 --- 9  -> ((-1)*p33+(1))
19 --- 7  -> (p22)
19 --- 20  -> ((-1)*p22+(1))
20 --- 7  -> (p23)
21 --- 2  -> (p12)
21 --- 22  -> ((-1)*p12+(1))
22 --- 2  -> (p13)
8 --- 8  -> ( ((-1)*z1-z2+(1)) ) * ( (p41) )
7 --- 23  -> ((-1)*y1-y2+(1))
23 --- 3  -> 1
20 --- 24  -> ((-1)*p23+(1))
24 --- 9  -> 1
22 --- 25  -> ((-1)*p13+(1))
25 --- 9  -> 1
6 --- 26  -> (p61)
26 --- 10  -> 1
8 --- 27  -> (z2)
27 --- 0  -> 1
8 --- 28  -> ( (z1) ) * ( (p51) )
28 --- 6  -> 1
13 --- 29  -> (p52)
29 --- 6  -> 1
8 --- 30  -> ( ((-1)*z1-z2+(1)) ) * ( ((-1)*p41+(1)) )
30 --- 15  -> 1
8 --- 31  -> ( (z1) ) * ( ((-1)*p51+(1)) )
31 --- 13  -> 1


State--Fragment Number--visited--startingPoint--endingPoint
   0          1          true        true          false
   1          1          true        false          false
   2          1          true        false          false
   3          9          true        true          true
   4          1          true        false          true
   5          1          true        false          true
   6          2          true        true          false
   7          1          true        false          false
   8          4          true        true          false
   9          10          true        true          true
   10          11          true        true          true
   11          2          true        false          true
   12          5          true        true          true
   13          12          true        true          true
   14          6          true        true          true
   15          13          true        true          true
   16          7          true        true          true
   17          14          true        true          true
   18          15          true        true          true
   19          1          true        false          false
   20          1          true        false          false
   21          1          true        false          false
   22          1          true        false          false
   23          1          true        false          true
   24          1          true        false          true
   25          1          true        false          true
   26          2          true        false          true
   27          4          true        false          true
   28          4          true        false          true
   29          8          true        true          true
   30          4          true        false          true
   31          4          true        false          true

This is transition in Fragment (1) 
    [0, 1]  (x)
    [0, 4]  ((-1)*x+(1))
    [1, 2]  (p11)
    [1, 21]  ((-1)*p11+(1))
    [2, 7]  (p21)
    [2, 19]  ((-1)*p21+(1))
    [7, 1]  (y2)
    [7, 5]  (y1)
    [19, 7]  (p22)
    [19, 20]  ((-1)*p22+(1))
    [20, 7]  (p23)
    [21, 2]  (p12)
    [21, 22]  ((-1)*p12+(1))
    [22, 2]  (p13)
    [7, 23]  ((-1)*y1-y2+(1))
    [20, 24]  ((-1)*p23+(1))
    [22, 25]  ((-1)*p13+(1))
    [4, 4]  1
    [5, 5]  1
    [23, 23]  1
    [24, 24]  1
    [25, 25]  1

This is transition in Fragment (2) 
    [6, 11]  ((-1)*p61+(1))
    [6, 26]  (p61)
    [11, 11]  1
    [26, 26]  1

This is transition in Fragment (3) 

This is transition in Fragment (4) 
    [8, 8]  ( ((-1)*z1-z2+(1)) ) * ( (p41) )
    [8, 27]  (z2)
    [8, 28]  ( (z1) ) * ( (p51) )
    [8, 30]  ( ((-1)*z1-z2+(1)) ) * ( ((-1)*p41+(1)) )
    [8, 31]  ( (z1) ) * ( ((-1)*p51+(1)) )
    [27, 27]  1
    [28, 28]  1
    [30, 30]  1
    [31, 31]  1

This is transition in Fragment (5) 
    [12, 12]  1

This is transition in Fragment (6) 
    [14, 14]  1

This is transition in Fragment (7) 
    [16, 16]  1

This is transition in Fragment (8) 
    [29, 29]  1

This is transition in Fragment (9) 
    [3, 3]  1

This is transition in Fragment (10) 
    [9, 9]  1

This is transition in Fragment (11) 
    [10, 10]  1

This is transition in Fragment (12) 
    [13, 13]  1

This is transition in Fragment (13) 
    [15, 15]  1

This is transition in Fragment (14) 
    [17, 17]  1

This is transition for abstract model 
    [3, 6]  (p31)
    [3, 17]  ((-1)*p31+(1))
    [4, 8]  ( (p41) ) * ( prob_f1_s4 )
    [4, 15]  ( ((-1)*p41+(1)) ) * ( prob_f1_s4 )
    [5, 6]  ( (p51) ) * ( prob_f1_s5 )
    [5, 13]  ( ((-1)*p51+(1)) ) * ( prob_f1_s5 )
    [9, 9]  (1)
    [10, 0]  (1)
    [11, 10]  ( (p62) ) * ( prob_f2_s11 )
    [11, 12]  ( ((-1)*p62+(1)) ) * ( prob_f2_s11 )
    [12, 9]  ((-1)*p63+(1))
    [12, 10]  (p63)
    [13, 14]  ((-1)*p52+(1))
    [14, 6]  (p53)
    [14, 9]  ((-1)*p53+(1))
    [15, 8]  (p42)
    [15, 16]  ((-1)*p42+(1))
    [16, 8]  (p43)
    [16, 9]  ((-1)*p43+(1))
    [17, 6]  (p32)
    [17, 18]  ((-1)*p32+(1))
    [18, 6]  (p33)
    [18, 9]  ((-1)*p33+(1))
    [23, 3]  ( 1 ) * ( prob_f1_s23 )
    [24, 9]  ( 1 ) * ( prob_f1_s24 )
    [25, 9]  ( 1 ) * ( prob_f1_s25 )
    [26, 10]  ( 1 ) * ( prob_f2_s26 )
    [27, 0]  ( 1 ) * ( prob_f4_s27 )
    [28, 6]  ( 1 ) * ( prob_f4_s28 )
    [13, 29]  (p52)
    [29, 6]  1
    [30, 15]  ( 1 ) * ( prob_f4_s30 )
    [31, 13]  ( 1 ) * ( prob_f4_s31 )
****************************The expressions start from here; Copying following expressions to MATLAB; Providing values for the parameters needed; Checking the result of <Output_abstract_model> ******
P1_0_1 = ((x)); 
P1_0_2 = (((-1)*x+(1))); 
P1_1_3 = ((p11)); 
P1_1_4 = (((-1)*p11+(1))); 
P1_2_5 = ((p21)); 
P1_2_6 = (((-1)*p21+(1))); 
P1_7_7 = ((y2)); 
P1_7_8 = ((y1)); 
P1_7_15 = (((-1)*y1-y2+(1))); 
P1_19_9 = ((p22)); 
P1_19_10 = (((-1)*p22+(1))); 
P1_20_11 = ((p23)); 
P1_20_16 = (((-1)*p23+(1))); 
P1_21_12 = ((p12)); 
P1_21_13 = (((-1)*p12+(1))); 
P1_22_14 = ((p13)); 
P1_22_17 = (((-1)*p13+(1))); 

prob_f1_s4  =( (P1_0_2)/(1)); 
prob_f1_s5  =( (-1 * ((P1_0_1) * (P1_1_4*P1_2_6*P1_21_13*P1_7_8*P1_19_10*P1_22_14*P1_20_11+P1_1_4*P1_2_5*P1_21_12*P1_7_8+P1_1_4*P1_2_6*P1_21_12*P1_7_8*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_13*P1_7_8*P1_19_9*P1_22_14+P1_1_4*P1_2_5*P1_21_13*P1_7_8*P1_22_14+P1_1_3*P1_2_6*P1_7_8*P1_19_10*P1_20_11+P1_1_3*P1_2_5*P1_7_8+P1_1_3*P1_2_6*P1_7_8*P1_19_9+P1_1_4*P1_2_6*P1_21_12*P1_7_8*P1_19_9)))/(P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_10*P1_22_14*P1_20_11+P1_1_3*P1_2_5*P1_7_7+P1_1_3*P1_2_6*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_9+P1_1_4*P1_2_5*P1_21_12*P1_7_7+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_9*P1_22_14+P1_1_4*P1_2_5*P1_21_13*P1_7_7*P1_22_14+P1_1_3*P1_2_6*P1_7_7*P1_19_9+(-1))); 
prob_f1_s23  =( (-1 * ((P1_0_1) * (P1_1_4*P1_2_6*P1_21_13*P1_7_15*P1_19_10*P1_22_14*P1_20_11+P1_1_4*P1_2_5*P1_21_12*P1_7_15+P1_1_4*P1_2_6*P1_21_12*P1_7_15*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_13*P1_7_15*P1_19_9*P1_22_14+P1_1_4*P1_2_5*P1_21_13*P1_7_15*P1_22_14+P1_1_3*P1_2_6*P1_7_15*P1_19_10*P1_20_11+P1_1_3*P1_2_5*P1_7_15+P1_1_3*P1_2_6*P1_7_15*P1_19_9+P1_1_4*P1_2_6*P1_21_12*P1_7_15*P1_19_9)))/(P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_10*P1_22_14*P1_20_11+P1_1_3*P1_2_5*P1_7_7+P1_1_3*P1_2_6*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_9+P1_1_4*P1_2_5*P1_21_12*P1_7_7+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_9*P1_22_14+P1_1_4*P1_2_5*P1_21_13*P1_7_7*P1_22_14+P1_1_3*P1_2_6*P1_7_7*P1_19_9+(-1))); 
prob_f1_s24  =( (-1 * ((P1_0_1) * (P1_1_4*P1_2_6*P1_21_13*P1_19_10*P1_22_14*P1_20_16+P1_1_3*P1_2_6*P1_19_10*P1_20_16+P1_1_4*P1_2_6*P1_21_12*P1_19_10*P1_20_16)))/(P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_10*P1_22_14*P1_20_11+P1_1_3*P1_2_5*P1_7_7+P1_1_3*P1_2_6*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_9+P1_1_4*P1_2_5*P1_21_12*P1_7_7+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_9*P1_22_14+P1_1_4*P1_2_5*P1_21_13*P1_7_7*P1_22_14+P1_1_3*P1_2_6*P1_7_7*P1_19_9+(-1))); 
prob_f1_s25  =( (-1 * ((P1_0_1) * (P1_1_4*P1_21_13*P1_22_17)))/(P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_10*P1_22_14*P1_20_11+P1_1_3*P1_2_5*P1_7_7+P1_1_3*P1_2_6*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_9+P1_1_4*P1_2_5*P1_21_12*P1_7_7+P1_1_4*P1_2_6*P1_21_12*P1_7_7*P1_19_10*P1_20_11+P1_1_4*P1_2_6*P1_21_13*P1_7_7*P1_19_9*P1_22_14+P1_1_4*P1_2_5*P1_21_13*P1_7_7*P1_22_14+P1_1_3*P1_2_6*P1_7_7*P1_19_9+(-1))); 
P2_6_1 = (((-1)*p61+(1))); 
P2_6_2 = ((p61)); 

prob_f2_s11  =( (P2_6_1)/(1)); 
prob_f2_s26  =( (P2_6_2)/(1)); 
P4_8_1 = (( ((-1)*z1-z2+(1)) ) * ( (p41) )); 
P4_8_2 = ((z2)); 
P4_8_3 = (( (z1) ) * ( (p51) )); 
P4_8_4 = (( ((-1)*z1-z2+(1)) ) * ( ((-1)*p41+(1)) )); 
P4_8_5 = (( (z1) ) * ( ((-1)*p51+(1)) )); 

prob_f4_s27  =( (-1 * (P4_8_2))/(P4_8_1+(-1))); 
prob_f4_s28  =( (-1 * (P4_8_3))/(P4_8_1+(-1))); 
prob_f4_s30  =( (-1 * (P4_8_4))/(P4_8_1+(-1))); 
prob_f4_s31  =( (-1 * (P4_8_5))/(P4_8_1+(-1))); 
PX_0_3 = (( (p41) ) * ( prob_f1_s4 )); 
PX_0_4 = (( ((-1)*p41+(1)) ) * ( prob_f1_s4 ));
PX_0_5 = (( (p51) ) * ( prob_f1_s5 ));
PX_0_6 = (( ((-1)*p51+(1)) ) * ( prob_f1_s5 ));
PX_0_24 = (( 1 ) * ( prob_f1_s23 ));
PX_0_25 = ( ( 1 ) * ( prob_f1_s24 ) + ( 1 ) * ( prob_f1_s25 ) );
PX_1_9 = ( ( (p62) ) * ( prob_f2_s11 ) + ( 1 ) * ( prob_f2_s26 ) ); 
PX_1_10 = (( ((-1)*p62+(1)) ) * ( prob_f2_s11 ));
PX_3_26 = (( 1 ) * ( prob_f4_s27 )); 
PX_3_27 = (( 1 ) * ( prob_f4_s28 ));
PX_3_30 = (( 1 ) * ( prob_f4_s30 ));
PX_3_31 = (( 1 ) * ( prob_f4_s31 ));
PX_4_11 = (((-1)*p63+(1))); 
PX_4_12 = ((p63));
PX_5_14 = ((p53)); 
PX_5_15 = (((-1)*p53+(1)));
PX_6_18 = ((p43)); 
PX_6_19 = (((-1)*p43+(1)));
PX_7_29 = (1); 
PX_8_1 = ((p31)); 
PX_8_2 = (((-1)*p31+(1)));
PX_9_7 = ((1)); 
PX_10_8 = ((1)); 
PX_11_13 = (((-1)*p52+(1))); 
PX_11_28 = ((p52));
PX_12_16 = ((p42)); 
PX_12_17 = (((-1)*p42+(1)));
PX_13_20 = ((p32)); 
PX_13_21 = (((-1)*p32+(1)));
PX_14_22 = ((p33)); 
PX_14_23 = (((-1)*p33+(1)));

Output_abstract_model =( (PX_0_6*PX_3_30*PX_12_17*PX_1_10*PX_11_13*PX_6_18*PX_4_12*PX_5_14+PX_0_6*PX_3_30*PX_12_17*PX_1_9*PX_11_28*PX_6_18+PX_0_6*PX_3_30*PX_12_16*PX_1_9*PX_11_28+(-1)*PX_0_4*PX_3_27*PX_12_16*PX_1_9+(-1)*PX_0_5*PX_1_10*PX_4_12+PX_0_5*PX_3_30*PX_12_16*PX_1_10*PX_4_12+(-1)*PX_0_4*PX_3_31*PX_12_16*PX_1_9*PX_11_13*PX_5_14+PX_0_5*PX_3_30*PX_12_17*PX_1_10*PX_6_18*PX_4_12+(-1)*PX_0_3*PX_3_27*PX_1_9+(-1)*PX_0_4*PX_3_31*PX_12_17*PX_1_9*PX_11_28*PX_6_18+(-1)*PX_0_6*PX_1_10*PX_11_28*PX_4_12+PX_0_6*PX_3_30*PX_12_16*PX_1_10*PX_11_28*PX_4_12+(-1)*PX_0_4*PX_3_27*PX_12_17*PX_1_9*PX_6_18+PX_0_6*PX_3_30*PX_12_17*PX_1_10*PX_11_28*PX_6_18*PX_4_12+(-1)*PX_0_3*PX_3_27*PX_1_10*PX_4_12+(-1)*PX_0_4*PX_3_31*PX_12_17*PX_1_9*PX_11_13*PX_6_18*PX_5_14+(-1)*PX_0_6*PX_1_9*PX_11_13*PX_5_14+PX_0_6*PX_3_30*PX_12_16*PX_1_9*PX_11_13*PX_5_14+(-1)*PX_0_4*PX_3_31*PX_12_16*PX_1_10*PX_11_28*PX_4_12+PX_0_6*PX_3_30*PX_12_17*PX_1_9*PX_11_13*PX_6_18*PX_5_14+(-1)*PX_0_3*PX_3_31*PX_1_9*PX_11_28+(-1)*PX_0_4*PX_3_27*PX_12_16*PX_1_10*PX_4_12+(-1)*PX_0_5*PX_1_9+PX_0_5*PX_3_30*PX_12_16*PX_1_9+(-1)*PX_0_4*PX_3_31*PX_12_16*PX_1_10*PX_11_13*PX_4_12*PX_5_14+PX_0_5*PX_3_30*PX_12_17*PX_1_9*PX_6_18+(-1)*PX_0_3*PX_3_31*PX_1_9*PX_11_13*PX_5_14+(-1)*PX_0_4*PX_3_31*PX_12_17*PX_1_10*PX_11_28*PX_6_18*PX_4_12+(-1)*PX_0_6*PX_1_10*PX_11_13*PX_4_12*PX_5_14+PX_0_6*PX_3_30*PX_12_16*PX_1_10*PX_11_13*PX_4_12*PX_5_14+(-1)*PX_0_4*PX_3_27*PX_12_17*PX_1_10*PX_6_18*PX_4_12+(-1)*PX_0_4*PX_3_31*PX_12_16*PX_1_9*PX_11_28+(-1)*PX_0_3*PX_3_31*PX_1_10*PX_11_28*PX_4_12+(-1)*PX_0_6*PX_1_9*PX_11_28+(-1)*PX_0_3*PX_3_31*PX_1_10*PX_11_13*PX_4_12*PX_5_14+(-1)*PX_0_4*PX_3_31*PX_12_17*PX_1_10*PX_11_13*PX_6_18*PX_4_12*PX_5_14)/(PX_0_4*PX_3_26*PX_12_17*PX_6_18+PX_0_3*PX_3_26+PX_3_30*PX_12_17*PX_6_18+PX_0_4*PX_3_26*PX_12_16+PX_3_30*PX_12_16+(-1))); 
