Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 4 additions & 20 deletions examples/farrow-ubd-fiber.aps
Original file line number Diff line number Diff line change
Expand Up @@ -72,35 +72,19 @@ module FARROW_UBD_FIBER[T :: var FARROW_UBD_TREE[]] extends T begin
end;

match ?self:Operation=op_add() begin
if self.op_lval = IntegerLattice$bottom or self.op_rval = IntegerLattice$bottom then
self.op_val := IntegerLattice$bottom;
else
self.op_val := IntegerLattice$applyf2(Integer$plus, self.op_lval, self.op_rval);
endif;
self.op_val := IntegerLattice$applyf2(Integer$plus, self.op_lval, self.op_rval);
end;

match ?self:Operation=op_mul() begin
if self.op_lval = IntegerLattice$bottom or self.op_rval = IntegerLattice$bottom then
self.op_val := IntegerLattice$bottom;
else
self.op_val := IntegerLattice$applyf2(Integer$times, self.op_lval, self.op_rval);
endif;
self.op_val := IntegerLattice$applyf2(Integer$times, self.op_lval, self.op_rval);
end;

match ?self:Operation=op_sub() begin
if self.op_lval = IntegerLattice$bottom or self.op_rval = IntegerLattice$bottom then
self.op_val := IntegerLattice$bottom;
else
self.op_val := IntegerLattice$applyf2(Integer$minus, self.op_lval, self.op_rval);
endif;
self.op_val := IntegerLattice$applyf2(Integer$minus, self.op_lval, self.op_rval);
end;

match ?self:Operation=op_div() begin
if self.op_lval = IntegerLattice$bottom or self.op_rval = IntegerLattice$bottom then
self.op_val := IntegerLattice$bottom;
else
self.op_val := IntegerLattice$applyf2(Integer$divide, self.op_lval, self.op_rval);
endif;
self.op_val := IntegerLattice$applyf2(Integer$divide, self.op_lval, self.op_rval);
end;

match ?self:Expression=expr_apply(?e: Expression, ?op: Operation, ?t: Term) begin
Expand Down
Loading