| 304 | } |
| 305 | |
| 306 | uint64_t curr_val(struct TimerState* timers, uint32_t id) { |
| 307 | if(id >= MAX_TIMERS) { |
| 308 | perror("[TIMER ERROR] curr_val: Too high id passed\n"); |
| 309 | exit(-1); |
| 310 | } |
| 311 | return timers->timers[id].ticker_val; |
| 312 | } |
| 313 | |
| 314 | uint64_t get_global_ticker(uc_engine *uc) { |
| 315 | sync_timers(uc); |
nothing calls this directly
no outgoing calls
no test coverage detected