// ĠSKIP _ TXT Ċ Ċ // ĠFILE : Ġfunctions . kt Ċ Ċ package Ġfunctions Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 1 Ċ fun Ġf 1 ( x 1 : ĠByte ) Ġ= Ġx 1 Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 2 Ċ fun Ġf 2 ( x 1 : ĠShort ) Ġ= Ġx 1 Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 3 , Ġ 4 Ċ fun Ġf 3 ( x 1 : ĠInt ) Ġ= Ġx 1 Ċ Ċ // ĠFILE : Ġmain . kt Ċ Ċ import Ġfunctions .* Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 1 Ċ fun Ġcase _ 1 () Ġ{ ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( 1 2 8 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( - 1 2 9 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( 3 2 7 6 7 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( - 3 2 7 6 8 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( 2 1 4 7 4 8 3 6 4 7 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( - 2 1 4 7 4 8 3 6 4 8 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 1 <! >( - 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 ) ĊĠĠĠ Ġf 1 ( <! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) ĊĠĠĠ Ġf 1 ( <! OVERLOAD _ RESOL UTION _ AM BIG U ITY ! >- <! >< ! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) Ċ } Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 2 Ċ fun Ġcase _ 2 () Ġ{ ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 2 <! >( 3 2 7 6 8 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 2 <! >( - 3 2 7 6 9 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 2 <! >( 2 1 4 7 4 8 3 6 4 7 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 2 <! >( - 2 1 4 7 4 8 3 6 4 8 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 2 <! >( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 2 <! >( - 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 ) ĊĠĠĠ Ġf 2 ( <! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) ĊĠĠĠ Ġf 2 ( <! OVERLOAD _ RESOL UTION _ AM BIG U ITY ! >- <! >< ! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) Ċ } Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 3 Ċ fun Ġcase _ 3 () Ġ{ ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 3 <! >( 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 ) ĊĠĠĠ Ġ<! IN AP PL IC ABLE _ C AND ID ATE !> f 3 <! >( - 9 2 2 3 3 7 2 0 3 6 8 5 4 7 7 5 8 0 7 ) ĊĠĠĠ Ġf 3 ( <! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) ĊĠĠĠ Ġf 3 ( <! OVERLOAD _ RESOL UTION _ AM BIG U ITY ! >- <! >< ! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) Ċ } Ċ Ċ // ĠTEST CASE ĠNUMBER : Ġ 4 Ċ fun Ġcase _ 4 () Ġ{ ĊĠĠĠ Ġf 3 ( <! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) ĊĠĠĠ Ġf 3 ( <! OVERLOAD _ RESOL UTION _ AM BIG U ITY ! >- <! >< ! IL LEG AL _ CONST _ EXPRESSION !> 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <! >) Ċ } Ċ