{"name": "clock_time", "code": "__time_t clock_time ( ) { struct timeval @@tv@@ ; gettimeofday ( & @@tv@@ , Number L ) ; return Number * @@tv@@ . tv_sec + @@tv@@ . tv_usec / Number ; }", "source": [{"n": "tv", "t": {"T": 6, "n": "struct timeval", "l": [{"T": 4, "n": "tv_sec", "t": "__time_t", "s": 8}, {"T": 4, "n": "tv_usec", "t": "__suseconds_t", "s": 8}]}, "location": "s16"}]}
{"name": "update_time", "code": "__int64 update_time ( ) { __int64 @@result@@ ; __int64 @@v1@@ ; _QWORD * @@i@@ ; unsigned __int64 @@v3@@ ; @@result@@ = timerlist ; if ( timerlist ) { @@v1@@ = clock_time ( ) ; @@v3@@ = * ( _QWORD * ) timerlist + * ( _QWORD * ) ( timerlist + Number ) - @@v1@@ ; for ( @@i@@ = * ( _QWORD * * ) ( timerlist + Number ) ; @@i@@ ; @@i@@ = ( _QWORD * ) @@i@@ [ Number ] ) { if ( @@v3@@ > * @@i@@ + @@i@@ [ Number ] - @@v1@@ ) @@v3@@ = * @@i@@ + @@i@@ [ Number ] - @@v1@@ ; } @@result@@ = @@v1@@ + @@v3@@ ; next_expiration = @@v1@@ + @@v3@@ ; } else { next_expiration = Number L ; } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "uip_ds6_nbr_add", "code": "__int64 __fastcall uip_ds6_nbr_add ( _QWORD * @@a1@@ , _QWORD * @@a2@@ , unsigned __int8 @@a3@@ , unsigned __int8 @@a4@@ ) { __int64 v4 ; __int64 v5 ; __int64 @@v6@@ ; __int64 @@result@@ ; int @@v10@@ ; unsigned __int64 @@v11@@ ; __int64 * @@v12@@ ; __int64 * @@i@@ ; @@v10@@ = ( unsigned __int8 ) uip_ds6_list_loop ( uip_ds6_nbr_cache , Number , Number , @@a1@@ , Number , & locnbr ) ; if ( @@v10@@ == Number ) { * ( _BYTE * ) locnbr = Number ; v4 = locnbr ; v5 = @@a1@@ [ Number ] ; * ( _QWORD * ) ( locnbr + Number ) = * @@a1@@ ; * ( _QWORD * ) ( v4 + Number ) = v5 ; if ( @@a2@@ ) * ( _QWORD * ) ( locnbr + Number ) = * @@a2@@ ; else memset ( ( void * ) ( locnbr + Number ) , Number , Number ) ; * ( _BYTE * ) ( locnbr + Number ) = @@a3@@ ; * ( _BYTE * ) ( locnbr + Number ) = @@a4@@ ; uip_packetqueue_new ( ( _QWORD * ) ( locnbr + Number ) ) ; stimer_set ( locnbr + Number , Number L ) ; stimer_set ( locnbr + Number , Number L ) ; * ( _BYTE * ) ( locnbr + Number ) = Number ; rpl_ipv6_neighbor_callback ( locnbr ) ; @@v6@@ = locnbr ; * ( _QWORD * ) ( @@v6@@ + Number ) = clock_time ( ) ; @@result@@ = locnbr ; } else { if ( @@v10@@ != Number ) goto LABEL_16 ; @@v12@@ = Number L ; @@v11@@ = clock_time ( ) ; for ( @@i@@ = ( __int64 * ) uip_ds6_nbr_cache ; @@i@@ < & contiki_argv ; @@i@@ += Number ) { if ( * ( _BYTE * ) @@i@@ && ! uip_ds6_defrt_lookup ( ( char * ) @@i@@ + Number ) && @@v11@@ > @@i@@ [ Number ] ) { @@v12@@ = @@i@@ ; @@v11@@ = @@i@@ [ Number ] ; } } if ( @@v12@@ ) { uip_ds6_nbr_rm ( @@v12@@ ) ; @@result@@ = uip_ds6_nbr_add ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; } else { LABEL_16 : @@result@@ = Number L ; } } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r24"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 3, "t": "__int64"}, "location": "s24"}, {"n": "v12", "t": {"T": 3, "t": "__int64"}, "location": "s32"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s40"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s44"}]} {"name": "uip_ds6_nbr_lookup", "code": "__int64 __fastcall uip_ds6_nbr_lookup ( const void * @@a1@@ ) { __int64 @@v1@@ ; if ( ( unsigned __int8 ) uip_ds6_list_loop ( uip_ds6_nbr_cache , Number , Number , @@a1@@ , Number , & locnbr ) ) return Number L ; @@v1@@ = locnbr ; * ( _QWORD * ) ( @@v1@@ + Number ) = clock_time ( ) ; return locnbr ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 3, "t": "const void"}, "location": "r56"}]} {"name": "timer_set", "code": "__time_t __fastcall timer_set ( __time_t * @@a1@@ , __time_t @@a2@@ ) { __time_t @@result@@ ; @@a1@@ [ Number ] = @@a2@@ ; @@result@@ = clock_time ( ) ; * @@a1@@ = @@result@@ ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "__time_t"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__time_t", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__time_t", "s": 8}, "location": "r8"}]} {"name": "timer_restart", "code": "__time_t __fastcall timer_restart ( __time_t * @@a1@@ ) { __time_t @@result@@ ; @@result@@ = clock_time ( ) ; * @@a1@@ = @@result@@ ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "__time_t"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__time_t", "s": 8}, "location": "r8"}]} {"name": "timer_expired", "code": "_BOOL8 __fastcall timer_expired ( _QWORD * @@a1@@ ) { return ( unsigned __int64 ) ( clock_time ( ) - * @@a1@@ + Number ) > @@a1@@ [ Number ] ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}]} {"name": "timer_remaining", "code": "__time_t __fastcall timer_remaining ( _QWORD * @@a1@@ ) { __int64 @@v1@@ ; @@v1@@ = * @@a1@@ + @@a1@@ [ Number ] ; return @@v1@@ - clock_time ( ) ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}]}