Skip to content

Commit 6e34dc0

Browse files
committed
fixing bug in the eval of float-to-int casts
1 parent 0b7eb23 commit 6e34dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/model/core_eval.lem

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ let rec step_eval_pexpr n loc core_extern env mem_st_opt file hasConstrained pex
578578

579579
| (Cfvfromint, Just [Vobject (OVinteger ival)]) ->
580580
EU.return $ PEval (Vobject (OVfloating (Mem.fvfromint ival)))
581-
| (Civfromfloat, Just [Vctype (Ctype.Ctype [] (Ctype.Basic (Ctype.Integer ity))); Vobject (OVfloating fval)]) ->
581+
| (Civfromfloat, Just [Vctype (Ctype.Ctype _ (Ctype.Basic (Ctype.Integer ity))); Vobject (OVfloating fval)]) ->
582582
EU.return $ PEval (Vobject (OVinteger (Mem.ivfromfloat ity fval)))
583583

584584
| (_, Just cvals) ->

0 commit comments

Comments
 (0)