Docsity

Cleanroom Philosophy: Incremental Software Development with Team Verification, Study notes of Computer Science

Toggle sidebar
bg1
1
1
1
Cleanroom Process
Cleanroom Process
Model
Model
Presented by
Presented by
Chaman Singh Verma
Chaman Singh Verma
24
24th
th October 2003
October 2003
2
Outline
Outline
►
►Introduction
Introduction
►
►Philosophy
Philosophy
►
►Process
Process
►
►Success Stories
Success Stories
►
►Discussions
Discussions
3
Traditional Software Development At Work
Traditional Software Development At Work .
.
4
Cleanroom
Cleanroom:
:
5
Cleanroom
Cleanroom
►
►Manufacturing areas in microelectronics,
Manufacturing areas in microelectronics,
pharmaceutical and biotechnology allow only zero
pharmaceutical and biotechnology allow only zero-
-
tolerant contamination in the room.
tolerant contamination in the room.
►
►Everything is suspected even your own body, air
Everything is suspected even your own body, air-
-
conditions, fans, your shoes, even your formal
conditions, fans, your shoes, even your formal
clothes.
clothes.
►
►Everyone has to pass through strictly controlled
Everyone has to pass through strictly controlled
chambers to make sure that everything is de
chambers to make sure that everything is de-
-
contaminated.
contaminated.
6
Bug
Bug-
-Centered Computing
Centered Computing
►
►Defects are inevitable.
Defects are inevitable.
►
►Defect removal are
Defect removal are
part of software
part of software
development.
development.
pf3
pf4
pf5

Partial preview of the text

Download Cleanroom Philosophy: Incremental Software Development with Team Verification and more Study notes Computer Science in PDF only on Docsity!

11

Cleanroom ProcessCleanroom Process

ModelModel

Presented byPresented by

Chaman Singh VermaChaman Singh Verma

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:

CleanroomCleanroom

►► (^) 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.

Bug- Bug-Centered ComputingCentered Computing

► ► (^) Defects are inevitable.Defects are inevitable. ► ► Defect removal areDefect removal are part of softwarepart of software development.development.

7

Are bugs in software unavoidable ?Are bugs in software unavoidable?

►►^ 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

Cleanroom Philosophy: Cleanroom Philosophy:

► ► 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

Cleanroom:Cleanroom:

►► 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

Feedback Feedback

►► 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:

►►The cleanroom process is built upon functionThe cleanroom process is built upon function

theory where each program is treated astheory where each program is treated as

rules for mathematical functions subject torules for mathematical functions subject to

stepwise refinement and verification.stepwise refinement and verification.

►►Cleanroom uses Box Structure specificationCleanroom uses Box Structure specification

and design model.and design model.

1.1.^ Black BoxBlack Box

2.2.^ State BoxState Box

3.3.^ Clear BoxClear Box^24

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

► ►The objective of blackThe objective of black--box specification is tobox specification is to

define the responses produced for everydefine the responses produced for every

possible stimulus and stimulus history,possible stimulus and stimulus history,

including erroneous and unexpected stimuli.including erroneous and unexpected stimuli.

► ►By defining behavior in terms of stimulusBy defining behavior in terms of stimulus

histories, blackhistories, black--box specifications neitherbox specifications neither

depend on nor prematurely define designdepend on nor prematurely define design

internals.internals.

27

……Black BoxBlack Box

SnSn CnCn

S3S3 C3C

S2S2 C2C

S1S1 C1C

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

The EndThe End

Thank YouThank You

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)

Need Classification for Bugs Need Classification for Bugs

► ► 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