// Preferred filename: main.swift -- swiftc only permits top-level code in main.swift. /* The Computer Language Benchmarks Game http://benchmarksgame.alioth.debian.org/ direct transliteration of Greg Buchholz's C program contributed by Isaac Gouy, fix by David Turnbull */ import Glibc let w: Int = Int(CommandLine.arguments[1])! let h = w var bit_num = 0, i = 0, byte_acc: Int32 = 0 let iter = 50, limit = 2.0 var Zr, Zi, Cr, Ci, Tr, Ti: Double print("P4\n\(w) \(h)") for y in 0..