HW7: Due Dec 5th 23:59 Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw.

Slides:



Advertisements
Similar presentations
PLDI’2005Page 1June 2005 Example (C code) int double(int x) { return 2 * x; } void test_me(int x, int y) { int z = double(x); if (z==y) { if (y == x+10)
Advertisements

CS Lecture 04 Outline Change your shell Sed and awk Tricks with Bash scripts Assignment 1 discussion 1CS 311 Operating SystemsLecture 04.
PROBLEM SOLVING in Math What you need to know. OVERVIEW: Define “Problem” Where do I start… How can I solve problems… Trying strategies –Patterns –Tables.
Chapter 1 Introduction Dr. Frank Lee. 1.1 Why Study Compiler? To write more efficient code in a high-level language To provide solid foundation in parsing.
1 Programming Languages Tevfik Koşar Lecture - II January 19 th, 2006.
Writing C-shell scripts #!/bin/csh # Author: Ken Berman # Date: # Purpose: display command and parameters echo $0 echo $argv[*]
Additional UNIX Commands. 222 Lecture Overview  Multiple commands and job control  More useful UNIX utilities.
Linux Operations and Administration
Solving Compound Inequalities. Compound Inequality – two inequalities connected by and or or.
Quiz Th. Oct. 20 Chapters 1,2,3,4. S B AD E C F G straight-line distances h(S-G)=10 h(A-G)=7 h(D-G)=1 h(F-G)=1 h(B-G)=10 h(E-G)=8 h(C-G)=20.
HW6: Due Dec 8th 23:59 1.Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw.
Introduction to Python By Neil Cook Twitter: njcuk Slides/Notes:
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 18 Midterm Review.
Linux+ Guide to Linux Certification, Third Edition
Growing Patterns. Upside Down T Counting Squares The Z Circle Pattern.
HW4: Due Nov 24th 23:59 1.Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw.
CPSC 871 John D. McGregor Module 8 Session 3 Assignment.
Visual C++ Programming: Concepts and Projects Chapter 10B: Recursion (Tutorial)
HW7: Due Dec 5th 23:59 1.Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw.
Dept. of Animal Breeding and Genetics Programming basics & introduction to PERL Mats Pettersson.
BASIS Quick Start Guide
The Scenario Analysis If a car travels at 60 mph for two hours, how much distance will it cover? You find the answer easily, because you know the formula.
Control Flow Testing Handouts
CSC 421: Algorithm Design & Analysis
CSC 421: Algorithm Design & Analysis
CSC 421: Algorithm Design & Analysis
Outline of the Chapter Basic Idea Outline of Control Flow Testing
Data Coverage and Code Coverage
Lecture 7 Constraint Satisfaction Problems
Moonzoo Kim CS Dept. KAIST
Agenda Control Flow Statements Purpose test statement
Moonzoo Kim CS Dept. KAIST
S Digital Communication Systems
Business Decision Modeling
Dataflow Testing G. Rothermel.
KU College of Engineering Elec 204: Digital Systems Design
Contiki and Code Composer Studio
Writing functions in MATLAB
Programming Fundamentals (750113) Ch1. Problem Solving
4 Main Steps of Concolic Testing
KU College of Engineering Elec 204: Digital Systems Design
Depth-First Searches Introduction to AI.
Good Testing Practices
Scatter Plots and Equations of Lines
CE 221 Data Structures and Algorithms
A programming language
Programming Fundamentals (750113) Ch1. Problem Solving
Example (C code) int double(int x) { return 2 * x; }
GNU gcov gcov is a test coverage program running with gcc.
CSCE 580 Artificial Intelligence Program 1
Whitebox Testing.
CSC 421: Algorithm Design & Analysis
See requirements for practice program on next slide.
Learning Targets Students will be able to: Compare linear, quadratic, and exponential models and given a set of data, decide which type of function models.
Programming Fundamentals (750113) Ch1. Problem Solving
HW2: A prime path generator (Due Oct 6th 23:59)
1. (50 pts) Concolic testing the sort function
Exercise: Dice rolls Write a method diceRoll that accepts an integer parameter representing a number of 6-sided dice to roll, and output all possible arrangements.
Supporting High-Performance Data Processing on Flat-Files
CSC 421: Algorithm Design & Analysis
Testing grep.c (200 pts) For grep.c, generate 10,000 test cases through the (reverse) DFS search strategy. You are requested to modify grep.c to create.
HW4: Concolic testing Busybox expr (due Nov 30 23:59)
Algorithms CSCI 235, Spring 2019 Lecture 8 Recurrences III
HW4: Due Nov 22nd 23:59 Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also,
CMPT 120 Lecture 19 – Unit 3 – Graphics and Animation
HW#7 Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw the complete execution.
Reverse Shell.
Moonzoo Kim Provable Software Laboratory CS Dept. KAIST
Depth-First Searches.
Presentation transcript:

HW7: Due Dec 5th 23:59 Describe test cases to reach full path coverage of the triangle program by completing the path condition table below. Also, draw the complete execution tree showing executed path conditions (100 pts) Assume that the initial test case is given as 1,1,1 You should use the DFS algorithm. Note that CREST uses reverse-dfs search heuristics in fact. Thus, your solutions will be different from what CREST generated

2. Testing grep.c (200 pts) For grep.c, generate 10,000 test cases through the DFS search strategy. You are requested to modify grep.c to create test cases through CREST and feed those generated test cases to grep Describe which variables are declared symbolically and how How long is a target pattern, a target file, options, etc Describe how you modified the target code to improve branch coverage Create 10,000 test cases in files (i.e.,tc1, tc2,… tc10000) per each of the 4 different search strategies Measure the final branch coverage reported by CREST You can do this by analyzing branch and coverage output file Apply the 40,000 test cases (tc1,…tc10000 x 4) to grep and measure the branch coverage reported by gcov For this task, you should not use CREST. You may build a shell script to execute grep 40,000 times with 40,000 test cases.