Skip to content

Instantly share code, notes, and snippets.

@dcci
Created August 10, 2018 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcci/6c881156fce549e5f67a781d359d9f0f to your computer and use it in GitHub Desktop.
Save dcci/6c881156fce549e5f67a781d359d9f0f to your computer and use it in GitHub Desktop.
scup
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