We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d969f commit f3eff89Copy full SHA for f3eff89
HW/HW6/eval.ml
@@ -325,9 +325,10 @@ let rec exp2string exp =
325
326
(* state2string : state -> string
327
* you may modify this function for debugging your code *)
328
-let state2string st = match st with
329
- Anal_ST(_,_,exp,_) -> "Analysis : ???"
330
- | Return_ST(_,_,_) -> "Return : ??? "
+let state2string st =
+ match st with
+ | Anal_ST(_,_,exp,_) -> "Analysis : " ^ exp2string (exp)
331
+ | Return_ST(_,_,valu) -> "Return : " ^ exp2string (value2exp (valu))
332
333
(* ------------------------------------------------------------- *)
334
let stepOpt1 e = try Some (step1 e) with Stuck -> None
0 commit comments