@@ -1185,7 +1185,7 @@ mod test {
11851185 }
11861186
11871187 #[ test]
1188- fn test_to_jit_felt252 ( ) {
1188+ fn test_to_ptr_felt252 ( ) {
11891189 let program = ProgramParser :: new ( )
11901190 . parse ( "type felt252 = felt252;" )
11911191 . unwrap ( ) ;
@@ -1243,7 +1243,7 @@ mod test {
12431243 }
12441244
12451245 #[ test]
1246- fn test_to_jit_uint8 ( ) {
1246+ fn test_to_ptr_uint8 ( ) {
12471247 let program = ProgramParser :: new ( ) . parse ( "type u8 = u8;" ) . unwrap ( ) ;
12481248
12491249 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1266,7 +1266,7 @@ mod test {
12661266 }
12671267
12681268 #[ test]
1269- fn test_to_jit_uint16 ( ) {
1269+ fn test_to_ptr_uint16 ( ) {
12701270 let program = ProgramParser :: new ( ) . parse ( "type u16 = u16;" ) . unwrap ( ) ;
12711271
12721272 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1289,7 +1289,7 @@ mod test {
12891289 }
12901290
12911291 #[ test]
1292- fn test_to_jit_uint32 ( ) {
1292+ fn test_to_ptr_uint32 ( ) {
12931293 let program = ProgramParser :: new ( ) . parse ( "type u32 = u32;" ) . unwrap ( ) ;
12941294
12951295 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1312,7 +1312,7 @@ mod test {
13121312 }
13131313
13141314 #[ test]
1315- fn test_to_jit_uint64 ( ) {
1315+ fn test_to_ptr_uint64 ( ) {
13161316 let program = ProgramParser :: new ( ) . parse ( "type u64 = u64;" ) . unwrap ( ) ;
13171317
13181318 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1335,7 +1335,7 @@ mod test {
13351335 }
13361336
13371337 #[ test]
1338- fn test_to_jit_uint128 ( ) {
1338+ fn test_to_ptr_uint128 ( ) {
13391339 let program = ProgramParser :: new ( ) . parse ( "type u128 = u128;" ) . unwrap ( ) ;
13401340
13411341 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1358,7 +1358,7 @@ mod test {
13581358 }
13591359
13601360 #[ test]
1361- fn test_to_jit_sint8 ( ) {
1361+ fn test_to_ptr_sint8 ( ) {
13621362 let program = ProgramParser :: new ( ) . parse ( "type i8 = i8;" ) . unwrap ( ) ;
13631363
13641364 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1381,7 +1381,7 @@ mod test {
13811381 }
13821382
13831383 #[ test]
1384- fn test_to_jit_sint16 ( ) {
1384+ fn test_to_ptr_sint16 ( ) {
13851385 let program = ProgramParser :: new ( ) . parse ( "type i16 = i16;" ) . unwrap ( ) ;
13861386
13871387 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1404,7 +1404,7 @@ mod test {
14041404 }
14051405
14061406 #[ test]
1407- fn test_to_jit_sint32 ( ) {
1407+ fn test_to_ptr_sint32 ( ) {
14081408 let program = ProgramParser :: new ( ) . parse ( "type i32 = i32;" ) . unwrap ( ) ;
14091409
14101410 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1427,7 +1427,7 @@ mod test {
14271427 }
14281428
14291429 #[ test]
1430- fn test_to_jit_sint64 ( ) {
1430+ fn test_to_ptr_sint64 ( ) {
14311431 let program = ProgramParser :: new ( ) . parse ( "type i64 = i64;" ) . unwrap ( ) ;
14321432
14331433 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1450,7 +1450,7 @@ mod test {
14501450 }
14511451
14521452 #[ test]
1453- fn test_to_jit_sint128 ( ) {
1453+ fn test_to_ptr_sint128 ( ) {
14541454 let program = ProgramParser :: new ( ) . parse ( "type i128 = i128;" ) . unwrap ( ) ;
14551455
14561456 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
@@ -1473,7 +1473,7 @@ mod test {
14731473 }
14741474
14751475 #[ test]
1476- fn test_to_jit_ec_point ( ) {
1476+ fn test_to_ptr_ec_point ( ) {
14771477 let program = ProgramParser :: new ( )
14781478 . parse ( "type EcPoint = EcPoint;" )
14791479 . unwrap ( ) ;
@@ -1498,7 +1498,7 @@ mod test {
14981498 }
14991499
15001500 #[ test]
1501- fn test_to_jit_ec_state ( ) {
1501+ fn test_to_ptr_ec_state ( ) {
15021502 let program = ProgramParser :: new ( )
15031503 . parse ( "type EcState = EcState;" )
15041504 . unwrap ( ) ;
@@ -1533,7 +1533,7 @@ mod test {
15331533 }
15341534
15351535 #[ test]
1536- fn test_to_jit_enum ( ) {
1536+ fn test_to_ptr_enum ( ) {
15371537 // Parse the program
15381538 let program = ProgramParser :: new ( )
15391539 . parse (
@@ -1545,7 +1545,7 @@ mod test {
15451545 // Create the registry for the program
15461546 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
15471547
1548- // Call to_jit to get the value of the enum
1548+ // Call to_ptr to get the value of the enum
15491549 let result = Value :: Enum {
15501550 tag : 0 ,
15511551 value : Box :: new ( Value :: Uint8 ( 10 ) ) ,
@@ -1558,12 +1558,12 @@ mod test {
15581558 |_| todo ! ( ) ,
15591559 ) ;
15601560
1561- // Assertion to verify that the value returned by to_jit is not NULL
1561+ // Assertion to verify that the value returned by to_ptr is not NULL
15621562 assert ! ( result. is_ok( ) ) ;
15631563 }
15641564
15651565 #[ test]
1566- fn test_to_jit_bounded_int_valid ( ) {
1566+ fn test_to_ptr_bounded_int_valid ( ) {
15671567 // Parse the program
15681568 let program = ProgramParser :: new ( )
15691569 . parse (
@@ -1600,7 +1600,7 @@ mod test {
16001600 }
16011601
16021602 #[ test]
1603- fn test_to_jit_bounded_int_lower_bound_greater_than_upper ( ) {
1603+ fn test_to_ptr_bounded_int_lower_bound_greater_than_upper ( ) {
16041604 // Parse the program
16051605 let program = ProgramParser :: new ( )
16061606 . parse (
@@ -1634,7 +1634,7 @@ mod test {
16341634 }
16351635
16361636 #[ test]
1637- fn test_to_jit_bounded_int_value_less_than_lower_bound ( ) {
1637+ fn test_to_ptr_bounded_int_value_less_than_lower_bound ( ) {
16381638 // Parse the program
16391639 let program = ProgramParser :: new ( )
16401640 . parse (
@@ -1668,7 +1668,7 @@ mod test {
16681668 }
16691669
16701670 #[ test]
1671- fn test_to_jit_bounded_int_value_greater_than_or_equal_to_upper_bound ( ) {
1671+ fn test_to_ptr_bounded_int_value_greater_than_or_equal_to_upper_bound ( ) {
16721672 // Parse the program
16731673 let program = ProgramParser :: new ( )
16741674 . parse (
@@ -1702,7 +1702,7 @@ mod test {
17021702 }
17031703
17041704 #[ test]
1705- fn test_to_jit_bounded_int_equal_bounds_and_value ( ) {
1705+ fn test_to_ptr_bounded_int_equal_bounds_and_value ( ) {
17061706 // Parse the program
17071707 let program = ProgramParser :: new ( )
17081708 . parse (
@@ -1736,7 +1736,7 @@ mod test {
17361736 }
17371737
17381738 #[ test]
1739- fn test_to_jit_enum_variant_out_of_range ( ) {
1739+ fn test_to_ptr_enum_variant_out_of_range ( ) {
17401740 // Parse the program
17411741 let program = ProgramParser :: new ( )
17421742 . parse (
@@ -1748,7 +1748,7 @@ mod test {
17481748 // Create the registry for the program
17491749 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
17501750
1751- // Call to_jit to get the value of the enum with tag value out of range
1751+ // Call to_ptr to get the value of the enum with tag index out of range
17521752 let result = Value :: Enum {
17531753 tag : 2 ,
17541754 value : Box :: new ( Value :: Uint8 ( 10 ) ) ,
@@ -1769,7 +1769,7 @@ mod test {
17691769 }
17701770
17711771 #[ test]
1772- fn test_to_jit_enum_no_variant ( ) {
1772+ fn test_to_ptr_enum_no_variant ( ) {
17731773 let program = ProgramParser :: new ( )
17741774 . parse (
17751775 "type u8 = u8;
@@ -1802,7 +1802,7 @@ mod test {
18021802 }
18031803
18041804 #[ test]
1805- fn test_to_jit_enum_type_error ( ) {
1805+ fn test_to_ptr_enum_type_error ( ) {
18061806 // Parse the program
18071807 let program = ProgramParser :: new ( )
18081808 . parse (
@@ -1814,7 +1814,7 @@ mod test {
18141814 // Creating a registry for the program.
18151815 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
18161816
1817- // Invoking to_jit method on a JitValue ::Enum to convert it to a JIT representation.
1817+ // Invoking to_ptr method on a Value ::Enum to convert it to a JIT representation.
18181818 // Generating an error by providing an enum value instead of the expected type.
18191819 let result = Value :: Enum {
18201820 tag : 0 ,
@@ -1849,7 +1849,7 @@ mod test {
18491849 }
18501850
18511851 #[ test]
1852- fn test_to_jit_struct_type_error ( ) {
1852+ fn test_to_ptr_struct_type_error ( ) {
18531853 // Parse the program
18541854 let program = ProgramParser :: new ( )
18551855 . parse (
@@ -1861,7 +1861,7 @@ mod test {
18611861 // Creating a registry for the program.
18621862 let registry = ProgramRegistry :: < CoreType , CoreLibfunc > :: new ( & program) . unwrap ( ) ;
18631863
1864- // Invoking to_jit method on a JitValue ::Struct to convert it to a JIT representation.
1864+ // Invoking to_ptr method on a Value ::Struct to convert it to a JIT representation.
18651865 // Generating an error by providing a struct value instead of the expected type.
18661866 let result = Value :: Struct {
18671867 fields : vec ! [ Value :: from( 2u32 ) ] ,
0 commit comments