[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] import Toybox.Lang; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] import Toybox.WatchUi; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Time,3,14,18]; ] import Toybox.Time; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Timer,4,14,19]; ] import Toybox.Timer; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [System,5,14,20]; ] import Toybox.System; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 7; @symbol_classdef = [Period,7,6,12]; ] class Period { [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 7; ] { } [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 7; ] static { } [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 8; @position = 15; @symbol_vardef = [name,8,15,19]; @symbol_type<0> = [String,8,28,34]; ] public var name as String or Null; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 9; @position = 15; @symbol_vardef = [type,9,15,19]; @symbol_type<0> = [enPeriod,9,28,36]; ] public var type as enPeriod or Null; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 10; @position = 15; @symbol_vardef = [duration,10,15,23]; @symbol_type<0> = [Number,10,28,34]; ] public var duration as Number or Null; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 11; @position = 15; @symbol_vardef = [remaining,11,15,24]; @symbol_type<0> = [Number,11,28,34]; ] public var remaining as Number or Null; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 12; @position = 15; @symbol_vardef = [elapsed,12,15,22]; @symbol_type<0> = [Number,12,28,34]; ] public var elapsed as Number or Null; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 14; @position = 16; @symbol_vardef = [_play,14,16,21]; @symbol_type<0> = [Boolean,14,28,35]; ] private var _play as Boolean = false; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 15; @position = 16; @symbol_vardef = [_dur,15,16,20]; @symbol_type<0> = [Number,15,28,34]; ] private var _dur as Number = 0; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 16; @position = 16; @symbol_vardef = [_acc,16,16,20]; @symbol_type<0> = [Number,16,28,34]; ] private var _acc as Number = 0; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 17; @position = 16; @symbol_vardef = [_start,17,16,22]; @symbol_type<0> = [Number,17,28,34]; ] private var _start as Number = 0; [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 19; @symbol_functiondef = [initialize,19,13,23]; @symbol_param<0> = [Name,19,24,28]; @symbol_param<0>_type<0> = [String,19,32,38]; @symbol_param<1> = [Type,19,40,44]; @symbol_param<1>_type<0> = [enPeriod,19,48,56]; @symbol_param<2> = [Duration,19,58,66]; @symbol_param<2>_type<0> = [Number,19,70,76]; ] function initialize(Name as String, Type as enPeriod, Duration as Number) as Void { _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_19_77_24_4_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 20 8 ] %tmp.1 = lgetv %Name; symbol [ Name %tmp.1 20 17 21 ]; symbol [ name ? 20 8 12 ]; putv self :name %tmp.1; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 21 8 ] %tmp.2 = lgetv %Type; symbol [ Type %tmp.2 21 20 24 ]; symbol [ type ? 21 8 12 ]; putv self :type %tmp.2; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 22 8 ] %tmp.3 = lgetv %Duration; symbol [ Duration %tmp.3 22 20 28 ]; symbol [ duration ? 22 8 16 ]; putv self :duration %tmp.3; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 23 8 ] %tmp.4 = lgetv %Duration; symbol [ Duration %tmp.4 23 20 28 ]; symbol [ remaining ? 23 8 17 ]; putv self :remaining %tmp.4; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_19_77_24_4_stop: } [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 26; @symbol_functiondef = [playPause,26,13,22]; ] function playPause() as Void { _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_26_32_35_4_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 27 8 ] symbol [ _play %tmp.2 27 17 22 ]; %tmp.2 = getv ? :_play; %tmp.3 = not %tmp.2; symbol [ _play ? 27 8 13 ]; putv self :_play %tmp.3; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 28 8 ] _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_8_34_8_if_stmt: symbol [ _play %tmp.5 28 12 17 ]; %tmp.5 = getv ? :_play; bf %tmp.5 @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_8_34_8_if_else_false; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_8_34_8_if_true: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_18_31_8_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 29 12 ] symbol [ $ %tmp.6 29 12 13 ]; %tmp.6 = getm $; symbol [ gMatch %tmp.7 29 14 20 ]; %tmp.7 = getv %tmp.6 :gMatch; symbol [ INGAME %tmp.9 29 29 35 ]; %tmp.9 = getv ? :INGAME; symbol [ state ? 29 21 26 ]; putv %tmp.7 :state %tmp.9; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 30 12 ] symbol [ System %tmp.10 30 21 27 ]; %tmp.10 = getm $.Toybox.System; symbol [ getTimer %tmp.11 30 28 36 ]; %tmp.11 = getv function %tmp.10 :getTimer; %tmp.12 = invoke %tmp.10 %tmp.11(); symbol [ _start ? 30 12 18 ]; putv self :_start %tmp.12; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_18_31_8_stop: goto @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_8_34_8_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_8_34_8_if_else_false: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_32_12_34_8_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 33 12 ] symbol [ _acc %tmp.13 33 12 16 ]; %tmp.13 = getv self :_acc; symbol [ System %tmp.14 33 20 26 ]; %tmp.14 = getm $.Toybox.System; symbol [ getTimer %tmp.15 33 27 35 ]; %tmp.15 = getv function %tmp.14 :getTimer; %tmp.16 = invoke %tmp.14 %tmp.15(); symbol [ _start %tmp.18 33 40 46 ]; %tmp.18 = getv ? :_start; %tmp.19 = sub %tmp.16 %tmp.18; %tmp.20 = add %tmp.13 %tmp.19; symbol [ _acc ? 33 12 16 ]; putv self :_acc dup %tmp.20; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_32_12_34_8_stop: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_28_8_34_8_if_end: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_26_32_35_4_stop: } [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 37; @symbol_functiondef = [update,37,13,19]; ] function update() as Void { _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_37_29_52_4_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 38 8 ] _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_8_51_8_if_stmt: symbol [ _play %tmp.2 38 12 17 ]; %tmp.2 = getv ? :_play; bf %tmp.2 @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_8_51_8_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_8_51_8_if_true: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_18_51_8_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 39 12 ] symbol [ System %tmp.3 39 21 27 ]; %tmp.3 = getm $.Toybox.System; symbol [ getTimer %tmp.4 39 28 36 ]; %tmp.4 = getv function %tmp.3 :getTimer; %tmp.5 = invoke %tmp.3 %tmp.4(); symbol [ _start %tmp.7 39 41 47 ]; %tmp.7 = getv ? :_start; %tmp.8 = sub %tmp.5 %tmp.7; symbol [ _acc %tmp.10 39 50 54 ]; %tmp.10 = getv ? :_acc; %tmp.11 = add %tmp.8 %tmp.10; symbol [ _dur ? 39 12 16 ]; putv self :_dur %tmp.11; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 40 12 ] symbol [ _dur %tmp.13 40 22 26 ]; %tmp.13 = getv ? :_dur; %tmp.14 = 1000; %tmp.15 = div %tmp.13 %tmp.14; symbol [ elapsed ? 40 12 19 ]; putv self :elapsed %tmp.15; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 41 12 ] symbol [ duration %tmp.17 41 24 32 ]; %tmp.17 = getv ? :duration; symbol [ elapsed %tmp.19 41 35 42 ]; %tmp.19 = getv ? :elapsed; %tmp.20 = sub %tmp.17 %tmp.19; symbol [ remaining ? 41 12 21 ]; putv self :remaining %tmp.20; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 43 12 ] _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_12_45_12_if_stmt: symbol [ type %tmp.22 43 16 20 ]; %tmp.22 = getv ? :type; symbol [ PLAY %tmp.24 43 24 28 ]; %tmp.24 = getv ? :PLAY; %tmp.25 = eq %tmp.22 %tmp.24; bf %tmp.25 @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_12_45_12_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_12_45_12_if_true: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_29_45_12_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 44 16 ] symbol [ $ %tmp.26 44 16 17 ]; %tmp.26 = getm $; symbol [ gMatch %tmp.27 44 18 24 ]; %tmp.27 = getv %tmp.26 :gMatch; symbol [ $ %tmp.28 44 35 36 ]; %tmp.28 = getm $; symbol [ gMatch %tmp.29 44 37 43 ]; %tmp.29 = getv %tmp.28 :gMatch; symbol [ completed %tmp.30 44 44 53 ]; %tmp.30 = getv %tmp.29 :completed; symbol [ elapsed %tmp.32 44 56 63 ]; %tmp.32 = getv ? :elapsed; %tmp.33 = add %tmp.30 %tmp.32; symbol [ elapsed ? 44 25 32 ]; putv %tmp.27 :elapsed %tmp.33; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_29_45_12_stop: goto @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_12_45_12_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_43_12_45_12_if_end: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 47 12 ] _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_12_50_12_if_stmt: symbol [ remaining %tmp.35 47 16 25 ]; %tmp.35 = getv ? :remaining; %tmp.36 = 0; %tmp.37 = lte %tmp.35 %tmp.36; bf %tmp.37 @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_12_50_12_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_12_50_12_if_true: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_32_50_12_start: [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 48 16 ] %tmp.38 = false; symbol [ _play ? 48 16 21 ]; putv self :_play %tmp.38; [ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc" 49 16 ] symbol [ $ %tmp.39 49 16 17 ]; %tmp.39 = getm $; symbol [ gMatch %tmp.40 49 18 24 ]; %tmp.40 = getv %tmp.39 :gMatch; symbol [ method %tmp.41 49 25 31 ]; %tmp.41 = getv function %tmp.40 :method; %tmp.43 = const :nextPeriod; symbol [ nextPeriod %tmp.43 49 33 43 const ]; %tmp.44 = invoke %tmp.40 %tmp.41(%tmp.43); symbol [ invoke %tmp.45 49 45 51 ]; %tmp.45 = getv function %tmp.44 :invoke; invoke %tmp.44 %tmp.45(); _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_32_50_12_stop: goto @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_12_50_12_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_47_12_50_12_if_end: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_18_51_8_stop: goto @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_8_51_8_if_end; _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_38_8_51_8_if_end: _home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchPeriod_mc_37_29_52_4_stop: } } [ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchPeriod.mc"; @line = 1; ] { }