Skip to content

Commit 38a5f0e

Browse files
author
Brian Huffman
committed
Fix example proof scripts that were broken by function renames (#955).
This should make the `test_examples` integration test work again. See also #995.
1 parent 6789b1a commit 38a5f0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/llvm/struct.saw

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ let ptr_to_fresh n ty = do {
1212

1313
let set_spec = do {
1414
(x, px) <- ptr_to_fresh "x" (llvm_array 2 (llvm_int 32));
15-
po <- alloc_init (llvm_struct "struct.s") (llvm_struct [px]);
15+
po <- alloc_init (llvm_struct "struct.s") (llvm_struct_value [px]);
1616
llvm_execute_func [po];
17-
llvm_points_to po (llvm_struct [px]);
17+
llvm_points_to po (llvm_struct_value [px]);
1818
llvm_points_to px (llvm_term {{ [0, 0] : [2][32] }});
1919
};
2020

2121
let add_spec = do {
2222
(x, px) <- ptr_to_fresh "x" (llvm_array 2 (llvm_int 32));
23-
po <- alloc_init (llvm_struct "struct.s") (llvm_struct [px]);
23+
po <- alloc_init (llvm_struct "struct.s") (llvm_struct_value [px]);
2424
llvm_execute_func [po];
2525
llvm_return (llvm_term {{ x@0 + x@1 }});
2626
};
2727

2828
let id_spec = do {
2929
(x, px) <- ptr_to_fresh "x" (llvm_array 2 (llvm_int 32));
30-
po <- alloc_init (llvm_struct "struct.s") (llvm_struct [px]);
30+
po <- alloc_init (llvm_struct "struct.s") (llvm_struct_value [px]);
3131
llvm_execute_func [po];
3232
llvm_return po;
3333
};

examples/salsa20/salsa.saw

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let s20_encrypt32 n = do {
8989
};
9090

9191
let main : TopLevel () = do {
92-
m <- load_module "salsa20.bc";
92+
m <- llvm_load_module "salsa20.bc";
9393
qr <- llvm_verify m "s20_quarterround" [] false quarterround_setup abc;
9494
rr <- llvm_verify m "s20_rowround" [qr] false rowround_setup abc;
9595
cr <- llvm_verify m "s20_columnround" [qr] false columnround_setup abc;

0 commit comments

Comments
 (0)