@@ -532,59 +532,6 @@ public static int TestOverlappingCopy1(int[] a, int i)
532532            return  3 ; 
533533        } 
534534
535-         [ TestSvm ( 94 ) ] 
536-         public  static int  TestSolvingCopyOverwrittenValueUnreachable1 ( string [ ]  a ,  string [ ]  b ) 
537-         { 
538-             if  ( a  !=  null  &&  b  !=  null  &&  a . Length  >  b . Length ) 
539-             { 
540-                 a [ 0 ]  =  "42" ; 
541-                 b [ 0 ]  =  "4" ; 
542-                 Array . Copy ( a ,  0 ,  b ,  0 ,  b . Length ) ; 
543-                 if  ( b [ 0 ]  !=  "42" )  // unreachable 
544-                 { 
545-                     return  - 1 ; 
546-                 } 
547- 
548-                 return  0 ; 
549-             } 
550- 
551-             return  3 ; 
552-         } 
553- 
554-         [ TestSvm ( 95 ) ] 
555-         public  static int  TestSolvingCopyOverwrittenValueUnreachable2 ( string [ ]  a ,  int  i ,  string [ ]  b ) 
556-         { 
557-             if  ( a  !=  null  &&  b  !=  null  &&  a . Length  >  b . Length ) 
558-             { 
559-                 b [ i ]  =  "500" ; 
560-                 Array . Copy ( a ,  0 ,  b ,  0 ,  b . Length ) ; 
561-                 if  ( b . Length  >  0  &&  a [ i ]  !=  "500"  &&  b [ i ]  ==  "500" )  // unreachable 
562-                 { 
563-                     return  - 1 ; 
564-                 } 
565- 
566-                 return  0 ; 
567-             } 
568- 
569-             return  3 ; 
570-         } 
571- 
572-         [ TestSvm ( 94 ) ] 
573-         public  static int  TestSolvingCopy8 ( object [ ]  a ,  object [ ]  b ,  int  i ) 
574-         { 
575-             if  ( a . Length  >  b . Length  &&  0  <=  i  &&  i  <  b . Length ) 
576-             { 
577-                 Array . Fill ( a ,  "abc" ) ; 
578-                 Array . Copy ( a ,  b ,  b . Length ) ; 
579- 
580-                 if  ( b [ i ]  ==  b [ i  +  1 ] ) 
581-                     return  42 ; 
582-                 return  10 ; 
583-             } 
584- 
585-             return  3 ; 
586-         } 
587- 
588535        [ TestSvm ( 97 ) ] 
589536        public  static int  TestSolvingCopy9 ( object [ ]  a ,  int  i ,  object [ ]  b ) 
590537        { 
@@ -785,20 +732,6 @@ public class MyClass
785732            public  int  x ; 
786733        } 
787734
788-         [ TestSvm ( 88 ) ] 
789-         public  static int  LastRecordReachability ( string [ ]  a ,  string [ ]  b ,  int  i ,  string  s ) 
790-         { 
791-             a [ i ]  =  "1" ; 
792-             b [ 1 ]  =  s ; 
793-             if  ( b [ 1 ]  !=  s ) 
794-             { 
795-                 // unreachable 
796-                 return  - 1 ; 
797-             } 
798- 
799-             return  0 ; 
800-         } 
801- 
802735        [ TestSvm ( 90 ) ] 
803736        public  static int  ArrayElementsAreReferences ( MyClass [ ]  a ,  int  i ,  int  j ) 
804737        { 
@@ -924,44 +857,6 @@ public static int ConcreteDictionaryTest(int v)
924857            return  0 ; 
925858        } 
926859
927-         [ TestSvm ( 100 ) ] 
928-         public  static int  ConcreteDictionaryTest1 ( int  a ,  string  b ) 
929-         { 
930-             var  d  =  new  Dictionary < int ,  List < string > > ( ) ; 
931-             d . Add ( 1 ,  new  List < string >  {  "2" ,  "3"  } ) ; 
932-             d . Add ( 4 ,  new  List < string >  {  "5" ,  "6"  } ) ; 
933-             if  ( d . TryGetValue ( a ,  out  var  res ) ) 
934-             { 
935-                 if  ( res . Contains ( b ) ) 
936-                     return  1 ; 
937-                 return  0 ; 
938-             } 
939- 
940-             return  2 ; 
941-         } 
942- 
943-         public  class  Person 
944-         { 
945-             public  string  FirstName  {  get ;  set ;  } 
946-             public  string  LastName  {  get ;  init ;  } 
947-         } ;
948-         
949-         [ TestSvm ( 95 ) ] 
950-         public  static int  IteKeyWrite ( int  i ) 
951-         { 
952-             var  a  =  new  Person [ 4 ] ; 
953-             a [ 0 ]  =  new  Person ( )  { FirstName  =  "asd" ,  LastName  =  "qwe" } ; 
954-             a [ 3 ]  =  new  Person ( )  { FirstName  =  "zxc" ,  LastName  =  "vbn" } ; 
955-             var  p  =  a [ i ] ; 
956-             p . FirstName  =  "323" ; 
957-             if  ( i  ==  0  &&  a [ 3 ] . FirstName  ==  "323" ) 
958-             { 
959-                 return  - 1 ; 
960-             } 
961- 
962-             return  1 ; 
963-         } 
964- 
965860        [ TestSvm ( 100 ) ] 
966861        public  static int  ListContains ( int  a ,  int  b ) 
967862        { 
@@ -1413,33 +1308,6 @@ public static int ConcurrentDict(int a, int b)
14131308                return  - 1 ; 
14141309            return  0 ; 
14151310        } 
1416-         [ TestSvm ( 95 ) ] 
1417-         public  static int  TestSplittingWithCopy ( int  srcI ,  int  dstI ,  int  len ) 
1418-         { 
1419-             string [ ]  arr  =  { "a" ,  "b" ,  "c" ,  "d" ,  "e" } ; 
1420-             var  a  =  new  string [ 5 ] ; 
1421-             Array . Copy ( arr ,  srcI ,  a ,  dstI ,  len ) ; 
1422-             if  ( a [ 2 ] . Length  ==  3 ) 
1423-                 return  - 1 ; 
1424-             return  1 ; 
1425-         } 
1426-         [ TestSvm ( 91 ) ] 
1427-         public  static int  TestSplittingWithCopyRegionsImportance ( string [ ]  a ,  int  i ) 
1428-         { 
1429-             a [ i ]  =  "a" ; 
1430-             a [ 1 ]  =  "b" ; 
1431-             var  b  =  new  string [ a . Length ] ; 
1432-             Array . Copy ( a ,  0 ,  b ,  0 ,  a . Length ) ; 
1433-             if  ( i  ==  1  &&  b [ i ]  ==  "a" )  // unreachable 
1434-                 // record b[i], "a" exists only if i != 1 
1435-                 return  - 1 ; 
1436-             if  ( i  !=  1  &&  b [ i ]  !=  "a" )  // unreachable 
1437-             { 
1438-                 return  - 2 ; 
1439-             } 
1440- 
1441-             return  1 ; 
1442-         } 
14431311
14441312        [ TestSvm ( 83 ) ] 
14451313        public  static int  VolatileWrite ( ) 
0 commit comments