Skip to content

Commit

Permalink
[swift] Llair to Textual: translate nondet
Browse files Browse the repository at this point in the history
Summary: We already have a `nondet` model.

Reviewed By: ngorogiannis

Differential Revision: D70105900

fbshipit-source-id: bbb765e61a71eca39fcf09b2c136731327bb0160
  • Loading branch information
dulmarod authored and facebook-github-bot committed Feb 25, 2025
1 parent a83bc15 commit d251a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infer/src/swift/Llair2Textual.ml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ let cmnd_to_instrs block =
let arg = to_textual_exp ptr in
let proc = Textual.ProcDecl.free_name in
to_textual_call_aux ~kind:Textual.Exp.NonVirtual proc None [arg] loc
| Nondet _ ->
assert false
| Nondet {reg; loc} ->
to_textual_builtin reg "llvm_nondet" [] loc
| Builtin {reg; name; args; loc} ->
let name = Llair.Builtin.to_name name in
let args = StdUtils.iarray_to_list args in
Expand Down

0 comments on commit d251a52

Please sign in to comment.