



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




11
Presented byPresented by
2424 thth^ October 2003October 2003
2
Outline Outline
►► IntroductionIntroduction ►►^ PhilosophyPhilosophy ►► ProcessProcess ►►^ Success StoriesSuccess Stories ►► DiscussionsDiscussions
3
Traditional Software Development At WorkTraditional Software Development At Work^ ..
4
Cleanroom: Cleanroom:
►► (^) Manufacturing areas in microelectronics,Manufacturing areas in microelectronics, pharmaceutical and biotechnology allow only zeropharmaceutical and biotechnology allow only zero-- tolerant contamination in the room.tolerant contamination in the room.
►► Everything is suspected even your own body, airEverything is suspected even your own body, air-- conditions, fans, your shoes, even your formalconditions, fans, your shoes, even your formal clothes.clothes.
►► Everyone has to pass through strictly controlledEveryone has to pass through strictly controlled chambers to make sure that everything is dechambers to make sure that everything is de-- contaminated.contaminated.
► ► (^) Defects are inevitable.Defects are inevitable. ► ► Defect removal areDefect removal are part of softwarepart of software development.development.
7
►►^ Bugs are symptoms of mismanagement andBugs are symptoms of mismanagement and unpredictable environment.unpredictable environment.
►► It is difficult to eliminate them, but good softwareIt is difficult to eliminate them, but good software engineering can control their insatiable desire forengineering can control their insatiable desire for reproduction.reproduction.
Let us understand howLet us understand how Cleanroom Process Cleanroom Process accomplishes that. accomplishes that.
8
► ► Avoid dependence on costly defectAvoid dependence on costly defect--removalremoval process by writing code incrementsprocess by writing code increments RIGHT RIGHT FORFOR THE FIRST TIMETHE FIRST TIME^ and verify theirand verify their correctness before testing.correctness before testing.
► ► (^) The theoretical foundations of cleanroom areThe theoretical foundations of cleanroom are 1.1. Formal specifications and designFormal specifications and design 2.2. Correctness verificationCorrectness verification 3.3. Statistical testing.Statistical testing.
Notice: bug removal is absent, because they are not supposed toNotice: bug removal is absent, because they are not supposed to appear in Cleanroom.appear in Cleanroom.
9
►► Team correctness verification takes the place ofTeam correctness verification takes the place of unit testing and debugging. Software entersunit testing and debugging. Software enters system testing directly, with no execution bysystem testing directly, with no execution by development team. All errors are accounted fordevelopment team. All errors are accounted for from first execution on, with no privatefrom first execution on, with no private debugging permitted.debugging permitted.
10
Cleanroom process chart Cleanroom process chart
Quality ComparisonQuality Comparison
►► Comparison is meaningful only at the time of firstComparison is meaningful only at the time of first execution.execution.
►► Traditional software exhibit 25-Traditional software exhibit 25-35 or more errors35 or more errors per KLOC at the time of unit testing.per KLOC at the time of unit testing.
►►^ Cleanroom process demonstrated 2.3 errors perCleanroom process demonstrated 2.3 errors per KLOC in million lines of code. This numberKLOC in million lines of code. This number represent all the errors measured from first everrepresent all the errors measured from first ever execution through test completion.execution through test completion.
… … Quality ComparisonQuality Comparison
►►^ Errors left behind by Cleanroom correctnessErrors left behind by Cleanroom correctness verification are not because of complex design orverification are not because of complex design or interface errors. They are simple errors which areinterface errors. They are simple errors which are easy to find and fix by statistical testing.easy to find and fix by statistical testing.
19
Design and verificationDesign and verification
►► The development team carries out design and correctnessThe development team carries out design and correctness verification cycle for each increment.verification cycle for each increment.
►► The certification team work in parallel, using the usageThe certification team work in parallel, using the usage specification to generate test cases that reflect on thespecification to generate test cases that reflect on the expected use of accumulating increments.expected use of accumulating increments.
20
Quality Certification Quality Certification
►►^ Periodically, the development team integrates aPeriodically, the development team integrates a completed increment with prior increments and hand-completed increment with prior increments and hand- over to the certification team.over to the certification team.
►► Certification team executes the entire software usingCertification team executes the entire software using statistical test cases. The results are checked against thestatistical test cases. The results are checked against the functional specification.functional specification.
►► Interfail timeInterfail time , i.e. the elapsed time between failures,, i.e. the elapsed time between failures, are passed to a quality certification model that computesare passed to a quality certification model that computes objective statistical measures of quality.objective statistical measures of quality.
►► The quality certification model employs a reliabilityThe quality certification model employs a reliability growth estimator to derive statistical measures of quality.growth estimator to derive statistical measures of quality.
21
Quality CertificationQuality Certification
►► Contrary to other models, cleanroom certificationsContrary to other models, cleanroom certifications are done continuously, over the life of the project.are done continuously, over the life of the project.
►► Higher level increments enters the certificationHigher level increments enters the certification first and therefore major architectural and designfirst and therefore major architectural and design decisions are validated in execution beforedecisions are validated in execution before development teams work on them.development teams work on them.
►►^ Since certification is done for all increments asSince certification is done for all increments as they accumulate, higher level are subjected tothey accumulate, higher level are subjected to more testing than the lower level increments.more testing than the lower level increments. 22
►► Certification team passes errors to theCertification team passes errors to the development team. If the quality is low then thedevelopment team. If the quality is low then the managers and team initiate process improvement.managers and team initiate process improvement.
►► At every level of increment, we have assuredAt every level of increment, we have assured quality and intellectual control.quality and intellectual control.
Functional Specification:Functional Specification:
Box Structure Box Structure
Three principles that govern use of box structureThree principles that govern use of box structure
1.1. All data defined in a design is encapsulated inAll data defined in a design is encapsulated in boxes.boxes. 2.2. (^) All processing is defined by using boxesAll processing is defined by using boxes sequentially or concurrently.sequentially or concurrently. 3.3. Each box occupies a distinct place in a system’sEach box occupies a distinct place in a system’s usage hierarchy.usage hierarchy.
25
Black Box:Black Box:
►► (^) A black box is a precise specification of external,A black box is a precise specification of external, useruser--visible behavior in all possible circumstancesvisible behavior in all possible circumstances of its use.of its use. ►►^ The black box transition functionThe black box transition function {S,SH}{S,SH} --ÆÆ {R}{R} Where {S} is set of all possible stimulusWhere {S} is set of all possible stimulus {SH}{SH} A set of stimulus historyA set of stimulus history {R}{R} A set of response which depends on {S}A set of response which depends on {S} and {SH}and {SH}^26
…Black Box …Black Box
27
……Black BoxBlack Box
SnSn CnCn
StimulasStimulas ConditionsConditions
To record large specifications, classes of behavior are grouped into nested tables. 28
State Box State Box
► ► (^) Transition functionTransition function {S,OS}{S,OS}--ÆÆ {R,NS}{R,NS} Where OS : Old StateWhere OS : Old State NS : New StateNS : New State
► ► This state is same as Black Box, but all the historiesThis state is same as Black Box, but all the histories are referenced by old state.are referenced by old state.
► ► (^) From the OO point of view, this state encapsulateFrom the OO point of view, this state encapsulate state data and services on that data.state data and services on that data.
Clear BoxClear Box
►► The transition function isThe transition function is {S,OS}{S,OS}ÆÆ{R,NS}{R,NS} by procedureby procedure
►► A clear box is simply a program that implementsA clear box is simply a program that implements the corresponding state box.the corresponding state box.
►► A clear box may invoke black boxes.A clear box may invoke black boxes.
►► A clear box allows defining new objects orA clear box allows defining new objects or extensions to existing ones.extensions to existing ones.
Box Verifications Box Verifications
►►^ Each state box is verified with respect to theirEach state box is verified with respect to their black boxes and clear boxes with respect to theirblack boxes and clear boxes with respect to their state boxes. Box structure bring correctnessstate boxes. Box structure bring correctness verification to object architecture.verification to object architecture.
37
Success StoriesSuccess Stories
Increased byIncreased by 70%70%
350 KLOC350 KLOC 1.0 E/KLOC1.0 E/KLOC OperatingOperating systemsystem
EricssonEricsson 70 person70 person TelecomTelecom
Productivity 486Productivity 486 LOC/monthLOC/month
107 KLOC107 KLOC 2.6E/KLOC2.6E/KLOC PL/I, RexxPL/I, Rexx
IBMIBM 50 Person50 Person AOEXPERT/MVSAOEXPERT/MVS
Martin MariettaMartin Marietta Four PersonFour Person 1820 lines1820 lines 0.00. AutomatedAutomated DocumentationDocumentation SystemSystem
Productivity 780Productivity 780 LOC/monthLOC/month
NASA SatelliteNASA Satellite 40 KLOC Fortran40 KLOC Fortran4.5E/KLOC4.5E/KLOC ControlControl
IBM Cobol/SFIBM Cobol/SF Six person teamSix person team 85 KLOC PL-85 KLOC PL-II 3.4 E/KLOC3.4 E/KLOC
CleanRoomCleanRoom AdditionalAdditional QualityQuality
ProjectProject ResourceResource SizeSize
Notice: The success stories have not mentioned how many errors were present in the original system. 38
It is good to be disciplined but …It is good to be disciplined but …
►► Is cleanroom suitable for a new project with changingIs cleanroom suitable for a new project with changing requirements ?requirements?
►►^ How much it cost to develop a software byHow much it cost to develop a software by cleanroom process compared to other models ?cleanroom process compared to other models?
►► Does language issue play an important role inDoes language issue play an important role in CleanroomCleanroom process ?process? Compare FORTRANCompare FORTRAN v/sv/s JAVA.JAVA.
►► Is it practical for small scale software company to investIs it practical for small scale software company to invest time and money whose survival depends on days progresstime and money whose survival depends on days progress than years.than years.
►► Despite lots of errors, Microsoft is still a saleable product.Despite lots of errors, Microsoft is still a saleable product. (^40)
► ► Is bug an over-Is bug an over-abused word? How do weabused word? How do we differentiate software malfunctions created bydifferentiate software malfunctions created by ignorance, mistake or intensions ?ignorance, mistake or intensions? Which oneWhich one CleanroomCleanroom solves best ?solves best?
Do these cause bugs or errors ?Do these cause bugs or errors? 1.1. Simplified AssumptionsSimplified Assumptions 2.2. Increasing Complexities of machinesIncreasing Complexities of machines 3.3. Lack of standardsLack of standards 4.4. Using old horses for year 2003 rugbyUsing old horses for year 2003 rugby 5.5. Optimization for hardwareOptimization for hardware