Skip to content

Commit

Permalink
Fix <= test in webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Mar 27, 2024
1 parent ec4bdcd commit b19d43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/KaSa_rep/frontend/prepreprocess.ml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ let translate_counter_test test =
| Ast.CEQ i -> Ckappa_sig.CEQ i
| Ast.CGTE i -> Ckappa_sig.CGTE i
| Ast.CVAR x -> Ckappa_sig.CVAR x
| Ast.CLTE _i -> failwith "CLTE not yet implemented" (* TODO *)
| Ast.CLTE _i -> Ckappa_sig.UNKNOWN (* TODO: integrate this in kasa?*)

let fst_opt a_opt =
match a_opt with
Expand Down
4 changes: 2 additions & 2 deletions core/grammar/ast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ let counter_test_of_json = function
| `Assoc [ ("val", `Int x); ("test", `String "gte") ]
| `Assoc [ ("test", `String "gte"); ("val", `Int x) ] ->
CGTE x
| `Assoc [ ("val", `Int x); ("test", `String "gle") ]
| `Assoc [ ("test", `String "gle"); ("val", `Int x) ] ->
| `Assoc [ ("val", `Int x); ("test", `String "lte") ]
| `Assoc [ ("test", `String "lte"); ("val", `Int x) ] ->
CLTE x
| `Assoc [ ("test", `String "eq"); ("val", `String x) ]
| `Assoc [ ("val", `String x); ("test", `String "eq") ] ->
Expand Down

0 comments on commit b19d43d

Please sign in to comment.