Skip to content

Commit 8a84175

Browse files
[aslspec] changes following review comments
1 parent bd22182 commit 8a84175

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

asllib/doc/asl.spec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5271,10 +5271,10 @@ typing function binop_literals(op: binop, v1: literal, v2: literal) ->
52715271
case div_int {
52725272
op = DIV;
52735273
te_check(b > zero, TE_BO) -> True;
5274-
n := fraction(a, b);
5275-
te_check(is_integer(n), TE_BO) -> True;
5274+
n := round_down(fraction(a, b));
5275+
te_check(a = n * b, TE_BO) -> True;
52765276
--
5277-
L_Int(a / b);
5277+
L_Int(n);
52785278
}
52795279

52805280
case fdiv_int {
@@ -5516,7 +5516,6 @@ typing function binop_literals(op: binop, v1: literal, v2: literal) ->
55165516

55175517
case eq_bits {
55185518
op = EQ;
5519-
list_len(a) = list_len(b);
55205519
--
55215520
L_Bool(a = b);
55225521
}

0 commit comments

Comments
 (0)