2 % (c) The AQUA Project, Glasgow University, 1996
4 \section[CmdLineOpts]{Things to do with command-line options}
7 #include "HsVersions.h"
19 maybe_CompilingGhcInternals,
22 opt_AutoSccsOnAllToplevs,
23 opt_AutoSccsOnExportedToplevs,
24 opt_AutoSccsOnIndividualCafs,
25 opt_CompilingGhcInternals,
26 opt_UsingGhcInternals,
33 opt_D_dump_occur_anal,
43 opt_D_simplifier_stats,
45 opt_D_verbose_core2core,
46 opt_D_verbose_stg2stg,
50 opt_EnsureSplittableC,
59 opt_HideMostBuiltinNames,
60 opt_IgnoreIfacePragmas,
61 opt_IgnoreStrictnessPragmas,
62 opt_IrrefutableEverything,
63 opt_IrrefutableTuples,
64 opt_NoImplicitPrelude,
67 opt_OmitDefaultInstanceMethods,
68 opt_OmitInterfacePragmas,
75 opt_ReportWhyUnfoldingsDisallowed,
76 opt_ReturnInRegsThreshold,
80 opt_ShowPragmaNameErrs,
83 opt_SpecialiseImports,
84 opt_SpecialiseOverloaded,
86 opt_SpecialiseUnboxed,
87 opt_StgDoLetNoEscapes,
88 opt_UnfoldingCreationThreshold,
89 opt_UnfoldingOverrideThreshold,
90 opt_UnfoldingUseThreshold,
95 IMPORT_1_3(Array(array, (//)))
96 import PreludeGlaST -- bad bad bad boy, Will (_Array internals)
99 CHK_Ubiq() -- debugging consistency check
101 import Maybes ( assocMaybe, firstJust, maybeToBool )
102 import Util ( startsWith, panic, panic#, assertPanic )
105 A command-line {\em switch} is (generally) either on or off; e.g., the
106 ``verbose'' (-v) switch is either on or off. (The \tr{-G<group>}
107 switch is an exception; it's set to a string, or nothing.)
109 A list of {\em ToDo}s is things to be done in a particular part of
110 processing. A (fictitious) example for the Core-to-Core simplifier
111 might be: run the simplifier, then run the strictness analyser, then
112 run the simplifier again (three ``todos'').
114 There are three ``to-do processing centers'' at the moment. In the
115 main loop (\tr{main/Main.lhs}), in the Core-to-Core processing loop
116 (\tr{simplCore/SimplCore.lhs), and in the STG-to-STG processing loop
117 (\tr{simplStg/SimplStg.lhs}).
119 %************************************************************************
121 \subsection{Datatypes associated with command-line options}
123 %************************************************************************
127 = SwBool Bool -- on/off
128 | SwString FAST_STRING -- nothing or a String
129 | SwInt Int -- nothing or an Int
133 data CoreToDo -- These are diff core-to-core passes,
134 -- which may be invoked in any order,
135 -- as many times as you like.
137 = CoreDoSimplify -- The core-to-core simplifier.
138 (SimplifierSwitch -> SwitchResult)
139 -- Each run of the simplifier can take a different
140 -- set of simplifier-specific flags.
141 | CoreDoCalcInlinings1
142 | CoreDoCalcInlinings2
151 | CoreDoFoldrBuildWorkerWrapper
152 | CoreDoFoldrBuildWWAnal
158 | StgDoUpdateAnalysis
160 | StgDoMassageForProfiling -- should be (next to) last
161 -- There's also setStgVarInfo, but its absolute "lastness"
162 -- is so critical that it is hardwired in (no flag).
167 data SimplifierSwitch
169 | SimplFloatLetsExposingWHNF
170 | SimplOkToFloatPrimOps
171 | SimplAlwaysFloatLetsFromLets
176 | SimplMayDeleteConjurableIds
177 | SimplPedanticBottoms -- see Simplifier for an explanation
178 | SimplDoArityExpand -- expand arity of bindings
179 | SimplDoFoldrBuild -- This is the per-simplification flag;
180 -- see also FoldrBuildOn, used elsewhere
182 | SimplDoInlineFoldrBuild
183 -- inline foldr/build (*after* f/b rule is used)
186 | SimplDoLambdaEtaExpansion
187 | SimplDoEtaReduction
189 | EssentialUnfoldingsOnly -- never mind the thresholds, only
190 -- do unfoldings that *must* be done
191 -- (to saturate constructors and primitives)
193 | ShowSimplifierProgress -- report counts on every interation
195 | MaxSimplifierIterations Int
197 | SimplUnfoldingUseThreshold Int -- per-simplification variants
198 | SimplUnfoldingCreationThreshold Int
200 | KeepSpecPragmaIds -- We normally *toss* Ids we can do without
203 | SimplNoLetFromCase -- used when turning off floating entirely
204 | SimplNoLetFromApp -- (for experimentation only) WDP 95/10
205 | SimplNoLetFromStrictLet
207 | SimplDontFoldBackAppend
208 -- we fold `foldr (:)' back into flip (++),
209 -- but we *don't* want to do it when compiling
210 -- List.hs, otherwise
211 -- xs ++ ys = foldr (:) ys xs
212 -- {- via our loopback -}
213 -- xs ++ ys = xs ++ ys
215 -- So only use this flag inside List.hs
216 -- (Sigh, what a HACK, Andy. WDP 96/01)
219 %************************************************************************
221 \subsection{Classifying command-line options}
223 %************************************************************************
226 lookUp :: FAST_STRING -> Bool
227 lookup_int :: String -> Maybe Int
228 lookup_str :: String -> Maybe String
230 lookUp sw = maybeToBool (assoc_opts sw)
232 lookup_str sw = firstJust (map (startsWith sw) unpacked_opts)
234 lookup_int sw = case (lookup_str sw) of
236 Just xx -> Just (read xx)
238 assoc_opts = assocMaybe [ (a, True) | a <- argv ]
239 unpacked_opts = map _UNPK_ argv
243 opt_AllDemanded = lookUp SLIT("-fall-demanded")
244 opt_AllStrict = lookUp SLIT("-fall-strict")
245 opt_AutoSccsOnAllToplevs = lookUp SLIT("-fauto-sccs-on-all-toplevs")
246 opt_AutoSccsOnExportedToplevs = lookUp SLIT("-fauto-sccs-on-exported-toplevs")
247 opt_AutoSccsOnIndividualCafs = lookUp SLIT("-fauto-sccs-on-individual-cafs")
248 opt_D_dump_absC = lookUp SLIT("-ddump-absC")
249 opt_D_dump_asm = lookUp SLIT("-ddump-asm")
250 opt_D_dump_deforest = lookUp SLIT("-ddump-deforest")
251 opt_D_dump_deriv = lookUp SLIT("-ddump-deriv")
252 opt_D_dump_ds = lookUp SLIT("-ddump-ds")
253 opt_D_dump_flatC = lookUp SLIT("-ddump-flatC")
254 opt_D_dump_occur_anal = lookUp SLIT("-ddump-occur-anal")
255 opt_D_dump_rdr = lookUp SLIT("-ddump-rdr")
256 opt_D_dump_realC = lookUp SLIT("-ddump-realC")
257 opt_D_dump_rn = lookUp SLIT("-ddump-rn")
258 opt_D_dump_simpl = lookUp SLIT("-ddump-simpl")
259 opt_D_dump_spec = lookUp SLIT("-ddump-spec")
260 opt_D_dump_stg = lookUp SLIT("-ddump-stg")
261 opt_D_dump_stranal = lookUp SLIT("-ddump-stranal")
262 opt_D_dump_tc = lookUp SLIT("-ddump-tc")
263 opt_D_show_passes = lookUp SLIT("-dshow-passes")
264 opt_D_simplifier_stats = lookUp SLIT("-dsimplifier-stats")
265 opt_D_source_stats = lookUp SLIT("-dsource-stats")
266 opt_D_verbose_core2core = lookUp SLIT("-dverbose-simpl")
267 opt_D_verbose_stg2stg = lookUp SLIT("-dverbose-stg")
268 opt_DoCoreLinting = lookUp SLIT("-dcore-lint")
269 opt_DoSemiTagging = lookUp SLIT("-fsemi-tagging")
270 opt_DoTickyProfiling = lookUp SLIT("-fticky-ticky")
271 opt_FoldrBuildOn = lookUp SLIT("-ffoldr-build-on")
272 opt_FoldrBuildTrace = lookUp SLIT("-ffoldr-build-trace")
273 opt_ForConcurrent = lookUp SLIT("-fconcurrent")
274 opt_GranMacros = lookUp SLIT("-fgransim")
275 opt_GlasgowExts = lookUp SLIT("-fglasgow-exts")
276 opt_Haskell_1_3 = lookUp SLIT("-fhaskell-1.3")
277 opt_HideBuiltinNames = lookUp SLIT("-fhide-builtin-names")
278 opt_HideMostBuiltinNames = lookUp SLIT("-fmin-builtin-names")
279 opt_IgnoreStrictnessPragmas = lookUp SLIT("-fignore-strictness-pragmas")
280 opt_IrrefutableEverything = lookUp SLIT("-firrefutable-everything")
281 opt_IrrefutableTuples = lookUp SLIT("-firrefutable-tuples")
282 opt_WarnNameShadowing = lookUp SLIT("-fwarn-name-shadowing")
283 opt_NumbersStrict = lookUp SLIT("-fnumbers-strict")
284 opt_OmitBlackHoling = lookUp SLIT("-dno-black-holing")
285 opt_OmitDefaultInstanceMethods = lookUp SLIT("-fomit-default-instance-methods")
286 opt_OmitInterfacePragmas = lookUp SLIT("-fomit-interface-pragmas")
287 opt_PprStyle_All = lookUp SLIT("-dppr-all")
288 opt_PprStyle_Debug = lookUp SLIT("-dppr-debug")
289 opt_PprStyle_User = lookUp SLIT("-dppr-user")
290 opt_ReportWhyUnfoldingsDisallowed= lookUp SLIT("-freport-disallowed-unfoldings")
291 opt_SccProfilingOn = lookUp SLIT("-fscc-profiling")
292 opt_ShowImportSpecs = lookUp SLIT("-fshow-import-specs")
293 opt_ShowPragmaNameErrs = lookUp SLIT("-fshow-pragma-name-errs")
294 opt_SigsRequired = lookUp SLIT("-fsignatures-required")
295 opt_SpecialiseAll = lookUp SLIT("-fspecialise-all")
296 opt_SpecialiseImports = lookUp SLIT("-fspecialise-imports")
297 opt_SpecialiseOverloaded = lookUp SLIT("-fspecialise-overloaded")
298 opt_SpecialiseTrace = lookUp SLIT("-ftrace-specialisation")
299 opt_SpecialiseUnboxed = lookUp SLIT("-fspecialise-unboxed")
300 opt_StgDoLetNoEscapes = lookUp SLIT("-flet-no-escape")
301 opt_Verbose = lookUp SLIT("-v")
302 opt_UsingGhcInternals = lookUp SLIT("-fusing-ghc-internals")
303 opt_CompilingGhcInternals = maybeToBool maybe_CompilingGhcInternals
304 maybe_CompilingGhcInternals = lookup_str "-fcompiling-ghc-internals="
305 opt_SccGroup = lookup_str "-G="
306 opt_ProduceC = lookup_str "-C="
307 opt_ProduceS = lookup_str "-S="
308 opt_ProduceHi = lookup_str "-hifile=" -- the one to produce this time
309 opt_HiMap = lookup_str "-himap=" -- file saying where to look for .hi files
310 opt_EnsureSplittableC = lookup_str "-fglobalise-toplev-names="
311 opt_UnfoldingUseThreshold = lookup_int "-funfolding-use-threshold"
312 opt_UnfoldingCreationThreshold = lookup_int "-funfolding-creation-threshold"
313 opt_UnfoldingOverrideThreshold = lookup_int "-funfolding-override-threshold"
314 opt_ReturnInRegsThreshold = lookup_int "-freturn-in-regs-threshold"
316 opt_NoImplicitPrelude = lookUp SLIT("-fno-implicit-prelude")
317 opt_IgnoreIfacePragmas = lookUp SLIT("-fignore-interface-pragmas")
321 classifyOpts :: ([CoreToDo], -- Core-to-Core processing spec
322 [StgToDo]) -- STG-to-STG processing spec
324 classifyOpts = sep argv [] [] -- accumulators...
326 sep :: [FAST_STRING] -- cmd-line opts (input)
327 -> [CoreToDo] -> [StgToDo] -- to_do accumulators
328 -> ([CoreToDo], [StgToDo]) -- result
330 sep [] core_td stg_td -- all done!
331 = (reverse core_td, reverse stg_td)
333 # define CORE_TD(to_do) sep opts (to_do:core_td) stg_td
334 # define STG_TD(to_do) sep opts core_td (to_do:stg_td)
335 # define IGNORE_ARG() sep opts core_td stg_td
337 sep (opt1:opts) core_td stg_td
339 case (_UNPK_ opt1) of -- the non-"just match a string" options are at the end...
341 ',' : _ -> IGNORE_ARG() -- it is for the parser
343 "-fsimplify" -> -- gather up SimplifierSwitches specially...
344 simpl_sep opts [] core_td stg_td
346 "-fcalc-inlinings1"-> CORE_TD(CoreDoCalcInlinings1)
347 "-fcalc-inlinings2"-> CORE_TD(CoreDoCalcInlinings2)
348 "-ffloat-inwards" -> CORE_TD(CoreDoFloatInwards)
349 "-ffull-laziness" -> CORE_TD(CoreDoFullLaziness)
350 "-fliberate-case" -> CORE_TD(CoreLiberateCase)
351 "-fprint-core" -> CORE_TD(CoreDoPrintCore)
352 "-fstatic-args" -> CORE_TD(CoreDoStaticArgs)
353 "-fstrictness" -> CORE_TD(CoreDoStrictness)
354 "-fspecialise" -> CORE_TD(CoreDoSpecialising)
355 "-fdeforest" -> CORE_TD(CoreDoDeforest)
356 "-ffoldr-build-worker-wrapper" -> CORE_TD(CoreDoFoldrBuildWorkerWrapper)
357 "-ffoldr-build-ww-anal" -> CORE_TD(CoreDoFoldrBuildWWAnal)
359 "-fstg-static-args" -> STG_TD(StgDoStaticArgs)
360 "-fupdate-analysis" -> STG_TD(StgDoUpdateAnalysis)
361 "-dstg-stats" -> STG_TD(D_stg_stats)
362 "-flambda-lift" -> STG_TD(StgDoLambdaLift)
363 "-fmassage-stg-for-profiling" -> STG_TD(StgDoMassageForProfiling)
365 _ -> -- NB: the driver is really supposed to handle bad options
370 simpl_sep :: [FAST_STRING] -- cmd-line opts (input)
371 -> [SimplifierSwitch] -- simplifier-switch accumulator
372 -> [CoreToDo] -> [StgToDo] -- to_do accumulators
373 -> ([CoreToDo], [StgToDo]) -- result
375 -- "simpl_sep" tailcalls "sep" once it's seen one set
376 -- of SimplifierSwitches for a CoreDoSimplify.
379 simpl_sep input@[] simpl_sw core_td stg_td
380 = panic "simpl_sep []"
383 -- The SimplifierSwitches should be delimited by "(" and ")".
385 simpl_sep (opt1:opts) simpl_sw core_td stg_td
386 = case (_UNPK_ opt1) of
387 "(" -> ASSERT (null simpl_sw)
388 simpl_sep opts [] core_td stg_td
390 this_simpl = CoreDoSimplify (isAmongSimpl simpl_sw)
392 sep opts (this_simpl : core_td) stg_td
394 # define SIMPL_SW(sw) simpl_sep opts (sw:simpl_sw) core_td stg_td
396 -- the non-"just match a string" options are at the end...
397 "-fshow-simplifier-progress" -> SIMPL_SW(ShowSimplifierProgress)
398 "-fcode-duplication-ok" -> SIMPL_SW(SimplOkToDupCode)
399 "-ffloat-lets-exposing-whnf" -> SIMPL_SW(SimplFloatLetsExposingWHNF)
400 "-ffloat-primops-ok" -> SIMPL_SW(SimplOkToFloatPrimOps)
401 "-falways-float-lets-from-lets" -> SIMPL_SW(SimplAlwaysFloatLetsFromLets)
402 "-fdo-case-elim" -> SIMPL_SW(SimplDoCaseElim)
403 "-fdo-eta-reduction" -> SIMPL_SW(SimplDoEtaReduction)
404 "-fdo-lambda-eta-expansion" -> SIMPL_SW(SimplDoLambdaEtaExpansion)
405 "-fdo-foldr-build" -> SIMPL_SW(SimplDoFoldrBuild)
406 "-fdo-not-fold-back-append" -> SIMPL_SW(SimplDontFoldBackAppend)
407 "-fdo-arity-expand" -> SIMPL_SW(SimplDoArityExpand)
408 "-fdo-inline-foldr-build" -> SIMPL_SW(SimplDoInlineFoldrBuild)
409 "-freuse-con" -> SIMPL_SW(SimplReuseCon)
410 "-fcase-of-case" -> SIMPL_SW(SimplCaseOfCase)
411 "-flet-to-case" -> SIMPL_SW(SimplLetToCase)
412 "-fpedantic-bottoms" -> SIMPL_SW(SimplPedanticBottoms)
413 "-fkeep-spec-pragma-ids" -> SIMPL_SW(KeepSpecPragmaIds)
414 "-fkeep-unused-bindings" -> SIMPL_SW(KeepUnusedBindings)
415 "-fmay-delete-conjurable-ids" -> SIMPL_SW(SimplMayDeleteConjurableIds)
416 "-fessential-unfoldings-only" -> SIMPL_SW(EssentialUnfoldingsOnly)
417 "-fignore-inline-pragma" -> SIMPL_SW(IgnoreINLINEPragma)
418 "-fno-let-from-case" -> SIMPL_SW(SimplNoLetFromCase)
419 "-fno-let-from-app" -> SIMPL_SW(SimplNoLetFromApp)
420 "-fno-let-from-strict-let" -> SIMPL_SW(SimplNoLetFromStrictLet)
422 o | starts_with_msi -> SIMPL_SW(MaxSimplifierIterations (read after_msi))
423 | starts_with_suut -> SIMPL_SW(SimplUnfoldingUseThreshold (read after_suut))
424 | starts_with_suct -> SIMPL_SW(SimplUnfoldingCreationThreshold (read after_suct))
426 maybe_suut = startsWith "-fsimpl-uf-use-threshold" o
427 maybe_suct = startsWith "-fsimpl-uf-creation-threshold" o
428 maybe_msi = startsWith "-fmax-simplifier-iterations" o
429 starts_with_suut = maybeToBool maybe_suut
430 starts_with_suct = maybeToBool maybe_suct
431 starts_with_msi = maybeToBool maybe_msi
432 (Just after_suut) = maybe_suut
433 (Just after_suct) = maybe_suct
434 (Just after_msi) = maybe_msi
436 _ -> -- NB: the driver is really supposed to handle bad options
437 simpl_sep opts simpl_sw core_td stg_td
440 %************************************************************************
442 \subsection{Switch ordering}
444 %************************************************************************
446 In spite of the @Produce*@ and @SccGroup@ constructors, these things
447 behave just like enumeration types.
450 instance Eq SimplifierSwitch where
451 a == b = tagOf_SimplSwitch a _EQ_ tagOf_SimplSwitch b
453 instance Ord SimplifierSwitch where
454 a < b = tagOf_SimplSwitch a _LT_ tagOf_SimplSwitch b
455 a <= b = tagOf_SimplSwitch a _LE_ tagOf_SimplSwitch b
457 tagOf_SimplSwitch SimplOkToDupCode =(ILIT(0) :: FAST_INT)
458 tagOf_SimplSwitch SimplFloatLetsExposingWHNF = ILIT(1)
459 tagOf_SimplSwitch SimplOkToFloatPrimOps = ILIT(2)
460 tagOf_SimplSwitch SimplAlwaysFloatLetsFromLets = ILIT(3)
461 tagOf_SimplSwitch SimplDoCaseElim = ILIT(4)
462 tagOf_SimplSwitch SimplReuseCon = ILIT(5)
463 tagOf_SimplSwitch SimplCaseOfCase = ILIT(6)
464 tagOf_SimplSwitch SimplLetToCase = ILIT(7)
465 tagOf_SimplSwitch SimplMayDeleteConjurableIds = ILIT(9)
466 tagOf_SimplSwitch SimplPedanticBottoms = ILIT(10)
467 tagOf_SimplSwitch SimplDoArityExpand = ILIT(11)
468 tagOf_SimplSwitch SimplDoFoldrBuild = ILIT(12)
469 tagOf_SimplSwitch SimplDoInlineFoldrBuild = ILIT(14)
470 tagOf_SimplSwitch IgnoreINLINEPragma = ILIT(15)
471 tagOf_SimplSwitch SimplDoLambdaEtaExpansion = ILIT(16)
472 tagOf_SimplSwitch SimplDoEtaReduction = ILIT(18)
473 tagOf_SimplSwitch EssentialUnfoldingsOnly = ILIT(19)
474 tagOf_SimplSwitch ShowSimplifierProgress = ILIT(20)
475 tagOf_SimplSwitch (MaxSimplifierIterations _) = ILIT(21)
476 tagOf_SimplSwitch (SimplUnfoldingUseThreshold _) = ILIT(22)
477 tagOf_SimplSwitch (SimplUnfoldingCreationThreshold _) = ILIT(23)
478 tagOf_SimplSwitch KeepSpecPragmaIds = ILIT(24)
479 tagOf_SimplSwitch KeepUnusedBindings = ILIT(25)
480 tagOf_SimplSwitch SimplNoLetFromCase = ILIT(26)
481 tagOf_SimplSwitch SimplNoLetFromApp = ILIT(27)
482 tagOf_SimplSwitch SimplNoLetFromStrictLet = ILIT(28)
483 tagOf_SimplSwitch SimplDontFoldBackAppend = ILIT(29)
484 -- If you add anything here, be sure to change lAST_SIMPL_SWITCH_TAG, too!
486 tagOf_SimplSwitch _ = panic# "tagOf_SimplSwitch"
488 lAST_SIMPL_SWITCH_TAG = IBOX(tagOf_SimplSwitch SimplDontFoldBackAppend)
491 %************************************************************************
493 \subsection{Switch lookup}
495 %************************************************************************
498 #if __GLASGOW_HASKELL__ >= 200
500 # define LIFT GHCbase.Lift
504 # define ARRAY _Array
509 isAmongSimpl :: [SimplifierSwitch] -> SimplifierSwitch -> SwitchResult
511 isAmongSimpl on_switches
513 tidied_on_switches = foldl rm_dups [] on_switches
515 sw_tbl :: Array Int SwitchResult
517 sw_tbl = (array (0, lAST_SIMPL_SWITCH_TAG) -- bounds...
521 all_undefined = [ i SET_TO SwBool False | i <- [0 .. lAST_SIMPL_SWITCH_TAG ] ]
523 defined_elems = map mk_assoc_elem tidied_on_switches
525 -- (avoid some unboxing, bounds checking, and other horrible things:)
526 case sw_tbl of { ARRAY bounds_who_needs_'em stuff ->
528 case (indexArray# stuff (tagOf_SimplSwitch switch)) of
532 mk_assoc_elem k@(MaxSimplifierIterations lvl) = IBOX(tagOf_SimplSwitch k) SET_TO SwInt lvl
533 mk_assoc_elem k@(SimplUnfoldingUseThreshold i) = IBOX(tagOf_SimplSwitch k) SET_TO SwInt i
534 mk_assoc_elem k@(SimplUnfoldingCreationThreshold i) = IBOX(tagOf_SimplSwitch k) SET_TO SwInt i
536 mk_assoc_elem k = IBOX(tagOf_SimplSwitch k) SET_TO SwBool True -- I'm here, Mom!
538 -- cannot have duplicates if we are going to use the array thing
540 rm_dups switches_so_far switch
541 = if switch `is_elem` switches_so_far
543 else switch : switches_so_far
545 sw `is_elem` [] = False
546 sw `is_elem` (s:ss) = (tagOf_SimplSwitch sw) _EQ_ (tagOf_SimplSwitch s)
550 %************************************************************************
552 \subsection{Misc functions for command-line options}
554 %************************************************************************
558 switchIsOn :: (switch -> SwitchResult) -> switch -> Bool
560 switchIsOn lookup_fn switch
561 = case (lookup_fn switch) of
562 SwBool False -> False
565 stringSwitchSet :: (switch -> SwitchResult)
566 -> (FAST_STRING -> switch)
569 stringSwitchSet lookup_fn switch
570 = case (lookup_fn (switch (panic "stringSwitchSet"))) of
571 SwString str -> Just str
574 intSwitchSet :: (switch -> SwitchResult)
578 intSwitchSet lookup_fn switch
579 = case (lookup_fn (switch (panic "intSwitchSet"))) of
580 SwInt int -> Just int