Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment Content Symbolically execute one of the following code listings ( i . e . , create a symbolic execution tree ) to determine if
Assignment Content
Symbolically execute one of the following code listings ie create a symbolic execution tree to determine if it ever returns the wrong result. The code listings are both intended to return the minimum of three inputs or when invalid inputs are provided, an error code eg null or None
Java Listing
static Integer minimumInteger a Integer b Integer c
ifa null b null c null
return null;
Integer min a;
ifmin c
min c;
ifmin b
min b;
return min;
Python Listing
def minimuma b c:
if not isinstancea int and isinstanceb int and isinstancec int:
return None
min a
if min c:
min c
if min b:
min b;
return min;
Discuss the symbolic values and path conditional in each of the leaf nodes of the symbolic execution tree to justify that the code is correct or contains an error. If the code contains an error, provide a concrete set of values that illustrates the error.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started