diff options
author | Son HO | 2024-05-28 18:50:52 +0200 |
---|---|---|
committer | GitHub | 2024-05-28 18:50:52 +0200 |
commit | 95cb0eee7f9af0a0fd0d24a2531b5395b98b861f (patch) | |
tree | 4f8cea8688c85603ca250afa0b581aa4b96289ee /compiler/SymbolicToPure.ml | |
parent | ef7792c106a1f33397c206fcb5124b5ddfe64378 (diff) | |
parent | ae075db15638ee8878bebe3d31affb1aa320e90f (diff) |
Merge pull request #219 from AeneasVerif/son/infinite
Fix the infinite loop test
Diffstat (limited to '')
-rw-r--r-- | compiler/SymbolicToPure.ml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/SymbolicToPure.ml b/compiler/SymbolicToPure.ml index d6d2e018..cc203040 100644 --- a/compiler/SymbolicToPure.ml +++ b/compiler/SymbolicToPure.ml @@ -3529,10 +3529,7 @@ and translate_loop (loop : S.loop) (ctx : bs_ctx) : texpression = if effect_info.stateful then mk_simpl_tuple_ty [ mk_state_ty; output ] else output in - let output = - if effect_info.can_fail && inputs <> [] then mk_result_ty output - else output - in + let output = if effect_info.can_fail then mk_result_ty output else output in (back_info, output) in |