@@ -68,13 +68,13 @@ pub fn bump_18() -> i32 {
6868}
6969#[ derive( Clone , Record , ByteRepr , VaArg , FnPtrArg ) ]
7070#[ byte_size( 4 ) ]
71- pub struct p4_unnamed_namespaces_in_two_files_Record_19 {
71+ pub struct Record_19 {
7272 #[ offset( 0 ) ]
7373 pub id : i32 ,
7474}
75- impl Default for p4_unnamed_namespaces_in_two_files_Record_19 {
75+ impl Default for Record_19 {
7676 fn default ( ) -> Self {
77- { p4_unnamed_namespaces_in_two_files_Record_19 { id : 100 } }
77+ { Record_19 { id : 100 } }
7878 }
7979}
8080thread_local ! (
@@ -84,8 +84,7 @@ pub fn test_21() {
8484 assert ! ( ( ( { bump_18( ) } ) == 2 ) ) ;
8585 assert ! ( ( ( { bump_in_b_22( ) } ) == 51 ) ) ;
8686 assert ! ( ( counter_17. with( |rc| * rc. borrow( ) ) == 2 ) ) ;
87- let mut record: p4_unnamed_namespaces_in_two_files_Record_19 =
88- <p4_unnamed_namespaces_in_two_files_Record_19 >:: default ( ) ;
87+ let mut record: Record_19 = <Record_19 >:: default ( ) ;
8988 assert ! ( ( record. id == 100 ) ) ;
9089 assert ! ( ( ( { record_id_in_b_23( ) } ) == 200 ) ) ;
9190 assert ! ( ( depth_20. with( |rc| * rc. borrow( ) ) == 3 ) ) ;
@@ -105,19 +104,13 @@ pub fn test_29() {
105104}
106105#[ derive( Clone , Record , ByteRepr , VaArg , FnPtrArg , Default ) ]
107106#[ byte_size( 1 ) ]
108- pub struct p5_members_of_classes_in_unnamed_namespaces_Tally_31 { }
107+ pub struct Tally_31 { }
109108thread_local ! (
110109 pub static total_32: Value <i32 > = Rc :: new( RefCell :: new( 10 ) ) ;
111110) ;
112111pub fn test_33 ( ) {
113- let tally: Value < p5_members_of_classes_in_unnamed_namespaces_Tally_31 > = Rc :: new ( RefCell :: new (
114- <p5_members_of_classes_in_unnamed_namespaces_Tally_31 >:: default ( ) ,
115- ) ) ;
116- assert ! (
117- ( ( {
118- p5_members_of_classes_in_unnamed_namespaces_Tally_31Impl:: add( & tally. as_pointer( ) , 1 )
119- } ) == 11 )
120- ) ;
112+ let tally: Value < Tally_31 > = Rc :: new ( RefCell :: new ( <Tally_31 >:: default ( ) ) ) ;
113+ assert ! ( ( ( { Tally_31Impl :: add( & tally. as_pointer( ) , 1 , ) } ) == 11 ) ) ;
121114 assert ! ( ( ( { add_in_b_34( 1 , ) } ) == 102 ) ) ;
122115 assert ! ( ( total_32. with( |rc| * rc. borrow( ) ) == 11 ) ) ;
123116}
@@ -311,16 +304,16 @@ pub fn bump_64() -> i32 {
311304}
312305#[ derive( Clone , Record , ByteRepr , VaArg , FnPtrArg ) ]
313306#[ byte_size( 16 ) ]
314- pub struct p4_unnamed_namespaces_in_two_files_Record_65 {
307+ pub struct Record_65 {
315308 #[ offset( 0 ) ]
316309 pub id : i64 ,
317310 #[ offset( 8 ) ]
318311 pub extra : i32 ,
319312}
320- impl Default for p4_unnamed_namespaces_in_two_files_Record_65 {
313+ impl Default for Record_65 {
321314 fn default ( ) -> Self {
322315 {
323- p4_unnamed_namespaces_in_two_files_Record_65 {
316+ Record_65 {
324317 id : 200_i64 ,
325318 extra : 1 ,
326319 }
@@ -334,8 +327,7 @@ pub fn bump_in_b_22() -> i32 {
334327 return ( { bump_64 ( ) } ) ;
335328}
336329pub fn record_id_in_b_23 ( ) -> i32 {
337- let mut record: p4_unnamed_namespaces_in_two_files_Record_65 =
338- <p4_unnamed_namespaces_in_two_files_Record_65 >:: default ( ) ;
330+ let mut record: Record_65 = <Record_65 >:: default ( ) ;
339331 return ( record. id as i32 ) ;
340332}
341333pub fn depth_in_b_24 ( ) -> i32 {
@@ -356,17 +348,13 @@ pub fn raise_30(mut by: i32) -> i32 {
356348}
357349#[ derive( Clone , Record , ByteRepr , VaArg , FnPtrArg , Default ) ]
358350#[ byte_size( 1 ) ]
359- pub struct p5_members_of_classes_in_unnamed_namespaces_Tally_67 { }
351+ pub struct Tally_67 { }
360352thread_local ! (
361353 pub static total_68: Value <i32 > = Rc :: new( RefCell :: new( 100 ) ) ;
362354) ;
363355pub fn add_in_b_34 ( mut amount : i32 ) -> i32 {
364- let tally: Value < p5_members_of_classes_in_unnamed_namespaces_Tally_67 > = Rc :: new ( RefCell :: new (
365- <p5_members_of_classes_in_unnamed_namespaces_Tally_67 >:: default ( ) ,
366- ) ) ;
367- return ( {
368- p5_members_of_classes_in_unnamed_namespaces_Tally_67Impl:: add ( & tally. as_pointer ( ) , amount)
369- } ) ;
356+ let tally: Value < Tally_67 > = Rc :: new ( RefCell :: new ( <Tally_67 >:: default ( ) ) ) ;
357+ return ( { Tally_67Impl :: add ( & tally. as_pointer ( ) , amount) } ) ;
370358}
371359thread_local ! (
372360 pub static balance_35: Value <i32 > = Rc :: new( RefCell :: new( 50 ) ) ;
@@ -426,23 +414,19 @@ pub fn table_sum_in_b_59() -> i32 {
426414 table_57. with ( |rc| rc. borrow ( ) [ __idx0] )
427415 } ) ) ;
428416}
429- pub trait p5_members_of_classes_in_unnamed_namespaces_Tally_31Impl {
417+ pub trait Tally_31Impl {
430418 fn add ( & self , amount : i32 ) -> i32 ;
431419}
432- impl p5_members_of_classes_in_unnamed_namespaces_Tally_31Impl
433- for Ptr < p5_members_of_classes_in_unnamed_namespaces_Tally_31 >
434- {
420+ impl Tally_31Impl for Ptr < Tally_31 > {
435421 fn add ( & self , mut amount : i32 ) -> i32 {
436422 total_32. with ( |rc| * rc. borrow_mut ( ) += amount) ;
437423 return total_32. with ( |rc| * rc. borrow ( ) ) ;
438424 }
439425}
440- pub trait p5_members_of_classes_in_unnamed_namespaces_Tally_67Impl {
426+ pub trait Tally_67Impl {
441427 fn add ( & self , amount : i32 ) -> i32 ;
442428}
443- impl p5_members_of_classes_in_unnamed_namespaces_Tally_67Impl
444- for Ptr < p5_members_of_classes_in_unnamed_namespaces_Tally_67 >
445- {
429+ impl Tally_67Impl for Ptr < Tally_67 > {
446430 fn add ( & self , mut amount : i32 ) -> i32 {
447431 total_68. with ( |rc| * rc. borrow_mut ( ) += ( amount * 2 ) ) ;
448432 return total_68. with ( |rc| * rc. borrow ( ) ) ;
0 commit comments