Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
