Created
August 10, 2018 20:10
-
-
Save dcci/6c881156fce549e5f67a781d359d9f0f to your computer and use it in GitHub Desktop.
scup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func f1() -> Int32 { | |
let x : Int32 = Int32.max | |
let y : Int32 = 42 | |
return x + y | |
} | |
func f2(_ b : Bool) -> Int32 { | |
let verylarge : Int32 = Int32.max | |
let verylargetwo : Int32 = Int32.max | |
let verysmall : Int32 = 42 | |
let patatino : Int32 | |
if (b) { | |
patatino = verylarge | |
} else { | |
patatino = verylargetwo | |
} | |
return patatino + verysmall | |
} | |
f2(true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment