@@ -2274,44 +2274,42 @@ def all_laid_to_args(
22742274
22752275 router .add_method_handler (all_laid_to_args )
22762276
2277- actual_ap_compiled , actual_csp_compiled , _ = router .compile_program (
2278- version = 6 , assembleConstants = True
2279- )
2277+ actual_ap_compiled , actual_csp_compiled , _ = router .compile_program (version = 6 )
2278+ print ( actual_ap_compiled )
2279+ print ( actual_csp_compiled )
22802280
22812281 expected_ap = """#pragma version 6
2282- intcblock 0 1
2283- bytecblock 0x151f7c75
22842282txna ApplicationArgs 0
2285- pushbytes 0xfe6bdf69 // "add(uint64,uint64)uint64"
2283+ method "add(uint64,uint64)uint64"
22862284==
22872285bnz main_l12
22882286txna ApplicationArgs 0
2289- pushbytes 0x78b488b7 // "sub(uint64,uint64)uint64"
2287+ method "sub(uint64,uint64)uint64"
22902288==
22912289bnz main_l11
22922290txna ApplicationArgs 0
2293- pushbytes 0xe2f188c5 // "mul(uint64,uint64)uint64"
2291+ method "mul(uint64,uint64)uint64"
22942292==
22952293bnz main_l10
22962294txna ApplicationArgs 0
2297- pushbytes 0x16e80f08 // "div(uint64,uint64)uint64"
2295+ method "div(uint64,uint64)uint64"
22982296==
22992297bnz main_l9
23002298txna ApplicationArgs 0
2301- pushbytes 0x4dfc58ae // "mod(uint64,uint64)uint64"
2299+ method "mod(uint64,uint64)uint64"
23022300==
23032301bnz main_l8
23042302txna ApplicationArgs 0
2305- pushbytes 0x487ce2fd // "all_laid_to_args(uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64)uint64"
2303+ method "all_laid_to_args(uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64)uint64"
23062304==
23072305bnz main_l7
23082306err
23092307main_l7:
23102308txn OnCompletion
2311- intc_0 // NoOp
2309+ int NoOp
23122310==
23132311txn ApplicationID
2314- intc_0 // 0
2312+ int 0
23152313!=
23162314&&
23172315assert
@@ -2360,11 +2358,11 @@ def all_laid_to_args(
23602358txna ApplicationArgs 15
23612359store 44
23622360load 44
2363- intc_0 // 0
2361+ int 0
23642362extract_uint64
23652363store 45
23662364load 44
2367- pushint 8 // 8
2365+ int 8
23682366extract_uint64
23692367store 46
23702368load 30
@@ -2385,19 +2383,19 @@ def all_laid_to_args(
23852383load 46
23862384callsub alllaidtoargs_5
23872385store 47
2388- bytec_0 // 0x151f7c75
2386+ byte 0x151f7c75
23892387load 47
23902388itob
23912389concat
23922390log
2393- intc_1 // 1
2391+ int 1
23942392return
23952393main_l8:
23962394txn OnCompletion
2397- intc_0 // NoOp
2395+ int NoOp
23982396==
23992397txn ApplicationID
2400- intc_0 // 0
2398+ int 0
24012399!=
24022400&&
24032401assert
@@ -2411,19 +2409,19 @@ def all_laid_to_args(
24112409load 25
24122410callsub mod_4
24132411store 26
2414- bytec_0 // 0x151f7c75
2412+ byte 0x151f7c75
24152413load 26
24162414itob
24172415concat
24182416log
2419- intc_1 // 1
2417+ int 1
24202418return
24212419main_l9:
24222420txn OnCompletion
2423- intc_0 // NoOp
2421+ int NoOp
24242422==
24252423txn ApplicationID
2426- intc_0 // 0
2424+ int 0
24272425!=
24282426&&
24292427assert
@@ -2437,19 +2435,19 @@ def all_laid_to_args(
24372435load 19
24382436callsub div_3
24392437store 20
2440- bytec_0 // 0x151f7c75
2438+ byte 0x151f7c75
24412439load 20
24422440itob
24432441concat
24442442log
2445- intc_1 // 1
2443+ int 1
24462444return
24472445main_l10:
24482446txn OnCompletion
2449- intc_0 // NoOp
2447+ int NoOp
24502448==
24512449txn ApplicationID
2452- intc_0 // 0
2450+ int 0
24532451!=
24542452&&
24552453assert
@@ -2463,19 +2461,19 @@ def all_laid_to_args(
24632461load 13
24642462callsub mul_2
24652463store 14
2466- bytec_0 // 0x151f7c75
2464+ byte 0x151f7c75
24672465load 14
24682466itob
24692467concat
24702468log
2471- intc_1 // 1
2469+ int 1
24722470return
24732471main_l11:
24742472txn OnCompletion
2475- intc_0 // NoOp
2473+ int NoOp
24762474==
24772475txn ApplicationID
2478- intc_0 // 0
2476+ int 0
24792477!=
24802478&&
24812479assert
@@ -2489,19 +2487,19 @@ def all_laid_to_args(
24892487load 7
24902488callsub sub_1
24912489store 8
2492- bytec_0 // 0x151f7c75
2490+ byte 0x151f7c75
24932491load 8
24942492itob
24952493concat
24962494log
2497- intc_1 // 1
2495+ int 1
24982496return
24992497main_l12:
25002498txn OnCompletion
2501- intc_0 // NoOp
2499+ int NoOp
25022500==
25032501txn ApplicationID
2504- intc_0 // 0
2502+ int 0
25052503!=
25062504&&
25072505assert
@@ -2515,12 +2513,12 @@ def all_laid_to_args(
25152513load 1
25162514callsub add_0
25172515store 2
2518- bytec_0 // 0x151f7c75
2516+ byte 0x151f7c75
25192517load 2
25202518itob
25212519concat
25222520log
2523- intc_1 // 1
2521+ int 1
25242522return
25252523
25262524// add
@@ -2633,17 +2631,16 @@ def all_laid_to_args(
26332631 assert expected_ap == actual_ap_compiled
26342632
26352633 expected_csp = """#pragma version 6
2636- intcblock 0
26372634txn NumAppArgs
2638- intc_0 // 0
2635+ int 0
26392636==
26402637bnz main_l2
26412638err
26422639main_l2:
26432640txn ApplicationID
2644- intc_0 // 0
2641+ int 0
26452642!=
26462643assert
2647- pushint 1 // 1
2644+ int 1
26482645return""" .strip ()
26492646 assert expected_csp == actual_csp_compiled
0 commit comments