Min_number = ( 0 ) ; Max_number = ( 5 )
In original model number_of_states = ( 17 ); number_of_transition = ( 34 ) 

Original Transition
0 --- 1  -> (x)
0 --- 4  -> ((-1)*x+(1))
1 --- 2  -> (p11)
1 --- 16  -> ((-1)*p11+(1))
2 --- 7  -> (p21)
2 --- 15  -> ((-1)*p21+(1))
3 --- 6  -> (p31)
3 --- 14  -> ((-1)*p31+(1))
4 --- 8  -> (p41)
4 --- 13  -> ((-1)*p41+(1))
5 --- 6  -> (p51)
5 --- 12  -> ((-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 --- 9  -> ((-1)*p62+(1))
11 --- 10  -> (p62)
12 --- 6  -> (p52)
12 --- 9  -> ((-1)*p52+(1))
13 --- 8  -> (p42)
13 --- 9  -> ((-1)*p42+(1))
14 --- 6  -> (p32)
14 --- 9  -> ((-1)*p32+(1))
15 --- 7  -> (p22)
15 --- 9  -> ((-1)*p22+(1))
16 --- 2  -> (p12)
16 --- 9  -> ((-1)*p12+(1))


In New Model number of states = ( 25 ); number of transition = ( 44 ) 

New transition
0 --- 1  -> (x)
0 --- 4  -> ((-1)*x+(1))
1 --- 2  -> (p11)
1 --- 16  -> ((-1)*p11+(1))
2 --- 7  -> (p21)
2 --- 15  -> ((-1)*p21+(1))
3 --- 6  -> (p31)
3 --- 14  -> ((-1)*p31+(1))
4 --- 8  -> (p41)
4 --- 13  -> ((-1)*p41+(1))
5 --- 6  -> (p51)
5 --- 12  -> ((-1)*p51+(1))
6 --- 11  -> ((-1)*p61+(1))
7 --- 1  -> (y2)
7 --- 5  -> (y1)
9 --- 9  -> (1)
10 --- 0  -> (1)
11 --- 9  -> ((-1)*p62+(1))
11 --- 10  -> (p62)
12 --- 6  -> (p52)
12 --- 9  -> ((-1)*p52+(1))
13 --- 8  -> (p42)
13 --- 9  -> ((-1)*p42+(1))
14 --- 6  -> (p32)
14 --- 9  -> ((-1)*p32+(1))
15 --- 7  -> (p22)
16 --- 2  -> (p12)
8 --- 8  -> ( ((-1)*z1-z2+(1)) ) * ( (p41) )
7 --- 17  -> ((-1)*y1-y2+(1))
17 --- 3  -> 1
16 --- 18  -> ((-1)*p12+(1))
18 --- 9  -> 1
15 --- 19  -> ((-1)*p22+(1))
19 --- 9  -> 1
6 --- 20  -> (p61)
20 --- 10  -> 1
8 --- 21  -> (z2)
21 --- 0  -> 1
8 --- 22  -> ( (z1) ) * ( (p51) )
22 --- 6  -> 1
8 --- 23  -> ( ((-1)*z1-z2+(1)) ) * ( ((-1)*p41+(1)) )
23 --- 13  -> 1
8 --- 24  -> ( (z1) ) * ( ((-1)*p51+(1)) )
24 --- 12  -> 1


State--Fragment Number--visited--startingPoint--endingPoint
   0          1          true        true          false
   1          1          true        false          false
   2          1          true        false          false
   3          5          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          6          true        true          true
   10          7          true        true          true
   11          2          true        false          true
   12          8          true        true          true
   13          9          true        true          true
   14          10          true        true          true
   15          1          true        false          false
   16          1          true        false          false
   17          1          true        false          true
   18          1          true        false          true
   19          1          true        false          true
   20          2          true        false          true
   21          4          true        false          true
   22          4          true        false          true
   23          4          true        false          true
   24          4          true        false          true

This is transition in Fragment (1) 
    [0, 1]  (x)
    [0, 4]  ((-1)*x+(1))
    [1, 2]  (p11)
    [1, 16]  ((-1)*p11+(1))
    [2, 7]  (p21)
    [2, 15]  ((-1)*p21+(1))
    [7, 1]  (y2)
    [7, 5]  (y1)
    [15, 7]  (p22)
    [16, 2]  (p12)
    [7, 17]  ((-1)*y1-y2+(1))
    [16, 18]  ((-1)*p12+(1))
    [15, 19]  ((-1)*p22+(1))
    [4, 4]  1
    [5, 5]  1
    [17, 17]  1
    [18, 18]  1
    [19, 19]  1

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

This is transition in Fragment (3) 

This is transition in Fragment (4) 
    [8, 8]  ( ((-1)*z1-z2+(1)) ) * ( (p41) )
    [8, 21]  (z2)
    [8, 22]  ( (z1) ) * ( (p51) )
    [8, 23]  ( ((-1)*z1-z2+(1)) ) * ( ((-1)*p41+(1)) )
    [8, 24]  ( (z1) ) * ( ((-1)*p51+(1)) )
    [21, 21]  1
    [22, 22]  1
    [23, 23]  1
    [24, 24]  1

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

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

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

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

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

This is transition for abstract model 
    [3, 6]  (p31)
    [3, 14]  ((-1)*p31+(1))
    [4, 8]  ( (p41) ) * ( prob_f1_s4 )
    [4, 13]  ( ((-1)*p41+(1)) ) * ( prob_f1_s4 )
    [5, 6]  ( (p51) ) * ( prob_f1_s5 )
    [5, 12]  ( ((-1)*p51+(1)) ) * ( prob_f1_s5 )
    [9, 9]  (1)
    [10, 0]  (1)
    [11, 9]  ( ((-1)*p62+(1)) ) * ( prob_f2_s11 )
    [11, 10]  ( (p62) ) * ( prob_f2_s11 )
    [12, 6]  (p52)
    [12, 9]  ((-1)*p52+(1))
    [13, 8]  (p42)
    [13, 9]  ((-1)*p42+(1))
    [14, 6]  (p32)
    [14, 9]  ((-1)*p32+(1))
    [17, 3]  ( 1 ) * ( prob_f1_s17 )
    [18, 9]  ( 1 ) * ( prob_f1_s18 )
    [19, 9]  ( 1 ) * ( prob_f1_s19 )
    [20, 10]  ( 1 ) * ( prob_f2_s20 )
    [21, 0]  ( 1 ) * ( prob_f4_s21 )
    [22, 6]  ( 1 ) * ( prob_f4_s22 )
    [23, 13]  ( 1 ) * ( prob_f4_s23 )
    [24, 12]  ( 1 ) * ( prob_f4_s24 )
****************************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_11 = (((-1)*y1-y2+(1))); 
P1_15_9 = ((p22)); 
P1_15_13 = (((-1)*p22+(1))); 
P1_16_10 = ((p12)); 
P1_16_12 = (((-1)*p12+(1))); 

prob_f1_s4  =( (P1_0_2)/(1)); 
prob_f1_s5  =( (-1 * ((P1_0_1) * (P1_1_4*P1_2_6*P1_16_10*P1_7_8*P1_15_9+P1_1_3*P1_2_6*P1_7_8*P1_15_9+P1_1_3*P1_2_5*P1_7_8+P1_1_4*P1_2_5*P1_16_10*P1_7_8)))/(P1_1_4*P1_2_6*P1_16_10*P1_7_7*P1_15_9+P1_1_3*P1_2_6*P1_7_7*P1_15_9+P1_1_4*P1_2_5*P1_16_10*P1_7_7+P1_1_3*P1_2_5*P1_7_7+(-1))); 
prob_f1_s17  =( (-1 * ((P1_0_1) * (P1_1_4*P1_2_6*P1_16_10*P1_7_11*P1_15_9+P1_1_3*P1_2_6*P1_7_11*P1_15_9+P1_1_3*P1_2_5*P1_7_11+P1_1_4*P1_2_5*P1_16_10*P1_7_11)))/(P1_1_4*P1_2_6*P1_16_10*P1_7_7*P1_15_9+P1_1_3*P1_2_6*P1_7_7*P1_15_9+P1_1_4*P1_2_5*P1_16_10*P1_7_7+P1_1_3*P1_2_5*P1_7_7+(-1))); 
prob_f1_s18  =( (-1 * ((P1_0_1) * (P1_1_4*P1_16_12)))/(P1_1_4*P1_2_6*P1_16_10*P1_7_7*P1_15_9+P1_1_3*P1_2_6*P1_7_7*P1_15_9+P1_1_4*P1_2_5*P1_16_10*P1_7_7+P1_1_3*P1_2_5*P1_7_7+(-1))); 
prob_f1_s19  =( (-1 * ((P1_0_1) * (P1_1_4*P1_2_6*P1_16_10*P1_15_13+P1_1_3*P1_2_6*P1_15_13)))/(P1_1_4*P1_2_6*P1_16_10*P1_7_7*P1_15_9+P1_1_3*P1_2_6*P1_7_7*P1_15_9+P1_1_4*P1_2_5*P1_16_10*P1_7_7+P1_1_3*P1_2_5*P1_7_7+(-1))); 
P2_6_1 = (((-1)*p61+(1))); 
P2_6_2 = ((p61)); 

prob_f2_s11  =( (P2_6_1)/(1)); 
prob_f2_s20  =( (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_s21  =( (-1 * (P4_8_2))/(P4_8_1+(-1))); 
prob_f4_s22  =( (-1 * (P4_8_3))/(P4_8_1+(-1))); 
prob_f4_s23  =( (-1 * (P4_8_4))/(P4_8_1+(-1))); 
prob_f4_s24  =( (-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_17 = (( 1 ) * ( prob_f1_s17 ));
PX_0_18 = ( ( 1 ) * ( prob_f1_s18 ) + ( 1 ) * ( prob_f1_s19 ) );
PX_1_9 = (( ((-1)*p62+(1)) ) * ( prob_f2_s11 )); 
PX_1_10 = ( ( (p62) ) * ( prob_f2_s11 ) + ( 1 ) * ( prob_f2_s20 ) );
PX_3_19 = (( 1 ) * ( prob_f4_s21 )); 
PX_3_20 = (( 1 ) * ( prob_f4_s22 ));
PX_3_21 = (( 1 ) * ( prob_f4_s23 ));
PX_3_22 = (( 1 ) * ( prob_f4_s24 ));
PX_4_1 = ((p31)); 
PX_4_2 = (((-1)*p31+(1)));
PX_5_7 = ((1)); 
PX_6_8 = ((1)); 
PX_7_11 = ((p52)); 
PX_7_12 = (((-1)*p52+(1)));
PX_8_13 = ((p42)); 
PX_8_14 = (((-1)*p42+(1)));
PX_9_15 = ((p32)); 
PX_9_16 = (((-1)*p32+(1)));

Output_abstract_model =( (PX_0_6*PX_3_21*PX_8_13*PX_1_10*PX_7_11+(-1)*PX_0_4*PX_3_20*PX_8_13*PX_1_10+(-1)*PX_0_6*PX_1_10*PX_7_11+PX_0_5*PX_3_21*PX_8_13*PX_1_10+(-1)*PX_0_3*PX_3_20*PX_1_10+(-1)*PX_0_5*PX_1_10+(-1)*PX_0_3*PX_3_22*PX_1_10*PX_7_11+(-1)*PX_0_4*PX_3_22*PX_8_13*PX_1_10*PX_7_11)/(PX_0_4*PX_3_19*PX_8_13+PX_0_3*PX_3_19+PX_3_21*PX_8_13+(-1))); 
