loda-cpp icon indicating copy to clipboard operation
loda-cpp copied to clipboard

Error in folded program

Open ckrause opened this issue 1 year ago • 3 comments

2024-09-15 08:10:17|INFO |Folded A094186 using A002262
2024-09-15 08:10:17|ERROR|Error in folded program

ckrause avatar Sep 15 '24 08:09 ckrause

; A094186: 
lpb $0
  sub $0,2
  mov $1,0
  lpb $0
    add $1,1
    sub $0,$1
  lpe
lpe

; A002262:
lpb $0
  add $1,1
  sub $0,$1
lpe

ckrause avatar Sep 15 '24 08:09 ckrause

Folded program:

lpb $0
  sub $0,2
  mov $1,0
  seq $0,2262
lpe

ckrause avatar Sep 15 '24 08:09 ckrause

libc++abi: terminating due to uncaught exception of type std::runtime_error: seq using negative argument: 2262
Abort trap: 6

ckrause avatar Sep 15 '24 08:09 ckrause