prosyslab-classroom / cs348-information-security

61 stars 10 forks source link

[Question][Hw5] About Instruction 3 #148

Closed kws1207 closed 3 years ago

kws1207 commented 3 years ago

I can't understand the sentence (maybe because of my poor english):

, especially the part inside the parenthesis.

Can someone please explain more clearly, maybe with some examples?

RiceBiscuits commented 3 years ago

It seems that the instruction 2 has more detail explanation.

You will define the filter function for memories (Semantics.Make.filter) using the ones for values. The first argument of the function represents whether the condition (i.e., the second argument) is true or not. For example, filter (x < 10) true mem will return an abstract memory that satisfies condition x < 10. On the other hand, filter (x < 10) false mem will return an abstract memory that does not satisfy condition x < 10.

kws1207 commented 3 years ago

Thanks