Skip to content

Commit

Permalink
added more constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
  • Loading branch information
macfarla committed Jun 13, 2023
1 parent 7ea5f40 commit eeea459
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion trm/constraints.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; 2.4 Target constraints ;;
;; 2.5 Target constraints ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Expand All @@ -74,6 +74,11 @@
(begin (= ADDR_HI ACC_HI)
(= ADDR_LO ACC_LO)
(= TRM_ADDR_HI ACC_T)
(if-not-zero (+ TRM_ADDR_HI (- ADDR_LO BYTE_LO))
(= IS_PREC 0))
(if-zero (+ TRM_ADDR_HI (- ADDR_LO BYTE_LO))
(if-zero BYTE_LO
(= IS_PREC 0)))
)))


Expand All @@ -88,5 +93,6 @@
(is-binary PBIT)
(if-zero CT
(vanishes! PBIT))))
;; commented out these 2 lines since I can't get it to compile
;; (vanishes! (* (will-remain-constant! PBIT) (- 1 (will-remain-constant! PBIT))))))
;; (if-eq CT 12 (= 1 (+ PBIT (prev PBIT)))))))

0 comments on commit eeea459

Please sign in to comment.