prosyslab-classroom / cs348-information-security

61 stars 10 forks source link

[Question][Hw5] Sub, Mul, Div in Module Taint #132

Closed Altterisk closed 3 years ago

Altterisk commented 3 years ago

In module Taint, shouldn't the functions sub, mul, div have arguments x, y similar to add?

  let add x y = failwith "Not implemented"

  let sub = failwith "Not implemented"

  let mul = failwith "Not implemented"

  let div = failwith "Not implemented"

According to VALUE_DOMAIN, they should have type t -> t -> t.

  val add : t -> t -> t

  val sub : t -> t -> t

  val mul : t -> t -> t

  val div : t -> t -> t
KihongHeo commented 3 years ago

Similar. You should define the functions.