diff --git a/prism/src/explicit/ConstructModel.java b/prism/src/explicit/ConstructModel.java index 27b85a3f..9e0086fa 100644 --- a/prism/src/explicit/ConstructModel.java +++ b/prism/src/explicit/ConstructModel.java @@ -328,7 +328,11 @@ public class ConstructModel extends PrismComponent if (!justReach) { switch (modelType) { case DTMC: - model = sort ? new DTMCSimple(dtmc, permut) : (DTMCSimple) dtmc; + if (buildSparse) { + model = sort ? new DTMCSparse(dtmc, permut) : new DTMCSparse(dtmc); + } else { + model = sort ? new DTMCSimple(dtmc, permut) : (DTMCSimple) dtmc; + } break; case CTMC: model = sort ? new CTMCSimple(ctmc, permut) : (CTMCSimple) ctmc;