Min_number = ( 0 ) ; Max_number = ( 5 )
In original model number_of_states = ( 11 ); number_of_transition = ( 22 ) 

Original Transition
0 --- 1  -> (x)
0 --- 4  -> ((-1)*x+(1))
1 --- 2  -> (p11)
1 --- 9  -> ((-1)*p11+(1))
2 --- 7  -> (p21)
2 --- 9  -> ((-1)*p21+(1))
3 --- 6  -> (p31)
3 --- 9  -> ((-1)*p31+(1))
4 --- 8  -> (p41)
4 --- 9  -> ((-1)*p41+(1))
5 --- 6  -> (p51)
5 --- 9  -> ((-1)*p51+(1))
6 --- 9  -> ((-1)*p61+(1))
6 --- 10  -> (p61)
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)


In New Model number of states = ( 20 ); number of transition = ( 31 ) 

New transition
0 --- 1  -> (x)
1 --- 2  -> (p11)
2 --- 7  -> (p21)
4 --- 8  -> (p41)
4 --- 9  -> ((-1)*p41+(1))
5 --- 6  -> (p51)
6 --- 9  -> ((-1)*p61+(1))
6 --- 10  -> (p61)
7 --- 1  -> (y2)
8 --- 0  -> (z2)
8 --- 4  -> ((-1)*z1-z2+(1))
8 --- 5  -> (z1)
9 --- 9  -> (1)
10 --- 0  -> (1)
1 --- 11  -> ((-1)*p11+(1))
11 --- 9  -> 1
12 --- 3  -> ( ((-1)*y1-y2+(1)) ) / ( ( ((-1)*y1-y2+(1)) ) + ( (y1) ) )
12 --- 5  -> ( (y1) ) / ( ( ((-1)*y1-y2+(1)) ) + ( (y1) ) )
13 --- 9  -> 1
0 --- 14  -> ((-1)*x+(1))
14 --- 4  -> 1
7 --- 15  -> ( ((-1)*y1-y2+(1)) ) + ( (y1) )
15 --- 12  -> 1
2 --- 16  -> ((-1)*p21+(1))
16 --- 13  -> 1
3 --- 17  -> ((-1)*p31+(1))
17 --- 9  -> 1
5 --- 18  -> ((-1)*p51+(1))
18 --- 9  -> 1
3 --- 19  -> (p31)
19 --- 6  -> 1


State--Fragment Number--visited--startingPoint--endingPoint
   0          2          true        true          false
   1          2          true        false          false
   2          2          true        false          false
   3          5          true        true          false
   4          8          true        true          true
   5          9          true        true          true
   6          10          true        true          true
   7          2          true        false          false
   8          11          true        true          true
   9          12          true        true          true
   10          13          true        true          true
   11          2          true        false          true
   12          14          true        true          true
   13          6          true        true          true
   14          2          true        false          true
   15          2          true        false          true
   16          2          true        false          true
   17          5          true        false          true
   18          7          true        true          true
   19          5          true        false          true

This is transition in Fragment (1) 

This is transition in Fragment (2) 
    [0, 1]  (x)
    [1, 2]  (p11)
    [2, 7]  (p21)
    [7, 1]  (y2)
    [1, 11]  ((-1)*p11+(1))
    [0, 14]  ((-1)*x+(1))
    [7, 15]  ( ((-1)*y1-y2+(1)) ) + ( (y1) )
    [2, 16]  ((-1)*p21+(1))
    [11, 11]  1
    [14, 14]  1
    [15, 15]  1
    [16, 16]  1

This is transition in Fragment (3) 

This is transition in Fragment (4) 

This is transition in Fragment (5) 
    [3, 17]  ((-1)*p31+(1))
    [3, 19]  (p31)
    [17, 17]  1
    [19, 19]  1

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

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

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

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

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

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

This is transition for abstract model 
    [4, 8]  (p41)
    [4, 9]  ((-1)*p41+(1))
    [5, 6]  (p51)
    [6, 9]  ((-1)*p61+(1))
    [6, 10]  (p61)
    [8, 0]  (z2)
    [8, 4]  ((-1)*z1-z2+(1))
    [8, 5]  (z1)
    [9, 9]  (1)
    [10, 0]  (1)
    [11, 9]  ( 1 ) * ( prob_f2_s11 )
    [12, 3]  ( ((-1)*y1-y2+(1)) ) / ( ( ((-1)*y1-y2+(1)) ) + ( (y1) ) )
    [12, 5]  ( (y1) ) / ( ( ((-1)*y1-y2+(1)) ) + ( (y1) ) )
    [13, 9]  1
    [14, 4]  ( 1 ) * ( prob_f2_s14 )
    [15, 12]  ( 1 ) * ( prob_f2_s15 )
    [16, 13]  ( 1 ) * ( prob_f2_s16 )
    [17, 9]  ( 1 ) * ( prob_f5_s17 )
    [5, 18]  ((-1)*p51+(1))
    [18, 9]  1
    [19, 6]  ( 1 ) * ( prob_f5_s19 )
****************************The expressions start from here; Copying following expressions to MATLAB; Providing values for the parameters needed; Checking the result of <Output_abstract_model> ******
P2_0_1 = ((x)); 
P2_0_6 = (((-1)*x+(1))); 
P2_1_2 = ((p11)); 
P2_1_5 = (((-1)*p11+(1))); 
P2_2_3 = ((p21)); 
P2_2_8 = (((-1)*p21+(1))); 
P2_7_4 = ((y2)); 
P2_7_7 = (( ((-1)*y1-y2+(1)) ) + ( (y1) )); 

prob_f2_s11  =( (-1 * ((P2_0_1) * (P2_1_5)))/(P2_1_2*P2_2_3*P2_7_4+(-1))); 
prob_f2_s14  =( (P2_0_6)/(1)); 
prob_f2_s15  =( (-1 * ((P2_0_1) * (P2_1_2*P2_2_3*P2_7_7)))/(P2_1_2*P2_2_3*P2_7_4+(-1))); 
prob_f2_s16  =( (-1 * ((P2_0_1) * (P2_1_2*P2_2_8)))/(P2_1_2*P2_2_3*P2_7_4+(-1))); 
P2_0_1 = ((x)); 
P2_0_6 = (((-1)*x+(1))); 
P2_1_2 = ((p11)); 
P2_1_5 = (((-1)*p11+(1))); 
P2_2_3 = ((p21)); 
P2_2_8 = (((-1)*p21+(1))); 
P2_7_4 = ((y2)); 
P2_7_7 = (( ((-1)*y1-y2+(1)) ) + ( (y1) )); 

ab1 =( (-1 * ((P2_0_1) * (P2_1_2*t21+t11)))/(P2_1_2*P2_2_3*P2_7_4+(-1))); 
P5_3_1 = (((-1)*p31+(1))); 
P5_3_2 = ((p31)); 

prob_f5_s17  =( (P5_3_1)/(1)); 
prob_f5_s19  =( (P5_3_2)/(1)); 
P5_3_1 = (((-1)*p31+(1))); 
P5_3_2 = ((p31)); 

ab4 =( (t31)/(1)); 
PX_1_11 = (( 1 ) * ( prob_f2_s11 )); 
PX_1_15 = (( 1 ) * ( prob_f2_s14 ));
PX_1_16 = (( 1 ) * ( prob_f2_s15 ));
PX_1_17 = (( 1 ) * ( prob_f2_s16 ));
PX_4_18 = (( 1 ) * ( prob_f5_s17 )); 
PX_4_21 = (( 1 ) * ( prob_f5_s19 ));
PX_5_14 = (1); 
PX_6_20 = (1); 
PX_7_1 = ((p41)); 
PX_7_2 = (((-1)*p41+(1)));
PX_8_3 = ((p51)); 
PX_8_19 = (((-1)*p51+(1)));
PX_9_4 = (((-1)*p61+(1))); 
PX_9_5 = ((p61));
PX_10_6 = ((z2)); 
PX_10_7 = (((-1)*z1-z2+(1)));
PX_10_8 = ((z1));
PX_11_9 = ((1)); 
PX_12_10 = ((1)); 
PX_13_12 = (( ((-1)*y1-y2+(1)) ) / ( ( ((-1)*y1-y2+(1)) ) + ( (y1) ) )); 
PX_13_13 = (( (y1) ) / ( ( ((-1)*y1-y2+(1)) ) + ( (y1) ) ));

Output_abstract_model =( (PX_1_16*PX_7_1*PX_13_13*PX_10_7*PX_8_3*t61+(-1)*PX_1_16*PX_13_13*PX_8_3*t61+PX_1_16*PX_7_1*PX_13_12*PX_10_7*ab4+ab1*PX_7_1*PX_10_7+PX_1_16*PX_7_1*PX_13_13*PX_10_7*t51+PX_1_16*PX_7_1*PX_13_12*PX_10_7*PX_4_21*t61+(-1)*PX_1_16*PX_13_12*PX_4_21*t61+(-1)*PX_1_16*PX_13_13*t51+(-1)*ab1+(-1)*PX_1_15*PX_7_1*PX_10_8*PX_8_3*t61+(-1)*PX_1_15*PX_7_1*PX_10_8*t51+(-1)*PX_1_16*PX_13_12*ab4+(-1)*PX_1_15*t41)/(PX_1_15*PX_7_1*PX_10_6+PX_7_1*PX_10_7+(-1))); 
